huaweicloudsdkcbr 3.1.85__py2.py3-none-any.whl → 3.1.132__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.
Files changed (50) hide show
  1. huaweicloudsdkcbr/v1/__init__.py +23 -0
  2. huaweicloudsdkcbr/v1/cbr_async_client.py +464 -2
  3. huaweicloudsdkcbr/v1/cbr_client.py +464 -2
  4. huaweicloudsdkcbr/v1/model/__init__.py +23 -0
  5. huaweicloudsdkcbr/v1/model/add_members_req.py +34 -4
  6. huaweicloudsdkcbr/v1/model/agent_add_path_req.py +32 -3
  7. huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
  8. huaweicloudsdkcbr/v1/model/backup_resp.py +73 -15
  9. huaweicloudsdkcbr/v1/model/backup_restore_server_mapping.py +3 -3
  10. huaweicloudsdkcbr/v1/model/cbc_order_change.py +225 -0
  11. huaweicloudsdkcbr/v1/model/cbc_product_info_order_change.py +199 -0
  12. huaweicloudsdkcbr/v1/model/cbc_product_info_update.py +3 -3
  13. huaweicloudsdkcbr/v1/model/change_order_request.py +111 -0
  14. huaweicloudsdkcbr/v1/model/change_order_response.py +174 -0
  15. huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
  16. huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
  17. huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
  18. huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
  19. huaweicloudsdkcbr/v1/model/exclude_path.py +144 -0
  20. huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
  21. huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +172 -0
  22. huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
  23. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
  24. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
  25. huaweicloudsdkcbr/v1/model/list_vault_request.py +3 -3
  26. huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
  27. huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
  28. huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
  29. huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
  30. huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
  31. huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
  32. huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
  33. huaweicloudsdkcbr/v1/model/path.py +32 -3
  34. huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
  35. huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
  36. huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
  37. huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
  38. huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
  39. huaweicloudsdkcbr/v1/model/vault.py +32 -3
  40. huaweicloudsdkcbr/v1/model/vault_create.py +61 -3
  41. huaweicloudsdkcbr/v1/model/vault_create_resource.py +32 -3
  42. huaweicloudsdkcbr/v1/model/vault_get.py +30 -1
  43. huaweicloudsdkcbr/v1/model/vault_order.py +32 -3
  44. huaweicloudsdkcbr/v1/model/vault_update.py +32 -3
  45. huaweicloudsdkcbr/v1/region/cbr_region.py +3 -0
  46. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/METADATA +2 -2
  47. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/RECORD +50 -27
  48. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/WHEEL +1 -1
  49. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/LICENSE +0 -0
  50. {huaweicloudsdkcbr-3.1.85.dist-info → huaweicloudsdkcbr-3.1.132.dist-info}/top_level.txt +0 -0
@@ -17,28 +17,35 @@ class AgentAddPathReq:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'add_path': 'list[str]'
20
+ 'add_path': 'list[str]',
21
+ 'exclude_path': 'list[ExcludePath]'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'add_path': 'add_path'
25
+ 'add_path': 'add_path',
26
+ 'exclude_path': 'exclude_path'
25
27
  }
26
28
 
27
- def __init__(self, add_path=None):
29
+ def __init__(self, add_path=None, exclude_path=None):
28
30
  """AgentAddPathReq
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param add_path: 增加备份路径详情
33
35
  :type add_path: list[str]
36
+ :param exclude_path: 增加排除目录 > 该特性目前处于公测阶段,部分region可能无法使用。
37
+ :type exclude_path: list[:class:`huaweicloudsdkcbr.v1.ExcludePath`]
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._add_path = None
43
+ self._exclude_path = None
39
44
  self.discriminator = None
40
45
 
41
46
  self.add_path = add_path
47
+ if exclude_path is not None:
48
+ self.exclude_path = exclude_path
42
49
 
43
50
  @property
44
51
  def add_path(self):
@@ -62,6 +69,28 @@ class AgentAddPathReq:
62
69
  """
63
70
  self._add_path = add_path
64
71
 
