wds-client 0.2.85__tar.gz → 0.2.88__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. {wds-client-0.2.85 → wds-client-0.2.88}/PKG-INFO +1 -1
  2. {wds-client-0.2.85 → wds-client-0.2.88}/README.md +9 -6
  3. {wds-client-0.2.85 → wds-client-0.2.88}/setup.py +1 -1
  4. wds-client-0.2.88/test/test_backup_response.py +53 -0
  5. wds-client-0.2.88/test/test_cloning_api.py +40 -0
  6. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/__init__.py +3 -1
  7. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api/__init__.py +1 -0
  8. wds-client-0.2.88/wds_client/api/cloning_api.py +149 -0
  9. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api_client.py +1 -1
  10. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/configuration.py +1 -1
  11. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/__init__.py +1 -0
  12. wds-client-0.2.88/wds_client/models/backup_response.py +150 -0
  13. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client.egg-info/PKG-INFO +1 -1
  14. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client.egg-info/SOURCES.txt +4 -0
  15. {wds-client-0.2.85 → wds-client-0.2.88}/setup.cfg +0 -0
  16. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_attribute_schema.py +0 -0
  17. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_batch_operation.py +0 -0
  18. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_batch_record_request.py +0 -0
  19. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_batch_response.py +0 -0
  20. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_build.py +0 -0
  21. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_commit.py +0 -0
  22. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_component.py +0 -0
  23. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_components.py +0 -0
  24. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_db_component.py +0 -0
  25. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_db_validationcomponent.py +0 -0
  26. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_db_validationcomponent_details.py +0 -0
  27. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_disk_space_component.py +0 -0
  28. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_disk_space_component_details.py +0 -0
  29. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_error_response.py +0 -0
  30. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_general_wds_information_api.py +0 -0
  31. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_git.py +0 -0
  32. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_inline_object.py +0 -0
  33. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_instances_api.py +0 -0
  34. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_record_attribute_definition.py +0 -0
  35. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_record_query_response.py +0 -0
  36. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_record_request.py +0 -0
  37. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_record_response.py +0 -0
  38. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_record_type_schema.py +0 -0
  39. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_records_api.py +0 -0
  40. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_request_body_search.py +0 -0
  41. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_schema_api.py +0 -0
  42. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_search_operator.py +0 -0
  43. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_search_request.py +0 -0
  44. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_search_sort_direction.py +0 -0
  45. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_snapshots_api.py +0 -0
  46. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_stack_trace_element.py +0 -0
  47. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_status_response.py +0 -0
  48. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_tsv_upload_response.py +0 -0
  49. {wds-client-0.2.85 → wds-client-0.2.88}/test/test_version_response.py +0 -0
  50. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api/general_wds_information_api.py +0 -0
  51. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api/instances_api.py +0 -0
  52. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api/records_api.py +0 -0
  53. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api/schema_api.py +0 -0
  54. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/api/snapshots_api.py +0 -0
  55. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/exceptions.py +0 -0
  56. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/attribute_schema.py +0 -0
  57. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/batch_operation.py +0 -0
  58. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/batch_record_request.py +0 -0
  59. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/batch_response.py +0 -0
  60. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/build.py +0 -0
  61. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/commit.py +0 -0
  62. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/component.py +0 -0
  63. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/components.py +0 -0
  64. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/db_component.py +0 -0
  65. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/db_validationcomponent.py +0 -0
  66. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/db_validationcomponent_details.py +0 -0
  67. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/disk_space_component.py +0 -0
  68. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/disk_space_component_details.py +0 -0
  69. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/error_response.py +0 -0
  70. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/git.py +0 -0
  71. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/inline_object.py +0 -0
  72. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/record_attribute_definition.py +0 -0
  73. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/record_query_response.py +0 -0
  74. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/record_request.py +0 -0
  75. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/record_response.py +0 -0
  76. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/record_type_schema.py +0 -0
  77. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/request_body_search.py +0 -0
  78. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/search_operator.py +0 -0
  79. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/search_request.py +0 -0
  80. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/search_sort_direction.py +0 -0
  81. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/stack_trace_element.py +0 -0
  82. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/status_response.py +0 -0
  83. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/tsv_upload_response.py +0 -0
  84. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/models/version_response.py +0 -0
  85. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client/rest.py +0 -0
  86. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client.egg-info/dependency_links.txt +0 -0
  87. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client.egg-info/requires.txt +0 -0
  88. {wds-client-0.2.85 → wds-client-0.2.88}/wds_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wds-client
