huaweicloudsdkcae 3.1.71__py2.py3-none-any.whl → 3.1.73__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.

Potentially problematic release.


This version of huaweicloudsdkcae might be problematic. Click here for more details.

@@ -0,0 +1,162 @@
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 ShowMonitorSystemResponse(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
+ 'api_version': 'ApiVersionObj',
22
+ 'kind': 'MonitorSystemKindObj',
23
+ 'spec': 'ShowMonitorSystemResponseBodySpec'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'api_version': 'api_version',
28
+ 'kind': 'kind',
29
+ 'spec': 'spec'
30
+ }
31
+
32
+ def __init__(self, api_version=None, kind=None, spec=None):
33
+ """ShowMonitorSystemResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param api_version:
38
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
39
+ :param kind:
40
+ :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj`
41
+ :param spec:
42
+ :type spec: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponseBodySpec`
43
+ """
44
+
45
+ super(ShowMonitorSystemResponse, self).__init__()
46
+
47
+ self._api_version = None
48
+ self._kind = None
49
+ self._spec = None
50
+ self.discriminator = None
51
+
52
+ if api_version is not None:
53
+ self.api_version = api_version
54
+ if kind is not None:
55
+ self.kind = kind
56
+ if spec is not None:
57
+ self.spec = spec
58
+
59
+ @property
60
+ def api_version(self):
61
+ """Gets the api_version of this ShowMonitorSystemResponse.
62
+
63
+ :return: The api_version of this ShowMonitorSystemResponse.
64
+ :rtype: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
65
+ """
66
+ return self._api_version
67
+
68
+ @api_version.setter
69
+ def api_version(self, api_version):
70
+ """Sets the api_version of this ShowMonitorSystemResponse.
71
+
72
+ :param api_version: The api_version of this ShowMonitorSystemResponse.
73
+ :type api_version: :class:`huaweicloudsdkcae.v1.ApiVersionObj`
74
+ """
75
+ self._api_version = api_version
76
+
77
+ @property
78
+ def kind(self):
79
+ """Gets the kind of this ShowMonitorSystemResponse.
80
+
81
+ :return: The kind of this ShowMonitorSystemResponse.
82
+ :rtype: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj`
83
+ """
84
+ return self._kind
85
+
86
+ @kind.setter
87
+ def kind(self, kind):
88
+ """Sets the kind of this ShowMonitorSystemResponse.
89
+
90
+ :param kind: The kind of this ShowMonitorSystemResponse.
91
+ :type kind: :class:`huaweicloudsdkcae.v1.MonitorSystemKindObj`
92
+ """
93
+ self._kind = kind
94
+
95
+ @property
96
+ def spec(self):
97
+ """Gets the spec of this ShowMonitorSystemResponse.
98
+
99
+ :return: The spec of this ShowMonitorSystemResponse.
100
+ :rtype: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponseBodySpec`
101
+ """
102
+ return self._spec
103
+
104
+ @spec.setter
105
+ def spec(self, spec):
106
+ """Sets the spec of this ShowMonitorSystemResponse.
107
+
108
+ :param spec: The spec of this ShowMonitorSystemResponse.
109
+ :type spec: :class:`huaweicloudsdkcae.v1.ShowMonitorSystemResponseBodySpec`
110
+ """
111
+ self._spec = spec
112
+
113
+ def to_dict(self):
114
+ """Returns the model properties as a dict"""
115
+ result = {}
116
+
117
+ for attr, _ in six.iteritems(self.openapi_types):
118
+ value = getattr(self, attr)
119
+ if isinstance(value, list):
120
+ result[attr] = list(map(
121
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
122
+ value
123
+ ))
124
+ elif hasattr(value, "to_dict"):
125
+ result[attr] = value.to_dict()
126
+ elif isinstance(value, dict):
127
+ result[attr] = dict(map(
128
+ lambda item: (item[0], item[1].to_dict())
129
+ if hasattr(item[1], "to_dict") else item,
130
+ value.items()
131
+ ))
132
+ else:
133
+ if attr in self.sensitive_list:
134
+ result[attr] = "****"
135
+ else:
136
+ result[attr] = value
137
+
138
+ return result
139
+
140
+ def to_str(self):
141
+ """Returns the string representation of the model"""
142
+ import simplejson as json
143
+ if six.PY2:
144
+ import sys
145
+ reload(sys)
146
+ sys.setdefaultencoding("utf-8")
147
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
148
+
149
+ def __repr__(self):
150
+ """For `print`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, ShowMonitorSystemResponse):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other
@@ -0,0 +1,430 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowMonitorSystemResponseBodySpec:
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
+ 'id': 'str',
21
+ 'type': 'str',
22
+ 'instrumentation': 'str',
23
+ 'access_key': 'str',
24
+ 'access_value': 'str',
25
+ 'access_token': 'str',
26
+ 'master_address': 'str',
27
+ 'apm_application': 'str',
28
+ 'version': 'str',
29
+ 'image_pull_policy': 'str',
30
+ 'created_at': 'str',
31
+ 'updated_at': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'id': 'id',
36
+ 'type': 'type',
37
+ 'instrumentation': 'instrumentation',
38
+ 'access_key': 'access_key',
39
+ 'access_value': 'access_value',
40
+ 'access_token': 'access_token',
41
+ 'master_address': 'master_address',
42
+ 'apm_application': 'apm_application',
43
+ 'version': 'version',
44
+ 'image_pull_policy': 'image_pull_policy',
45
+ 'created_at': 'created_at',
46
+ 'updated_at': 'updated_at'
47
+ }
48
+
49
+ def __init__(self, id=None, type=None, instrumentation=None, access_key=None, access_value=None, access_token=None, master_address=None, apm_application=None, version=None, image_pull_policy=None, created_at=None, updated_at=None):
50
+ """ShowMonitorSystemResponseBodySpec
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param id:
55
+ :type id: str
56
+ :param type: 采集方式,包括apm2和opentelemetry。
57
+ :type type: str
58
+ :param instrumentation: 探针注入方式,包括automatic和manual。
59
+ :type instrumentation: str
60
+ :param access_key: apm2 access_key。
61
+ :type access_key: str
62
+ :param access_value: apm2 access_value。
63
+ :type access_value: str
64
+ :param access_token: apm opentelemetry接入token。
65
+ :type access_token: str
66
+ :param master_address: 探针接入点。
67
+ :type master_address: str
68
+ :param apm_application: apm应用名。
69
+ :type apm_application: str
70
+ :param version: apm-agent/opentelemetry-agent探针版本。
71
+ :type version: str
72
+ :param image_pull_policy: 探针镜像更新策略。
73
+ :type image_pull_policy: str
74
+ :param created_at: 创建时间。
75
+ :type created_at: str
76
+ :param updated_at: 更新时间。
77
+ :type updated_at: str
78
+ """
79
+
80
+
81
+
82
+ self._id = None
83
+ self._type = None
84
+ self._instrumentation = None
85
+ self._access_key = None
86
+ self._access_value = None
87
+ self._access_token = None
88
+ self._master_address = None
89
+ self._apm_application = None
90
+ self._version = None
91
+ self._image_pull_policy = None
92
+ self._created_at = None
93
+ self._updated_at = None
94
+ self.discriminator = None
95
+
96
+ if id is not None:
97
+ self.id = id
98
+ if type is not None:
99
+ self.type = type
100
+ if instrumentation is not None:
101
+ self.instrumentation = instrumentation
102
+ if access_key is not None:
103
+ self.access_key = access_key
104
+ if access_value is not None:
105
+ self.access_value = access_value
106
+ if access_token is not None:
107
+ self.access_token = access_token
108
+ if master_address is not None:
109
+ self.master_address = master_address
110
+ if apm_application is not None:
111
+ self.apm_application = apm_application
112
+ if version is not None:
113
+ self.version = version
114
+ if image_pull_policy is not None:
115
+ self.image_pull_policy = image_pull_policy
116
+ if created_at is not None:
117
+ self.created_at = created_at
118
+ if updated_at is not None:
119
+ self.updated_at = updated_at
120
+
121
+ @property
122
+ def id(self):
123
+ """Gets the id of this ShowMonitorSystemResponseBodySpec.
124
+
125
+ :return: The id of this ShowMonitorSystemResponseBodySpec.
126
+ :rtype: str
127
+ """
128
+ return self._id
129
+
130
+ @id.setter
131
+ def id(self, id):
132
+ """Sets the id of this ShowMonitorSystemResponseBodySpec.
133
+
134
+ :param id: The id of this ShowMonitorSystemResponseBodySpec.
135
+ :type id: str
136
+ """
137
+ self._id = id
138
+
139
+ @property
140
+ def type(self):
141
+ """Gets the type of this ShowMonitorSystemResponseBodySpec.
142
+
143
+ 采集方式,包括apm2和opentelemetry。
144
+
145
+ :return: The type of this ShowMonitorSystemResponseBodySpec.
146
+ :rtype: str
147
+ """
148
+ return self._type
149
+
150
+ @type.setter
151
+ def type(self, type):
152
+ """Sets the type of this ShowMonitorSystemResponseBodySpec.
153
+
154
+ 采集方式,包括apm2和opentelemetry。
155
+
156
+ :param type: The type of this ShowMonitorSystemResponseBodySpec.
157
+ :type type: str
158
+ """
159
+ self._type = type
160
+
161
+ @property
162
+ def instrumentation(self):
163
+ """Gets the instrumentation of this ShowMonitorSystemResponseBodySpec.
164
+
165
+ 探针注入方式,包括automatic和manual。
166
+
167
+ :return: The instrumentation of this ShowMonitorSystemResponseBodySpec.
168
+ :rtype: str
169
+ """
170
+ return self._instrumentation
171
+
172
+ @instrumentation.setter
173
+ def instrumentation(self, instrumentation):
174
+ """Sets the instrumentation of this ShowMonitorSystemResponseBodySpec.
175
+
176
+ 探针注入方式,包括automatic和manual。
177
+
178
+ :param instrumentation: The instrumentation of this ShowMonitorSystemResponseBodySpec.
179
+ :type instrumentation: str
180
+ """
181
+ self._instrumentation = instrumentation
182
+
183
+ @property
184
+ def access_key(self):
185
+ """Gets the access_key of this ShowMonitorSystemResponseBodySpec.
186
+
187
+ apm2 access_key。
188
+
189
+ :return: The access_key of this ShowMonitorSystemResponseBodySpec.
190
+ :rtype: str
191
+ """
192
+ return self._access_key
193
+
194
+ @access_key.setter
195
+ def access_key(self, access_key):
196
+ """Sets the access_key of this ShowMonitorSystemResponseBodySpec.
197
+
198
+ apm2 access_key。
199
+
200
+ :param access_key: The access_key of this ShowMonitorSystemResponseBodySpec.
201
+ :type access_key: str
202
+ """
203
+ self._access_key = access_key
204
+
205
+ @property
206
+ def access_value(self):
207
+ """Gets the access_value of this ShowMonitorSystemResponseBodySpec.
208
+
209
+ apm2 access_value。
210
+
211
+ :return: The access_value of this ShowMonitorSystemResponseBodySpec.
212
+ :rtype: str
213
+ """
214
+ return self._access_value
215
+
216
+ @access_value.setter
217
+ def access_value(self, access_value):
218
+ """Sets the access_value of this ShowMonitorSystemResponseBodySpec.
219
+
220
+ apm2 access_value。
221
+
222
+ :param access_value: The access_value of this ShowMonitorSystemResponseBodySpec.
223
+ :type access_value: str
224
+ """
225
+ self._access_value = access_value
226
+
227
+ @property
228
+ def access_token(self):
229
+ """Gets the access_token of this ShowMonitorSystemResponseBodySpec.
230
+
231
+ apm opentelemetry接入token。
232
+
233
+ :return: The access_token of this ShowMonitorSystemResponseBodySpec.
234
+ :rtype: str
235
+ """
236
+ return self._access_token
237
+
238
+ @access_token.setter
239
+ def access_token(self, access_token):
240
+ """Sets the access_token of this ShowMonitorSystemResponseBodySpec.
241
+
242
+ apm opentelemetry接入token。
243
+
244
+ :param access_token: The access_token of this ShowMonitorSystemResponseBodySpec.
245
+ :type access_token: str
246
+ """
247
+ self._access_token = access_token
248
+
249
+ @property
250
+ def master_address(self):
251
+ """Gets the master_address of this ShowMonitorSystemResponseBodySpec.
252
+
253
+ 探针接入点。
254
+
255
+ :return: The master_address of this ShowMonitorSystemResponseBodySpec.
256
+ :rtype: str
257
+ """
258
+ return self._master_address
259
+
260
+ @master_address.setter
261
+ def master_address(self, master_address):
262
+ """Sets the master_address of this ShowMonitorSystemResponseBodySpec.
263
+
264
+ 探针接入点。
265
+
266
+ :param master_address: The master_address of this ShowMonitorSystemResponseBodySpec.
267
+ :type master_address: str
268
+ """
269
+ self._master_address = master_address
270
+
271
+ @property
272
+ def apm_application(self):
273
+ """Gets the apm_application of this ShowMonitorSystemResponseBodySpec.
274
+
275
+ apm应用名。
276
+
277
+ :return: The apm_application of this ShowMonitorSystemResponseBodySpec.
278
+ :rtype: str
279
+ """
280
+ return self._apm_application
281
+
282
+ @apm_application.setter
283
+ def apm_application(self, apm_application):
284
+ """Sets the apm_application of this ShowMonitorSystemResponseBodySpec.
285
+
286
+ apm应用名。
287
+
288
+ :param apm_application: The apm_application of this ShowMonitorSystemResponseBodySpec.
289
+ :type apm_application: str
290
+ """
291
+ self._apm_application = apm_application
292
+
293
+ @property
294
+ def version(self):
295
+ """Gets the version of this ShowMonitorSystemResponseBodySpec.
296
+
297
+ apm-agent/opentelemetry-agent探针版本。
298
+
299
+ :return: The version of this ShowMonitorSystemResponseBodySpec.
300
+ :rtype: str
301
+ """
302
+ return self._version
303
+
304
+ @version.setter
305
+ def version(self, version):
306
+ """Sets the version of this ShowMonitorSystemResponseBodySpec.
307
+
308
+ apm-agent/opentelemetry-agent探针版本。
309
+
310
+ :param version: The version of this ShowMonitorSystemResponseBodySpec.
311
+ :type version: str
312
+ """
313
+ self._version = version
314
+
315
+ @property
316
+ def image_pull_policy(self):
317
+ """Gets the image_pull_policy of this ShowMonitorSystemResponseBodySpec.
318
+
319
+ 探针镜像更新策略。
320
+
321
+ :return: The image_pull_policy of this ShowMonitorSystemResponseBodySpec.
322
+ :rtype: str
323
+ """
324
+ return self._image_pull_policy
325
+
326
+ @image_pull_policy.setter
327
+ def image_pull_policy(self, image_pull_policy):
328
+ """Sets the image_pull_policy of this ShowMonitorSystemResponseBodySpec.
329
+
330
+ 探针镜像更新策略。
331
+
332
+ :param image_pull_policy: The image_pull_policy of this ShowMonitorSystemResponseBodySpec.
333
+ :type image_pull_policy: str
334
+ """
335
+ self._image_pull_policy = image_pull_policy
336
+
337
+ @property
338
+ def created_at(self):
339
+ """Gets the created_at of this ShowMonitorSystemResponseBodySpec.
340
+
341
+ 创建时间。
342
+
343
+ :return: The created_at of this ShowMonitorSystemResponseBodySpec.
344
+ :rtype: str
345
+ """
346
+ return self._created_at
347
+
348
+ @created_at.setter
349
+ def created_at(self, created_at):
350
+ """Sets the created_at of this ShowMonitorSystemResponseBodySpec.
351
+
352
+ 创建时间。
353
+
354
+ :param created_at: The created_at of this ShowMonitorSystemResponseBodySpec.
355
+ :type created_at: str
356
+ """
357
+ self._created_at = created_at
358
+
359
+ @property
360
+ def updated_at(self):
361
+ """Gets the updated_at of this ShowMonitorSystemResponseBodySpec.
362
+
363
+ 更新时间。
364
+
365
+ :return: The updated_at of this ShowMonitorSystemResponseBodySpec.
366
+ :rtype: str
367
+ """
368
+ return self._updated_at
369
+
370
+ @updated_at.setter
371
+ def updated_at(self, updated_at):
372
+ """Sets the updated_at of this ShowMonitorSystemResponseBodySpec.
373
+
374
+ 更新时间。
375
+
376
+ :param updated_at: The updated_at of this ShowMonitorSystemResponseBodySpec.
377
+ :type updated_at: str
378
+ """
379
+ self._updated_at = updated_at
380
+
381
+ def to_dict(self):
382
+ """Returns the model properties as a dict"""
383
+ result = {}
384
+
385
+ for attr, _ in six.iteritems(self.openapi_types):
386
+ value = getattr(self, attr)
387
+ if isinstance(value, list):
388
+ result[attr] = list(map(
389
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
390
+ value
391
+ ))
392
+ elif hasattr(value, "to_dict"):
393
+ result[attr] = value.to_dict()
394
+ elif isinstance(value, dict):
395
+ result[attr] = dict(map(
396
+ lambda item: (item[0], item[1].to_dict())
397
+ if hasattr(item[1], "to_dict") else item,
398
+ value.items()
399
+ ))
400
+ else:
401
+ if attr in self.sensitive_list:
402
+ result[attr] = "****"
403
+ else:
404
+ result[attr] = value
405
+
406
+ return result
407
+
408
+ def to_str(self):
409
+ """Returns the string representation of the model"""
410
+ import simplejson as json
411
+ if six.PY2:
412
+ import sys
413
+ reload(sys)
414
+ sys.setdefaultencoding("utf-8")
415
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
416
+
417
+ def __repr__(self):
418
+ """For `print`"""
419
+ return self.to_str()
420
+
421
+ def __eq__(self, other):
422
+ """Returns true if both objects are equal"""
423
+ if not isinstance(other, ShowMonitorSystemResponseBodySpec):
424
+ return False
425
+
426
+ return self.__dict__ == other.__dict__
427
+
428
+ def __ne__(self, other):
429
+ """Returns true if both objects are not equal"""
430
+ return not self == other