byteplus-python-sdk-v2 3.0.61__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.
Files changed (112) hide show
  1. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/RECORD +111 -64
  3. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/WHEEL +1 -1
  4. byteplussdkcore/api_client.py +36 -8
  5. byteplussdkcore/auth/provider_binding.py +42 -0
  6. byteplussdkcore/auth/providers/sts_oidc_provider.py +23 -3
  7. byteplussdkcore/auth/providers/sts_provider.py +32 -3
  8. byteplussdkcore/auth/providers/sts_saml_provider.py +23 -3
  9. byteplussdkcore/auth/sts_http_config.py +133 -0
  10. byteplussdkcore/configuration.py +1 -1
  11. byteplussdkcore/feature/rds/connect_utils.py +6 -8
  12. byteplussdkcore/interceptor/interceptors/request.py +5 -0
  13. byteplussdkcore/rest.py +27 -0
  14. byteplussdkcore/retryer/retry_condition.py +29 -1
  15. byteplussdkecopartner/__init__.py +10 -0
  16. byteplussdkecopartner/api/eco_partner_api.py +291 -0
  17. byteplussdkecopartner/models/__init__.py +10 -0
  18. byteplussdkecopartner/models/download_bill_request.py +129 -0
  19. byteplussdkredis/models/configure_node_for_create_enterprise_db_instance_input.py → byteplussdkecopartner/models/download_bill_response.py +23 -23
  20. byteplussdkecopartner/models/file_for_download_bill_output.py +175 -0
  21. byteplussdkecopartner/models/initiate_bill_generation_request.py +190 -0
  22. byteplussdkecopartner/models/initiate_bill_generation_response.py +253 -0
  23. byteplussdkecopartner/models/item_for_list_billing_items_output.py +461 -0
  24. byteplussdkecopartner/models/list_billing_items_request.py +240 -0
  25. byteplussdkecopartner/models/list_billing_items_response.py +253 -0
  26. byteplussdkecopartner/models/task_for_download_bill_output.py +409 -0
  27. byteplussdkecopartner/models/total_for_list_billing_items_output.py +305 -0
  28. byteplussdkredis/__init__.py +6 -4
  29. byteplussdkredis/api/redis_api.py +97 -97
  30. byteplussdkredis/models/__init__.py +6 -4
  31. byteplussdkredis/models/describe_planned_event_impact_detail_request.py +124 -0
  32. byteplussdkredis/models/describe_planned_event_impact_detail_response.py +123 -0
  33. byteplussdkredis/models/impact_for_describe_planned_event_impact_detail_output.py +149 -0
  34. byteplussdkredis/models/impact_item_for_describe_planned_event_impact_detail_output.py +201 -0
  35. byteplussdkredis/models/impact_summary_for_describe_planned_events_output.py +201 -0
  36. byteplussdkredis/models/involved_node_for_describe_planned_event_impact_detail_output.py +201 -0
  37. byteplussdkredis/models/planned_event_for_describe_planned_events_output.py +79 -1
  38. byteplussdkresourcecenter/__init__.py +16 -0
  39. byteplussdkresourcecenter/api/resourcecenter_api.py +485 -0
  40. byteplussdkresourcecenter/models/__init__.py +16 -0
  41. byteplussdkresourcecenter/models/create_query_request.py +11 -3
  42. byteplussdkresourcecenter/models/execute_multi_account_sql_query_request.py +211 -0
  43. byteplussdkresourcecenter/models/execute_multi_account_sql_query_response.py +149 -0
  44. byteplussdkresourcecenter/models/execute_sql_query_request.py +9 -0
  45. byteplussdkresourcecenter/models/execute_sql_query_response.py +29 -3
  46. byteplussdkresourcecenter/models/get_multi_account_resource_center_status_response.py +15 -15
  47. byteplussdkresourcecenter/models/get_multi_account_resource_description_request.py +204 -0
  48. byteplussdkresourcecenter/models/get_multi_account_resource_description_response.py +461 -0
  49. byteplussdkresourcecenter/models/get_resource_description_request.py +177 -0
  50. byteplussdkresourcecenter/models/get_resource_description_response.py +461 -0
  51. byteplussdkresourcecenter/models/list_multi_account_resource_relationships_request.py +262 -0
  52. byteplussdkresourcecenter/models/list_multi_account_resource_relationships_response.py +149 -0
  53. byteplussdkresourcecenter/models/list_resource_relationships_request.py +235 -0
  54. byteplussdkresourcecenter/models/list_resource_relationships_response.py +149 -0
  55. byteplussdkresourcecenter/models/related_type_name_for_list_resource_types_output.py +149 -0
  56. byteplussdkresourcecenter/models/resource_relationship_for_list_multi_account_resource_relationships_output.py +227 -0
  57. byteplussdkresourcecenter/models/resource_relationship_for_list_resource_relationships_output.py +227 -0
  58. byteplussdkresourcecenter/models/resource_type_for_list_resource_types_output.py +55 -3
  59. byteplussdkresourcecenter/models/scope_for_execute_multi_account_sql_query_input.py +175 -0
  60. byteplussdkresourcecenter/models/search_multi_account_resources_request.py +20 -0
  61. byteplussdkresourcecenter/models/search_resources_request.py +6 -0
  62. byteplussdkredis/models/create_enterprise_db_instance_response.py → byteplussdkresourcecenter/models/tag_for_get_multi_account_resource_description_output.py +35 -35
  63. byteplussdkredis/models/tag_for_create_enterprise_db_instance_input.py → byteplussdkresourcecenter/models/tag_for_get_resource_description_output.py +14 -14
  64. byteplussdkresourcecenter/models/update_query_request.py +9 -0
  65. byteplussdkvpc/__init__.py +17 -0
  66. byteplussdkvpc/api/vpc_api.py +582 -0
  67. byteplussdkvpc/models/__init__.py +17 -0
  68. byteplussdkvpc/models/authorize_security_group_egress_batch_request.py +150 -0
  69. byteplussdkvpc/models/authorize_security_group_egress_batch_response.py +149 -0
  70. byteplussdkvpc/models/authorize_security_group_ingress_batch_request.py +150 -0
  71. byteplussdkvpc/models/authorize_security_group_ingress_batch_response.py +149 -0
  72. byteplussdkvpc/models/create_flow_log_request.py +27 -1
  73. byteplussdkvpc/models/create_flow_log_response.py +29 -3
  74. byteplussdkvpc/models/create_ipam_pool_request.py +2 -5
  75. byteplussdkvpc/models/create_ipam_request.py +0 -3
  76. byteplussdkvpc/models/create_ipam_resource_discovery_request.py +9 -0
  77. byteplussdkvpc/models/create_ipam_scope_request.py +2 -5
  78. byteplussdkvpc/models/create_network_interface_request.py +81 -3
  79. byteplussdkvpc/models/describe_ipam_pools_request.py +6 -0
  80. byteplussdkvpc/models/describe_ipam_resource_cidrs_request.py +27 -1
  81. byteplussdkvpc/models/describe_ipam_resource_discoveries_request.py +6 -0
  82. byteplussdkvpc/models/describe_ipam_scopes_request.py +6 -0
  83. byteplussdkvpc/models/describe_ipams_request.py +2 -2
  84. byteplussdkvpc/models/describe_network_interface_attributes_response.py +79 -1
  85. byteplussdkvpc/models/ipam_resource_cidr_for_describe_ipam_resource_cidrs_output.py +53 -1
  86. byteplussdkvpc/models/modify_flow_log_attribute_request.py +27 -1
  87. byteplussdkvpc/models/modify_flow_log_attribute_response.py +29 -3
  88. byteplussdkvpc/models/modify_ipam_pool_request.py +2 -5
  89. byteplussdkvpc/models/modify_ipam_request.py +2 -5
  90. byteplussdkvpc/models/modify_ipam_resource_discovery_request.py +61 -6
  91. byteplussdkvpc/models/modify_ipam_resource_discovery_response.py +27 -1
  92. byteplussdkvpc/models/modify_ipam_scope_request.py +2 -5
  93. byteplussdkvpc/models/modify_network_interface_attributes_request.py +81 -3
  94. byteplussdkvpc/models/modify_security_group_egress_batch_request.py +150 -0
  95. byteplussdkvpc/models/modify_security_group_egress_batch_response.py +149 -0
  96. byteplussdkvpc/models/modify_security_group_ingress_batch_request.py +150 -0
  97. byteplussdkvpc/models/modify_security_group_ingress_batch_response.py +149 -0
  98. byteplussdkvpc/models/network_interface_set_for_describe_network_interfaces_output.py +79 -1
  99. byteplussdkvpc/models/overlap_detail_for_describe_ipam_resource_cidrs_output.py +175 -0
  100. byteplussdkvpc/models/permission_for_authorize_security_group_egress_batch_input.py +412 -0
  101. byteplussdkvpc/models/permission_for_authorize_security_group_ingress_batch_input.py +412 -0
  102. byteplussdkvpc/models/permission_for_describe_security_group_attributes_output.py +27 -1
  103. byteplussdkvpc/models/permission_for_modify_security_group_egress_batch_input.py +439 -0
  104. byteplussdkvpc/models/permission_for_modify_security_group_ingress_batch_input.py +439 -0
  105. byteplussdkvpc/models/revoke_security_group_egress_batch_request.py +150 -0
  106. byteplussdkvpc/models/revoke_security_group_egress_batch_response.py +149 -0
  107. byteplussdkvpc/models/revoke_security_group_ingress_batch_request.py +150 -0
  108. byteplussdkvpc/models/revoke_security_group_ingress_batch_response.py +149 -0
  109. byteplussdkredis/models/create_enterprise_db_instance_request.py +0 -625
  110. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/LICENSE.txt +0 -0
  111. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/NOTICE.md +0 -0
  112. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/top_level.txt +0 -0
