huaweicloudsdkcbr 3.1.55__py2.py3-none-any.whl → 3.1.56__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,6 +164,7 @@ from huaweicloudsdkcbr.v1.model.resource_extra_info_include_volumes import Resou
164
164
  from huaweicloudsdkcbr.v1.model.resource_resp import ResourceResp
165
165
  from huaweicloudsdkcbr.v1.model.restore_backup_request import RestoreBackupRequest
166
166
  from huaweicloudsdkcbr.v1.model.restore_backup_response import RestoreBackupResponse
167
+ from huaweicloudsdkcbr.v1.model.restore_details import RestoreDetails
167
168
  from huaweicloudsdkcbr.v1.model.self_links_info import SelfLinksInfo
168
169
  from huaweicloudsdkcbr.v1.model.set_vault_resource_request import SetVaultResourceRequest
169
170
  from huaweicloudsdkcbr.v1.model.set_vault_resource_response import SetVaultResourceResponse
@@ -162,6 +162,7 @@ from huaweicloudsdkcbr.v1.model.resource_extra_info_include_volumes import Resou
162
162
  from huaweicloudsdkcbr.v1.model.resource_resp import ResourceResp
163
163
  from huaweicloudsdkcbr.v1.model.restore_backup_request import RestoreBackupRequest
164
164
  from huaweicloudsdkcbr.v1.model.restore_backup_response import RestoreBackupResponse
165
+ from huaweicloudsdkcbr.v1.model.restore_details import RestoreDetails
165
166
  from huaweicloudsdkcbr.v1.model.self_links_info import SelfLinksInfo
166
167
  from huaweicloudsdkcbr.v1.model.set_vault_resource_request import SetVaultResourceRequest
167
168
  from huaweicloudsdkcbr.v1.model.set_vault_resource_response import SetVaultResourceResponse
@@ -21,7 +21,8 @@ class BackupRestore:
21
21
  'power_on': 'bool',
22
22
  'server_id': 'str',
23
23
  'volume_id': 'str',
24
- 'resource_id': 'str'
24
+ 'resource_id': 'str',
25
+ 'details': 'RestoreDetails'
25
26
  }
26
27
 
27
28
  attribute_map = {
@@ -29,10 +30,11 @@ class BackupRestore:
29
30
  'power_on': 'power_on',
30
31
  'server_id': 'server_id',
31
32
  'volume_id': 'volume_id',
32
- 'resource_id': 'resource_id'
33
+ 'resource_id': 'resource_id',
34
+ 'details': 'details'
33
35
  }
34
36
 
35
- def __init__(self, mappings=None, power_on=None, server_id=None, volume_id=None, resource_id=None):
37
+ def __init__(self, mappings=None, power_on=None, server_id=None, volume_id=None, resource_id=None, details=None):
36
38
  """BackupRestore
37
39
 
38
40
  The model defined in huaweicloud sdk
@@ -47,6 +49,8 @@ class BackupRestore:
47
49
  :type volume_id: str
48
50
  :param resource_id: 待恢复的目标资源ID
49
51
  :type resource_id: str
52
+ :param details:
53
+ :type details: :class:`huaweicloudsdkcbr.v1.RestoreDetails`
50
54
  """
51
55
 
52
56
 
@@ -56,6 +60,7 @@ class BackupRestore:
56
60
  self._server_id = None
57
61
  self._volume_id = None
58
62
  self._resource_id = None
63
+ self._details = None
59
64
  self.discriminator = None
60
65
 
61
66
  if mappings is not None:
@@ -68,6 +73,8 @@ class BackupRestore:
68
73
  self.volume_id = volume_id
69
74
  if resource_id is not None:
70
75
  self.resource_id = resource_id
76
+ if details is not None:
77
+ self.details = details
71
78
 
72
79
  @property
73
80
  def mappings(self):
