huaweicloudsdkelb 3.1.131__py2.py3-none-any.whl → 3.1.133__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 (112) hide show
  1. huaweicloudsdkelb/v3/__init__.py +39 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +742 -22
  3. huaweicloudsdkelb/v3/elb_client.py +742 -22
  4. huaweicloudsdkelb/v3/model/__init__.py +39 -0
  5. huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
  6. huaweicloudsdkelb/v3/model/base_job.py +347 -0
  7. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  8. huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
  9. huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
  10. huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
  11. huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
  12. huaweicloudsdkelb/v3/model/batch_member.py +38 -13
  13. huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
  14. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
  15. huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
  16. huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
  17. huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
  18. huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
  19. huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
  20. huaweicloudsdkelb/v3/model/cors_config.py +260 -0
  21. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
  22. huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
  23. huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
  24. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
  25. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
  26. huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
  27. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
  28. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
  29. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
  30. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
  31. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
  32. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
  33. huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
  34. huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
  35. huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
  36. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
  37. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
  38. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
  39. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
  40. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
  41. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
  42. huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
  43. huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
  44. huaweicloudsdkelb/v3/model/feature_config.py +394 -0
  45. huaweicloudsdkelb/v3/model/flavor.py +9 -9
  46. huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
  47. huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
  48. huaweicloudsdkelb/v3/model/job_entities.py +144 -0
  49. huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
  50. huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
  51. huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
  52. huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
  53. huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
  54. huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
  55. huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
  56. huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
  57. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
  58. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
  59. huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
  60. huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
  61. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
  62. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
  63. huaweicloudsdkelb/v3/model/list_listeners_request.py +79 -21
  64. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
  65. huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
  66. huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
  67. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  68. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
  69. huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
  70. huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
  71. huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
  72. huaweicloudsdkelb/v3/model/listener.py +154 -39
  73. huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
  74. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  75. huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
  76. huaweicloudsdkelb/v3/model/main_job.py +376 -0
  77. huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
  78. huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
  79. huaweicloudsdkelb/v3/model/member.py +32 -7
  80. huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
  81. huaweicloudsdkelb/v3/model/member_info.py +34 -9
  82. huaweicloudsdkelb/v3/model/member_status.py +28 -3
  83. huaweicloudsdkelb/v3/model/pool.py +43 -18
  84. huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
  85. huaweicloudsdkelb/v3/model/quota.py +87 -3
  86. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  87. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
  88. huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
  89. huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
  90. huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
  91. huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
  92. huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
  93. huaweicloudsdkelb/v3/model/sub_job.py +376 -0
  94. huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
  95. huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
  96. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
  97. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
  98. huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
  99. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
  100. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
  101. huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
  102. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  103. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
  104. huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
  105. huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
  106. huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
  107. huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
  108. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/METADATA +2 -2
  109. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
  110. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
  111. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
  112. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.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 ShowIpGroupRelatedListenersRequest:
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
+ 'ipgroup_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'ipgroup_id': 'ipgroup_id'
25
+ }
26
+
27
+ def __init__(self, ipgroup_id=None):
28
+ """ShowIpGroupRelatedListenersRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param ipgroup_id: 参数解释:IP地址组ID。
33
+ :type ipgroup_id: str
34
+ """
35
+
36
+
37
+
38
+ self._ipgroup_id = None
39
+ self.discriminator = None
40
+
41
+ self.ipgroup_id = ipgroup_id
42
+
43
+ @property
44
+ def ipgroup_id(self):
45
+ """Gets the ipgroup_id of this ShowIpGroupRelatedListenersRequest.
46
+
47
+ 参数解释:IP地址组ID。
48
+
49
+ :return: The ipgroup_id of this ShowIpGroupRelatedListenersRequest.
50
+ :rtype: str
51
+ """
52
+ return self._ipgroup_id
53
+
54
+ @ipgroup_id.setter
55
+ def ipgroup_id(self, ipgroup_id):
56
+ """Sets the ipgroup_id of this ShowIpGroupRelatedListenersRequest.
57
+
58
+ 参数解释:IP地址组ID。
59
+
60
+ :param ipgroup_id: The ipgroup_id of this ShowIpGroupRelatedListenersRequest.
61
+ :type ipgroup_id: str
62
+ """
63
+ self._ipgroup_id = ipgroup_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, ShowIpGroupRelatedListenersRequest):
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,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 ShowIpGroupRelatedListenersResponse(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
+ 'listeners': 'list[ListenerRef]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'listeners': 'listeners'
26
+ }
27
+
28
+ def __init__(self, listeners=None):
29
+ """ShowIpGroupRelatedListenersResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param listeners: IP地址组关联的所有监听器ID列表
34
+ :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`]
35
+ """
36
+
37
+ super(ShowIpGroupRelatedListenersResponse, self).__init__()
38
+
39
+ self._listeners = None
40
+ self.discriminator = None
41
+
42
+ if listeners is not None:
43
+ self.listeners = listeners
44
+
45
+ @property
46
+ def listeners(self):
47
+ """Gets the listeners of this ShowIpGroupRelatedListenersResponse.
48
+
49
+ IP地址组关联的所有监听器ID列表
50
+
51
+ :return: The listeners of this ShowIpGroupRelatedListenersResponse.
52
+ :rtype: list[:class:`huaweicloudsdkelb.v3.ListenerRef`]
53
+ """
54
+ return self._listeners
55
+
56
+ @listeners.setter
57
+ def listeners(self, listeners):
58
+ """Sets the listeners of this ShowIpGroupRelatedListenersResponse.
59
+
60
+ IP地址组关联的所有监听器ID列表
61
+
62
+ :param listeners: The listeners of this ShowIpGroupRelatedListenersResponse.
63
+ :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`]
64
+ """
65
+ self._listeners = listeners
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, ShowIpGroupRelatedListenersResponse):
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
@@ -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 ShowJobRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'job_id': 'job_id'
25
+ }
26
+
27
+ def __init__(self, job_id=None):
28
+ """ShowJobRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param job_id: 任务ID
33
+ :type job_id: str
34
+ """
35
+
36
+
37
+
38
+ self._job_id = None
39
+ self.discriminator = None
40
+
41
+ self.job_id = job_id
42
+
43
+ @property
44
+ def job_id(self):
45
+ """Gets the job_id of this ShowJobRequest.
46
+
47
+ 任务ID
48
+
49
+ :return: The job_id of this ShowJobRequest.
50
+ :rtype: str
51
+ """
52
+ return self._job_id
53
+
54
+ @job_id.setter
55
+ def job_id(self, job_id):
56
+ """Sets the job_id of this ShowJobRequest.
57
+
58
+ 任务ID
59
+
60
+ :param job_id: The job_id of this ShowJobRequest.
61
+ :type job_id: str
62
+ """
63
+ self._job_id = job_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, ShowJobRequest):
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,141 @@
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 ShowJobResponse(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
+ 'job': 'MainJob',
22
+ 'request_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'job': 'job',
27
+ 'request_id': 'request_id'
28
+ }
29
+
30
+ def __init__(self, job=None, request_id=None):
31
+ """ShowJobResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param job:
36
+ :type job: :class:`huaweicloudsdkelb.v3.MainJob`
37
+ :param request_id: 请求ID。 注:自动生成 。
38
+ :type request_id: str
39
+ """
40
+
41
+ super(ShowJobResponse, self).__init__()
42
+
43
+ self._job = None
44
+ self._request_id = None
45
+ self.discriminator = None
46
+
47
+ if job is not None:
48
+ self.job = job
49
+ if request_id is not None:
50
+ self.request_id = request_id
51
+
52
+ @property
53
+ def job(self):
54
+ """Gets the job of this ShowJobResponse.
55
+
56
+ :return: The job of this ShowJobResponse.
57
+ :rtype: :class:`huaweicloudsdkelb.v3.MainJob`
58
+ """
59
+ return self._job
60
+
61
+ @job.setter
62
+ def job(self, job):
63
+ """Sets the job of this ShowJobResponse.
64
+
65
+ :param job: The job of this ShowJobResponse.
66
+ :type job: :class:`huaweicloudsdkelb.v3.MainJob`
67
+ """
68
+ self._job = job
69
+
70
+ @property
71
+ def request_id(self):
72
+ """Gets the request_id of this ShowJobResponse.
73
+
74
+ 请求ID。 注:自动生成 。
75
+
76
+ :return: The request_id of this ShowJobResponse.
77
+ :rtype: str
78
+ """
79
+ return self._request_id
80
+
81
+ @request_id.setter
82
+ def request_id(self, request_id):
83
+ """Sets the request_id of this ShowJobResponse.
84
+
85
+ 请求ID。 注:自动生成 。
86
+
87
+ :param request_id: The request_id of this ShowJobResponse.
88
+ :type request_id: str
89
+ """
90
+ self._request_id = request_id
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, ShowJobResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other