diff --git a/README.md b/README.md index da9bb18..0753690 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,18 @@ session_code = json.loads(r.data) print(f"Session code: {session_code}") +print("\nFetching HEAppE version info...") +lver_body = { + "_preload_content": False, + "SessionCode": session_code +} + +manEndpoint = hp.ManagementApi(api_instance) +r= manEndpoint.heappe_management_version_information_get(**lver_body) +r_data = json.loads(r.data) +print(json.dumps(r_data, indent = 3)) + + print("\nFetching cluster info...") lac_body = { "_preload_content": False diff --git a/example.py b/example.py index 7e4bb7d..35daf3c 100644 --- a/example.py +++ b/example.py @@ -35,6 +35,18 @@ print(f"Session code: {session_code}") +print("\nFetching HEAppE version info...") +lver_body = { + "_preload_content": False, + "SessionCode": session_code +} + +manEndpoint = hp.ManagementApi(api_instance) +r= manEndpoint.heappe_management_version_information_get(**lver_body) +r_data = json.loads(r.data) +print(json.dumps(r_data, indent = 3)) + + print("\nFetching cluster info...") lac_body = { "_preload_content": False diff --git a/heappeac_v4/__init__.py b/heappeac_v4/__init__.py index f648644..67349ab 100644 --- a/heappeac_v4/__init__.py +++ b/heappeac_v4/__init__.py @@ -30,6 +30,8 @@ from heappeac_v4.models.adaptor_user_group import AdaptorUserGroup from heappeac_v4.models.adaptor_user_role import AdaptorUserRole from heappeac_v4.models.adaptor_user_role_ext import AdaptorUserRoleExt +from heappeac_v4.models.adaptor_user_role_type import AdaptorUserRoleType +from heappeac_v4.models.adaptor_user_type import AdaptorUserType from heappeac_v4.models.adaptor_user_user_group_role import AdaptorUserUserGroupRole from heappeac_v4.models.authenticate_lexis_token_model import AuthenticateLexisTokenModel from heappeac_v4.models.authenticate_user_digital_signature_model import AuthenticateUserDigitalSignatureModel @@ -71,6 +73,7 @@ from heappeac_v4.models.create_project_assignment_to_cluster_model import CreateProjectAssignmentToClusterModel from heappeac_v4.models.create_project_model import CreateProjectModel from heappeac_v4.models.create_secure_shell_key_model import CreateSecureShellKeyModel +from heappeac_v4.models.create_secure_shell_key_model_obsolete import CreateSecureShellKeyModelObsolete from heappeac_v4.models.data_transfer_method_ext import DataTransferMethodExt from heappeac_v4.models.delete_job_model import DeleteJobModel from heappeac_v4.models.deployment_type_ext import DeploymentTypeExt @@ -123,13 +126,17 @@ from heappeac_v4.models.project_resource_usage_ext import ProjectResourceUsageExt from heappeac_v4.models.proxy_type import ProxyType from heappeac_v4.models.proxy_type_ext import ProxyTypeExt -from heappeac_v4.models.recreate_secure_shell_key_model import RecreateSecureShellKeyModel +from heappeac_v4.models.public_key_ext import PublicKeyExt +from heappeac_v4.models.regenerate_secure_shell_key_model import RegenerateSecureShellKeyModel +from heappeac_v4.models.regenerate_secure_shell_key_model_obsolete import RegenerateSecureShellKeyModelObsolete from heappeac_v4.models.remove_command_template_model import RemoveCommandTemplateModel from heappeac_v4.models.remove_project_assignment_to_cluster_model import RemoveProjectAssignmentToClusterModel from heappeac_v4.models.remove_project_model import RemoveProjectModel from heappeac_v4.models.remove_secure_shell_key_model import RemoveSecureShellKeyModel +from heappeac_v4.models.remove_secure_shell_key_model_obsolete import RemoveSecureShellKeyModelObsolete from heappeac_v4.models.resource_allocation_type_ext import ResourceAllocationTypeExt from heappeac_v4.models.scheduler_type import SchedulerType +from heappeac_v4.models.ssh_key_user_credentials_model import SshKeyUserCredentialsModel from heappeac_v4.models.submit_job_model import SubmitJobModel from heappeac_v4.models.submitted_job_info_ext import SubmittedJobInfoExt from heappeac_v4.models.submitted_task_info_ext import SubmittedTaskInfoExt @@ -141,9 +148,11 @@ from heappeac_v4.models.task_report_ext import TaskReportExt from heappeac_v4.models.task_specification_ext import TaskSpecificationExt from heappeac_v4.models.task_state_ext import TaskStateExt -from heappeac_v4.models.test_cluster_access_for_account_model import TestClusterAccessForAccountModel +from heappeac_v4.models.test_cluster_access_for_account_model_obsolete import TestClusterAccessForAccountModelObsolete +from heappeac_v4.models.unauthorized_result import UnauthorizedResult from heappeac_v4.models.usage_type import UsageType from heappeac_v4.models.usage_type_ext import UsageTypeExt from heappeac_v4.models.user_group_detailed_report_ext import UserGroupDetailedReportExt from heappeac_v4.models.user_group_list_report_ext import UserGroupListReportExt from heappeac_v4.models.user_group_report_ext import UserGroupReportExt +from heappeac_v4.models.version_information_ext import VersionInformationExt diff --git a/heappeac_v4/api/management_api.py b/heappeac_v4/api/management_api.py index 515a1b4..35fce0b 100644 --- a/heappeac_v4/api/management_api.py +++ b/heappeac_v4/api/management_api.py @@ -311,6 +311,99 @@ def heappe_management_command_template_put_with_http_info(self, **kwargs): # no _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def heappe_management_generate_secure_shell_key_post(self, **kwargs): # noqa: E501 + """Generate SSH key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_generate_secure_shell_key_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateSecureShellKeyModel body: + :return: list[PublicKeyExt] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.heappe_management_generate_secure_shell_key_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.heappe_management_generate_secure_shell_key_post_with_http_info(**kwargs) # noqa: E501 + return data + + def heappe_management_generate_secure_shell_key_post_with_http_info(self, **kwargs): # noqa: E501 + """Generate SSH key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_generate_secure_shell_key_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateSecureShellKeyModel body: + :return: list[PublicKeyExt] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method heappe_management_generate_secure_shell_key_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/heappe/Management/GenerateSecureShellKey', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[PublicKeyExt]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def heappe_management_initialize_cluster_script_directory_post(self, **kwargs): # noqa: E501 """Initialize cluster script directory for SSH HPC Account # noqa: E501 @@ -1051,6 +1144,192 @@ def heappe_management_project_put_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def heappe_management_regenerate_secure_shell_key_put(self, **kwargs): # noqa: E501 + """Regenerate SSH key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_regenerate_secure_shell_key_put(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RegenerateSecureShellKeyModel body: + :return: PublicKeyExt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.heappe_management_regenerate_secure_shell_key_put_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.heappe_management_regenerate_secure_shell_key_put_with_http_info(**kwargs) # noqa: E501 + return data + + def heappe_management_regenerate_secure_shell_key_put_with_http_info(self, **kwargs): # noqa: E501 + """Regenerate SSH key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_regenerate_secure_shell_key_put_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RegenerateSecureShellKeyModel body: + :return: PublicKeyExt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method heappe_management_regenerate_secure_shell_key_put" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/heappe/Management/RegenerateSecureShellKey', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PublicKeyExt', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def heappe_management_remove_secure_shell_key_delete(self, **kwargs): # noqa: E501 + """Remove SSH key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_remove_secure_shell_key_delete(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RemoveSecureShellKeyModel body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.heappe_management_remove_secure_shell_key_delete_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.heappe_management_remove_secure_shell_key_delete_with_http_info(**kwargs) # noqa: E501 + return data + + def heappe_management_remove_secure_shell_key_delete_with_http_info(self, **kwargs): # noqa: E501 + """Remove SSH key # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_remove_secure_shell_key_delete_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param RemoveSecureShellKeyModel body: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method heappe_management_remove_secure_shell_key_delete" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/heappe/Management/RemoveSecureShellKey', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def heappe_management_secure_shell_key_delete(self, **kwargs): # noqa: E501 """Remove SSH key # noqa: E501 @@ -1060,7 +1339,7 @@ def heappe_management_secure_shell_key_delete(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param RemoveSecureShellKeyModel body: + :param RemoveSecureShellKeyModelObsolete body: :return: str If the method is called asynchronously, returns the request thread. @@ -1081,7 +1360,7 @@ def heappe_management_secure_shell_key_delete_with_http_info(self, **kwargs): # >>> result = thread.get() :param async_req bool - :param RemoveSecureShellKeyModel body: + :param RemoveSecureShellKeyModelObsolete body: :return: str If the method is called asynchronously, returns the request thread. @@ -1153,8 +1432,8 @@ def heappe_management_secure_shell_key_post(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param CreateSecureShellKeyModel body: - :return: str + :param CreateSecureShellKeyModelObsolete body: + :return: list[PublicKeyExt] If the method is called asynchronously, returns the request thread. """ @@ -1174,8 +1453,8 @@ def heappe_management_secure_shell_key_post_with_http_info(self, **kwargs): # n >>> result = thread.get() :param async_req bool - :param CreateSecureShellKeyModel body: - :return: str + :param CreateSecureShellKeyModelObsolete body: + :return: list[PublicKeyExt] If the method is called asynchronously, returns the request thread. """ @@ -1229,7 +1508,7 @@ def heappe_management_secure_shell_key_post_with_http_info(self, **kwargs): # n body=body_params, post_params=form_params, files=local_var_files, - response_type='str', # noqa: E501 + response_type='list[PublicKeyExt]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1246,8 +1525,8 @@ def heappe_management_secure_shell_key_put(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param RecreateSecureShellKeyModel body: - :return: str + :param RegenerateSecureShellKeyModelObsolete body: + :return: PublicKeyExt If the method is called asynchronously, returns the request thread. """ @@ -1267,8 +1546,8 @@ def heappe_management_secure_shell_key_put_with_http_info(self, **kwargs): # no >>> result = thread.get() :param async_req bool - :param RecreateSecureShellKeyModel body: - :return: str + :param RegenerateSecureShellKeyModelObsolete body: + :return: PublicKeyExt If the method is called asynchronously, returns the request thread. """ @@ -1322,6 +1601,103 @@ def heappe_management_secure_shell_key_put_with_http_info(self, **kwargs): # no body=body_params, post_params=form_params, files=local_var_files, + response_type='PublicKeyExt', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def heappe_management_test_cluster_access_for_account_get(self, **kwargs): # noqa: E501 + """Test cluster access for robot account # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_test_cluster_access_for_account_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str username: + :param int project_id: + :param str session_code: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.heappe_management_test_cluster_access_for_account_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.heappe_management_test_cluster_access_for_account_get_with_http_info(**kwargs) # noqa: E501 + return data + + def heappe_management_test_cluster_access_for_account_get_with_http_info(self, **kwargs): # noqa: E501 + """Test cluster access for robot account # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_test_cluster_access_for_account_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str Username: + :param int ProjectId: + :param str SessionCode: + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['Username', 'project_id', 'SessionCode'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method heappe_management_test_cluster_access_for_account_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'Username' in params: + query_params.append(('Username', params['Username'])) # noqa: E501 + if 'ProjectId' in params: + query_params.append(('ProjectId', params['ProjectId'])) # noqa: E501 + if 'SessionCode' in params: + query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/heappe/Management/TestClusterAccessForAccount', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, response_type='str', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), @@ -1339,7 +1715,7 @@ def heappe_management_test_cluster_access_for_account_post(self, **kwargs): # n >>> result = thread.get() :param async_req bool - :param TestClusterAccessForAccountModel body: + :param TestClusterAccessForAccountModelObsolete body: :return: str If the method is called asynchronously, returns the request thread. @@ -1360,7 +1736,7 @@ def heappe_management_test_cluster_access_for_account_post_with_http_info(self, >>> result = thread.get() :param async_req bool - :param TestClusterAccessForAccountModel body: + :param TestClusterAccessForAccountModelObsolete body: :return: str If the method is called asynchronously, returns the request thread. @@ -1422,3 +1798,92 @@ def heappe_management_test_cluster_access_for_account_post_with_http_info(self, _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def heappe_management_version_information_get(self, **kwargs): # noqa: E501 + """Get HEAppE Version Information # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_version_information_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str session_code: SessionCode + :return: VersionInformationExt + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.heappe_management_version_information_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.heappe_management_version_information_get_with_http_info(**kwargs) # noqa: E501 + return data + + def heappe_management_version_information_get_with_http_info(self, **kwargs): # noqa: E501 + """Get HEAppE Version Information # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.heappe_management_version_information_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str SessionCode: SessionCode + :return: VersionInformationExt + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['SessionCode'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method heappe_management_version_information_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'SessionCode' in params: + query_params.append(('SessionCode', params['SessionCode'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/heappe/Management/VersionInformation', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VersionInformationExt', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/heappeac_v4/models/__init__.py b/heappeac_v4/models/__init__.py index 64a8ecd..5915098 100644 --- a/heappeac_v4/models/__init__.py +++ b/heappeac_v4/models/__init__.py @@ -18,6 +18,8 @@ from heappeac_v4.models.adaptor_user_group import AdaptorUserGroup from heappeac_v4.models.adaptor_user_role import AdaptorUserRole from heappeac_v4.models.adaptor_user_role_ext import AdaptorUserRoleExt +from heappeac_v4.models.adaptor_user_role_type import AdaptorUserRoleType +from heappeac_v4.models.adaptor_user_type import AdaptorUserType from heappeac_v4.models.adaptor_user_user_group_role import AdaptorUserUserGroupRole from heappeac_v4.models.authenticate_lexis_token_model import AuthenticateLexisTokenModel from heappeac_v4.models.authenticate_user_digital_signature_model import AuthenticateUserDigitalSignatureModel @@ -59,6 +61,7 @@ from heappeac_v4.models.create_project_assignment_to_cluster_model import CreateProjectAssignmentToClusterModel from heappeac_v4.models.create_project_model import CreateProjectModel from heappeac_v4.models.create_secure_shell_key_model import CreateSecureShellKeyModel +from heappeac_v4.models.create_secure_shell_key_model_obsolete import CreateSecureShellKeyModelObsolete from heappeac_v4.models.data_transfer_method_ext import DataTransferMethodExt from heappeac_v4.models.delete_job_model import DeleteJobModel from heappeac_v4.models.deployment_type_ext import DeploymentTypeExt @@ -79,6 +82,7 @@ from heappeac_v4.models.file_transfer_protocol_ext import FileTransferProtocolExt from heappeac_v4.models.get_command_template_parameters_name_model import GetCommandTemplateParametersNameModel from heappeac_v4.models.get_data_transfer_method_model import GetDataTransferMethodModel +from heappeac_v4.models.get_file_transfer_method_model import GetFileTransferMethodModel from heappeac_v4.models.http_header_ext import HTTPHeaderExt from heappeac_v4.models.http_get_to_job_node_model import HttpGetToJobNodeModel from heappeac_v4.models.http_post_to_job_node_model import HttpPostToJobNodeModel @@ -110,13 +114,17 @@ from heappeac_v4.models.project_resource_usage_ext import ProjectResourceUsageExt from heappeac_v4.models.proxy_type import ProxyType from heappeac_v4.models.proxy_type_ext import ProxyTypeExt -from heappeac_v4.models.recreate_secure_shell_key_model import RecreateSecureShellKeyModel +from heappeac_v4.models.public_key_ext import PublicKeyExt +from heappeac_v4.models.regenerate_secure_shell_key_model import RegenerateSecureShellKeyModel +from heappeac_v4.models.regenerate_secure_shell_key_model_obsolete import RegenerateSecureShellKeyModelObsolete from heappeac_v4.models.remove_command_template_model import RemoveCommandTemplateModel from heappeac_v4.models.remove_project_assignment_to_cluster_model import RemoveProjectAssignmentToClusterModel from heappeac_v4.models.remove_project_model import RemoveProjectModel from heappeac_v4.models.remove_secure_shell_key_model import RemoveSecureShellKeyModel +from heappeac_v4.models.remove_secure_shell_key_model_obsolete import RemoveSecureShellKeyModelObsolete from heappeac_v4.models.resource_allocation_type_ext import ResourceAllocationTypeExt from heappeac_v4.models.scheduler_type import SchedulerType +from heappeac_v4.models.ssh_key_user_credentials_model import SshKeyUserCredentialsModel from heappeac_v4.models.submit_job_model import SubmitJobModel from heappeac_v4.models.submitted_job_info_ext import SubmittedJobInfoExt from heappeac_v4.models.submitted_task_info_ext import SubmittedTaskInfoExt @@ -128,9 +136,11 @@ from heappeac_v4.models.task_report_ext import TaskReportExt from heappeac_v4.models.task_specification_ext import TaskSpecificationExt from heappeac_v4.models.task_state_ext import TaskStateExt -from heappeac_v4.models.test_cluster_access_for_account_model import TestClusterAccessForAccountModel +from heappeac_v4.models.test_cluster_access_for_account_model_obsolete import TestClusterAccessForAccountModelObsolete +from heappeac_v4.models.unauthorized_result import UnauthorizedResult from heappeac_v4.models.usage_type import UsageType from heappeac_v4.models.usage_type_ext import UsageTypeExt from heappeac_v4.models.user_group_detailed_report_ext import UserGroupDetailedReportExt from heappeac_v4.models.user_group_list_report_ext import UserGroupListReportExt from heappeac_v4.models.user_group_report_ext import UserGroupReportExt +from heappeac_v4.models.version_information_ext import VersionInformationExt diff --git a/heappeac_v4/models/adaptor_user.py b/heappeac_v4/models/adaptor_user.py index 3f85b02..3b4a55d 100644 --- a/heappeac_v4/models/adaptor_user.py +++ b/heappeac_v4/models/adaptor_user.py @@ -37,9 +37,9 @@ class AdaptorUser(object): 'deleted': 'bool', 'created_at': 'datetime', 'modified_at': 'datetime', + 'user_type': 'AdaptorUserType', 'adaptor_user_user_group_roles': 'list[AdaptorUserUserGroupRole]', - 'groups': 'list[AdaptorUserGroup]', - 'roles': 'list[AdaptorUserRole]' + 'groups': 'list[AdaptorUserGroup]' } attribute_map = { @@ -52,12 +52,12 @@ class AdaptorUser(object): 'deleted': 'Deleted', 'created_at': 'CreatedAt', 'modified_at': 'ModifiedAt', + 'user_type': 'UserType', 'adaptor_user_user_group_roles': 'AdaptorUserUserGroupRoles', - 'groups': 'Groups', - 'roles': 'Roles' + 'groups': 'Groups' } - def __init__(self, id=None, username=None, password=None, public_key=None, email=None, synchronize=None, deleted=None, created_at=None, modified_at=None, adaptor_user_user_group_roles=None, groups=None, roles=None): # noqa: E501 + def __init__(self, id=None, username=None, password=None, public_key=None, email=None, synchronize=None, deleted=None, created_at=None, modified_at=None, user_type=None, adaptor_user_user_group_roles=None, groups=None): # noqa: E501 """AdaptorUser - a model defined in Swagger""" # noqa: E501 self._id = None self._username = None @@ -68,9 +68,9 @@ def __init__(self, id=None, username=None, password=None, public_key=None, email self._deleted = None self._created_at = None self._modified_at = None + self._user_type = None self._adaptor_user_user_group_roles = None self._groups = None - self._roles = None self.discriminator = None if id is not None: self.id = id @@ -89,12 +89,11 @@ def __init__(self, id=None, username=None, password=None, public_key=None, email self.created_at = created_at if modified_at is not None: self.modified_at = modified_at + self.user_type = user_type if adaptor_user_user_group_roles is not None: self.adaptor_user_user_group_roles = adaptor_user_user_group_roles if groups is not None: self.groups = groups - if roles is not None: - self.roles = roles @property def id(self): @@ -287,6 +286,29 @@ def modified_at(self, modified_at): self._modified_at = modified_at + @property + def user_type(self): + """Gets the user_type of this AdaptorUser. # noqa: E501 + + + :return: The user_type of this AdaptorUser. # noqa: E501 + :rtype: AdaptorUserType + """ + return self._user_type + + @user_type.setter + def user_type(self, user_type): + """Sets the user_type of this AdaptorUser. + + + :param user_type: The user_type of this AdaptorUser. # noqa: E501 + :type: AdaptorUserType + """ + if user_type is None: + raise ValueError("Invalid value for `user_type`, must not be `None`") # noqa: E501 + + self._user_type = user_type + @property def adaptor_user_user_group_roles(self): """Gets the adaptor_user_user_group_roles of this AdaptorUser. # noqa: E501 @@ -329,27 +351,6 @@ def groups(self, groups): self._groups = groups - @property - def roles(self): - """Gets the roles of this AdaptorUser. # noqa: E501 - - - :return: The roles of this AdaptorUser. # noqa: E501 - :rtype: list[AdaptorUserRole] - """ - return self._roles - - @roles.setter - def roles(self, roles): - """Sets the roles of this AdaptorUser. - - - :param roles: The roles of this AdaptorUser. # noqa: E501 - :type: list[AdaptorUserRole] - """ - - self._roles = roles - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/heappeac_v4/models/adaptor_user_role.py b/heappeac_v4/models/adaptor_user_role.py index 6c9997f..d890239 100644 --- a/heappeac_v4/models/adaptor_user_role.py +++ b/heappeac_v4/models/adaptor_user_role.py @@ -31,44 +31,39 @@ class AdaptorUserRole(object): 'id': 'int', 'name': 'str', 'description': 'str', - 'parent_role_id': 'int', - 'parent_role': 'AdaptorUserRole', 'adaptor_user_user_group_roles': 'list[AdaptorUserUserGroupRole]', - 'users': 'list[AdaptorUser]' + 'role_type': 'AdaptorUserRoleType', + 'contained_role_types': 'list[AdaptorUserRoleType]' } attribute_map = { 'id': 'Id', 'name': 'Name', 'description': 'Description', - 'parent_role_id': 'ParentRoleId', - 'parent_role': 'ParentRole', 'adaptor_user_user_group_roles': 'AdaptorUserUserGroupRoles', - 'users': 'Users' + 'role_type': 'RoleType', + 'contained_role_types': 'ContainedRoleTypes' } - def __init__(self, id=None, name=None, description=None, parent_role_id=None, parent_role=None, adaptor_user_user_group_roles=None, users=None): # noqa: E501 + def __init__(self, id=None, name=None, description=None, adaptor_user_user_group_roles=None, role_type=None, contained_role_types=None): # noqa: E501 """AdaptorUserRole - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None self._description = None - self._parent_role_id = None - self._parent_role = None self._adaptor_user_user_group_roles = None - self._users = None + self._role_type = None + self._contained_role_types = None self.discriminator = None if id is not None: self.id = id self.name = name self.description = description - if parent_role_id is not None: - self.parent_role_id = parent_role_id - if parent_role is not None: - self.parent_role = parent_role if adaptor_user_user_group_roles is not None: self.adaptor_user_user_group_roles = adaptor_user_user_group_roles - if users is not None: - self.users = users + if role_type is not None: + self.role_type = role_type + if contained_role_types is not None: + self.contained_role_types = contained_role_types @property def id(self): @@ -137,48 +132,6 @@ def description(self, description): self._description = description - @property - def parent_role_id(self): - """Gets the parent_role_id of this AdaptorUserRole. # noqa: E501 - - - :return: The parent_role_id of this AdaptorUserRole. # noqa: E501 - :rtype: int - """ - return self._parent_role_id - - @parent_role_id.setter - def parent_role_id(self, parent_role_id): - """Sets the parent_role_id of this AdaptorUserRole. - - - :param parent_role_id: The parent_role_id of this AdaptorUserRole. # noqa: E501 - :type: int - """ - - self._parent_role_id = parent_role_id - - @property - def parent_role(self): - """Gets the parent_role of this AdaptorUserRole. # noqa: E501 - - - :return: The parent_role of this AdaptorUserRole. # noqa: E501 - :rtype: AdaptorUserRole - """ - return self._parent_role - - @parent_role.setter - def parent_role(self, parent_role): - """Sets the parent_role of this AdaptorUserRole. - - - :param parent_role: The parent_role of this AdaptorUserRole. # noqa: E501 - :type: AdaptorUserRole - """ - - self._parent_role = parent_role - @property def adaptor_user_user_group_roles(self): """Gets the adaptor_user_user_group_roles of this AdaptorUserRole. # noqa: E501 @@ -201,25 +154,46 @@ def adaptor_user_user_group_roles(self, adaptor_user_user_group_roles): self._adaptor_user_user_group_roles = adaptor_user_user_group_roles @property - def users(self): - """Gets the users of this AdaptorUserRole. # noqa: E501 + def role_type(self): + """Gets the role_type of this AdaptorUserRole. # noqa: E501 + + + :return: The role_type of this AdaptorUserRole. # noqa: E501 + :rtype: AdaptorUserRoleType + """ + return self._role_type + + @role_type.setter + def role_type(self, role_type): + """Sets the role_type of this AdaptorUserRole. + + + :param role_type: The role_type of this AdaptorUserRole. # noqa: E501 + :type: AdaptorUserRoleType + """ + + self._role_type = role_type + + @property + def contained_role_types(self): + """Gets the contained_role_types of this AdaptorUserRole. # noqa: E501 - :return: The users of this AdaptorUserRole. # noqa: E501 - :rtype: list[AdaptorUser] + :return: The contained_role_types of this AdaptorUserRole. # noqa: E501 + :rtype: list[AdaptorUserRoleType] """ - return self._users + return self._contained_role_types - @users.setter - def users(self, users): - """Sets the users of this AdaptorUserRole. + @contained_role_types.setter + def contained_role_types(self, contained_role_types): + """Sets the contained_role_types of this AdaptorUserRole. - :param users: The users of this AdaptorUserRole. # noqa: E501 - :type: list[AdaptorUser] + :param contained_role_types: The contained_role_types of this AdaptorUserRole. # noqa: E501 + :type: list[AdaptorUserRoleType] """ - self._users = users + self._contained_role_types = contained_role_types def to_dict(self): """Returns the model properties as a dict""" diff --git a/heappeac_v4/models/adaptor_user_role_type.py b/heappeac_v4/models/adaptor_user_role_type.py new file mode 100644 index 0000000..971e88d --- /dev/null +++ b/heappeac_v4/models/adaptor_user_role_type.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AdaptorUserRoleType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + _1 = "1" + _2 = "2" + _3 = "3" + _4 = "4" + _5 = "5" + _6 = "6" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdaptorUserRoleType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdaptorUserRoleType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdaptorUserRoleType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/adaptor_user_type.py b/heappeac_v4/models/adaptor_user_type.py new file mode 100644 index 0000000..7fbb1b0 --- /dev/null +++ b/heappeac_v4/models/adaptor_user_type.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AdaptorUserType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + _1 = "1" + _2 = "2" + _3 = "3" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdaptorUserType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdaptorUserType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdaptorUserType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/cluster_node_type.py b/heappeac_v4/models/cluster_node_type.py index 2bbadb6..e2949b4 100644 --- a/heappeac_v4/models/cluster_node_type.py +++ b/heappeac_v4/models/cluster_node_type.py @@ -37,6 +37,8 @@ class ClusterNodeType(object): 'quality_of_service': 'str', 'cluster_allocation_name': 'str', 'max_walltime': 'int', + 'max_nodes_per_user': 'int', + 'max_nodes_per_job': 'int', 'cluster_id': 'int', 'cluster': 'Cluster', 'file_transfer_method_id': 'int', @@ -55,6 +57,8 @@ class ClusterNodeType(object): 'quality_of_service': 'QualityOfService', 'cluster_allocation_name': 'ClusterAllocationName', 'max_walltime': 'MaxWalltime', + 'max_nodes_per_user': 'MaxNodesPerUser', + 'max_nodes_per_job': 'MaxNodesPerJob', 'cluster_id': 'ClusterId', 'cluster': 'Cluster', 'file_transfer_method_id': 'FileTransferMethodId', @@ -63,7 +67,7 @@ class ClusterNodeType(object): 'possible_commands': 'PossibleCommands' } - def __init__(self, id=None, name=None, description=None, number_of_nodes=None, cores_per_node=None, queue=None, quality_of_service=None, cluster_allocation_name=None, max_walltime=None, cluster_id=None, cluster=None, file_transfer_method_id=None, file_transfer_method=None, requested_node_groups=None, possible_commands=None): # noqa: E501 + def __init__(self, id=None, name=None, description=None, number_of_nodes=None, cores_per_node=None, queue=None, quality_of_service=None, cluster_allocation_name=None, max_walltime=None, max_nodes_per_user=None, max_nodes_per_job=None, cluster_id=None, cluster=None, file_transfer_method_id=None, file_transfer_method=None, requested_node_groups=None, possible_commands=None): # noqa: E501 """ClusterNodeType - a model defined in Swagger""" # noqa: E501 self._id = None self._name = None @@ -74,6 +78,8 @@ def __init__(self, id=None, name=None, description=None, number_of_nodes=None, c self._quality_of_service = None self._cluster_allocation_name = None self._max_walltime = None + self._max_nodes_per_user = None + self._max_nodes_per_job = None self._cluster_id = None self._cluster = None self._file_transfer_method_id = None @@ -97,6 +103,10 @@ def __init__(self, id=None, name=None, description=None, number_of_nodes=None, c self.cluster_allocation_name = cluster_allocation_name if max_walltime is not None: self.max_walltime = max_walltime + if max_nodes_per_user is not None: + self.max_nodes_per_user = max_nodes_per_user + if max_nodes_per_job is not None: + self.max_nodes_per_job = max_nodes_per_job if cluster_id is not None: self.cluster_id = cluster_id if cluster is not None: @@ -303,6 +313,48 @@ def max_walltime(self, max_walltime): self._max_walltime = max_walltime + @property + def max_nodes_per_user(self): + """Gets the max_nodes_per_user of this ClusterNodeType. # noqa: E501 + + + :return: The max_nodes_per_user of this ClusterNodeType. # noqa: E501 + :rtype: int + """ + return self._max_nodes_per_user + + @max_nodes_per_user.setter + def max_nodes_per_user(self, max_nodes_per_user): + """Sets the max_nodes_per_user of this ClusterNodeType. + + + :param max_nodes_per_user: The max_nodes_per_user of this ClusterNodeType. # noqa: E501 + :type: int + """ + + self._max_nodes_per_user = max_nodes_per_user + + @property + def max_nodes_per_job(self): + """Gets the max_nodes_per_job of this ClusterNodeType. # noqa: E501 + + + :return: The max_nodes_per_job of this ClusterNodeType. # noqa: E501 + :rtype: int + """ + return self._max_nodes_per_job + + @max_nodes_per_job.setter + def max_nodes_per_job(self, max_nodes_per_job): + """Sets the max_nodes_per_job of this ClusterNodeType. + + + :param max_nodes_per_job: The max_nodes_per_job of this ClusterNodeType. # noqa: E501 + :type: int + """ + + self._max_nodes_per_job = max_nodes_per_job + @property def cluster_id(self): """Gets the cluster_id of this ClusterNodeType. # noqa: E501 diff --git a/heappeac_v4/models/create_project_model.py b/heappeac_v4/models/create_project_model.py index f4cd688..3812ec3 100644 --- a/heappeac_v4/models/create_project_model.py +++ b/heappeac_v4/models/create_project_model.py @@ -34,7 +34,9 @@ class CreateProjectModel(object): 'accounting_string': 'str', 'start_date': 'datetime', 'end_date': 'datetime', - 'usage_type': 'UsageTypeExt' + 'usage_type': 'UsageTypeExt', + 'use_accounting_string_for_scheduler': 'bool', + 'pi_email': 'str' } attribute_map = { @@ -44,10 +46,12 @@ class CreateProjectModel(object): 'accounting_string': 'AccountingString', 'start_date': 'StartDate', 'end_date': 'EndDate', - 'usage_type': 'UsageType' + 'usage_type': 'UsageType', + 'use_accounting_string_for_scheduler': 'UseAccountingStringForScheduler', + 'pi_email': 'PIEmail' } - def __init__(self, session_code=None, name=None, description=None, accounting_string=None, start_date=None, end_date=None, usage_type=None): # noqa: E501 + def __init__(self, session_code=None, name=None, description=None, accounting_string=None, start_date=None, end_date=None, usage_type=None, use_accounting_string_for_scheduler=None, pi_email=None): # noqa: E501 """CreateProjectModel - a model defined in Swagger""" # noqa: E501 self._session_code = None self._name = None @@ -56,6 +60,8 @@ def __init__(self, session_code=None, name=None, description=None, accounting_st self._start_date = None self._end_date = None self._usage_type = None + self._use_accounting_string_for_scheduler = None + self._pi_email = None self.discriminator = None if session_code is not None: self.session_code = session_code @@ -71,6 +77,10 @@ def __init__(self, session_code=None, name=None, description=None, accounting_st self.end_date = end_date if usage_type is not None: self.usage_type = usage_type + if use_accounting_string_for_scheduler is not None: + self.use_accounting_string_for_scheduler = use_accounting_string_for_scheduler + if pi_email is not None: + self.pi_email = pi_email @property def session_code(self): @@ -219,6 +229,48 @@ def usage_type(self, usage_type): self._usage_type = usage_type + @property + def use_accounting_string_for_scheduler(self): + """Gets the use_accounting_string_for_scheduler of this CreateProjectModel. # noqa: E501 + + + :return: The use_accounting_string_for_scheduler of this CreateProjectModel. # noqa: E501 + :rtype: bool + """ + return self._use_accounting_string_for_scheduler + + @use_accounting_string_for_scheduler.setter + def use_accounting_string_for_scheduler(self, use_accounting_string_for_scheduler): + """Sets the use_accounting_string_for_scheduler of this CreateProjectModel. + + + :param use_accounting_string_for_scheduler: The use_accounting_string_for_scheduler of this CreateProjectModel. # noqa: E501 + :type: bool + """ + + self._use_accounting_string_for_scheduler = use_accounting_string_for_scheduler + + @property + def pi_email(self): + """Gets the pi_email of this CreateProjectModel. # noqa: E501 + + + :return: The pi_email of this CreateProjectModel. # noqa: E501 + :rtype: str + """ + return self._pi_email + + @pi_email.setter + def pi_email(self, pi_email): + """Sets the pi_email of this CreateProjectModel. + + + :param pi_email: The pi_email of this CreateProjectModel. # noqa: E501 + :type: str + """ + + self._pi_email = pi_email + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/heappeac_v4/models/create_secure_shell_key_model.py b/heappeac_v4/models/create_secure_shell_key_model.py index d401b3f..9271ad8 100644 --- a/heappeac_v4/models/create_secure_shell_key_model.py +++ b/heappeac_v4/models/create_secure_shell_key_model.py @@ -29,31 +29,26 @@ class CreateSecureShellKeyModel(object): """ swagger_types = { 'session_code': 'str', - 'username': 'str', - 'password': 'str', + 'credentials': 'list[SshKeyUserCredentialsModel]', 'project_id': 'int' } attribute_map = { 'session_code': 'SessionCode', - 'username': 'Username', - 'password': 'Password', + 'credentials': 'Credentials', 'project_id': 'ProjectId' } - def __init__(self, session_code=None, username=None, password=None, project_id=None): # noqa: E501 + def __init__(self, session_code=None, credentials=None, project_id=None): # noqa: E501 """CreateSecureShellKeyModel - a model defined in Swagger""" # noqa: E501 self._session_code = None - self._username = None - self._password = None + self._credentials = None self._project_id = None self.discriminator = None if session_code is not None: self.session_code = session_code - if username is not None: - self.username = username - if password is not None: - self.password = password + if credentials is not None: + self.credentials = credentials if project_id is not None: self.project_id = project_id @@ -79,46 +74,25 @@ def session_code(self, session_code): self._session_code = session_code @property - def username(self): - """Gets the username of this CreateSecureShellKeyModel. # noqa: E501 + def credentials(self): + """Gets the credentials of this CreateSecureShellKeyModel. # noqa: E501 - :return: The username of this CreateSecureShellKeyModel. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this CreateSecureShellKeyModel. - - - :param username: The username of this CreateSecureShellKeyModel. # noqa: E501 - :type: str - """ - - self._username = username - - @property - def password(self): - """Gets the password of this CreateSecureShellKeyModel. # noqa: E501 - - - :return: The password of this CreateSecureShellKeyModel. # noqa: E501 - :rtype: str + :return: The credentials of this CreateSecureShellKeyModel. # noqa: E501 + :rtype: list[SshKeyUserCredentialsModel] """ - return self._password + return self._credentials - @password.setter - def password(self, password): - """Sets the password of this CreateSecureShellKeyModel. + @credentials.setter + def credentials(self, credentials): + """Sets the credentials of this CreateSecureShellKeyModel. - :param password: The password of this CreateSecureShellKeyModel. # noqa: E501 - :type: str + :param credentials: The credentials of this CreateSecureShellKeyModel. # noqa: E501 + :type: list[SshKeyUserCredentialsModel] """ - self._password = password + self._credentials = credentials @property def project_id(self): diff --git a/heappeac_v4/models/create_secure_shell_key_model_obsolete.py b/heappeac_v4/models/create_secure_shell_key_model_obsolete.py new file mode 100644 index 0000000..f37dd8b --- /dev/null +++ b/heappeac_v4/models/create_secure_shell_key_model_obsolete.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class CreateSecureShellKeyModelObsolete(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'session_code': 'str', + 'username': 'str', + 'password': 'str', + 'project_id': 'int' + } + + attribute_map = { + 'session_code': 'SessionCode', + 'username': 'Username', + 'password': 'Password', + 'project_id': 'ProjectId' + } + + def __init__(self, session_code=None, username=None, password=None, project_id=None): # noqa: E501 + """CreateSecureShellKeyModelObsolete - a model defined in Swagger""" # noqa: E501 + self._session_code = None + self._username = None + self._password = None + self._project_id = None + self.discriminator = None + if session_code is not None: + self.session_code = session_code + if username is not None: + self.username = username + if password is not None: + self.password = password + if project_id is not None: + self.project_id = project_id + + @property + def session_code(self): + """Gets the session_code of this CreateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The session_code of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._session_code + + @session_code.setter + def session_code(self, session_code): + """Sets the session_code of this CreateSecureShellKeyModelObsolete. + + + :param session_code: The session_code of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._session_code = session_code + + @property + def username(self): + """Gets the username of this CreateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The username of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this CreateSecureShellKeyModelObsolete. + + + :param username: The username of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this CreateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The password of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this CreateSecureShellKeyModelObsolete. + + + :param password: The password of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def project_id(self): + """Gets the project_id of this CreateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The project_id of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: int + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateSecureShellKeyModelObsolete. + + + :param project_id: The project_id of this CreateSecureShellKeyModelObsolete. # noqa: E501 + :type: int + """ + + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateSecureShellKeyModelObsolete, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateSecureShellKeyModelObsolete): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/initialize_cluster_script_directory_model.py b/heappeac_v4/models/initialize_cluster_script_directory_model.py index 333999b..0101d0e 100644 --- a/heappeac_v4/models/initialize_cluster_script_directory_model.py +++ b/heappeac_v4/models/initialize_cluster_script_directory_model.py @@ -30,30 +30,25 @@ class InitializeClusterScriptDirectoryModel(object): swagger_types = { 'session_code': 'str', 'project_id': 'int', - 'public_key': 'str', 'cluster_project_root_directory': 'str' } attribute_map = { 'session_code': 'SessionCode', 'project_id': 'ProjectId', - 'public_key': 'PublicKey', 'cluster_project_root_directory': 'ClusterProjectRootDirectory' } - def __init__(self, session_code=None, project_id=None, public_key=None, cluster_project_root_directory=None): # noqa: E501 + def __init__(self, session_code=None, project_id=None, cluster_project_root_directory=None): # noqa: E501 """InitializeClusterScriptDirectoryModel - a model defined in Swagger""" # noqa: E501 self._session_code = None self._project_id = None - self._public_key = None self._cluster_project_root_directory = None self.discriminator = None if session_code is not None: self.session_code = session_code if project_id is not None: self.project_id = project_id - if public_key is not None: - self.public_key = public_key if cluster_project_root_directory is not None: self.cluster_project_root_directory = cluster_project_root_directory @@ -99,27 +94,6 @@ def project_id(self, project_id): self._project_id = project_id - @property - def public_key(self): - """Gets the public_key of this InitializeClusterScriptDirectoryModel. # noqa: E501 - - - :return: The public_key of this InitializeClusterScriptDirectoryModel. # noqa: E501 - :rtype: str - """ - return self._public_key - - @public_key.setter - def public_key(self, public_key): - """Sets the public_key of this InitializeClusterScriptDirectoryModel. - - - :param public_key: The public_key of this InitializeClusterScriptDirectoryModel. # noqa: E501 - :type: str - """ - - self._public_key = public_key - @property def cluster_project_root_directory(self): """Gets the cluster_project_root_directory of this InitializeClusterScriptDirectoryModel. # noqa: E501 diff --git a/heappeac_v4/models/modify_project_model.py b/heappeac_v4/models/modify_project_model.py index 53134be..a9d2f74 100644 --- a/heappeac_v4/models/modify_project_model.py +++ b/heappeac_v4/models/modify_project_model.py @@ -32,10 +32,10 @@ class ModifyProjectModel(object): 'id': 'int', 'name': 'str', 'description': 'str', - 'accounting_string': 'str', 'start_date': 'datetime', 'end_date': 'datetime', - 'usage_type': 'UsageTypeExt' + 'usage_type': 'UsageTypeExt', + 'use_accounting_string_for_scheduler': 'bool' } attribute_map = { @@ -43,22 +43,22 @@ class ModifyProjectModel(object): 'id': 'Id', 'name': 'Name', 'description': 'Description', - 'accounting_string': 'AccountingString', 'start_date': 'StartDate', 'end_date': 'EndDate', - 'usage_type': 'UsageType' + 'usage_type': 'UsageType', + 'use_accounting_string_for_scheduler': 'UseAccountingStringForScheduler' } - def __init__(self, session_code=None, id=None, name=None, description=None, accounting_string=None, start_date=None, end_date=None, usage_type=None): # noqa: E501 + def __init__(self, session_code=None, id=None, name=None, description=None, start_date=None, end_date=None, usage_type=None, use_accounting_string_for_scheduler=None): # noqa: E501 """ModifyProjectModel - a model defined in Swagger""" # noqa: E501 self._session_code = None self._id = None self._name = None self._description = None - self._accounting_string = None self._start_date = None self._end_date = None self._usage_type = None + self._use_accounting_string_for_scheduler = None self.discriminator = None if session_code is not None: self.session_code = session_code @@ -68,14 +68,14 @@ def __init__(self, session_code=None, id=None, name=None, description=None, acco self.name = name if description is not None: self.description = description - if accounting_string is not None: - self.accounting_string = accounting_string if start_date is not None: self.start_date = start_date if end_date is not None: self.end_date = end_date if usage_type is not None: self.usage_type = usage_type + if use_accounting_string_for_scheduler is not None: + self.use_accounting_string_for_scheduler = use_accounting_string_for_scheduler @property def session_code(self): @@ -161,27 +161,6 @@ def description(self, description): self._description = description - @property - def accounting_string(self): - """Gets the accounting_string of this ModifyProjectModel. # noqa: E501 - - - :return: The accounting_string of this ModifyProjectModel. # noqa: E501 - :rtype: str - """ - return self._accounting_string - - @accounting_string.setter - def accounting_string(self, accounting_string): - """Sets the accounting_string of this ModifyProjectModel. - - - :param accounting_string: The accounting_string of this ModifyProjectModel. # noqa: E501 - :type: str - """ - - self._accounting_string = accounting_string - @property def start_date(self): """Gets the start_date of this ModifyProjectModel. # noqa: E501 @@ -245,6 +224,27 @@ def usage_type(self, usage_type): self._usage_type = usage_type + @property + def use_accounting_string_for_scheduler(self): + """Gets the use_accounting_string_for_scheduler of this ModifyProjectModel. # noqa: E501 + + + :return: The use_accounting_string_for_scheduler of this ModifyProjectModel. # noqa: E501 + :rtype: bool + """ + return self._use_accounting_string_for_scheduler + + @use_accounting_string_for_scheduler.setter + def use_accounting_string_for_scheduler(self, use_accounting_string_for_scheduler): + """Sets the use_accounting_string_for_scheduler of this ModifyProjectModel. + + + :param use_accounting_string_for_scheduler: The use_accounting_string_for_scheduler of this ModifyProjectModel. # noqa: E501 + :type: bool + """ + + self._use_accounting_string_for_scheduler = use_accounting_string_for_scheduler + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/heappeac_v4/models/public_key_ext.py b/heappeac_v4/models/public_key_ext.py new file mode 100644 index 0000000..4493433 --- /dev/null +++ b/heappeac_v4/models/public_key_ext.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class PublicKeyExt(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'username': 'str', + 'key_type': 'FileTransferCipherTypeExt', + 'public_key_open_ssh': 'str', + 'public_key_pem': 'str' + } + + attribute_map = { + 'username': 'Username', + 'key_type': 'KeyType', + 'public_key_open_ssh': 'PublicKeyOpenSSH', + 'public_key_pem': 'PublicKeyPEM' + } + + def __init__(self, username=None, key_type=None, public_key_open_ssh=None, public_key_pem=None): # noqa: E501 + """PublicKeyExt - a model defined in Swagger""" # noqa: E501 + self._username = None + self._key_type = None + self._public_key_open_ssh = None + self._public_key_pem = None + self.discriminator = None + if username is not None: + self.username = username + if key_type is not None: + self.key_type = key_type + if public_key_open_ssh is not None: + self.public_key_open_ssh = public_key_open_ssh + if public_key_pem is not None: + self.public_key_pem = public_key_pem + + @property + def username(self): + """Gets the username of this PublicKeyExt. # noqa: E501 + + + :return: The username of this PublicKeyExt. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this PublicKeyExt. + + + :param username: The username of this PublicKeyExt. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def key_type(self): + """Gets the key_type of this PublicKeyExt. # noqa: E501 + + + :return: The key_type of this PublicKeyExt. # noqa: E501 + :rtype: FileTransferCipherTypeExt + """ + return self._key_type + + @key_type.setter + def key_type(self, key_type): + """Sets the key_type of this PublicKeyExt. + + + :param key_type: The key_type of this PublicKeyExt. # noqa: E501 + :type: FileTransferCipherTypeExt + """ + + self._key_type = key_type + + @property + def public_key_open_ssh(self): + """Gets the public_key_open_ssh of this PublicKeyExt. # noqa: E501 + + + :return: The public_key_open_ssh of this PublicKeyExt. # noqa: E501 + :rtype: str + """ + return self._public_key_open_ssh + + @public_key_open_ssh.setter + def public_key_open_ssh(self, public_key_open_ssh): + """Sets the public_key_open_ssh of this PublicKeyExt. + + + :param public_key_open_ssh: The public_key_open_ssh of this PublicKeyExt. # noqa: E501 + :type: str + """ + + self._public_key_open_ssh = public_key_open_ssh + + @property + def public_key_pem(self): + """Gets the public_key_pem of this PublicKeyExt. # noqa: E501 + + + :return: The public_key_pem of this PublicKeyExt. # noqa: E501 + :rtype: str + """ + return self._public_key_pem + + @public_key_pem.setter + def public_key_pem(self, public_key_pem): + """Sets the public_key_pem of this PublicKeyExt. + + + :param public_key_pem: The public_key_pem of this PublicKeyExt. # noqa: E501 + :type: str + """ + + self._public_key_pem = public_key_pem + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PublicKeyExt, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublicKeyExt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/regenerate_secure_shell_key_model.py b/heappeac_v4/models/regenerate_secure_shell_key_model.py new file mode 100644 index 0000000..ff2270d --- /dev/null +++ b/heappeac_v4/models/regenerate_secure_shell_key_model.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class RegenerateSecureShellKeyModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'session_code': 'str', + 'username': 'str', + 'password': 'str', + 'project_id': 'int' + } + + attribute_map = { + 'session_code': 'SessionCode', + 'username': 'Username', + 'password': 'Password', + 'project_id': 'ProjectId' + } + + def __init__(self, session_code=None, username=None, password=None, project_id=None): # noqa: E501 + """RegenerateSecureShellKeyModel - a model defined in Swagger""" # noqa: E501 + self._session_code = None + self._username = None + self._password = None + self._project_id = None + self.discriminator = None + if session_code is not None: + self.session_code = session_code + if username is not None: + self.username = username + if password is not None: + self.password = password + if project_id is not None: + self.project_id = project_id + + @property + def session_code(self): + """Gets the session_code of this RegenerateSecureShellKeyModel. # noqa: E501 + + + :return: The session_code of this RegenerateSecureShellKeyModel. # noqa: E501 + :rtype: str + """ + return self._session_code + + @session_code.setter + def session_code(self, session_code): + """Sets the session_code of this RegenerateSecureShellKeyModel. + + + :param session_code: The session_code of this RegenerateSecureShellKeyModel. # noqa: E501 + :type: str + """ + + self._session_code = session_code + + @property + def username(self): + """Gets the username of this RegenerateSecureShellKeyModel. # noqa: E501 + + + :return: The username of this RegenerateSecureShellKeyModel. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this RegenerateSecureShellKeyModel. + + + :param username: The username of this RegenerateSecureShellKeyModel. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this RegenerateSecureShellKeyModel. # noqa: E501 + + + :return: The password of this RegenerateSecureShellKeyModel. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this RegenerateSecureShellKeyModel. + + + :param password: The password of this RegenerateSecureShellKeyModel. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def project_id(self): + """Gets the project_id of this RegenerateSecureShellKeyModel. # noqa: E501 + + + :return: The project_id of this RegenerateSecureShellKeyModel. # noqa: E501 + :rtype: int + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this RegenerateSecureShellKeyModel. + + + :param project_id: The project_id of this RegenerateSecureShellKeyModel. # noqa: E501 + :type: int + """ + + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RegenerateSecureShellKeyModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RegenerateSecureShellKeyModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/regenerate_secure_shell_key_model_obsolete.py b/heappeac_v4/models/regenerate_secure_shell_key_model_obsolete.py new file mode 100644 index 0000000..7055906 --- /dev/null +++ b/heappeac_v4/models/regenerate_secure_shell_key_model_obsolete.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class RegenerateSecureShellKeyModelObsolete(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'session_code': 'str', + 'password': 'str', + 'project_id': 'int', + 'public_key': 'str' + } + + attribute_map = { + 'session_code': 'SessionCode', + 'password': 'Password', + 'project_id': 'ProjectId', + 'public_key': 'PublicKey' + } + + def __init__(self, session_code=None, password=None, project_id=None, public_key=None): # noqa: E501 + """RegenerateSecureShellKeyModelObsolete - a model defined in Swagger""" # noqa: E501 + self._session_code = None + self._password = None + self._project_id = None + self._public_key = None + self.discriminator = None + if session_code is not None: + self.session_code = session_code + if password is not None: + self.password = password + if project_id is not None: + self.project_id = project_id + if public_key is not None: + self.public_key = public_key + + @property + def session_code(self): + """Gets the session_code of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The session_code of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._session_code + + @session_code.setter + def session_code(self, session_code): + """Sets the session_code of this RegenerateSecureShellKeyModelObsolete. + + + :param session_code: The session_code of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._session_code = session_code + + @property + def password(self): + """Gets the password of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The password of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this RegenerateSecureShellKeyModelObsolete. + + + :param password: The password of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def project_id(self): + """Gets the project_id of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The project_id of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: int + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this RegenerateSecureShellKeyModelObsolete. + + + :param project_id: The project_id of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :type: int + """ + + self._project_id = project_id + + @property + def public_key(self): + """Gets the public_key of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The public_key of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._public_key + + @public_key.setter + def public_key(self, public_key): + """Sets the public_key of this RegenerateSecureShellKeyModelObsolete. + + + :param public_key: The public_key of this RegenerateSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._public_key = public_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RegenerateSecureShellKeyModelObsolete, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RegenerateSecureShellKeyModelObsolete): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/remove_secure_shell_key_model.py b/heappeac_v4/models/remove_secure_shell_key_model.py index 30b1eae..5683777 100644 --- a/heappeac_v4/models/remove_secure_shell_key_model.py +++ b/heappeac_v4/models/remove_secure_shell_key_model.py @@ -29,28 +29,28 @@ class RemoveSecureShellKeyModel(object): """ swagger_types = { 'session_code': 'str', - 'project_id': 'int', - 'public_key': 'str' + 'username': 'str', + 'project_id': 'int' } attribute_map = { 'session_code': 'SessionCode', - 'project_id': 'ProjectId', - 'public_key': 'PublicKey' + 'username': 'Username', + 'project_id': 'ProjectId' } - def __init__(self, session_code=None, project_id=None, public_key=None): # noqa: E501 + def __init__(self, session_code=None, username=None, project_id=None): # noqa: E501 """RemoveSecureShellKeyModel - a model defined in Swagger""" # noqa: E501 self._session_code = None + self._username = None self._project_id = None - self._public_key = None self.discriminator = None if session_code is not None: self.session_code = session_code + if username is not None: + self.username = username if project_id is not None: self.project_id = project_id - if public_key is not None: - self.public_key = public_key @property def session_code(self): @@ -73,6 +73,27 @@ def session_code(self, session_code): self._session_code = session_code + @property + def username(self): + """Gets the username of this RemoveSecureShellKeyModel. # noqa: E501 + + + :return: The username of this RemoveSecureShellKeyModel. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this RemoveSecureShellKeyModel. + + + :param username: The username of this RemoveSecureShellKeyModel. # noqa: E501 + :type: str + """ + + self._username = username + @property def project_id(self): """Gets the project_id of this RemoveSecureShellKeyModel. # noqa: E501 @@ -94,27 +115,6 @@ def project_id(self, project_id): self._project_id = project_id - @property - def public_key(self): - """Gets the public_key of this RemoveSecureShellKeyModel. # noqa: E501 - - - :return: The public_key of this RemoveSecureShellKeyModel. # noqa: E501 - :rtype: str - """ - return self._public_key - - @public_key.setter - def public_key(self, public_key): - """Sets the public_key of this RemoveSecureShellKeyModel. - - - :param public_key: The public_key of this RemoveSecureShellKeyModel. # noqa: E501 - :type: str - """ - - self._public_key = public_key - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/heappeac_v4/models/remove_secure_shell_key_model_obsolete.py b/heappeac_v4/models/remove_secure_shell_key_model_obsolete.py new file mode 100644 index 0000000..8550d9a --- /dev/null +++ b/heappeac_v4/models/remove_secure_shell_key_model_obsolete.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class RemoveSecureShellKeyModelObsolete(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'session_code': 'str', + 'project_id': 'int', + 'public_key': 'str' + } + + attribute_map = { + 'session_code': 'SessionCode', + 'project_id': 'ProjectId', + 'public_key': 'PublicKey' + } + + def __init__(self, session_code=None, project_id=None, public_key=None): # noqa: E501 + """RemoveSecureShellKeyModelObsolete - a model defined in Swagger""" # noqa: E501 + self._session_code = None + self._project_id = None + self._public_key = None + self.discriminator = None + if session_code is not None: + self.session_code = session_code + if project_id is not None: + self.project_id = project_id + if public_key is not None: + self.public_key = public_key + + @property + def session_code(self): + """Gets the session_code of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The session_code of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._session_code + + @session_code.setter + def session_code(self, session_code): + """Sets the session_code of this RemoveSecureShellKeyModelObsolete. + + + :param session_code: The session_code of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._session_code = session_code + + @property + def project_id(self): + """Gets the project_id of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The project_id of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + :rtype: int + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this RemoveSecureShellKeyModelObsolete. + + + :param project_id: The project_id of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + :type: int + """ + + self._project_id = project_id + + @property + def public_key(self): + """Gets the public_key of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + + + :return: The public_key of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + :rtype: str + """ + return self._public_key + + @public_key.setter + def public_key(self, public_key): + """Sets the public_key of this RemoveSecureShellKeyModelObsolete. + + + :param public_key: The public_key of this RemoveSecureShellKeyModelObsolete. # noqa: E501 + :type: str + """ + + self._public_key = public_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RemoveSecureShellKeyModelObsolete, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RemoveSecureShellKeyModelObsolete): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/scheduler_type.py b/heappeac_v4/models/scheduler_type.py index ca56e3f..580e453 100644 --- a/heappeac_v4/models/scheduler_type.py +++ b/heappeac_v4/models/scheduler_type.py @@ -27,6 +27,7 @@ class SchedulerType(object): _1 = "1" _2 = "2" _4 = "4" + _8 = "8" """ Attributes: swagger_types (dict): The key is attribute name diff --git a/heappeac_v4/models/ssh_key_user_credentials_model.py b/heappeac_v4/models/ssh_key_user_credentials_model.py new file mode 100644 index 0000000..9ad2972 --- /dev/null +++ b/heappeac_v4/models/ssh_key_user_credentials_model.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class SshKeyUserCredentialsModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'username': 'str', + 'password': 'str' + } + + attribute_map = { + 'username': 'Username', + 'password': 'Password' + } + + def __init__(self, username=None, password=None): # noqa: E501 + """SshKeyUserCredentialsModel - a model defined in Swagger""" # noqa: E501 + self._username = None + self._password = None + self.discriminator = None + if username is not None: + self.username = username + if password is not None: + self.password = password + + @property + def username(self): + """Gets the username of this SshKeyUserCredentialsModel. # noqa: E501 + + + :return: The username of this SshKeyUserCredentialsModel. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this SshKeyUserCredentialsModel. + + + :param username: The username of this SshKeyUserCredentialsModel. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this SshKeyUserCredentialsModel. # noqa: E501 + + + :return: The password of this SshKeyUserCredentialsModel. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this SshKeyUserCredentialsModel. + + + :param password: The password of this SshKeyUserCredentialsModel. # noqa: E501 + :type: str + """ + + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SshKeyUserCredentialsModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SshKeyUserCredentialsModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/test_cluster_access_for_account_model_obsolete.py b/heappeac_v4/models/test_cluster_access_for_account_model_obsolete.py new file mode 100644 index 0000000..dec232a --- /dev/null +++ b/heappeac_v4/models/test_cluster_access_for_account_model_obsolete.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TestClusterAccessForAccountModelObsolete(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'session_code': 'str', + 'project_id': 'int', + 'public_key': 'str' + } + + attribute_map = { + 'session_code': 'SessionCode', + 'project_id': 'ProjectId', + 'public_key': 'PublicKey' + } + + def __init__(self, session_code=None, project_id=None, public_key=None): # noqa: E501 + """TestClusterAccessForAccountModelObsolete - a model defined in Swagger""" # noqa: E501 + self._session_code = None + self._project_id = None + self._public_key = None + self.discriminator = None + if session_code is not None: + self.session_code = session_code + if project_id is not None: + self.project_id = project_id + if public_key is not None: + self.public_key = public_key + + @property + def session_code(self): + """Gets the session_code of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + + + :return: The session_code of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + :rtype: str + """ + return self._session_code + + @session_code.setter + def session_code(self, session_code): + """Sets the session_code of this TestClusterAccessForAccountModelObsolete. + + + :param session_code: The session_code of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + :type: str + """ + + self._session_code = session_code + + @property + def project_id(self): + """Gets the project_id of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + + + :return: The project_id of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + :rtype: int + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this TestClusterAccessForAccountModelObsolete. + + + :param project_id: The project_id of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + :type: int + """ + + self._project_id = project_id + + @property + def public_key(self): + """Gets the public_key of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + + + :return: The public_key of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + :rtype: str + """ + return self._public_key + + @public_key.setter + def public_key(self, public_key): + """Sets the public_key of this TestClusterAccessForAccountModelObsolete. + + + :param public_key: The public_key of this TestClusterAccessForAccountModelObsolete. # noqa: E501 + :type: str + """ + + self._public_key = public_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TestClusterAccessForAccountModelObsolete, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TestClusterAccessForAccountModelObsolete): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/unauthorized_result.py b/heappeac_v4/models/unauthorized_result.py new file mode 100644 index 0000000..0d6d9f0 --- /dev/null +++ b/heappeac_v4/models/unauthorized_result.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class UnauthorizedResult(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status_code': 'int' + } + + attribute_map = { + 'status_code': 'StatusCode' + } + + def __init__(self, status_code=None): # noqa: E501 + """UnauthorizedResult - a model defined in Swagger""" # noqa: E501 + self._status_code = None + self.discriminator = None + if status_code is not None: + self.status_code = status_code + + @property + def status_code(self): + """Gets the status_code of this UnauthorizedResult. # noqa: E501 + + + :return: The status_code of this UnauthorizedResult. # noqa: E501 + :rtype: int + """ + return self._status_code + + @status_code.setter + def status_code(self, status_code): + """Sets the status_code of this UnauthorizedResult. + + + :param status_code: The status_code of this UnauthorizedResult. # noqa: E501 + :type: int + """ + + self._status_code = status_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UnauthorizedResult, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnauthorizedResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/models/version_information_ext.py b/heappeac_v4/models/version_information_ext.py new file mode 100644 index 0000000..b7ebe48 --- /dev/null +++ b/heappeac_v4/models/version_information_ext.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + HEAppE Web API + + HEAppE middleware API v4.2.0 # noqa: E501 + + OpenAPI spec version: v4.2.0 + Contact: support.heappe@it4i.cz + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class VersionInformationExt(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'description': 'str', + 'version': 'str' + } + + attribute_map = { + 'name': 'Name', + 'description': 'Description', + 'version': 'Version' + } + + def __init__(self, name=None, description=None, version=None): # noqa: E501 + """VersionInformationExt - a model defined in Swagger""" # noqa: E501 + self._name = None + self._description = None + self._version = None + self.discriminator = None + if name is not None: + self.name = name + if description is not None: + self.description = description + if version is not None: + self.version = version + + @property + def name(self): + """Gets the name of this VersionInformationExt. # noqa: E501 + + + :return: The name of this VersionInformationExt. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VersionInformationExt. + + + :param name: The name of this VersionInformationExt. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def description(self): + """Gets the description of this VersionInformationExt. # noqa: E501 + + + :return: The description of this VersionInformationExt. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this VersionInformationExt. + + + :param description: The description of this VersionInformationExt. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def version(self): + """Gets the version of this VersionInformationExt. # noqa: E501 + + + :return: The version of this VersionInformationExt. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this VersionInformationExt. + + + :param version: The version of this VersionInformationExt. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VersionInformationExt, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VersionInformationExt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/heappeac_v4/rest.py b/heappeac_v4/rest.py index ebe9d09..b56eba3 100644 --- a/heappeac_v4/rest.py +++ b/heappeac_v4/rest.py @@ -42,11 +42,11 @@ def __init__(self, resp): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() + return self.urllib3_response.headers def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) + return self.urllib3_response.headers.get(name, default) class RESTClientObject(object):