@@ -179,6 +186,24 @@ class BackupRestore:
179
186
  """
180
187
  self._resource_id = resource_id
181
188
 
189
+ @property
190
+ def details(self):
191
+ """Gets the details of this BackupRestore.
192
+
193
+ :return: The details of this BackupRestore.
194
+ :rtype: :class:`huaweicloudsdkcbr.v1.RestoreDetails`
195
+ """
196
+ return self._details
197
+
198
+ @details.setter
199
+ def details(self, details):
200
+ """Sets the details of this BackupRestore.
201
+
202
+ :param details: The details of this BackupRestore.
203
+ :type details: :class:`huaweicloudsdkcbr.v1.RestoreDetails`
204
+ """
205
+ self._details = details
206
+
182
207
  def to_dict(self):
183
208
  """Returns the model properties as a dict"""
184
209
  result = {}
@@ -69,7 +69,7 @@ class ListVaultRequest:
69
69
  :type policy_id: str
70
70
  :param status: 状态
71
71
  :type status: str
72
- :param resource_ids: 资源id
72
+ :param resource_ids: 资源id,支持多资源,以英文逗号分割
73
73
  :type resource_ids: str
74
74
  """
75
75
 
@@ -335,7 +335,7 @@ class ListVaultRequest:
335
335
  def resource_ids(self):
336
336
  """Gets the resource_ids of this ListVaultRequest.
337
337
 
338
- 资源id
338
+ 资源id,支持多资源,以英文逗号分割
339
339
 
340
340
  :return: The resource_ids of this ListVaultRequest.
341
341
  :rtype: str
@@ -346,7 +346,7 @@ class ListVaultRequest:
346
346
  def resource_ids(self, resource_ids):
347
347
  """Sets the resource_ids of this ListVaultRequest.
348
348
 
349
- 资源id
349
+ 资源id,支持多资源,以英文逗号分割
350
350
 
351
351
  :param resource_ids: The resource_ids of this ListVaultRequest.
352
352
  :type resource_ids: str
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RestoreDetails:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'destination_path': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'destination_path': 'destination_path'
25
+ }
26
+
27
+ def __init__(self, destination_path=None):
28
+ """RestoreDetails
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param destination_path: 目的路径
33
+ :type destination_path: str
34
+ """
35
+
36
+
37
+
38
+ self._destination_path = None
39
+ self.discriminator = None
40
+
41
+ self.destination_path = destination_path
42
+
43
+ @property
44
+ def destination_path(self):
45
+ """Gets the destination_path of this RestoreDetails.
46
+
47
+ 目的路径
48
+
49
+ :return: The destination_path of this RestoreDetails.
50
+ :rtype: str
51
+ """
52
+ return self._destination_path
53
+
54
+ @destination_path.setter
55
+ def destination_path(self, destination_path):
56
+ """Sets the destination_path of this RestoreDetails.
57
+
58
+ 目的路径
59
+
60
+ :param destination_path: The destination_path of this RestoreDetails.
61
+ :type destination_path: str
62
+ """
63
+ self._destination_path = destination_path
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, RestoreDetails):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkcbr
3
- Version: 3.1.55
3
+ Version: 3.1.56
4
4
  Summary: CBR
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.55
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.56
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkcbr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkcbr/v1/__init__.py,sha256=TOkgIFM4PCgm-q9Sf5FN-STQ49wQ2JkYWrk4wn_TmqA,20155
2
+ huaweicloudsdkcbr/v1/__init__.py,sha256=rNquv_Qmn9k5lIKK4dKWEomPk9tUMwW9qPDpkA8YT90,20225
3
3
  huaweicloudsdkcbr/v1/cbr_async_client.py,sha256=uXj8gu2pw1EOI6di1P-6PcCkFKYd8YSForPDfpOWeKg,128655
4
4
  huaweicloudsdkcbr/v1/cbr_client.py,sha256=1Ks2P07QaPq0N1eZYIEui8nqCisFRpSI7WwiNfOwmmg,128167
