huaweicloudsdkdrs 3.1.76__py2.py3-none-any.whl → 3.1.78__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 (54) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +1 -0
  2. huaweicloudsdkdrs/v3/model/__init__.py +1 -0
  3. huaweicloudsdkdrs/v3/model/customized_dns.py +170 -0
  4. huaweicloudsdkdrs/v3/model/test_end_point.py +28 -3
  5. huaweicloudsdkdrs/v3/region/drs_region.py +4 -8
  6. huaweicloudsdkdrs/v5/__init__.py +30 -0
  7. huaweicloudsdkdrs/v5/drs_async_client.py +736 -94
  8. huaweicloudsdkdrs/v5/drs_client.py +736 -94
  9. huaweicloudsdkdrs/v5/model/__init__.py +30 -0
  10. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  11. huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
  12. huaweicloudsdkdrs/v5/model/base_endpoint_config.py +32 -3
  13. huaweicloudsdkdrs/v5/model/batch_add_tag_req.py +114 -0
  14. huaweicloudsdkdrs/v5/model/batch_create_tags_request.py +196 -0
  15. huaweicloudsdkdrs/v5/model/batch_create_tags_response.py +116 -0
  16. huaweicloudsdkdrs/v5/model/batch_delete_tag_req.py +114 -0
  17. huaweicloudsdkdrs/v5/model/batch_delete_tags_request.py +196 -0
  18. huaweicloudsdkdrs/v5/model/batch_delete_tags_response.py +116 -0
  19. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  20. huaweicloudsdkdrs/v5/model/count_instance_by_tags_request.py +168 -0
  21. huaweicloudsdkdrs/v5/model/count_instance_by_tags_response.py +116 -0
  22. huaweicloudsdkdrs/v5/model/customized_dns.py +170 -0
  23. huaweicloudsdkdrs/v5/model/job_base_info.py +3 -3
  24. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +31 -6
  25. huaweicloudsdkdrs/v5/model/job_link_resp.py +3 -3
  26. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  27. huaweicloudsdkdrs/v5/model/list_instance_by_tags_request.py +226 -0
  28. huaweicloudsdkdrs/v5/model/list_instance_by_tags_response.py +145 -0
  29. huaweicloudsdkdrs/v5/model/list_instance_tags_request.py +171 -0
  30. huaweicloudsdkdrs/v5/model/list_instance_tags_response.py +116 -0
  31. huaweicloudsdkdrs/v5/model/list_job_history_parameter.py +283 -0
  32. huaweicloudsdkdrs/v5/model/list_job_history_parameters_request.py +288 -0
  33. huaweicloudsdkdrs/v5/model/list_job_history_parameters_response.py +145 -0
  34. huaweicloudsdkdrs/v5/model/list_job_parameters_request.py +230 -0
  35. huaweicloudsdkdrs/v5/model/list_job_parameters_response.py +145 -0
  36. huaweicloudsdkdrs/v5/model/list_jobs_request.py +3 -3
  37. huaweicloudsdkdrs/v5/model/list_tags_request.py +143 -0
  38. huaweicloudsdkdrs/v5/model/list_tags_response.py +116 -0
  39. huaweicloudsdkdrs/v5/model/modify_parameter_req.py +114 -0
  40. huaweicloudsdkdrs/v5/model/parameter_config.py +312 -0
  41. huaweicloudsdkdrs/v5/model/parameter_info.py +142 -0
  42. huaweicloudsdkdrs/v5/model/query_instance_by_tag_req.py +173 -0
  43. huaweicloudsdkdrs/v5/model/resource_instance.py +202 -0
  44. huaweicloudsdkdrs/v5/model/resource_tag_info.py +144 -0
  45. huaweicloudsdkdrs/v5/model/tag.py +142 -0
  46. huaweicloudsdkdrs/v5/model/tag_match.py +142 -0
  47. huaweicloudsdkdrs/v5/model/update_job_configurations_request.py +168 -0
  48. huaweicloudsdkdrs/v5/model/update_job_configurations_response.py +116 -0
  49. huaweicloudsdkdrs/v5/region/drs_region.py +4 -8
  50. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/RECORD +54 -23
  52. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.76.dist-info → huaweicloudsdkdrs-3.1.78.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TagMatch:
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
+ 'key': 'str',
21
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'key': 'key',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, key=None, value=None):
30
+ """TagMatch
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param key: 键。
35
+ :type key: str
36
+ :param value: 值。
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._key = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ self.key = key
47
+ self.value = value
48
+
49
+ @property
50
+ def key(self):
51
+ """Gets the key of this TagMatch.
52
+
53
+ 键。
54
+
55
+ :return: The key of this TagMatch.
56
+ :rtype: str
57
+ """
58
+ return self._key
59
+
60
+ @key.setter
61
+ def key(self, key):
62
+ """Sets the key of this TagMatch.
63
+
64
+ 键。
65
+
66
+ :param key: The key of this TagMatch.
67
+ :type key: str
68
+ """
69
+ self._key = key
70
+
71
+ @property
72
+ def value(self):
73
+ """Gets the value of this TagMatch.
74
+
75
+ 值。
76
+
77
+ :return: The value of this TagMatch.
78
+ :rtype: str
79
+ """
80
+ return self._value
81
+
82
+ @value.setter
83
+ def value(self, value):
84
+ """Sets the value of this TagMatch.
85
+
86
+ 值。
87
+
88
+ :param value: The value of this TagMatch.
89
+ :type value: str
90
+ """
91
+ self._value = value
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, TagMatch):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateJobConfigurationsRequest:
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
+ 'job_id': 'str',
21
+ 'x_language': 'str',
22
+ 'body': 'ModifyParameterReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'job_id': 'job_id',
27
+ 'x_language': 'X-Language',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, job_id=None, x_language=None, body=None):
32
+ """UpdateJobConfigurationsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param job_id: 任务ID。
37
+ :type job_id: str
38
+ :param x_language: 请求语言类型。
39
+ :type x_language: str
40
+ :param body: Body of the UpdateJobConfigurationsRequest
41
+ :type body: :class:`huaweicloudsdkdrs.v5.ModifyParameterReq`
42
+ """
43
+
44
+
45
+
46
+ self._job_id = None
47
+ self._x_language = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.job_id = job_id
52
+ if x_language is not None:
53
+ self.x_language = x_language
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def job_id(self):
59
+ """Gets the job_id of this UpdateJobConfigurationsRequest.
60
+
61
+ 任务ID。
62
+
63
+ :return: The job_id of this UpdateJobConfigurationsRequest.
64
+ :rtype: str
65
+ """
66
+ return self._job_id
67
+
68
+ @job_id.setter
69
+ def job_id(self, job_id):
70
+ """Sets the job_id of this UpdateJobConfigurationsRequest.
71
+
72
+ 任务ID。
73
+
74
+ :param job_id: The job_id of this UpdateJobConfigurationsRequest.
75
+ :type job_id: str
76
+ """
77
+ self._job_id = job_id
78
+
79
+ @property
80
+ def x_language(self):
81
+ """Gets the x_language of this UpdateJobConfigurationsRequest.
82
+
83
+ 请求语言类型。
84
+
85
+ :return: The x_language of this UpdateJobConfigurationsRequest.
86
+ :rtype: str
87
+ """
88
+ return self._x_language
89
+
90
+ @x_language.setter
91
+ def x_language(self, x_language):
92
+ """Sets the x_language of this UpdateJobConfigurationsRequest.
93
+
94
+ 请求语言类型。
95
+
96
+ :param x_language: The x_language of this UpdateJobConfigurationsRequest.
97
+ :type x_language: str
98
+ """
99
+ self._x_language = x_language
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this UpdateJobConfigurationsRequest.
104
+
105
+ :return: The body of this UpdateJobConfigurationsRequest.
106
+ :rtype: :class:`huaweicloudsdkdrs.v5.ModifyParameterReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this UpdateJobConfigurationsRequest.
113
+
114
+ :param body: The body of this UpdateJobConfigurationsRequest.
115
+ :type body: :class:`huaweicloudsdkdrs.v5.ModifyParameterReq`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, UpdateJobConfigurationsRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,116 @@
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 UpdateJobConfigurationsResponse(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
+ 'body': 'object'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """UpdateJobConfigurationsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 空响应体。
34
+ :type body: object
35
+ """
36
+
37
+ super(UpdateJobConfigurationsResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this UpdateJobConfigurationsResponse.
48
+
49
+ 空响应体。
50
+
51
+ :return: The body of this UpdateJobConfigurationsResponse.
52
+ :rtype: object
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this UpdateJobConfigurationsResponse.
59
+
60
+ 空响应体。
61
+
62
+ :param body: The body of this UpdateJobConfigurationsResponse.
63
+ :type body: object
64
+ """
65
+ self._body = body
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, UpdateJobConfigurationsResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -1,8 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import types
4
- import six
5
-
6
3
  from huaweicloudsdkcore.region.region import Region
7
4
  from huaweicloudsdkcore.region.provider import RegionProviderChain
8
5
 
@@ -79,9 +76,9 @@ class DrsRegion:
79
76
  @classmethod
80
77
  def value_of(cls, region_id, static_fields=None):
81
78
  if not region_id:
82
- raise KeyError("Unexpected empty parameter: region_id.")
79
+ raise KeyError("Unexpected empty parameter: region_id")
83
80
 
84
- fields = static_fields if static_fields else cls.static_fields
81
+ fields = static_fields or cls.static_fields
85
82
 
86
83
  region = cls._PROVIDER.get_region(region_id)
87
84
  if region:
@@ -90,6 +87,5 @@ class DrsRegion:
90
87
  if region_id in fields:
91
88
  return fields.get(region_id)
92
89
 
93
- raise KeyError("Unexpected region_id: " + region_id)
94
-
95
-
90
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Drs': [%s]" % (
91
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkdrs
3
- Version: 3.1.76
3
+ Version: 3.1.78
4
4
  Summary: DRS
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.76
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.78
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).