byteplus-python-sdk-v2 3.0.46__py2.py3-none-any.whl → 3.0.48__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 (26) hide show
  1. {byteplus_python_sdk_v2-3.0.46.dist-info → byteplus_python_sdk_v2-3.0.48.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.46.dist-info → byteplus_python_sdk_v2-3.0.48.dist-info}/RECORD +26 -15
  3. {byteplus_python_sdk_v2-3.0.46.dist-info → byteplus_python_sdk_v2-3.0.48.dist-info}/top_level.txt +1 -0
  4. byteplussdkbilling/models/list_amortized_cost_bill_detail_request.py +29 -3
  5. byteplussdkbilling/models/list_bill_detail_request.py +29 -3
  6. byteplussdkbilling/models/list_for_list_bill_detail_output.py +79 -1
  7. byteplussdkbilling/models/list_split_bill_detail_request.py +27 -1
  8. byteplussdkcore/api_client.py +1 -1
  9. byteplussdkcore/configuration.py +1 -1
  10. byteplussdkcore/endpoint/providers/default_provider.py +7 -0
  11. byteplussdkcore/feature/rds/connect_utils.py +1 -1
  12. byteplussdkcore/interceptor/interceptors/sign_request_interceptor.py +1 -0
  13. byteplussdksts/__init__.py +28 -0
  14. byteplussdksts/api/__init__.py +6 -0
  15. byteplussdksts/api/sts_api.py +228 -0
  16. byteplussdksts/models/__init__.py +24 -0
  17. byteplussdksts/models/assume_role_request.py +229 -0
  18. byteplussdksts/models/assume_role_response.py +149 -0
  19. byteplussdksts/models/assumed_role_user_for_assume_role_output.py +149 -0
  20. byteplussdksts/models/credentials_for_assume_role_output.py +227 -0
  21. byteplussdksts/models/get_caller_identity_request.py +95 -0
  22. byteplussdksts/models/get_caller_identity_response.py +201 -0
  23. byteplussdksts/models/tag_for_assume_role_input.py +149 -0
  24. {byteplus_python_sdk_v2-3.0.46.dist-info → byteplus_python_sdk_v2-3.0.48.dist-info}/WHEEL +0 -0
  25. {byteplus_python_sdk_v2-3.0.46.dist-info → byteplus_python_sdk_v2-3.0.48.dist-info}/licenses/LICENSE.txt +0 -0
  26. {byteplus_python_sdk_v2-3.0.46.dist-info → byteplus_python_sdk_v2-3.0.48.dist-info}/licenses/NOTICE.md +0 -0