72
+ @property
73
+ def exclude_path(self):
74
+ """Gets the exclude_path of this AgentAddPathReq.
75
+
76
+ 增加排除目录 > 该特性目前处于公测阶段,部分region可能无法使用。
77
+
78
+ :return: The exclude_path of this AgentAddPathReq.
79
+ :rtype: list[:class:`huaweicloudsdkcbr.v1.ExcludePath`]
80
+ """
81
+ return self._exclude_path
82
+
83
+ @exclude_path.setter
84
+ def exclude_path(self, exclude_path):
85
+ """Sets the exclude_path of this AgentAddPathReq.
86
+
87
+ 增加排除目录 > 该特性目前处于公测阶段,部分region可能无法使用。
88
+
89
+ :param exclude_path: The exclude_path of this AgentAddPathReq.
90
+ :type exclude_path: list[:class:`huaweicloudsdkcbr.v1.ExcludePath`]
91
+ """
92
+ self._exclude_path = exclude_path
93
+
65
94
  def to_dict(self):
66
95
  """Returns the model properties as a dict"""
67
96
  result = {}
@@ -19,7 +19,6 @@ class BackupExtendInfo:
19
19
  openapi_types = {
20
20
  'auto_trigger': 'bool',
21
21
  'bootable': 'bool',
22
- 'incremental': 'bool',
23
22
  'snapshot_id': 'str',
24
23
  'support_lld': 'bool',
25
24
  'supported_restore_mode': 'str',
@@ -33,7 +32,6 @@ class BackupExtendInfo:
33
32
  attribute_map = {
34
33
  'auto_trigger': 'auto_trigger',
35
34
  'bootable': 'bootable',
36
- 'incremental': 'incremental',
37
35
  'snapshot_id': 'snapshot_id',
38
36
  'support_lld': 'support_lld',
39
37
  'supported_restore_mode': 'supported_restore_mode',
@@ -44,7 +42,7 @@ class BackupExtendInfo:
44
42
  'is_multi_az': 'is_multi_az'
45
43
  }
46
44
 
47
- def __init__(self, auto_trigger=None, bootable=None, incremental=None, snapshot_id=None, support_lld=None, supported_restore_mode=None, os_images_data=None, contain_system_disk=None, encrypted=None, system_disk=None, is_multi_az=None):
45
+ def __init__(self, auto_trigger=None, bootable=None, snapshot_id=None, support_lld=None, supported_restore_mode=None, os_images_data=None, contain_system_disk=None, encrypted=None, system_disk=None, is_multi_az=None):
48
46
  """BackupExtendInfo
49
47
 
50
48
  The model defined in huaweicloud sdk
@@ -53,8 +51,6 @@ class BackupExtendInfo:
53
51
  :type auto_trigger: bool
54
52
  :param bootable: 是否系统盘备份
55
53
  :type bootable: bool
56
- :param incremental: 是否是增备
57
- :type incremental: bool
58
54
  :param snapshot_id: 卷备份副本的快照id
59
55
  :type snapshot_id: str
60
56
  :param support_lld: 是否支持lazyloading快速恢复
@@ -77,7 +73,6 @@ class BackupExtendInfo:
77
73
 
78
74
  self._auto_trigger = None
79
75
  self._bootable = None
80
- self._incremental = None
81
76
  self._snapshot_id = None
82
77
  self._support_lld = None
83
78
  self._supported_restore_mode = None
@@ -92,8 +87,6 @@ class BackupExtendInfo:
92
87
  self.auto_trigger = auto_trigger
93
88
  if bootable is not None:
94
89
  self.bootable = bootable
95
- if incremental is not None:
96
- self.incremental = incremental
97
90
  if snapshot_id is not None:
98
91
  self.snapshot_id = snapshot_id
99
92
  if support_lld is not None:
@@ -155,28 +148,6 @@ class BackupExtendInfo:
155
148
  """
156
149
  self._bootable = bootable
157
150
 
158
- @property
159
- def incremental(self):
160
- """Gets the incremental of this BackupExtendInfo.
161
-
162
- 是否是增备
163
-
164
- :return: The incremental of this BackupExtendInfo.
165
- :rtype: bool
166
- """
167
- return self._incremental
168
-
169
- @incremental.setter
170
- def incremental(self, incremental):
171
- """Sets the incremental of this BackupExtendInfo.
172
-
173
- 是否是增备
174
-
175
- :param incremental: The incremental of this BackupExtendInfo.
176
- :type incremental: bool
177
- """
178
- self._incremental = incremental
179
-
180
151
  @property
181
152
  def snapshot_id(self):
182
153
  """Gets the snapshot_id of this BackupExtendInfo.
@@ -39,7 +39,9 @@ class BackupResp:
39
39
  'replication_records': 'list[ReplicationRecordGet]',
40
40
  'enterprise_project_id': 'str',
41
41
  'provider_id': 'str',
42
- 'children': 'list[BackupResp]'
42
+ 'children': 'list[BackupResp]',
43
+ 'incremental': 'bool',
44
+ 'version': 'int'
43
45
  }
44
46
 
45
47
  attribute_map = {
@@ -65,10 +67,12 @@ class BackupResp:
65
67
  'replication_records': 'replication_records',
66
68
  'enterprise_project_id': 'enterprise_project_id',
67
69
  'provider_id': 'provider_id',
68
- 'children': 'children'
70
+ 'children': 'children',
71
+ 'incremental': 'incremental',
72
+ 'version': 'version'
69
73
  }
70
74
 
71
- def __init__(self, checkpoint_id=None, created_at=None, description=None, expired_at=None, extend_info=None, id=None, image_type=None, name=None, parent_id=None, project_id=None, protected_at=None, resource_az=None, resource_id=None, resource_name=None, resource_size=None, resource_type=None, status=None, updated_at=None, vault_id=None, replication_records=None, enterprise_project_id=None, provider_id=None, children=None):
75
+ def __init__(self, checkpoint_id=None, created_at=None, description=None, expired_at=None, extend_info=None, id=None, image_type=None, name=None, parent_id=None, project_id=None, protected_at=None, resource_az=None, resource_id=None, resource_name=None, resource_size=None, resource_type=None, status=None, updated_at=None, vault_id=None, replication_records=None, enterprise_project_id=None, provider_id=None, children=None, incremental=None, version=None):
72
76
  """BackupResp
73
77
 
74
78
  The model defined in huaweicloud sdk
@@ -85,7 +89,7 @@ class BackupResp:
85
89
  :type extend_info: :class:`huaweicloudsdkcbr.v1.BackupExtendInfo`
86
90
  :param id: 备份ID
87
91
  :type id: str
88
- :param image_type: 备份类型
92
+ :param image_type: [备份类型。取值为backup和replication。](tag:hws,hws_hk,ocb) [备份类型。取值为backup。](tag:g42,hk_g42,sbc,dt,fcs_vm,ctc,tm,tlf,cmcc,hcso_dt)
89
93
  :type image_type: str
90
94
  :param name: 备份名称
91
95
  :type name: str
@@ -103,9 +107,9 @@ class BackupResp:
103
107
  :type resource_name: str
104
108
  :param resource_size: 资源大小,单位为GB
105
109
  :type resource_size: int
106
- :param resource_type: 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
110
+ :param resource_type: [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo, OS::Workspace::DesktopV2](tag:hws,hws_hk) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Sfs::Turbo](tag:hk_g42,sbc,dt) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Sfs::Turbo](tag:fcs_vm,ctc,ocb,tm) [资源类型: OS::Nova::Server, OS::Cinder::Volume](tag:tlf,cmcc,hcso_dt) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Sfs::Turbo, OS::Workspace::DesktopV2](tag:g42)
107
111
  :type resource_type: str
