huaweicloudsdkcbr 3.1.86__py2.py3-none-any.whl → 3.1.88__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 (33) hide show
  1. huaweicloudsdkcbr/v1/__init__.py +18 -0
  2. huaweicloudsdkcbr/v1/cbr_async_client.py +392 -0
  3. huaweicloudsdkcbr/v1/cbr_client.py +392 -0
  4. huaweicloudsdkcbr/v1/model/__init__.py +18 -0
  5. huaweicloudsdkcbr/v1/model/backup_extend_info.py +1 -30
  6. huaweicloudsdkcbr/v1/model/backup_resp.py +32 -3
  7. huaweicloudsdkcbr/v1/model/create_organization_policy_request.py +111 -0
  8. huaweicloudsdkcbr/v1/model/create_organization_policy_response.py +112 -0
  9. huaweicloudsdkcbr/v1/model/delete_organization_policy_request.py +114 -0
  10. huaweicloudsdkcbr/v1/model/delete_organization_policy_response.py +85 -0
  11. huaweicloudsdkcbr/v1/model/list_external_vault_response.py +3 -32
  12. huaweicloudsdkcbr/v1/model/list_organization_policies_request.py +114 -0
  13. huaweicloudsdkcbr/v1/model/list_organization_policies_response.py +203 -0
  14. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_request.py +114 -0
  15. huaweicloudsdkcbr/v1/model/list_organization_policy_detail_response.py +203 -0
  16. huaweicloudsdkcbr/v1/model/list_vault_response.py +3 -32
  17. huaweicloudsdkcbr/v1/model/organization_policy.py +388 -0
  18. huaweicloudsdkcbr/v1/model/organization_policy_create.py +275 -0
  19. huaweicloudsdkcbr/v1/model/organization_policy_create_req.py +110 -0
  20. huaweicloudsdkcbr/v1/model/organization_policy_status.py +198 -0
  21. huaweicloudsdkcbr/v1/model/organization_policy_update.py +252 -0
  22. huaweicloudsdkcbr/v1/model/organization_policy_update_req.py +110 -0
  23. huaweicloudsdkcbr/v1/model/policy_trigger_properties_req.py +3 -3
  24. huaweicloudsdkcbr/v1/model/show_organization_policy_request.py +114 -0
  25. huaweicloudsdkcbr/v1/model/show_organization_policy_response.py +112 -0
  26. huaweicloudsdkcbr/v1/model/update_organization_policy_request.py +139 -0
  27. huaweicloudsdkcbr/v1/model/update_organization_policy_response.py +112 -0
  28. huaweicloudsdkcbr/v1/model/vault_create.py +32 -3
  29. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/METADATA +2 -2
  30. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/RECORD +33 -15
  31. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/LICENSE +0 -0
  32. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/WHEEL +0 -0
  33. {huaweicloudsdkcbr-3.1.86.dist-info → huaweicloudsdkcbr-3.1.88.dist-info}/top_level.txt +0 -0