3
- Version: 0.2.85
3
+ Version: 0.2.88
4
4
  Summary: Workspace Data Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -6,7 +6,7 @@ As of v0.2, all APIs are subject to change without notice.
6
6
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
7
 
8
8
  - API version: v0.2
9
- - Package version: 0.2.85
9
+ - Package version: 0.2.88
10
10
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
11
11
 
12
12
  ## Requirements.
@@ -65,14 +65,15 @@ configuration = wds_client.Configuration(
65
65
  # Enter a context with an instance of the API client
66
66
  with wds_client.ApiClient(configuration) as api_client:
67
67
  # Create an instance of the API class
68
- api_instance = wds_client.GeneralWDSInformationApi(api_client)
69
-
68
+ api_instance = wds_client.CloningApi(api_client)
69
+ v = 'v0.2' # str | API version (default to 'v0.2')
70
+
70
71
  try:
71
- # Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details)
72
- api_response = api_instance.status_get()
72
+ # Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage
73
+ api_response = api_instance.create_backup(v)
73
74
  pprint(api_response)
74
75
  except ApiException as e:
75
- print("Exception when calling GeneralWDSInformationApi->status_get: %s\n" % e)
76
+ print("Exception when calling CloningApi->create_backup: %s\n" % e)
76
77
 
77
78
  ```
78
79
 
@@ -82,6 +83,7 @@ All URIs are relative to *http://..*
82
83
 
83
84
  Class | Method | HTTP request | Description
84
85
  ------------ | ------------- | ------------- | -------------
86
+ *CloningApi* | [**create_backup**](docs/CloningApi.md#create_backup) | **POST** /backup/{v} | Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage
85
87
  *GeneralWDSInformationApi* | [**status_get**](docs/GeneralWDSInformationApi.md#status_get) | **GET** /status | Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details)
86
88
  *GeneralWDSInformationApi* | [**version_get**](docs/GeneralWDSInformationApi.md#version_get) | **GET** /version | Gets related git and build version info for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info for details)
87
89
  *InstancesApi* | [**create_wds_instance**](docs/InstancesApi.md#create_wds_instance) | **POST** /instances/{v}/{instanceid} | Create an instance
@@ -104,6 +106,7 @@ Class | Method | HTTP request | Description
104
106
  ## Documentation For Models
105
107
 
106
108
  - [AttributeSchema](docs/AttributeSchema.md)
109
+ - [BackupResponse](docs/BackupResponse.md)
107
110
  - [BatchOperation](docs/BatchOperation.md)
108
111
  - [BatchRecordRequest](docs/BatchRecordRequest.md)
109
112
  - [BatchResponse](docs/BatchResponse.md)
@@ -13,7 +13,7 @@
13
13
  from setuptools import setup, find_packages # noqa: H301
14
14
 
15
15
  NAME = "wds-client"
16
- VERSION = "0.2.85"
16
+ VERSION = "0.2.88"
17
17
  # To install the library, run the following
18
18
  #
19
19
  # python setup.py install
@@ -0,0 +1,53 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Workspace Data Service
5
+
6
+ This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
7
+
8
+ The version of the OpenAPI document: v0.2
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+ import datetime
17
+
18
+ import wds_client
19
+ from wds_client.models.backup_response import BackupResponse # noqa: E501
20
+ from wds_client.rest import ApiException
21
+
22
+ class TestBackupResponse(unittest.TestCase):
23
+ """BackupResponse unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def make_instance(self, include_optional):
32
+ """Test BackupResponse
33
+ include_option is a boolean, when False only required
34
+ params are included, when True both required and
35
+ optional params are included """
36
+ # model = wds_client.models.backup_response.BackupResponse() # noqa: E501
37
+ if include_optional :
38
+ return BackupResponse(
39
+ backup_status = True,
40
+ message = '0'
41
+ )
42
+ else :
43
+ return BackupResponse(
44
+ )
45
+
46
+ def testBackupResponse(self):
47
+ """Test BackupResponse"""
48
+ inst_req_only = self.make_instance(include_optional=False)
49
+ inst_req_and_optional = self.make_instance(include_optional=True)
50
+
51
+
52
+ if __name__ == '__main__':
53
+ unittest.main()
@@ -0,0 +1,40 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Workspace Data Service
5
+
6
+ This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
7
+
8
+ The version of the OpenAPI document: v0.2
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import wds_client
18
+ from wds_client.api.cloning_api import CloningApi # noqa: E501
19
+ from wds_client.rest import ApiException
20
+
21
+
22
+ class TestCloningApi(unittest.TestCase):
23
+ """CloningApi unit test stubs"""
24
+
25
+ def setUp(self):
26
+ self.api = wds_client.api.cloning_api.CloningApi() # noqa: E501
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def test_create_backup(self):
32
+ """Test case for create_backup
33
+
34
+ Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage # noqa: E501
35
+ """
36
+ pass
37
+
38
+
39
+ if __name__ == '__main__':
40
+ unittest.main()
@@ -14,9 +14,10 @@
14
14
 
15
15
  from __future__ import absolute_import
16
16
 
17
- __version__ = "0.2.85"
17
+ __version__ = "0.2.88"
18
18
 
19
19
  # import apis into sdk package
20
+ from wds_client.api.cloning_api import CloningApi
20
21
  from wds_client.api.general_wds_information_api import GeneralWDSInformationApi
21
22
  from wds_client.api.instances_api import InstancesApi
22
23
  from wds_client.api.records_api import RecordsApi
@@ -33,6 +34,7 @@ from wds_client.exceptions import ApiKeyError
33
34
  from wds_client.exceptions import ApiException
34
35
  # import models into sdk package
35
36
  from wds_client.models.attribute_schema import AttributeSchema
37
+ from wds_client.models.backup_response import BackupResponse
36
38
  from wds_client.models.batch_operation import BatchOperation
37
39
  from wds_client.models.batch_record_request import BatchRecordRequest
38
40
  from wds_client.models.batch_response import BatchResponse
@@ -3,6 +3,7 @@ from __future__ import absolute_import
3
3
  # flake8: noqa
4
4
 
5
5
  # import apis into api package
6
+ from wds_client.api.cloning_api import CloningApi
6
7
  from wds_client.api.general_wds_information_api import GeneralWDSInformationApi
7
8
  from wds_client.api.instances_api import InstancesApi
8
9
  from wds_client.api.records_api import RecordsApi
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Workspace Data Service
5
+
6
+ This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
7
+
8
+ The version of the OpenAPI document: v0.2
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import re # noqa: F401
16
+
17
+ # python 2 and python 3 compatibility library
18
+ import six
19
+
20
+ from wds_client.api_client import ApiClient
21
+ from wds_client.exceptions import ( # noqa: F401
22
+ ApiTypeError,
23
+ ApiValueError
24
+ )
25
+
26
+
27
+ class CloningApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+
39
+ def create_backup(self, v, **kwargs): # noqa: E501
40
+ """Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage # noqa: E501
41
+
42
+ This method makes a synchronous HTTP request by default. To make an
43
+ asynchronous HTTP request, please pass async_req=True
44
+ >>> thread = api.create_backup(v, async_req=True)
45
+ >>> result = thread.get()
46
+
47
+ :param async_req bool: execute request asynchronously
48
+ :param str v: API version (required)
49
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
50
+ be returned without reading/decoding response
51
+ data. Default is True.
52
+ :param _request_timeout: timeout setting for this request. If one
53
+ number provided, it will be total request
54
+ timeout. It can also be a pair (tuple) of
55
+ (connection, read) timeouts.
56
+ :return: BackupResponse
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ return self.create_backup_with_http_info(v, **kwargs) # noqa: E501
62
+
63
+ def create_backup_with_http_info(self, v, **kwargs): # noqa: E501
64
+ """Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage # noqa: E501
65
+
66
+ This method makes a synchronous HTTP request by default. To make an
67
+ asynchronous HTTP request, please pass async_req=True
68
+ >>> thread = api.create_backup_with_http_info(v, async_req=True)
69
+ >>> result = thread.get()
70
+
71
+ :param async_req bool: execute request asynchronously
72
+ :param str v: API version (required)
73
+ :param _return_http_data_only: response data without head status code
74
+ and headers
75
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
76
+ be returned without reading/decoding response
77
+ data. Default is True.
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :return: tuple(BackupResponse, status_code(int), headers(HTTPHeaderDict))
83
+ If the method is called asynchronously,
84
+ returns the request thread.
85
+ """
86
+
87
+ local_var_params = locals()
88
+
89
+ all_params = [
90
+ 'v'
91
+ ]
92
+ all_params.extend(
93
+ [
94
+ 'async_req',
95
+ '_return_http_data_only',
96
+ '_preload_content',
97
+ '_request_timeout'
98
+ ]
99
+ )
100
+
101
+ for key, val in six.iteritems(local_var_params['kwargs']):
102
+ if key not in all_params:
103
+ raise ApiTypeError(
104
+ "Got an unexpected keyword argument '%s'"
105
+ " to method create_backup" % key
106
+ )
107
+ local_var_params[key] = val
108
+ del local_var_params['kwargs']
109
+ # verify the required parameter 'v' is set
110
+ if self.api_client.client_side_validation and ('v' not in local_var_params or # noqa: E501
111
+ local_var_params['v'] is None): # noqa: E501
112
+ raise ApiValueError("Missing the required parameter `v` when calling `create_backup`") # noqa: E501
113
+
114
+ collection_formats = {}
115
+
116
+ path_params = {}
117
+ if 'v' in local_var_params:
118
+ path_params['v'] = local_var_params['v'] # noqa: E501
119
+
120
+ query_params = []
121
+
122
+ header_params = {}
123
+
124
+ form_params = []
125
+ local_var_files = {}
126
+
127
+ body_params = None
128
+ # HTTP header `Accept`
129
+ header_params['Accept'] = self.api_client.select_header_accept(
130
+ ['application/json']) # noqa: E501
131
+
132
+ # Authentication setting
133
+ auth_settings = [] # noqa: E501
134
+
135
+ return self.api_client.call_api(
136
+ '/backup/{v}', 'POST',
137
+ path_params,
138
+ query_params,
139
+ header_params,
140
+ body=body_params,
141
+ post_params=form_params,
142
+ files=local_var_files,
143
+ response_type='BackupResponse', # noqa: E501
144
+ auth_settings=auth_settings,
145
+ async_req=local_var_params.get('async_req'),
146
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
147
+ _preload_content=local_var_params.get('_preload_content', True),
148
+ _request_timeout=local_var_params.get('_request_timeout'),
149
+ collection_formats=collection_formats)
@@ -78,7 +78,7 @@ class ApiClient(object):
78
78
  self.default_headers[header_name] = header_value
79
79
  self.cookie = cookie
80
80
  # Set default User-Agent.
81
- self.user_agent = 'OpenAPI-Generator/0.2.85/python'
81
+ self.user_agent = 'OpenAPI-Generator/0.2.88/python'
82
82
  self.client_side_validation = configuration.client_side_validation
83
83
 
84
84
  def __enter__(self):
@@ -336,7 +336,7 @@ class Configuration(object):
336
336
  "OS: {env}\n"\
337
337
  "Python Version: {pyversion}\n"\
338
338
  "Version of the API: v0.2\n"\
339
- "SDK Package Version: 0.2.85".\
339
+ "SDK Package Version: 0.2.88".\
340
340
  format(env=sys.platform, pyversion=sys.version)
341
341
 
342
342
  def get_host_settings(self):
@@ -15,6 +15,7 @@ from __future__ import absolute_import
15
15
 
16
16
  # import models into model package
17
17
  from wds_client.models.attribute_schema import AttributeSchema
18
+ from wds_client.models.backup_response import BackupResponse
18
19
  from wds_client.models.batch_operation import BatchOperation
19
20
  from wds_client.models.batch_record_request import BatchRecordRequest
20
21
  from wds_client.models.batch_response import BatchResponse
@@ -0,0 +1,150 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Workspace Data Service
5
+
6
+ This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
7
+
8
+ The version of the OpenAPI document: v0.2
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from wds_client.configuration import Configuration
19
+
20
+
21
+ class BackupResponse(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'backup_status': 'bool',
37
+ 'message': 'str'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'backup_status': 'backupStatus',
42
+ 'message': 'message'
43
+ }
44
+
45
+ def __init__(self, backup_status=None, message=None, local_vars_configuration=None): # noqa: E501
46
+ """BackupResponse - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._backup_status = None
52
+ self._message = None
53
+ self.discriminator = None
54
+
55
+ if backup_status is not None:
56
+ self.backup_status = backup_status
57
+ if message is not None:
58
+ self.message = message
59
+
60
+ @property
61
+ def backup_status(self):
62
+ """Gets the backup_status of this BackupResponse. # noqa: E501
63
+
64
+ status of backup # noqa: E501
65
+
66
+ :return: The backup_status of this BackupResponse. # noqa: E501
67
+ :rtype: bool
68
+ """
69
+ return self._backup_status
70
+
71
+ @backup_status.setter
72
+ def backup_status(self, backup_status):
73
+ """Sets the backup_status of this BackupResponse.
74
+
75
+ status of backup # noqa: E501
76
+
77
+ :param backup_status: The backup_status of this BackupResponse. # noqa: E501
78
+ :type: bool
79
+ """
80
+
81
+ self._backup_status = backup_status
82
+
83
+ @property
84
+ def message(self):
85
+ """Gets the message of this BackupResponse. # noqa: E501
86
+
87
+ message regarding backup status # noqa: E501
88
+
89
+ :return: The message of this BackupResponse. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._message
93
+
94
+ @message.setter
95
+ def message(self, message):
96
+ """Sets the message of this BackupResponse.
97
+
98
+ message regarding backup status # noqa: E501
99
+
100
+ :param message: The message of this BackupResponse. # noqa: E501
101
+ :type: str
102
+ """
103
+
104
+ self._message = message
105
+
106
+ def to_dict(self):
107
+ """Returns the model properties as a dict"""
108
+ result = {}
109
+
110
+ for attr, _ in six.iteritems(self.openapi_types):
111
+ value = getattr(self, attr)
112
+ if isinstance(value, list):
113
+ result[attr] = list(map(
114
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115
+ value
116
+ ))
117
+ elif hasattr(value, "to_dict"):
118
+ result[attr] = value.to_dict()
119
+ elif isinstance(value, dict):
120
+ result[attr] = dict(map(
121
+ lambda item: (item[0], item[1].to_dict())
122
+ if hasattr(item[1], "to_dict") else item,
123
+ value.items()
124
+ ))
125
+ else:
126
+ result[attr] = value
127
+
128
+ return result
129
+
130
+ def to_str(self):
131
+ """Returns the string representation of the model"""
132
+ return pprint.pformat(self.to_dict())
133
+
134
+ def __repr__(self):
135
+ """For `print` and `pprint`"""
136
+ return self.to_str()
137
+
138
+ def __eq__(self, other):
139
+ """Returns true if both objects are equal"""
140
+ if not isinstance(other, BackupResponse):
141
+ return False
142
+
143
+ return self.to_dict() == other.to_dict()
144
+
145
+ def __ne__(self, other):
146
+ """Returns true if both objects are not equal"""
147
+ if not isinstance(other, BackupResponse):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wds-client
3
- Version: 0.2.85
3
+ Version: 0.2.88
4
4
  Summary: Workspace Data Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -2,10 +2,12 @@ README.md
2
2
  setup.cfg
3
3
  setup.py
4
4
  test/test_attribute_schema.py
5
+ test/test_backup_response.py
5
6
  test/test_batch_operation.py
6
7
  test/test_batch_record_request.py
7
8
  test/test_batch_response.py
8
9
  test/test_build.py
10
+ test/test_cloning_api.py
9
11
  test/test_commit.py
10
12
  test/test_component.py
11
13
  test/test_components.py
@@ -46,6 +48,7 @@ wds_client.egg-info/dependency_links.txt
46
48
  wds_client.egg-info/requires.txt
47
49
  wds_client.egg-info/top_level.txt
48
50
  wds_client/api/__init__.py
51
+ wds_client/api/cloning_api.py
49
52
  wds_client/api/general_wds_information_api.py
50
53
  wds_client/api/instances_api.py
51
54
  wds_client/api/records_api.py
@@ -53,6 +56,7 @@ wds_client/api/schema_api.py
53
56
  wds_client/api/snapshots_api.py
54
57
  wds_client/models/__init__.py
55
58
  wds_client/models/attribute_schema.py
59
+ wds_client/models/backup_response.py
56
60
  wds_client/models/batch_operation.py
57
61
  wds_client/models/batch_record_request.py
58
62
  wds_client/models/batch_response.py
File without changes