108
- :param status: 备份状态
112
+ :param status: 备份状态 - available: 可用 - protecting: 保护中 - deleting: 删除中 - restoring: 恢复中 - error: 异常 - waiting_protect: 等待保护 - waiting_delete: 等待删除 - waiting_restore: 等待恢复
109
113
  :type status: str
110
114
  :param updated_at: 更新时间,例如:\"2020-02-05T10:38:34.209782\"
111
115
  :type updated_at: datetime
@@ -115,10 +119,14 @@ class BackupResp:
115
119
  :type replication_records: list[:class:`huaweicloudsdkcbr.v1.ReplicationRecordGet`]
116
120
  :param enterprise_project_id: 企业项目id,默认为‘0’。
117
121
  :type enterprise_project_id: str
118
- :param provider_id: 备份提供商ID,用于区分备份对象。当前取值包含 0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。
122
+ :param provider_id: 备份提供商ID,用于区分备份对象。当前取值包含: [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。](tag:hws,hws_hk) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881,该值代表备份对象为SFS Turbo。](tag:ocb,tlf,sbc,fcs_vm,g42,tm,dt,cmcc) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881,该值代表备份对象为SFS Turbo。86a80900-71bf-4961-956a-d52df944f84a,该值代表备份对象为Workspace。](tag:ctc) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。](tag:hcso_dt)
119
123
  :type provider_id: str
