byteplus-python-sdk-v2 3.0.62__py2.py3-none-any.whl → 3.0.63__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.
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/RECORD +58 -30
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/WHEEL +1 -1
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkecopartner/__init__.py +10 -0
- byteplussdkecopartner/api/eco_partner_api.py +291 -0
- byteplussdkecopartner/models/__init__.py +10 -0
- byteplussdkecopartner/models/download_bill_request.py +129 -0
- byteplussdkredis/models/configure_node_for_create_enterprise_db_instance_input.py → byteplussdkecopartner/models/download_bill_response.py +23 -23
- byteplussdkecopartner/models/file_for_download_bill_output.py +175 -0
- byteplussdkecopartner/models/initiate_bill_generation_request.py +190 -0
- byteplussdkecopartner/models/initiate_bill_generation_response.py +253 -0
- byteplussdkecopartner/models/item_for_list_billing_items_output.py +461 -0
- byteplussdkecopartner/models/list_billing_items_request.py +240 -0
- byteplussdkecopartner/models/list_billing_items_response.py +253 -0
- byteplussdkecopartner/models/task_for_download_bill_output.py +409 -0
- byteplussdkecopartner/models/total_for_list_billing_items_output.py +305 -0
- byteplussdkredis/__init__.py +6 -4
- byteplussdkredis/api/redis_api.py +97 -97
- byteplussdkredis/models/__init__.py +6 -4
- byteplussdkredis/models/describe_planned_event_impact_detail_request.py +124 -0
- byteplussdkredis/models/describe_planned_event_impact_detail_response.py +123 -0
- byteplussdkredis/models/impact_for_describe_planned_event_impact_detail_output.py +149 -0
- byteplussdkredis/models/impact_item_for_describe_planned_event_impact_detail_output.py +201 -0
- byteplussdkredis/models/impact_summary_for_describe_planned_events_output.py +201 -0
- byteplussdkredis/models/involved_node_for_describe_planned_event_impact_detail_output.py +201 -0
- byteplussdkredis/models/planned_event_for_describe_planned_events_output.py +79 -1
- byteplussdkresourcecenter/__init__.py +16 -0
- byteplussdkresourcecenter/api/resourcecenter_api.py +485 -0
- byteplussdkresourcecenter/models/__init__.py +16 -0
- byteplussdkresourcecenter/models/create_query_request.py +11 -3
- byteplussdkresourcecenter/models/execute_multi_account_sql_query_request.py +211 -0
- byteplussdkresourcecenter/models/execute_multi_account_sql_query_response.py +149 -0
- byteplussdkresourcecenter/models/execute_sql_query_request.py +9 -0
- byteplussdkresourcecenter/models/execute_sql_query_response.py +29 -3
- byteplussdkresourcecenter/models/get_multi_account_resource_center_status_response.py +15 -15
- byteplussdkresourcecenter/models/get_multi_account_resource_description_request.py +204 -0
- byteplussdkresourcecenter/models/get_multi_account_resource_description_response.py +461 -0
- byteplussdkresourcecenter/models/get_resource_description_request.py +177 -0
- byteplussdkresourcecenter/models/get_resource_description_response.py +461 -0
- byteplussdkresourcecenter/models/list_multi_account_resource_relationships_request.py +262 -0
- byteplussdkresourcecenter/models/list_multi_account_resource_relationships_response.py +149 -0
- byteplussdkresourcecenter/models/list_resource_relationships_request.py +235 -0
- byteplussdkresourcecenter/models/list_resource_relationships_response.py +149 -0
- byteplussdkresourcecenter/models/related_type_name_for_list_resource_types_output.py +149 -0
- byteplussdkresourcecenter/models/resource_relationship_for_list_multi_account_resource_relationships_output.py +227 -0
- byteplussdkresourcecenter/models/resource_relationship_for_list_resource_relationships_output.py +227 -0
- byteplussdkresourcecenter/models/resource_type_for_list_resource_types_output.py +55 -3
- byteplussdkresourcecenter/models/scope_for_execute_multi_account_sql_query_input.py +175 -0
- byteplussdkresourcecenter/models/search_multi_account_resources_request.py +20 -0
- byteplussdkresourcecenter/models/search_resources_request.py +6 -0
- byteplussdkredis/models/create_enterprise_db_instance_response.py → byteplussdkresourcecenter/models/tag_for_get_multi_account_resource_description_output.py +35 -35
- byteplussdkredis/models/tag_for_create_enterprise_db_instance_input.py → byteplussdkresourcecenter/models/tag_for_get_resource_description_output.py +14 -14
- byteplussdkresourcecenter/models/update_query_request.py +9 -0
- byteplussdkredis/models/create_enterprise_db_instance_request.py +0 -625
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/NOTICE.md +0 -0
- {byteplus_python_sdk_v2-3.0.62.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
redis
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ImpactForDescribePlannedEventImpactDetailOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'impact_item': 'ImpactItemForDescribePlannedEventImpactDetailOutput',
|
|
37
|
+
'not_generated': 'bool'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'impact_item': 'ImpactItem',
|
|
42
|
+
'not_generated': 'NotGenerated'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, impact_item=None, not_generated=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""ImpactForDescribePlannedEventImpactDetailOutput - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._impact_item = None
|
|
52
|
+
self._not_generated = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if impact_item is not None:
|
|
56
|
+
self.impact_item = impact_item
|
|
57
|
+
if not_generated is not None:
|
|
58
|
+
self.not_generated = not_generated
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def impact_item(self):
|
|
62
|
+
"""Gets the impact_item of this ImpactForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The impact_item of this ImpactForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
66
|
+
:rtype: ImpactItemForDescribePlannedEventImpactDetailOutput
|
|
67
|
+
"""
|
|
68
|
+
return self._impact_item
|
|
69
|
+
|
|
70
|
+
@impact_item.setter
|
|
71
|
+
def impact_item(self, impact_item):
|
|
72
|
+
"""Sets the impact_item of this ImpactForDescribePlannedEventImpactDetailOutput.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param impact_item: The impact_item of this ImpactForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
76
|
+
:type: ImpactItemForDescribePlannedEventImpactDetailOutput
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._impact_item = impact_item
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def not_generated(self):
|
|
83
|
+
"""Gets the not_generated of this ImpactForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The not_generated of this ImpactForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
87
|
+
:rtype: bool
|
|
88
|
+
"""
|
|
89
|
+
return self._not_generated
|
|
90
|
+
|
|
91
|
+
@not_generated.setter
|
|
92
|
+
def not_generated(self, not_generated):
|
|
93
|
+
"""Sets the not_generated of this ImpactForDescribePlannedEventImpactDetailOutput.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param not_generated: The not_generated of this ImpactForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
97
|
+
:type: bool
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._not_generated = not_generated
|
|
101
|
+
|
|
102
|
+
def to_dict(self):
|
|
103
|
+
"""Returns the model properties as a dict"""
|
|
104
|
+
result = {}
|
|
105
|
+
|
|
106
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
107
|
+
value = getattr(self, attr)
|
|
108
|
+
if isinstance(value, list):
|
|
109
|
+
result[attr] = list(map(
|
|
110
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
111
|
+
value
|
|
112
|
+
))
|
|
113
|
+
elif hasattr(value, "to_dict"):
|
|
114
|
+
result[attr] = value.to_dict()
|
|
115
|
+
elif isinstance(value, dict):
|
|
116
|
+
result[attr] = dict(map(
|
|
117
|
+
lambda item: (item[0], item[1].to_dict())
|
|
118
|
+
if hasattr(item[1], "to_dict") else item,
|
|
119
|
+
value.items()
|
|
120
|
+
))
|
|
121
|
+
else:
|
|
122
|
+
result[attr] = value
|
|
123
|
+
if issubclass(ImpactForDescribePlannedEventImpactDetailOutput, dict):
|
|
124
|
+
for key, value in self.items():
|
|
125
|
+
result[key] = value
|
|
126
|
+
|
|
127
|
+
return result
|
|
128
|
+
|
|
129
|
+
def to_str(self):
|
|
130
|
+
"""Returns the string representation of the model"""
|
|
131
|
+
return pprint.pformat(self.to_dict())
|
|
132
|
+
|
|
133
|
+
def __repr__(self):
|
|
134
|
+
"""For `print` and `pprint`"""
|
|
135
|
+
return self.to_str()
|
|
136
|
+
|
|
137
|
+
def __eq__(self, other):
|
|
138
|
+
"""Returns true if both objects are equal"""
|
|
139
|
+
if not isinstance(other, ImpactForDescribePlannedEventImpactDetailOutput):
|
|
140
|
+
return False
|
|
141
|
+
|
|
142
|
+
return self.to_dict() == other.to_dict()
|
|
143
|
+
|
|
144
|
+
def __ne__(self, other):
|
|
145
|
+
"""Returns true if both objects are not equal"""
|
|
146
|
+
if not isinstance(other, ImpactForDescribePlannedEventImpactDetailOutput):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
redis
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ImpactItemForDescribePlannedEventImpactDetailOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'affected_text': 'str',
|
|
37
|
+
'involved_nodes': 'list[InvolvedNodeForDescribePlannedEventImpactDetailOutput]',
|
|
38
|
+
'suggested_actions': 'list[str]',
|
|
39
|
+
'unaffected_text': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'affected_text': 'AffectedText',
|
|
44
|
+
'involved_nodes': 'InvolvedNodes',
|
|
45
|
+
'suggested_actions': 'SuggestedActions',
|
|
46
|
+
'unaffected_text': 'UnaffectedText'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, affected_text=None, involved_nodes=None, suggested_actions=None, unaffected_text=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ImpactItemForDescribePlannedEventImpactDetailOutput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._affected_text = None
|
|
56
|
+
self._involved_nodes = None
|
|
57
|
+
self._suggested_actions = None
|
|
58
|
+
self._unaffected_text = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if affected_text is not None:
|
|
62
|
+
self.affected_text = affected_text
|
|
63
|
+
if involved_nodes is not None:
|
|
64
|
+
self.involved_nodes = involved_nodes
|
|
65
|
+
if suggested_actions is not None:
|
|
66
|
+
self.suggested_actions = suggested_actions
|
|
67
|
+
if unaffected_text is not None:
|
|
68
|
+
self.unaffected_text = unaffected_text
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def affected_text(self):
|
|
72
|
+
"""Gets the affected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The affected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._affected_text
|
|
79
|
+
|
|
80
|
+
@affected_text.setter
|
|
81
|
+
def affected_text(self, affected_text):
|
|
82
|
+
"""Sets the affected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param affected_text: The affected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
86
|
+
:type: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._affected_text = affected_text
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def involved_nodes(self):
|
|
93
|
+
"""Gets the involved_nodes of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The involved_nodes of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
97
|
+
:rtype: list[InvolvedNodeForDescribePlannedEventImpactDetailOutput]
|
|
98
|
+
"""
|
|
99
|
+
return self._involved_nodes
|
|
100
|
+
|
|
101
|
+
@involved_nodes.setter
|
|
102
|
+
def involved_nodes(self, involved_nodes):
|
|
103
|
+
"""Sets the involved_nodes of this ImpactItemForDescribePlannedEventImpactDetailOutput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param involved_nodes: The involved_nodes of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
107
|
+
:type: list[InvolvedNodeForDescribePlannedEventImpactDetailOutput]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._involved_nodes = involved_nodes
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def suggested_actions(self):
|
|
114
|
+
"""Gets the suggested_actions of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The suggested_actions of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
118
|
+
:rtype: list[str]
|
|
119
|
+
"""
|
|
120
|
+
return self._suggested_actions
|
|
121
|
+
|
|
122
|
+
@suggested_actions.setter
|
|
123
|
+
def suggested_actions(self, suggested_actions):
|
|
124
|
+
"""Sets the suggested_actions of this ImpactItemForDescribePlannedEventImpactDetailOutput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param suggested_actions: The suggested_actions of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
128
|
+
:type: list[str]
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._suggested_actions = suggested_actions
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def unaffected_text(self):
|
|
135
|
+
"""Gets the unaffected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The unaffected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._unaffected_text
|
|
142
|
+
|
|
143
|
+
@unaffected_text.setter
|
|
144
|
+
def unaffected_text(self, unaffected_text):
|
|
145
|
+
"""Sets the unaffected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param unaffected_text: The unaffected_text of this ImpactItemForDescribePlannedEventImpactDetailOutput. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._unaffected_text = unaffected_text
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(ImpactItemForDescribePlannedEventImpactDetailOutput, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, ImpactItemForDescribePlannedEventImpactDetailOutput):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, ImpactItemForDescribePlannedEventImpactDetailOutput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
redis
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ImpactSummaryForDescribePlannedEventsOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'not_generated': 'bool',
|
|
37
|
+
'primary_count': 'int',
|
|
38
|
+
'proxy_count': 'int',
|
|
39
|
+
'secondary_count': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'not_generated': 'NotGenerated',
|
|
44
|
+
'primary_count': 'PrimaryCount',
|
|
45
|
+
'proxy_count': 'ProxyCount',
|
|
46
|
+
'secondary_count': 'SecondaryCount'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, not_generated=None, primary_count=None, proxy_count=None, secondary_count=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""ImpactSummaryForDescribePlannedEventsOutput - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._not_generated = None
|
|
56
|
+
self._primary_count = None
|
|
57
|
+
self._proxy_count = None
|
|
58
|
+
self._secondary_count = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if not_generated is not None:
|
|
62
|
+
self.not_generated = not_generated
|
|
63
|
+
if primary_count is not None:
|
|
64
|
+
self.primary_count = primary_count
|
|
65
|
+
if proxy_count is not None:
|
|
66
|
+
self.proxy_count = proxy_count
|
|
67
|
+
if secondary_count is not None:
|
|
68
|
+
self.secondary_count = secondary_count
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def not_generated(self):
|
|
72
|
+
"""Gets the not_generated of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The not_generated of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
76
|
+
:rtype: bool
|
|
77
|
+
"""
|
|
78
|
+
return self._not_generated
|
|
79
|
+
|
|
80
|
+
@not_generated.setter
|
|
81
|
+
def not_generated(self, not_generated):
|
|
82
|
+
"""Sets the not_generated of this ImpactSummaryForDescribePlannedEventsOutput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param not_generated: The not_generated of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
86
|
+
:type: bool
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._not_generated = not_generated
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def primary_count(self):
|
|
93
|
+
"""Gets the primary_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The primary_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._primary_count
|
|
100
|
+
|
|
101
|
+
@primary_count.setter
|
|
102
|
+
def primary_count(self, primary_count):
|
|
103
|
+
"""Sets the primary_count of this ImpactSummaryForDescribePlannedEventsOutput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param primary_count: The primary_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._primary_count = primary_count
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def proxy_count(self):
|
|
114
|
+
"""Gets the proxy_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The proxy_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._proxy_count
|
|
121
|
+
|
|
122
|
+
@proxy_count.setter
|
|
123
|
+
def proxy_count(self, proxy_count):
|
|
124
|
+
"""Sets the proxy_count of this ImpactSummaryForDescribePlannedEventsOutput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param proxy_count: The proxy_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._proxy_count = proxy_count
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def secondary_count(self):
|
|
135
|
+
"""Gets the secondary_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The secondary_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._secondary_count
|
|
142
|
+
|
|
143
|
+
@secondary_count.setter
|
|
144
|
+
def secondary_count(self, secondary_count):
|
|
145
|
+
"""Sets the secondary_count of this ImpactSummaryForDescribePlannedEventsOutput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param secondary_count: The secondary_count of this ImpactSummaryForDescribePlannedEventsOutput. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._secondary_count = secondary_count
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(ImpactSummaryForDescribePlannedEventsOutput, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, ImpactSummaryForDescribePlannedEventsOutput):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, ImpactSummaryForDescribePlannedEventsOutput):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|