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,129 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eco_partner
|
|
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 DownloadBillRequest(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
|
+
'task_id': 'str'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute_map = {
|
|
40
|
+
'task_id': 'TaskId'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, task_id=None, _configuration=None): # noqa: E501
|
|
44
|
+
"""DownloadBillRequest - a model defined in Swagger""" # noqa: E501
|
|
45
|
+
if _configuration is None:
|
|
46
|
+
_configuration = Configuration()
|
|
47
|
+
self._configuration = _configuration
|
|
48
|
+
|
|
49
|
+
self._task_id = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if task_id is not None:
|
|
53
|
+
self.task_id = task_id
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def task_id(self):
|
|
57
|
+
"""Gets the task_id of this DownloadBillRequest. # noqa: E501
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:return: The task_id of this DownloadBillRequest. # noqa: E501
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
63
|
+
return self._task_id
|
|
64
|
+
|
|
65
|
+
@task_id.setter
|
|
66
|
+
def task_id(self, task_id):
|
|
67
|
+
"""Sets the task_id of this DownloadBillRequest.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:param task_id: The task_id of this DownloadBillRequest. # noqa: E501
|
|
71
|
+
:type: str
|
|
72
|
+
"""
|
|
73
|
+
if (self._configuration.client_side_validation and
|
|
74
|
+
task_id is not None and len(task_id) > 36):
|
|
75
|
+
raise ValueError("Invalid value for `task_id`, length must be less than or equal to `36`") # noqa: E501
|
|
76
|
+
if (self._configuration.client_side_validation and
|
|
77
|
+
task_id is not None and len(task_id) < 36):
|
|
78
|
+
raise ValueError("Invalid value for `task_id`, length must be greater than or equal to `36`") # noqa: E501
|
|
79
|
+
|
|
80
|
+
self._task_id = task_id
|
|
81
|
+
|
|
82
|
+
def to_dict(self):
|
|
83
|
+
"""Returns the model properties as a dict"""
|
|
84
|
+
result = {}
|
|
85
|
+
|
|
86
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
87
|
+
value = getattr(self, attr)
|
|
88
|
+
if isinstance(value, list):
|
|
89
|
+
result[attr] = list(map(
|
|
90
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
91
|
+
value
|
|
92
|
+
))
|
|
93
|
+
elif hasattr(value, "to_dict"):
|
|
94
|
+
result[attr] = value.to_dict()
|
|
95
|
+
elif isinstance(value, dict):
|
|
96
|
+
result[attr] = dict(map(
|
|
97
|
+
lambda item: (item[0], item[1].to_dict())
|
|
98
|
+
if hasattr(item[1], "to_dict") else item,
|
|
99
|
+
value.items()
|
|
100
|
+
))
|
|
101
|
+
else:
|
|
102
|
+
result[attr] = value
|
|
103
|
+
if issubclass(DownloadBillRequest, dict):
|
|
104
|
+
for key, value in self.items():
|
|
105
|
+
result[key] = value
|
|
106
|
+
|
|
107
|
+
return result
|
|
108
|
+
|
|
109
|
+
def to_str(self):
|
|
110
|
+
"""Returns the string representation of the model"""
|
|
111
|
+
return pprint.pformat(self.to_dict())
|
|
112
|
+
|
|
113
|
+
def __repr__(self):
|
|
114
|
+
"""For `print` and `pprint`"""
|
|
115
|
+
return self.to_str()
|
|
116
|
+
|
|
117
|
+
def __eq__(self, other):
|
|
118
|
+
"""Returns true if both objects are equal"""
|
|
119
|
+
if not isinstance(other, DownloadBillRequest):
|
|
120
|
+
return False
|
|
121
|
+
|
|
122
|
+
return self.to_dict() == other.to_dict()
|
|
123
|
+
|
|
124
|
+
def __ne__(self, other):
|
|
125
|
+
"""Returns true if both objects are not equal"""
|
|
126
|
+
if not isinstance(other, DownloadBillRequest):
|
|
127
|
+
return True
|
|
128
|
+
|
|
129
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
eco_partner
|
|
5
5
|
|
|
6
6
|
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ import six
|
|
|
19
19
|
from byteplussdkcore.configuration import Configuration
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class DownloadBillResponse(object):
|
|
23
23
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
24
|
|
|
25
25
|
Do not edit the class manually.
|
|
@@ -33,45 +33,45 @@ class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
|
-
'
|
|
36
|
+
'tasks': 'list[TaskForDownloadBillOutput]'
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
attribute_map = {
|
|
40
|
-
'
|
|
40
|
+
'tasks': 'Tasks'
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
def __init__(self,
|
|
44
|
-
"""
|
|
43
|
+
def __init__(self, tasks=None, _configuration=None): # noqa: E501
|
|
44
|
+
"""DownloadBillResponse - a model defined in Swagger""" # noqa: E501
|
|
45
45
|
if _configuration is None:
|
|
46
46
|
_configuration = Configuration()
|
|
47
47
|
self._configuration = _configuration
|
|
48
48
|
|
|
49
|
-
self.
|
|
49
|
+
self._tasks = None
|
|
50
50
|
self.discriminator = None
|
|
51
51
|
|
|
52
|
-
if
|
|
53
|
-
self.
|
|
52
|
+
if tasks is not None:
|
|
53
|
+
self.tasks = tasks
|
|
54
54
|
|
|
55
55
|
@property
|
|
56
|
-
def
|
|
57
|
-
"""Gets the
|
|
56
|
+
def tasks(self):
|
|
57
|
+
"""Gets the tasks of this DownloadBillResponse. # noqa: E501
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
:return: The
|
|
61
|
-
:rtype:
|
|
60
|
+
:return: The tasks of this DownloadBillResponse. # noqa: E501
|
|
61
|
+
:rtype: list[TaskForDownloadBillOutput]
|
|
62
62
|
"""
|
|
63
|
-
return self.
|
|
63
|
+
return self._tasks
|
|
64
64
|
|
|
65
|
-
@
|
|
66
|
-
def
|
|
67
|
-
"""Sets the
|
|
65
|
+
@tasks.setter
|
|
66
|
+
def tasks(self, tasks):
|
|
67
|
+
"""Sets the tasks of this DownloadBillResponse.
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
:param
|
|
71
|
-
:type:
|
|
70
|
+
:param tasks: The tasks of this DownloadBillResponse. # noqa: E501
|
|
71
|
+
:type: list[TaskForDownloadBillOutput]
|
|
72
72
|
"""
|
|
73
73
|
|
|
74
|
-
self.
|
|
74
|
+
self._tasks = tasks
|
|
75
75
|
|
|
76
76
|
def to_dict(self):
|
|
77
77
|
"""Returns the model properties as a dict"""
|
|
@@ -94,7 +94,7 @@ class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
|
|
|
94
94
|
))
|
|
95
95
|
else:
|
|
96
96
|
result[attr] = value
|
|
97
|
-
if issubclass(
|
|
97
|
+
if issubclass(DownloadBillResponse, dict):
|
|
98
98
|
for key, value in self.items():
|
|
99
99
|
result[key] = value
|
|
100
100
|
|
|
@@ -110,14 +110,14 @@ class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
|
|
|
110
110
|
|
|
111
111
|
def __eq__(self, other):
|
|
112
112
|
"""Returns true if both objects are equal"""
|
|
113
|
-
if not isinstance(other,
|
|
113
|
+
if not isinstance(other, DownloadBillResponse):
|
|
114
114
|
return False
|
|
115
115
|
|
|
116
116
|
return self.to_dict() == other.to_dict()
|
|
117
117
|
|
|
118
118
|
def __ne__(self, other):
|
|
119
119
|
"""Returns true if both objects are not equal"""
|
|
120
|
-
if not isinstance(other,
|
|
120
|
+
if not isinstance(other, DownloadBillResponse):
|
|
121
121
|
return True
|
|
122
122
|
|
|
123
123
|
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eco_partner
|
|
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 FileForDownloadBillOutput(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
|
+
'download_url': 'str',
|
|
37
|
+
'expires_at': 'str',
|
|
38
|
+
'file_name': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'download_url': 'DownloadUrl',
|
|
43
|
+
'expires_at': 'ExpiresAt',
|
|
44
|
+
'file_name': 'FileName'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, download_url=None, expires_at=None, file_name=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""FileForDownloadBillOutput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._download_url = None
|
|
54
|
+
self._expires_at = None
|
|
55
|
+
self._file_name = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if download_url is not None:
|
|
59
|
+
self.download_url = download_url
|
|
60
|
+
if expires_at is not None:
|
|
61
|
+
self.expires_at = expires_at
|
|
62
|
+
if file_name is not None:
|
|
63
|
+
self.file_name = file_name
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def download_url(self):
|
|
67
|
+
"""Gets the download_url of this FileForDownloadBillOutput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The download_url of this FileForDownloadBillOutput. # noqa: E501
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._download_url
|
|
74
|
+
|
|
75
|
+
@download_url.setter
|
|
76
|
+
def download_url(self, download_url):
|
|
77
|
+
"""Sets the download_url of this FileForDownloadBillOutput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param download_url: The download_url of this FileForDownloadBillOutput. # noqa: E501
|
|
81
|
+
:type: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._download_url = download_url
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def expires_at(self):
|
|
88
|
+
"""Gets the expires_at of this FileForDownloadBillOutput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The expires_at of this FileForDownloadBillOutput. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._expires_at
|
|
95
|
+
|
|
96
|
+
@expires_at.setter
|
|
97
|
+
def expires_at(self, expires_at):
|
|
98
|
+
"""Sets the expires_at of this FileForDownloadBillOutput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param expires_at: The expires_at of this FileForDownloadBillOutput. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._expires_at = expires_at
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def file_name(self):
|
|
109
|
+
"""Gets the file_name of this FileForDownloadBillOutput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The file_name of this FileForDownloadBillOutput. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._file_name
|
|
116
|
+
|
|
117
|
+
@file_name.setter
|
|
118
|
+
def file_name(self, file_name):
|
|
119
|
+
"""Sets the file_name of this FileForDownloadBillOutput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param file_name: The file_name of this FileForDownloadBillOutput. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._file_name = file_name
|
|
127
|
+
|
|
128
|
+
def to_dict(self):
|
|
129
|
+
"""Returns the model properties as a dict"""
|
|
130
|
+
result = {}
|
|
131
|
+
|
|
132
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
133
|
+
value = getattr(self, attr)
|
|
134
|
+
if isinstance(value, list):
|
|
135
|
+
result[attr] = list(map(
|
|
136
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
137
|
+
value
|
|
138
|
+
))
|
|
139
|
+
elif hasattr(value, "to_dict"):
|
|
140
|
+
result[attr] = value.to_dict()
|
|
141
|
+
elif isinstance(value, dict):
|
|
142
|
+
result[attr] = dict(map(
|
|
143
|
+
lambda item: (item[0], item[1].to_dict())
|
|
144
|
+
if hasattr(item[1], "to_dict") else item,
|
|
145
|
+
value.items()
|
|
146
|
+
))
|
|
147
|
+
else:
|
|
148
|
+
result[attr] = value
|
|
149
|
+
if issubclass(FileForDownloadBillOutput, dict):
|
|
150
|
+
for key, value in self.items():
|
|
151
|
+
result[key] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, FileForDownloadBillOutput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.to_dict() == other.to_dict()
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
if not isinstance(other, FileForDownloadBillOutput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eco_partner
|
|
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 InitiateBillGenerationRequest(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
|
+
'account_id': 'int',
|
|
37
|
+
'bill_period': 'str',
|
|
38
|
+
'bill_type': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'account_id': 'AccountId',
|
|
43
|
+
'bill_period': 'BillPeriod',
|
|
44
|
+
'bill_type': 'BillType'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, account_id=None, bill_period=None, bill_type=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""InitiateBillGenerationRequest - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._account_id = None
|
|
54
|
+
self._bill_period = None
|
|
55
|
+
self._bill_type = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
self.account_id = account_id
|
|
59
|
+
self.bill_period = bill_period
|
|
60
|
+
if bill_type is not None:
|
|
61
|
+
self.bill_type = bill_type
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def account_id(self):
|
|
65
|
+
"""Gets the account_id of this InitiateBillGenerationRequest. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The account_id of this InitiateBillGenerationRequest. # noqa: E501
|
|
69
|
+
:rtype: int
|
|
70
|
+
"""
|
|
71
|
+
return self._account_id
|
|
72
|
+
|
|
73
|
+
@account_id.setter
|
|
74
|
+
def account_id(self, account_id):
|
|
75
|
+
"""Sets the account_id of this InitiateBillGenerationRequest.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param account_id: The account_id of this InitiateBillGenerationRequest. # noqa: E501
|
|
79
|
+
:type: int
|
|
80
|
+
"""
|
|
81
|
+
if self._configuration.client_side_validation and account_id is None:
|
|
82
|
+
raise ValueError("Invalid value for `account_id`, must not be `None`") # noqa: E501
|
|
83
|
+
|
|
84
|
+
self._account_id = account_id
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def bill_period(self):
|
|
88
|
+
"""Gets the bill_period of this InitiateBillGenerationRequest. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The bill_period of this InitiateBillGenerationRequest. # noqa: E501
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._bill_period
|
|
95
|
+
|
|
96
|
+
@bill_period.setter
|
|
97
|
+
def bill_period(self, bill_period):
|
|
98
|
+
"""Sets the bill_period of this InitiateBillGenerationRequest.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param bill_period: The bill_period of this InitiateBillGenerationRequest. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
if self._configuration.client_side_validation and bill_period is None:
|
|
105
|
+
raise ValueError("Invalid value for `bill_period`, must not be `None`") # noqa: E501
|
|
106
|
+
if (self._configuration.client_side_validation and
|
|
107
|
+
bill_period is not None and len(bill_period) > 7):
|
|
108
|
+
raise ValueError("Invalid value for `bill_period`, length must be less than or equal to `7`") # noqa: E501
|
|
109
|
+
if (self._configuration.client_side_validation and
|
|
110
|
+
bill_period is not None and len(bill_period) < 7):
|
|
111
|
+
raise ValueError("Invalid value for `bill_period`, length must be greater than or equal to `7`") # noqa: E501
|
|
112
|
+
|
|
113
|
+
self._bill_period = bill_period
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def bill_type(self):
|
|
117
|
+
"""Gets the bill_type of this InitiateBillGenerationRequest. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The bill_type of this InitiateBillGenerationRequest. # noqa: E501
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._bill_type
|
|
124
|
+
|
|
125
|
+
@bill_type.setter
|
|
126
|
+
def bill_type(self, bill_type):
|
|
127
|
+
"""Sets the bill_type of this InitiateBillGenerationRequest.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param bill_type: The bill_type of this InitiateBillGenerationRequest. # noqa: E501
|
|
131
|
+
:type: str
|
|
132
|
+
"""
|
|
133
|
+
allowed_values = ["payable", "collectible"] # noqa: E501
|
|
134
|
+
if (self._configuration.client_side_validation and
|
|
135
|
+
bill_type not in allowed_values):
|
|
136
|
+
raise ValueError(
|
|
137
|
+
"Invalid value for `bill_type` ({0}), must be one of {1}" # noqa: E501
|
|
138
|
+
.format(bill_type, allowed_values)
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
self._bill_type = bill_type
|
|
142
|
+
|
|
143
|
+
def to_dict(self):
|
|
144
|
+
"""Returns the model properties as a dict"""
|
|
145
|
+
result = {}
|
|
146
|
+
|
|
147
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
148
|
+
value = getattr(self, attr)
|
|
149
|
+
if isinstance(value, list):
|
|
150
|
+
result[attr] = list(map(
|
|
151
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
152
|
+
value
|
|
153
|
+
))
|
|
154
|
+
elif hasattr(value, "to_dict"):
|
|
155
|
+
result[attr] = value.to_dict()
|
|
156
|
+
elif isinstance(value, dict):
|
|
157
|
+
result[attr] = dict(map(
|
|
158
|
+
lambda item: (item[0], item[1].to_dict())
|
|
159
|
+
if hasattr(item[1], "to_dict") else item,
|
|
160
|
+
value.items()
|
|
161
|
+
))
|
|
162
|
+
else:
|
|
163
|
+
result[attr] = value
|
|
164
|
+
if issubclass(InitiateBillGenerationRequest, dict):
|
|
165
|
+
for key, value in self.items():
|
|
166
|
+
result[key] = value
|
|
167
|
+
|
|
168
|
+
return result
|
|
169
|
+
|
|
170
|
+
def to_str(self):
|
|
171
|
+
"""Returns the string representation of the model"""
|
|
172
|
+
return pprint.pformat(self.to_dict())
|
|
173
|
+
|
|
174
|
+
def __repr__(self):
|
|
175
|
+
"""For `print` and `pprint`"""
|
|
176
|
+
return self.to_str()
|
|
177
|
+
|
|
178
|
+
def __eq__(self, other):
|
|
179
|
+
"""Returns true if both objects are equal"""
|
|
180
|
+
if not isinstance(other, InitiateBillGenerationRequest):
|
|
181
|
+
return False
|
|
182
|
+
|
|
183
|
+
return self.to_dict() == other.to_dict()
|
|
184
|
+
|
|
185
|
+
def __ne__(self, other):
|
|
186
|
+
"""Returns true if both objects are not equal"""
|
|
187
|
+
if not isinstance(other, InitiateBillGenerationRequest):
|
|
188
|
+
return True
|
|
189
|
+
|
|
190
|
+
return self.to_dict() != other.to_dict()
|