120
124
  :param children: 子副本列表
121
125
  :type children: list[:class:`huaweicloudsdkcbr.v1.BackupResp`]
126
+ :param incremental: 是否是增备
127
+ :type incremental: bool
128
+ :param version: 备份副本快照类型
129
+ :type version: int
122
130
  """
123
131
 
124
132
 
@@ -146,6 +154,8 @@ class BackupResp:
146
154
  self._enterprise_project_id = None
147
155
  self._provider_id = None
148
156
  self._children = None
157
+ self._incremental = None
158
+ self._version = None
149
159
  self.discriminator = None
150
160
 
151
161
  self.checkpoint_id = checkpoint_id
@@ -174,6 +184,10 @@ class BackupResp:
174
184
  self.provider_id = provider_id
175
185
  if children is not None:
176
186
  self.children = children
187
+ if incremental is not None:
188
+ self.incremental = incremental
189
+ if version is not None:
190
+ self.version = version
177
191
 
178
192
  @property
179
193
  def checkpoint_id(self):
@@ -307,7 +321,7 @@ class BackupResp:
307
321
  def image_type(self):
308
322
  """Gets the image_type of this BackupResp.
309
323
 
310
- 备份类型
324
+ [备份类型。取值为backup和replication。](tag:hws,hws_hk,ocb) [备份类型。取值为backup。](tag:g42,hk_g42,sbc,dt,fcs_vm,ctc,tm,tlf,cmcc,hcso_dt)
311
325
 
312
326
  :return: The image_type of this BackupResp.
313
327
  :rtype: str
@@ -318,7 +332,7 @@ class BackupResp:
318
332
  def image_type(self, image_type):
319
333
  """Sets the image_type of this BackupResp.
320
334
 
321
- 备份类型
335
+ [备份类型。取值为backup和replication。](tag:hws,hws_hk,ocb) [备份类型。取值为backup。](tag:g42,hk_g42,sbc,dt,fcs_vm,ctc,tm,tlf,cmcc,hcso_dt)
322
336
 
323
337
  :param image_type: The image_type of this BackupResp.
324
338
  :type image_type: str
@@ -505,7 +519,7 @@ class BackupResp:
505
519
  def resource_type(self):
506
520
  """Gets the resource_type of this BackupResp.
507
521
 
508
- 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
522
+ [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo, OS::Workspace::DesktopV2](tag:hws,hws_hk) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Sfs::Turbo](tag:hk_g42,sbc,dt) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Sfs::Turbo](tag:fcs_vm,ctc,ocb,tm) [资源类型: OS::Nova::Server, OS::Cinder::Volume](tag:tlf,cmcc,hcso_dt) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Sfs::Turbo, OS::Workspace::DesktopV2](tag:g42)
509
523
 
510
524
  :return: The resource_type of this BackupResp.
511
525
  :rtype: str
@@ -516,7 +530,7 @@ class BackupResp:
516
530
  def resource_type(self, resource_type):
517
531
  """Sets the resource_type of this BackupResp.
518
532
 
519
- 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
533
+ [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo, OS::Workspace::DesktopV2](tag:hws,hws_hk) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Sfs::Turbo](tag:hk_g42,sbc,dt) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Sfs::Turbo](tag:fcs_vm,ctc,ocb,tm) [资源类型: OS::Nova::Server, OS::Cinder::Volume](tag:tlf,cmcc,hcso_dt) [资源类型: OS::Nova::Server, OS::Cinder::Volume, OS::Sfs::Turbo, OS::Workspace::DesktopV2](tag:g42)
520
534
 
521
535
  :param resource_type: The resource_type of this BackupResp.
522
536
  :type resource_type: str
@@ -527,7 +541,7 @@ class BackupResp:
527
541
  def status(self):
528
542
  """Gets the status of this BackupResp.
529
543
 