5
- huaweicloudsdkcbr/v1/model/__init__.py,sha256=ERqfwbHBsbX7sn8rfVaqxVe5JsC_HSI8oS3WDjkSkgU,20069
5
+ huaweicloudsdkcbr/v1/model/__init__.py,sha256=ayfAmfyLAILBFOglIYX7vYMkDsBzoHMc6_tYD-g8A4Q,20139
6
6
  huaweicloudsdkcbr/v1/model/add_agent_path_request.py,sha256=Pr6eVCOzpjgWgqLZJnd9WH0Pbb0K6dgT5pMAFz5XkF4,3814
7
7
  huaweicloudsdkcbr/v1/model/add_agent_path_response.py,sha256=2MBTKerhkmxm5MlDsxbXDb8bfaa3iKH6jV18nEkQiz0,4012
8
8
  huaweicloudsdkcbr/v1/model/add_member_request.py,sha256=ayiU4_SQPeMyXLpWT9p8DC7uWXgjc6--sGJD-MLyjs8,3801
@@ -24,7 +24,7 @@ huaweicloudsdkcbr/v1/model/backup_replicate_req.py,sha256=LZHhedtu1_2wZZw-FvliVs
24
24
  huaweicloudsdkcbr/v1/model/backup_replicate_req_body.py,sha256=v_qq0nI1vzeq5SU1LJRomBx-fW2XQAt_VSKJ1zOTH_w,8300
25
25
  huaweicloudsdkcbr/v1/model/backup_replicate_resp_body.py,sha256=-fhI8u0wP4SP8HAYLDjxdXztSNkIShCmY68gjuedC_c,10114
26
26
  huaweicloudsdkcbr/v1/model/backup_resp.py,sha256=CIb-trtZpham1L9zdEcF0qEY6iuXYj1IHiNv-TySXeo,21962
27
- huaweicloudsdkcbr/v1/model/backup_restore.py,sha256=pCM9isgOJlI67WIikF3BregHJoMw9I_Ip-o6hzc4ay4,6894
27
+ huaweicloudsdkcbr/v1/model/backup_restore.py,sha256=i6i0SZGrIdOX97CjYfI5P7JpbQ6Z6dmpYCvKWZlgp88,7684
28
28
  huaweicloudsdkcbr/v1/model/backup_restore_req.py,sha256=7Y0HsvEsWIIUtPOxZZdUtqhJE-Q3jo3HNWMB8lZByGs,3068
29
29
  huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py,sha256=WxhyWcK5NVaT6hQ_QcvnUo_Bcbt8ParOBr8kFBRQloc,4108
30
30
  huaweicloudsdkcbr/v1/model/backup_sync.py,sha256=Ma_jIoabT2cLzkuMKvlzFd0ZxrIC_oTVispfWVw0VGc,8490
@@ -109,7 +109,7 @@ huaweicloudsdkcbr/v1/model/list_projects_request.py,sha256=CSVYZb5Lh3Xxu2bfcpMIB
109
109
  huaweicloudsdkcbr/v1/model/list_projects_response.py,sha256=84o41LQtmPJHNNS00XWpdETVMNmbYyghfOwC3ccCoJg,4128
110
110
  huaweicloudsdkcbr/v1/model/list_protectable_request.py,sha256=8sBqwE-VGkjyYGZ0PouATda3pBAdRWdZLtNMzMH6pa8,8790
111
111
  huaweicloudsdkcbr/v1/model/list_protectable_response.py,sha256=e-alWl2-5x-9XLu957KkJqleJNr8XLXDLGs5iySeAZU,3443
112
- huaweicloudsdkcbr/v1/model/list_vault_request.py,sha256=-6erShJercgw4E6hSbIvuggzL7HVPUhN1KofPOniQ7c,11581
112
+ huaweicloudsdkcbr/v1/model/list_vault_request.py,sha256=4SygAnLP_VttJNYMP0Y6s-mOh6ADOo1uaZW0NLdWihI,11707
113
113
  huaweicloudsdkcbr/v1/model/list_vault_response.py,sha256=aa294PYzZOPImvMhPuUiwbweIa1O-KFkbE5lPITrYfg,5495