@@ -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 ShowOrganizationPolicyRequest:
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
+ 'organization_policy_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'organization_policy_id': 'organization_policy_id'
25
+ }
26
+
27
+ def __init__(self, organization_policy_id=None):
28
+ """ShowOrganizationPolicyRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param organization_policy_id: 组织策略ID
33
+ :type organization_policy_id: str
34
+ """
35
+
36
+
37
+
38
+ self._organization_policy_id = None
39
+ self.discriminator = None
40
+
41
+ self.organization_policy_id = organization_policy_id
42
+
43
+ @property
44
+ def organization_policy_id(self):
45
+ """Gets the organization_policy_id of this ShowOrganizationPolicyRequest.
46
+
47
+ 组织策略ID
48
+
49
+ :return: The organization_policy_id of this ShowOrganizationPolicyRequest.
50
+ :rtype: str
51
+ """
52
+ return self._organization_policy_id
53
+
54
+ @organization_policy_id.setter
55
+ def organization_policy_id(self, organization_policy_id):
56
+ """Sets the organization_policy_id of this ShowOrganizationPolicyRequest.
57
+
58
+ 组织策略ID
59
+
60
+ :param organization_policy_id: The organization_policy_id of this ShowOrganizationPolicyRequest.
61
+ :type organization_policy_id: str
62
+ """
63
+ self._organization_policy_id = organization_policy_id
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, ShowOrganizationPolicyRequest):
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
@@ -0,0 +1,112 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowOrganizationPolicyResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'policy': 'OrganizationPolicy'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'policy': 'policy'
26
+ }
27
+
28
+ def __init__(self, policy=None):
29
+ """ShowOrganizationPolicyResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param policy:
34
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
35
+ """
36
+
37
+ super(ShowOrganizationPolicyResponse, self).__init__()
38
+
39
+ self._policy = None
40
+ self.discriminator = None
41
+
42
+ if policy is not None:
43
+ self.policy = policy
44
+
45
+ @property
46
+ def policy(self):
47
+ """Gets the policy of this ShowOrganizationPolicyResponse.
48
+
49
+ :return: The policy of this ShowOrganizationPolicyResponse.
50
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
51
+ """
52
+ return self._policy
53
+
54
+ @policy.setter
55
+ def policy(self, policy):
56
+ """Sets the policy of this ShowOrganizationPolicyResponse.
57
+
58
+ :param policy: The policy of this ShowOrganizationPolicyResponse.
59
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
60
+ """
61
+ self._policy = policy
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, ShowOrganizationPolicyResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateOrganizationPolicyRequest:
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
+ 'organization_policy_id': 'str',
21
+ 'body': 'OrganizationPolicyUpdateReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'organization_policy_id': 'organization_policy_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, organization_policy_id=None, body=None):
30
+ """UpdateOrganizationPolicyRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param organization_policy_id: 组织策略ID
35
+ :type organization_policy_id: str
36
+ :param body: Body of the UpdateOrganizationPolicyRequest
37
+ :type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdateReq`
38
+ """
39
+
40
+
41
+
42
+ self._organization_policy_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.organization_policy_id = organization_policy_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def organization_policy_id(self):
52
+ """Gets the organization_policy_id of this UpdateOrganizationPolicyRequest.
53
+
54
+ 组织策略ID
55
+
56
+ :return: The organization_policy_id of this UpdateOrganizationPolicyRequest.
57
+ :rtype: str
58
+ """
59
+ return self._organization_policy_id
60
+
61
+ @organization_policy_id.setter
62
+ def organization_policy_id(self, organization_policy_id):
63
+ """Sets the organization_policy_id of this UpdateOrganizationPolicyRequest.
64
+
65
+ 组织策略ID
66
+
67
+ :param organization_policy_id: The organization_policy_id of this UpdateOrganizationPolicyRequest.
68
+ :type organization_policy_id: str
69
+ """
70
+ self._organization_policy_id = organization_policy_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this UpdateOrganizationPolicyRequest.
75
+
76
+ :return: The body of this UpdateOrganizationPolicyRequest.
77
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdateReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this UpdateOrganizationPolicyRequest.
84
+
85
+ :param body: The body of this UpdateOrganizationPolicyRequest.
86
+ :type body: :class:`huaweicloudsdkcbr.v1.OrganizationPolicyUpdateReq`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateOrganizationPolicyRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,112 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class UpdateOrganizationPolicyResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'policy': 'OrganizationPolicy'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'policy': 'policy'
26
+ }
27
+
28
+ def __init__(self, policy=None):
29
+ """UpdateOrganizationPolicyResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param policy:
34
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
35
+ """
36
+
37
+ super(UpdateOrganizationPolicyResponse, self).__init__()
38
+
39
+ self._policy = None
40
+ self.discriminator = None
41
+
42
+ if policy is not None:
43
+ self.policy = policy
44
+
45
+ @property
46
+ def policy(self):
47
+ """Gets the policy of this UpdateOrganizationPolicyResponse.
48
+
49
+ :return: The policy of this UpdateOrganizationPolicyResponse.
50
+ :rtype: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
51
+ """
52
+ return self._policy
53
+
54
+ @policy.setter
55
+ def policy(self, policy):
56
+ """Sets the policy of this UpdateOrganizationPolicyResponse.
57
+
58
+ :param policy: The policy of this UpdateOrganizationPolicyResponse.
59
+ :type policy: :class:`huaweicloudsdkcbr.v1.OrganizationPolicy`
60
+ """
61
+ self._policy = policy
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, UpdateOrganizationPolicyResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -30,7 +30,8 @@ class VaultCreate:
30
30
  'threshold': 'int',