530
- 备份状态
544
+ 备份状态 - available: 可用 - protecting: 保护中 - deleting: 删除中 - restoring: 恢复中 - error: 异常 - waiting_protect: 等待保护 - waiting_delete: 等待删除 - waiting_restore: 等待恢复
531
545
 
532
546
  :return: The status of this BackupResp.
533
547
  :rtype: str
@@ -538,7 +552,7 @@ class BackupResp:
538
552
  def status(self, status):
539
553
  """Sets the status of this BackupResp.
540
554
 
541
- 备份状态
555
+ 备份状态 - available: 可用 - protecting: 保护中 - deleting: 删除中 - restoring: 恢复中 - error: 异常 - waiting_protect: 等待保护 - waiting_delete: 等待删除 - waiting_restore: 等待恢复
542
556
 
543
557
  :param status: The status of this BackupResp.
544
558
  :type status: str
@@ -637,7 +651,7 @@ class BackupResp:
637
651
  def provider_id(self):
638
652
  """Gets the provider_id of this BackupResp.
639
653
 
640
- 备份提供商ID,用于区分备份对象。当前取值包含 0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。
654
+ 备份提供商ID,用于区分备份对象。当前取值包含: [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。](tag:hws,hws_hk) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881,该值代表备份对象为SFS Turbo。](tag:ocb,tlf,sbc,fcs_vm,g42,tm,dt,cmcc) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881,该值代表备份对象为SFS Turbo。86a80900-71bf-4961-956a-d52df944f84a,该值代表备份对象为Workspace。](tag:ctc) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。](tag:hcso_dt)
641
655
 
642
656
  :return: The provider_id of this BackupResp.
643
657
  :rtype: str
@@ -648,7 +662,7 @@ class BackupResp:
648
662
  def provider_id(self, provider_id):
649
663
  """Sets the provider_id of this BackupResp.
650
664
 
651
- 备份提供商ID,用于区分备份对象。当前取值包含 0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。
665
+ 备份提供商ID,用于区分备份对象。当前取值包含: [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。](tag:hws,hws_hk) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881,该值代表备份对象为SFS Turbo。](tag:ocb,tlf,sbc,fcs_vm,g42,tm,dt,cmcc) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881,该值代表备份对象为SFS Turbo。86a80900-71bf-4961-956a-d52df944f84a,该值代表备份对象为Workspace。](tag:ctc) [0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。](tag:hcso_dt)
652
666
 
653
667
  :param provider_id: The provider_id of this BackupResp.
654
668
  :type provider_id: str
@@ -677,6 +691,50 @@ class BackupResp:
677
691
  """
678
692
  self._children = children
679
693
 
694
+ @property
695
+ def incremental(self):
696
+ """Gets the incremental of this BackupResp.
697
+
698
+ 是否是增备
699
+
700
+ :return: The incremental of this BackupResp.
701
+ :rtype: bool
702
+ """
703
+ return self._incremental
704
+
705
+ @incremental.setter
706
+ def incremental(self, incremental):
707
+ """Sets the incremental of this BackupResp.
708
+
709
+ 是否是增备
710
+
711
+ :param incremental: The incremental of this BackupResp.
712
+ :type incremental: bool
713
+ """
714
+ self._incremental = incremental
715
+
716
+ @property
717
+ def version(self):
718
+ """Gets the version of this BackupResp.
719
+
720
+ 备份副本快照类型
721
+
722
+ :return: The version of this BackupResp.
723
+ :rtype: int
724
+ """
725
+ return self._version
726
+
727
+ @version.setter
728
+ def version(self, version):
729
+ """Sets the version of this BackupResp.
730
+
731
+ 备份副本快照类型
732
+
733
+ :param version: The version of this BackupResp.
734
+ :type version: int
735
+ """
736
+ self._version = version
737
+
680
738
  def to_dict(self):
681
739
  """Returns the model properties as a dict"""
682
740
  result = {}
@@ -31,7 +31,7 @@ class BackupRestoreServerMapping:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param backup_id: 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。
34
+ :param backup_id: 卷备份ID,可以通过控制台查看云服务器备份详情中磁盘级备份的ID;或“查询指定备份”接口,获取备份中children内的磁盘级备份的ID。
35
35
  :type backup_id: str
36
36
  :param volume_id: 待恢复目标卷ID