114
114
  huaweicloudsdkcbr/v1/model/match.py,sha256=gyOvKLp9L9CV7mNo9v3ivtjZR9vqLQPwNFZMQR2rXLQ,3971
115
115
  huaweicloudsdkcbr/v1/model/member.py,sha256=lIDX8xV9NUDHfI5wV9i7gbYOFcNIWDCoKsITtGsLG6I,8495
@@ -162,6 +162,7 @@ huaweicloudsdkcbr/v1/model/resource_extra_info_include_volumes.py,sha256=3ITY22e
162
162
  huaweicloudsdkcbr/v1/model/resource_resp.py,sha256=AIeMy-xvrDU9Zawwe2nmjsLCoLMFlfJRXGKdqSYvMP8,9838
163
163
  huaweicloudsdkcbr/v1/model/restore_backup_request.py,sha256=8L7koxgv_1SS77TCMnRso0AYKAs5m7pD4jiCfexnapc,3843
164
164
  huaweicloudsdkcbr/v1/model/restore_backup_response.py,sha256=VkMVxWfiDT0aUf84NenhzYNr8ZJN1pyEqZrbKhkVvb4,2435
165
+ huaweicloudsdkcbr/v1/model/restore_details.py,sha256=kfESOTwEC2BbAAwvPh2-r2Bq8h2oaFmw88eUQmeDXiI,3178
165
166
  huaweicloudsdkcbr/v1/model/self_links_info.py,sha256=_miQHwkUfocmTdyHwAR5rzDBjjHZh4xuOTXfQ22Rb3A,2962
166
167
  huaweicloudsdkcbr/v1/model/set_vault_resource_request.py,sha256=6qJAk1E3oeN0IehxLSJO-HfR-1N68sLJGNr_vU7H-Js,3878
167
168
  huaweicloudsdkcbr/v1/model/set_vault_resource_response.py,sha256=MfW7bSOVMTkZoF015k9BAdqMfLMmsJ2vQfmd5yvcfGM,3494
@@ -251,8 +252,8 @@ huaweicloudsdkcbr/v1/model/vault_update.py,sha256=1jgIWZyU3En9xYBbYjZyvSuMakGDTQ
251
252
  huaweicloudsdkcbr/v1/model/vault_update_req.py,sha256=16TbM9KJfcVqSWj6PIqExydBn_Uy2P0wmqcV44Uzz4E,3002
252
253
  huaweicloudsdkcbr/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
253
254
  huaweicloudsdkcbr/v1/region/cbr_region.py,sha256=OtmEq5JEUNb9mEpIYCm0uooNMLpMCrU2IuRWOuTimT8,3801
254
- huaweicloudsdkcbr-3.1.55.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
255
- huaweicloudsdkcbr-3.1.55.dist-info/METADATA,sha256=jp1oX_j2PEo40VBWqGOu1q-3wDGRhI_8wKR5eCw8CG4,1134
256
- huaweicloudsdkcbr-3.1.55.dist-info/WHEEL,sha256=m9WAupmBd2JGDsXWQGJgMGXIWbQY3F5c2xBJbBhq0nY,110
257
- huaweicloudsdkcbr-3.1.55.dist-info/top_level.txt,sha256=CpXxi0Z24SDOTA3ZE_lGTbpC87AzndcF4s7WiMxpY0w,18
258
- huaweicloudsdkcbr-3.1.55.dist-info/RECORD,,
255
+ huaweicloudsdkcbr-3.1.56.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
256
+ huaweicloudsdkcbr-3.1.56.dist-info/METADATA,sha256=_pXuLxKDv7VVQYGuXnmbNCNuAfaAw0Yra7uJsZWXUyY,1134
257
+ huaweicloudsdkcbr-3.1.56.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
258
+ huaweicloudsdkcbr-3.1.56.dist-info/top_level.txt,sha256=CpXxi0Z24SDOTA3ZE_lGTbpC87AzndcF4s7WiMxpY0w,18
259
+ huaweicloudsdkcbr-3.1.56.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.1)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any