@@ -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()
@@ -0,0 +1,253 @@
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 InitiateBillGenerationResponse(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
+ 'created_at': 'str',
40
+ 'status': 'str',
41
+ 'task_id': 'str'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'account_id': 'AccountId',
46
+ 'bill_period': 'BillPeriod',
47
+ 'bill_type': 'BillType',
48
+ 'created_at': 'CreatedAt',
49
+ 'status': 'Status',
50
+ 'task_id': 'TaskId'
51
+ }
52
+
53
+ def __init__(self, account_id=None, bill_period=None, bill_type=None, created_at=None, status=None, task_id=None, _configuration=None): # noqa: E501
54
+ """InitiateBillGenerationResponse - a model defined in Swagger""" # noqa: E501
55
+ if _configuration is None:
56
+ _configuration = Configuration()
57
+ self._configuration = _configuration
58
+
59
+ self._account_id = None
60
+ self._bill_period = None
61
+ self._bill_type = None
62
+ self._created_at = None
63
+ self._status = None
64
+ self._task_id = None
65
+ self.discriminator = None
66
+
67
+ if account_id is not None:
68
+ self.account_id = account_id
69
+ if bill_period is not None:
70
+ self.bill_period = bill_period
71
+ if bill_type is not None:
72
+ self.bill_type = bill_type
73
+ if created_at is not None:
74
+ self.created_at = created_at
75
+ if status is not None:
76
+ self.status = status
77
+ if task_id is not None:
78
+ self.task_id = task_id
79
+
80
+ @property
81
+ def account_id(self):
82
+ """Gets the account_id of this InitiateBillGenerationResponse. # noqa: E501
83
+
84
+
85
+ :return: The account_id of this InitiateBillGenerationResponse. # noqa: E501
86
+ :rtype: int
87
+ """
88
+ return self._account_id
89
+
90
+ @account_id.setter
91
+ def account_id(self, account_id):
92
+ """Sets the account_id of this InitiateBillGenerationResponse.
93
+
94
+
95
+ :param account_id: The account_id of this InitiateBillGenerationResponse. # noqa: E501
96
+ :type: int
97
+ """
98
+
99
+ self._account_id = account_id
100
+
101
+ @property
102
+ def bill_period(self):
103
+ """Gets the bill_period of this InitiateBillGenerationResponse. # noqa: E501
104
+
105
+
106
+ :return: The bill_period of this InitiateBillGenerationResponse. # noqa: E501
107
+ :rtype: str
108
+ """
109
+ return self._bill_period
110
+
111
+ @bill_period.setter
112
+ def bill_period(self, bill_period):
113
+ """Sets the bill_period of this InitiateBillGenerationResponse.
114
+
115
+
116
+ :param bill_period: The bill_period of this InitiateBillGenerationResponse. # noqa: E501
117
+ :type: str
118
+ """
119
+
120
+ self._bill_period = bill_period
121
+
122
+ @property
123
+ def bill_type(self):
124
+ """Gets the bill_type of this InitiateBillGenerationResponse. # noqa: E501
125
+
126
+
127
+ :return: The bill_type of this InitiateBillGenerationResponse. # noqa: E501
128
+ :rtype: str
129
+ """
130
+ return self._bill_type
131
+
132
+ @bill_type.setter
133
+ def bill_type(self, bill_type):
134
+ """Sets the bill_type of this InitiateBillGenerationResponse.
135
+
136
+
137
+ :param bill_type: The bill_type of this InitiateBillGenerationResponse. # noqa: E501
138
+ :type: str
139
+ """
140
+
141
+ self._bill_type = bill_type
142
+
143
+ @property
144
+ def created_at(self):
145
+ """Gets the created_at of this InitiateBillGenerationResponse. # noqa: E501
146
+
147
+
148
+ :return: The created_at of this InitiateBillGenerationResponse. # noqa: E501
149
+ :rtype: str
150
+ """
151
+ return self._created_at
152
+
153
+ @created_at.setter
154
+ def created_at(self, created_at):
155
+ """Sets the created_at of this InitiateBillGenerationResponse.
156
+
157
+
158
+ :param created_at: The created_at of this InitiateBillGenerationResponse. # noqa: E501
159
+ :type: str
160
+ """
161
+
162
+ self._created_at = created_at
163
+
164
+ @property
165
+ def status(self):
166
+ """Gets the status of this InitiateBillGenerationResponse. # noqa: E501
167
+
168
+
169
+ :return: The status of this InitiateBillGenerationResponse. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._status
173
+
174
+ @status.setter
175
+ def status(self, status):
176
+ """Sets the status of this InitiateBillGenerationResponse.
177
+
178
+
179
+ :param status: The status of this InitiateBillGenerationResponse. # noqa: E501
180
+ :type: str
181
+ """
182
+
183
+ self._status = status
184
+
185
+ @property
186
+ def task_id(self):
187
+ """Gets the task_id of this InitiateBillGenerationResponse. # noqa: E501
188
+
189
+
190
+ :return: The task_id of this InitiateBillGenerationResponse. # noqa: E501
191
+ :rtype: str
192
+ """
193
+ return self._task_id
194
+
195
+ @task_id.setter
196
+ def task_id(self, task_id):
197
+ """Sets the task_id of this InitiateBillGenerationResponse.
198
+
199
+
200
+ :param task_id: The task_id of this InitiateBillGenerationResponse. # noqa: E501
201
+ :type: str
202
+ """
203
+
204
+ self._task_id = task_id
205
+
206
+ def to_dict(self):
207
+ """Returns the model properties as a dict"""
208
+ result = {}
209
+
210
+ for attr, _ in six.iteritems(self.swagger_types):
211
+ value = getattr(self, attr)
212
+ if isinstance(value, list):
213
+ result[attr] = list(map(
214
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
215
+ value
216
+ ))
217
+ elif hasattr(value, "to_dict"):
218
+ result[attr] = value.to_dict()
219
+ elif isinstance(value, dict):
220
+ result[attr] = dict(map(
221
+ lambda item: (item[0], item[1].to_dict())
222
+ if hasattr(item[1], "to_dict") else item,
223
+ value.items()
224
+ ))
225
+ else:
226
+ result[attr] = value
227
+ if issubclass(InitiateBillGenerationResponse, dict):
228
+ for key, value in self.items():
229
+ result[key] = value
230
+
231
+ return result
232
+
233
+ def to_str(self):
234
+ """Returns the string representation of the model"""
235
+ return pprint.pformat(self.to_dict())
236
+
237
+ def __repr__(self):
238
+ """For `print` and `pprint`"""
239
+ return self.to_str()
240
+
241
+ def __eq__(self, other):
242
+ """Returns true if both objects are equal"""
243
+ if not isinstance(other, InitiateBillGenerationResponse):
244
+ return False
245
+
246
+ return self.to_dict() == other.to_dict()
247
+
248
+ def __ne__(self, other):
249
+ """Returns true if both objects are not equal"""
250
+ if not isinstance(other, InitiateBillGenerationResponse):
251
+ return True
252
+
253
+ return self.to_dict() != other.to_dict()