37
37
  :type volume_id: str
@@ -50,7 +50,7 @@ class BackupRestoreServerMapping:
50
50
  def backup_id(self):
51
51
  """Gets the backup_id of this BackupRestoreServerMapping.
52
52
 
53
- 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。
53
+ 卷备份ID,可以通过控制台查看云服务器备份详情中磁盘级备份的ID;或“查询指定备份”接口,获取备份中children内的磁盘级备份的ID。
54
54
 
55
55
  :return: The backup_id of this BackupRestoreServerMapping.
56
56
  :rtype: str
@@ -61,7 +61,7 @@ class BackupRestoreServerMapping:
61
61
  def backup_id(self, backup_id):
62
62
  """Sets the backup_id of this BackupRestoreServerMapping.
63
63
 
64
- 卷备份ID,可以通过控制台或者“查询指定备份”接口获取。
64
+ 卷备份ID,可以通过控制台查看云服务器备份详情中磁盘级备份的ID;或“查询指定备份”接口,获取备份中children内的磁盘级备份的ID。
65
65
 
66
66
  :param backup_id: The backup_id of this BackupRestoreServerMapping.
67
67
  :type backup_id: str
@@ -0,0 +1,225 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CbcOrderChange:
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
+ 'cloud_service_console_url': 'str',
21
+ 'product_info': 'CbcProductInfoOrderChange',
22
+ 'resource_id': 'str',
23
+ 'is_auto_pay': 'bool',
24
+ 'promotion_info': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'cloud_service_console_url': 'cloud_service_console_url',
29
+ 'product_info': 'product_info',
30
+ 'resource_id': 'resource_id',
31
+ 'is_auto_pay': 'is_auto_pay',
32
+ 'promotion_info': 'promotion_info'
33
+ }
34
+
35
+ def __init__(self, cloud_service_console_url=None, product_info=None, resource_id=None, is_auto_pay=None, promotion_info=None):
36
+ """CbcOrderChange
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param cloud_service_console_url: 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息
41
+ :type cloud_service_console_url: str
42
+ :param product_info:
43
+ :type product_info: :class:`huaweicloudsdkcbr.v1.CbcProductInfoOrderChange`
44
+ :param resource_id: 待变更的资源ID
45
+ :type resource_id: str
46
+ :param is_auto_pay: 是否自动支付,默认非自动支付:false
47
+ :type is_auto_pay: bool
48
+ :param promotion_info: 购买折扣
49
+ :type promotion_info: str
50
+ """
51
+
52
+
53
+
54
+ self._cloud_service_console_url = None
55
+ self._product_info = None
56
+ self._resource_id = None
57
+ self._is_auto_pay = None
58
+ self._promotion_info = None
59
+ self.discriminator = None
60
+
61
+ if cloud_service_console_url is not None:
62
+ self.cloud_service_console_url = cloud_service_console_url
63
+ self.product_info = product_info
64
+ self.resource_id = resource_id
65
+ if is_auto_pay is not None:
66
+ self.is_auto_pay = is_auto_pay
67
+ if promotion_info is not None:
68
+ self.promotion_info = promotion_info
69
+
70
+ @property
71
+ def cloud_service_console_url(self):
72
+ """Gets the cloud_service_console_url of this CbcOrderChange.
73
+
74
+ 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息
75
+
76
+ :return: The cloud_service_console_url of this CbcOrderChange.
77
+ :rtype: str
78
+ """
79
+ return self._cloud_service_console_url
80
+
81
+ @cloud_service_console_url.setter
82
+ def cloud_service_console_url(self, cloud_service_console_url):
83
+ """Sets the cloud_service_console_url of this CbcOrderChange.
84
+
85
+ 云服务ConsoleURL。订单支付完成后,客户可以通过此URL跳转到云服务Console页面查看信息
86
+
87
+ :param cloud_service_console_url: The cloud_service_console_url of this CbcOrderChange.
88
+ :type cloud_service_console_url: str
89
+ """
90
+ self._cloud_service_console_url = cloud_service_console_url
91
+
92
+ @property
93
+ def product_info(self):
94
+ """Gets the product_info of this CbcOrderChange.
95
+
96
+ :return: The product_info of this CbcOrderChange.
97
+ :rtype: :class:`huaweicloudsdkcbr.v1.CbcProductInfoOrderChange`
98
+ """
99
+ return self._product_info
100
+
101
+ @product_info.setter
102
+ def product_info(self, product_info):
103
+ """Sets the product_info of this CbcOrderChange.
104
+
105
+ :param product_info: The product_info of this CbcOrderChange.
106
+ :type product_info: :class:`huaweicloudsdkcbr.v1.CbcProductInfoOrderChange`
107
+ """
108
+ self._product_info = product_info
109
+
110
+ @property
111
+ def resource_id(self):
112
+ """Gets the resource_id of this CbcOrderChange.
113
+
114
+ 待变更的资源ID
115
+
116
+ :return: The resource_id of this CbcOrderChange.
117
+ :rtype: str
118
+ """
119
+ return self._resource_id
120
+
121
+ @resource_id.setter
122
+ def resource_id(self, resource_id):
123
+ """Sets the resource_id of this CbcOrderChange.
124
+
125
+ 待变更的资源ID
126
+
127
+ :param resource_id: The resource_id of this CbcOrderChange.
128
+ :type resource_id: str
129
+ """
130
+ self._resource_id = resource_id
131
+
132
+ @property
133
+ def is_auto_pay(self):
134
+ """Gets the is_auto_pay of this CbcOrderChange.
135
+
136
+ 是否自动支付,默认非自动支付:false
137
+
138
+ :return: The is_auto_pay of this CbcOrderChange.
139
+ :rtype: bool
140
+ """
141
+ return self._is_auto_pay
142
+
143
+ @is_auto_pay.setter
144
+ def is_auto_pay(self, is_auto_pay):
145
+ """Sets the is_auto_pay of this CbcOrderChange.
146
+
147
+ 是否自动支付,默认非自动支付:false
148
+
149
+ :param is_auto_pay: The is_auto_pay of this CbcOrderChange.
150
+ :type is_auto_pay: bool
151
+ """
152
+ self._is_auto_pay = is_auto_pay
153
+
154
+ @property
155
+ def promotion_info(self):
156
+ """Gets the promotion_info of this CbcOrderChange.
157
+
158
+ 购买折扣
159
+
160
+ :return: The promotion_info of this CbcOrderChange.
161
+ :rtype: str
162
+ """
163
+ return self._promotion_info
164
+
165
+ @promotion_info.setter
166
+ def promotion_info(self, promotion_info):
167
+ """Sets the promotion_info of this CbcOrderChange.
168
+
169
+ 购买折扣
170
+
171
+ :param promotion_info: The promotion_info of this CbcOrderChange.
172
+ :type promotion_info: str
173
+ """
174
+ self._promotion_info = promotion_info
175
+
176
+ def to_dict(self):
177
+ """Returns the model properties as a dict"""
178
+ result = {}
179
+
180
+ for attr, _ in six.iteritems(self.openapi_types):
181
+ value = getattr(self, attr)
182
+ if isinstance(value, list):
183
+ result[attr] = list(map(
184
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
185
+ value
186
+ ))
187
+ elif hasattr(value, "to_dict"):
188
+ result[attr] = value.to_dict()
189
+ elif isinstance(value, dict):
190
+ result[attr] = dict(map(
191
+ lambda item: (item[0], item[1].to_dict())
192
+ if hasattr(item[1], "to_dict") else item,
193
+ value.items()
194
+ ))
195
+ else:
196
+ if attr in self.sensitive_list:
197
+ result[attr] = "****"
198
+ else:
199
+ result[attr] = value
200
+
201
+ return result
202
+
203
+ def to_str(self):
204
+ """Returns the string representation of the model"""
205
+ import simplejson as json
206
+ if six.PY2:
207
+ import sys
208
+ reload(sys)
209
+ sys.setdefaultencoding("utf-8")
210
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
211
+
212
+ def __repr__(self):
213
+ """For `print`"""
214
+ return self.to_str()
215
+
216
+ def __eq__(self, other):
217
+ """Returns true if both objects are equal"""
218
+ if not isinstance(other, CbcOrderChange):
219
+ return False
220
+
221
+ return self.__dict__ == other.__dict__
222
+
223
+ def __ne__(self, other):
224
+ """Returns true if both objects are not equal"""
225
+ return not self == other