31
31
  'smn_notify': 'bool',
32
32
  'backup_name_prefix': 'str',
33
- 'demand_billing': 'bool'
33
+ 'demand_billing': 'bool',
34
+ 'sys_lock_source_service': 'str'
34
35
  }
35
36
 
36
37
  attribute_map = {
@@ -47,10 +48,11 @@ class VaultCreate:
47
48
  'threshold': 'threshold',
48
49
  'smn_notify': 'smn_notify',
49
50
  'backup_name_prefix': 'backup_name_prefix',
50
- 'demand_billing': 'demand_billing'
51
+ 'demand_billing': 'demand_billing',
52
+ 'sys_lock_source_service': 'sys_lock_source_service'
51
53
  }
52
54
 
53
- def __init__(self, backup_policy_id=None, billing=None, description=None, name=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, auto_expand=None, threshold=None, smn_notify=None, backup_name_prefix=None, demand_billing=None):
55
+ def __init__(self, backup_policy_id=None, billing=None, description=None, name=None, resources=None, tags=None, enterprise_project_id=None, auto_bind=None, bind_rules=None, auto_expand=None, threshold=None, smn_notify=None, backup_name_prefix=None, demand_billing=None, sys_lock_source_service=None):
54
56
  """VaultCreate
55
57
 
56
58
  The model defined in huaweicloud sdk
@@ -83,6 +85,8 @@ class VaultCreate:
83
85
  :type backup_name_prefix: str
84
86
  :param demand_billing: 存储库使用是否允许超出容量,只有创建包周期存储库时才允许该值为 true
85
87
  :type demand_billing: bool
88
+ :param sys_lock_source_service: 用于标识SMB服务,您可以设置为SMB或者空
89
+ :type sys_lock_source_service: str
86
90
  """
87
91
 
88
92
 
@@ -101,6 +105,7 @@ class VaultCreate:
101
105
  self._smn_notify = None
102
106
  self._backup_name_prefix = None
103
107
  self._demand_billing = None
108
+ self._sys_lock_source_service = None
104
109
  self.discriminator = None
105
110
 
106
111
  if backup_policy_id is not None:
@@ -128,6 +133,8 @@ class VaultCreate:
128
133
  self.backup_name_prefix = backup_name_prefix
129
134
  if demand_billing is not None:
130
135
  self.demand_billing = demand_billing
136
+ if sys_lock_source_service is not None:
137
+ self.sys_lock_source_service = sys_lock_source_service
131
138
 
132
139
  @property
133
140
  def backup_policy_id(self):
@@ -429,6 +436,28 @@ class VaultCreate:
429
436
  """
430
437
  self._demand_billing = demand_billing
431
438
 
439
+ @property
440
+ def sys_lock_source_service(self):
441
+ """Gets the sys_lock_source_service of this VaultCreate.
442
+
443
+ 用于标识SMB服务,您可以设置为SMB或者空
444
+
445
+ :return: The sys_lock_source_service of this VaultCreate.
446
+ :rtype: str
447
+ """
448
+ return self._sys_lock_source_service
449
+
450
+ @sys_lock_source_service.setter
451
+ def sys_lock_source_service(self, sys_lock_source_service):
452
+ """Sets the sys_lock_source_service of this VaultCreate.
453
+
454
+ 用于标识SMB服务,您可以设置为SMB或者空
455
+
456
+ :param sys_lock_source_service: The sys_lock_source_service of this VaultCreate.
457
+ :type sys_lock_source_service: str
458
+ """
459
+ self._sys_lock_source_service = sys_lock_source_service
460
+
432
461
  def to_dict(self):
433
462
  """Returns the model properties as a dict"""
434
463
  result = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkcbr
3
- Version: 3.1.86
3
+ Version: 3.1.88
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.86
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.88
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).