@@ -0,0 +1,228 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ sts
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
+ from __future__ import absolute_import
15
+
16
+ import re # noqa: F401
17
+
18
+ # python 2 and python 3 compatibility library
19
+ import six
20
+
21
+ import byteplussdkcore
22
+
23
+
24
+ class STSApi(object):
25
+ """NOTE: This class is auto generated by the swagger code generator program.
26
+
27
+ Do not edit the class manually.
28
+ Ref: https://github.com/swagger-api/swagger-codegen
29
+ """
30
+
31
+ def __init__(self, api_client=None):
32
+ if api_client is None:
33
+ api_client = byteplussdkcore.ApiClient()
34
+ self.api_client = api_client
35
+
36
+ def assume_role(self, body, **kwargs): # noqa: E501
37
+ """assume_role # noqa: E501
38
+
39
+ This method makes a synchronous HTTP request by default. To make an
40
+ asynchronous HTTP request, please pass async_req=True
41
+ >>> thread = api.assume_role(body, async_req=True)
42
+ >>> result = thread.get()
43
+
44
+ :param async_req bool
45
+ :param AssumeRoleRequest body: (required)
46
+ :return: AssumeRoleResponse
47
+ If the method is called asynchronously,
48
+ returns the request thread.
49
+ """
50
+ kwargs['_return_http_data_only'] = True
51
+ if kwargs.get('async_req'):
52
+ return self.assume_role_with_http_info(body, **kwargs) # noqa: E501
53
+ else:
54
+ (data) = self.assume_role_with_http_info(body, **kwargs) # noqa: E501
55
+ return data
56
+
57
+ def assume_role_with_http_info(self, body, **kwargs): # noqa: E501
58
+ """assume_role # noqa: E501
59
+
60
+ This method makes a synchronous HTTP request by default. To make an
61
+ asynchronous HTTP request, please pass async_req=True
62
+ >>> thread = api.assume_role_with_http_info(body, async_req=True)
63
+ >>> result = thread.get()
64
+
65
+ :param async_req bool
66
+ :param AssumeRoleRequest body: (required)
67
+ :return: AssumeRoleResponse
68
+ If the method is called asynchronously,
69
+ returns the request thread.
70
+ """
71
+
72
+ all_params = ['body'] # noqa: E501
73
+ all_params.append('async_req')
74
+ all_params.append('_return_http_data_only')
75
+ all_params.append('_preload_content')
76
+ all_params.append('_request_timeout')
77
+
78
+ params = locals()
79
+ for key, val in six.iteritems(params['kwargs']):
80
+ if key not in all_params:
81
+ raise TypeError(
82
+ "Got an unexpected keyword argument '%s'"
83
+ " to method assume_role" % key
84
+ )
85
+ params[key] = val
86
+ del params['kwargs']
87
+ # verify the required parameter 'body' is set
88
+ if self.api_client.client_side_validation and ('body' not in params or
89
+ params['body'] is None): # noqa: E501
90
+ raise ValueError("Missing the required parameter `body` when calling `assume_role`") # noqa: E501
91
+
92
+ collection_formats = {}
93
+
94
+ path_params = {}
95
+
96
+ query_params = []
97
+
98
+ header_params = {}
99
+
100
+ form_params = []
101
+ local_var_files = {}
102
+
103
+ body_params = None
104
+ if 'body' in params:
105
+ body_params = params['body']
106
+ # HTTP header `Accept`
107
+ header_params['Accept'] = self.api_client.select_header_accept(
108
+ ['application/json']) # noqa: E501
109
+
110
+ # HTTP header `Content-Type`
111
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112
+ ['application/x-www-form-urlencoded']) # noqa: E501
113
+
114
+ # Authentication setting
115
+ auth_settings = ['byteplusSign'] # noqa: E501
116
+
117
+ return self.api_client.call_api(
118
+ '/AssumeRole/2018-01-01/sts/post/application_x-www-form-urlencoded/', 'POST',
119
+ path_params,
120
+ query_params,
121
+ header_params,
122
+ body=body_params,
123
+ post_params=form_params,
124
+ files=local_var_files,
125
+ response_type='AssumeRoleResponse', # noqa: E501
126
+ auth_settings=auth_settings,
127
+ async_req=params.get('async_req'),
128
+ _return_http_data_only=params.get('_return_http_data_only'),
129
+ _preload_content=params.get('_preload_content', True),
130
+ _request_timeout=params.get('_request_timeout'),
131
+ collection_formats=collection_formats)
132
+
133
+ def get_caller_identity(self, body, **kwargs): # noqa: E501
134
+ """get_caller_identity # noqa: E501
135
+
136
+ This method makes a synchronous HTTP request by default. To make an
137
+ asynchronous HTTP request, please pass async_req=True
138
+ >>> thread = api.get_caller_identity(body, async_req=True)
139
+ >>> result = thread.get()
140
+
141
+ :param async_req bool
142
+ :param GetCallerIdentityRequest body: (required)
143
+ :return: GetCallerIdentityResponse
144
+ If the method is called asynchronously,
145
+ returns the request thread.
146
+ """
147
+ kwargs['_return_http_data_only'] = True
148
+ if kwargs.get('async_req'):
149
+ return self.get_caller_identity_with_http_info(body, **kwargs) # noqa: E501
150
+ else:
151
+ (data) = self.get_caller_identity_with_http_info(body, **kwargs) # noqa: E501
152
+ return data
153
+
154
+ def get_caller_identity_with_http_info(self, body, **kwargs): # noqa: E501
155
+ """get_caller_identity # noqa: E501
156
+
157
+ This method makes a synchronous HTTP request by default. To make an
158
+ asynchronous HTTP request, please pass async_req=True
159
+ >>> thread = api.get_caller_identity_with_http_info(body, async_req=True)
160
+ >>> result = thread.get()
161
+
162
+ :param async_req bool
163
+ :param GetCallerIdentityRequest body: (required)
164
+ :return: GetCallerIdentityResponse
165
+ If the method is called asynchronously,
166
+ returns the request thread.
167
+ """
168
+
169
+ all_params = ['body'] # noqa: E501
170
+ all_params.append('async_req')
171
+ all_params.append('_return_http_data_only')
172
+ all_params.append('_preload_content')
173
+ all_params.append('_request_timeout')
174
+
175
+ params = locals()
176
+ for key, val in six.iteritems(params['kwargs']):
177
+ if key not in all_params:
178
+ raise TypeError(
179
+ "Got an unexpected keyword argument '%s'"
180
+ " to method get_caller_identity" % key
181
+ )
182
+ params[key] = val
183
+ del params['kwargs']
184
+ # verify the required parameter 'body' is set
185
+ if self.api_client.client_side_validation and ('body' not in params or
186
+ params['body'] is None): # noqa: E501
187
+ raise ValueError("Missing the required parameter `body` when calling `get_caller_identity`") # noqa: E501
188
+
189
+ collection_formats = {}
190
+
191
+ path_params = {}
192
+
193
+ query_params = []
194
+
195
+ header_params = {}
196
+
197
+ form_params = []
198
+ local_var_files = {}
199
+
200
+ body_params = None
201
+ if 'body' in params:
202
+ body_params = params['body']
203
+ # HTTP header `Accept`
204
+ header_params['Accept'] = self.api_client.select_header_accept(
205
+ ['application/json']) # noqa: E501
206
+
207
+ # HTTP header `Content-Type`
208
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
209
+ ['application/x-www-form-urlencoded']) # noqa: E501
210
+
211
+ # Authentication setting
212
+ auth_settings = ['byteplusSign'] # noqa: E501
213
+
214
+ return self.api_client.call_api(
215
+ '/GetCallerIdentity/2018-01-01/sts/post/application_x-www-form-urlencoded/', 'POST',
216
+ path_params,
217
+ query_params,
218
+ header_params,
219
+ body=body_params,
220
+ post_params=form_params,
221
+ files=local_var_files,
222
+ response_type='GetCallerIdentityResponse', # noqa: E501
223
+ auth_settings=auth_settings,
224
+ async_req=params.get('async_req'),
225
+ _return_http_data_only=params.get('_return_http_data_only'),
226
+ _preload_content=params.get('_preload_content', True),
227
+ _request_timeout=params.get('_request_timeout'),
228
+ collection_formats=collection_formats)
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+ """
5
+ sts
6
+
7
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8
+
9
+ OpenAPI spec version: common-version
10
+
11
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
12
+ """
13
+
14
+
15
+ from __future__ import absolute_import
16
+
17
+ # import models into model package
18
+ from byteplussdksts.models.assume_role_request import AssumeRoleRequest
19
+ from byteplussdksts.models.assume_role_response import AssumeRoleResponse
20
+ from byteplussdksts.models.assumed_role_user_for_assume_role_output import AssumedRoleUserForAssumeRoleOutput
21
+ from byteplussdksts.models.credentials_for_assume_role_output import CredentialsForAssumeRoleOutput
22
+ from byteplussdksts.models.get_caller_identity_request import GetCallerIdentityRequest
23
+ from byteplussdksts.models.get_caller_identity_response import GetCallerIdentityResponse
24
+ from byteplussdksts.models.tag_for_assume_role_input import TagForAssumeRoleInput
@@ -0,0 +1,229 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ sts
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 AssumeRoleRequest(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
+ 'duration_seconds': 'int',
37
+ 'policy': 'str',
38
+ 'role_session_name': 'str',
39
+ 'role_trn': 'str',
40
+ 'tags': 'list[TagForAssumeRoleInput]'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'duration_seconds': 'DurationSeconds',
45
+ 'policy': 'Policy',
46
+ 'role_session_name': 'RoleSessionName',
47
+ 'role_trn': 'RoleTrn',
48
+ 'tags': 'Tags'
49
+ }
50
+
51
+ def __init__(self, duration_seconds=None, policy=None, role_session_name=None, role_trn=None, tags=None, _configuration=None): # noqa: E501
52
+ """AssumeRoleRequest - a model defined in Swagger""" # noqa: E501
53
+ if _configuration is None:
54
+ _configuration = Configuration()
55
+ self._configuration = _configuration
56
+
57
+ self._duration_seconds = None
58
+ self._policy = None
59
+ self._role_session_name = None
60
+ self._role_trn = None
61
+ self._tags = None
62
+ self.discriminator = None
63
+
64
+ if duration_seconds is not None:
65
+ self.duration_seconds = duration_seconds
66
+ if policy is not None:
67
+ self.policy = policy
68
+ self.role_session_name = role_session_name
69
+ self.role_trn = role_trn
70
+ if tags is not None:
71
+ self.tags = tags
72
+
73
+ @property
74
+ def duration_seconds(self):
75
+ """Gets the duration_seconds of this AssumeRoleRequest. # noqa: E501
76
+
77
+
78
+ :return: The duration_seconds of this AssumeRoleRequest. # noqa: E501
79
+ :rtype: int
80
+ """
81
+ return self._duration_seconds
82
+
83
+ @duration_seconds.setter
84
+ def duration_seconds(self, duration_seconds):
85
+ """Sets the duration_seconds of this AssumeRoleRequest.
86
+
87
+
88
+ :param duration_seconds: The duration_seconds of this AssumeRoleRequest. # noqa: E501
89
+ :type: int
90
+ """
91
+
92
+ self._duration_seconds = duration_seconds
93
+
94
+ @property
95
+ def policy(self):
96
+ """Gets the policy of this AssumeRoleRequest. # noqa: E501
97
+
98
+
99
+ :return: The policy of this AssumeRoleRequest. # noqa: E501
100
+ :rtype: str
101
+ """
102
+ return self._policy
103
+
104
+ @policy.setter
105
+ def policy(self, policy):
106
+ """Sets the policy of this AssumeRoleRequest.
107
+
108
+
109
+ :param policy: The policy of this AssumeRoleRequest. # noqa: E501
110
+ :type: str
111
+ """
112
+
113
+ self._policy = policy
114
+
115
+ @property
116
+ def role_session_name(self):
117
+ """Gets the role_session_name of this AssumeRoleRequest. # noqa: E501
118
+
119
+
120
+ :return: The role_session_name of this AssumeRoleRequest. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._role_session_name
124
+
125
+ @role_session_name.setter
126
+ def role_session_name(self, role_session_name):
127
+ """Sets the role_session_name of this AssumeRoleRequest.
128
+
129
+
130
+ :param role_session_name: The role_session_name of this AssumeRoleRequest. # noqa: E501
131
+ :type: str
132
+ """
133
+ if self._configuration.client_side_validation and role_session_name is None:
134
+ raise ValueError("Invalid value for `role_session_name`, must not be `None`") # noqa: E501
135
+
136
+ self._role_session_name = role_session_name
137
+
138
+ @property
139
+ def role_trn(self):
140
+ """Gets the role_trn of this AssumeRoleRequest. # noqa: E501
141
+
142
+
143
+ :return: The role_trn of this AssumeRoleRequest. # noqa: E501
144
+ :rtype: str
145
+ """
146
+ return self._role_trn
147
+
148
+ @role_trn.setter
149
+ def role_trn(self, role_trn):
150
+ """Sets the role_trn of this AssumeRoleRequest.
151
+
152
+
153
+ :param role_trn: The role_trn of this AssumeRoleRequest. # noqa: E501
154
+ :type: str
155
+ """
156
+ if self._configuration.client_side_validation and role_trn is None:
157
+ raise ValueError("Invalid value for `role_trn`, must not be `None`") # noqa: E501
158
+
159
+ self._role_trn = role_trn
160
+
161
+ @property
162
+ def tags(self):
163
+ """Gets the tags of this AssumeRoleRequest. # noqa: E501
164
+
165
+
166
+ :return: The tags of this AssumeRoleRequest. # noqa: E501
167
+ :rtype: list[TagForAssumeRoleInput]
168
+ """
169
+ return self._tags
170
+
171
+ @tags.setter
172
+ def tags(self, tags):
173
+ """Sets the tags of this AssumeRoleRequest.
174
+
175
+
176
+ :param tags: The tags of this AssumeRoleRequest. # noqa: E501
177
+ :type: list[TagForAssumeRoleInput]
178
+ """
179
+
180
+ self._tags = tags
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.swagger_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ result[attr] = value
203
+ if issubclass(AssumeRoleRequest, dict):
204
+ for key, value in self.items():
205
+ result[key] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ return pprint.pformat(self.to_dict())
212
+
213
+ def __repr__(self):
214
+ """For `print` and `pprint`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, AssumeRoleRequest):
220
+ return False
221
+
222
+ return self.to_dict() == other.to_dict()
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ if not isinstance(other, AssumeRoleRequest):
227
+ return True
228
+
229
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ sts
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 AssumeRoleResponse(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
+ 'assumed_role_user': 'AssumedRoleUserForAssumeRoleOutput',
37
+ 'credentials': 'CredentialsForAssumeRoleOutput'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'assumed_role_user': 'AssumedRoleUser',
42
+ 'credentials': 'Credentials'
43
+ }
44
+
45
+ def __init__(self, assumed_role_user=None, credentials=None, _configuration=None): # noqa: E501
46
+ """AssumeRoleResponse - a model defined in Swagger""" # noqa: E501
47
+ if _configuration is None:
48
+ _configuration = Configuration()
49
+ self._configuration = _configuration
50
+
51
+ self._assumed_role_user = None
52
+ self._credentials = None
53
+ self.discriminator = None
54
+
55
+ if assumed_role_user is not None:
56
+ self.assumed_role_user = assumed_role_user
57
+ if credentials is not None:
58
+ self.credentials = credentials
59
+
60
+ @property
61
+ def assumed_role_user(self):
62
+ """Gets the assumed_role_user of this AssumeRoleResponse. # noqa: E501
63
+
64
+
65
+ :return: The assumed_role_user of this AssumeRoleResponse. # noqa: E501
66
+ :rtype: AssumedRoleUserForAssumeRoleOutput
67
+ """
68
+ return self._assumed_role_user
69
+
70
+ @assumed_role_user.setter
71
+ def assumed_role_user(self, assumed_role_user):
72
+ """Sets the assumed_role_user of this AssumeRoleResponse.
73
+
74
+
75
+ :param assumed_role_user: The assumed_role_user of this AssumeRoleResponse. # noqa: E501
76
+ :type: AssumedRoleUserForAssumeRoleOutput
77
+ """
78
+
79
+ self._assumed_role_user = assumed_role_user
80
+
81
+ @property
82
+ def credentials(self):
83
+ """Gets the credentials of this AssumeRoleResponse. # noqa: E501
84
+
85
+
86
+ :return: The credentials of this AssumeRoleResponse. # noqa: E501
87
+ :rtype: CredentialsForAssumeRoleOutput
88
+ """
89
+ return self._credentials
90
+
91
+ @credentials.setter
92
+ def credentials(self, credentials):
93
+ """Sets the credentials of this AssumeRoleResponse.
94
+
95
+
96
+ :param credentials: The credentials of this AssumeRoleResponse. # noqa: E501
97
+ :type: CredentialsForAssumeRoleOutput
98
+ """
99
+
100
+ self._credentials = credentials
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(AssumeRoleResponse, 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, AssumeRoleResponse):
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, AssumeRoleResponse):
147
+ return True
148
+
149
+ return self.to_dict() != other.to_dict()