emailguard-sdk 1.0.0__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 (51) hide show
  1. emailguard_sdk/__init__.py +123 -0
  2. emailguard_sdk/api/__init__.py +12 -0
  3. emailguard_sdk/api/billing_api.py +348 -0
  4. emailguard_sdk/api/channels_api.py +1409 -0
  5. emailguard_sdk/api/email_api.py +303 -0
  6. emailguard_sdk/api/events_api.py +288 -0
  7. emailguard_sdk/api/invites_api.py +845 -0
  8. emailguard_sdk/api/members_api.py +866 -0
  9. emailguard_sdk/api/rules_api.py +1142 -0
  10. emailguard_sdk/api/teams_api.py +577 -0
  11. emailguard_sdk/api_client.py +805 -0
  12. emailguard_sdk/api_response.py +21 -0
  13. emailguard_sdk/configuration.py +661 -0
  14. emailguard_sdk/exceptions.py +219 -0
  15. emailguard_sdk/models/__init__.py +47 -0
  16. emailguard_sdk/models/base_response.py +91 -0
  17. emailguard_sdk/models/billing_usage_event.py +97 -0
  18. emailguard_sdk/models/billing_usage_item.py +107 -0
  19. emailguard_sdk/models/billing_usage_response.py +101 -0
  20. emailguard_sdk/models/create_notification_channel_input.py +93 -0
  21. emailguard_sdk/models/create_notification_rule_input.py +108 -0
  22. emailguard_sdk/models/email_detect_data.py +115 -0
  23. emailguard_sdk/models/email_detect_response.py +97 -0
  24. emailguard_sdk/models/get_notification_channel_response.py +97 -0
  25. emailguard_sdk/models/get_notification_channels_response.py +101 -0
  26. emailguard_sdk/models/get_notification_events_response.py +93 -0
  27. emailguard_sdk/models/get_notification_rules_response.py +101 -0
  28. emailguard_sdk/models/get_public_team_response.py +97 -0
  29. emailguard_sdk/models/id_data_response.py +97 -0
  30. emailguard_sdk/models/id_data_struct.py +89 -0
  31. emailguard_sdk/models/invite_team_member_input.py +91 -0
  32. emailguard_sdk/models/list_public_team_invites_response.py +101 -0
  33. emailguard_sdk/models/list_public_team_members_response.py +101 -0
  34. emailguard_sdk/models/message_response.py +91 -0
  35. emailguard_sdk/models/notification_channel_response.py +99 -0
  36. emailguard_sdk/models/notification_rule_channel_input.py +93 -0
  37. emailguard_sdk/models/notification_rule_channel_response.py +99 -0
  38. emailguard_sdk/models/notification_rule_response.py +111 -0
  39. emailguard_sdk/models/public_team_invite_response.py +95 -0
  40. emailguard_sdk/models/public_team_member_response.py +105 -0
  41. emailguard_sdk/models/public_team_response.py +99 -0
  42. emailguard_sdk/models/update_notification_channel_input.py +91 -0
  43. emailguard_sdk/models/update_notification_rule_input.py +107 -0
  44. emailguard_sdk/models/update_team_input.py +95 -0
  45. emailguard_sdk/models/update_team_member_input.py +93 -0
  46. emailguard_sdk/py.typed +0 -0
  47. emailguard_sdk/rest.py +264 -0
  48. emailguard_sdk-1.0.0.dist-info/METADATA +204 -0
  49. emailguard_sdk-1.0.0.dist-info/RECORD +51 -0
  50. emailguard_sdk-1.0.0.dist-info/WHEEL +5 -0
  51. emailguard_sdk-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ EmailGuard Public API
7
+
8
+ Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
9
+
10
+ The version of the OpenAPI document: 1.0
11
+ Contact: dev@emailguard.co
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "1.0.0"
19
+
20
+ # Define package exports
21
+ __all__ = [
22
+ "BillingApi",
23
+ "ChannelsApi",
24
+ "EventsApi",
25
+ "InvitesApi",
26
+ "MembersApi",
27
+ "RulesApi",
28
+ "TeamsApi",
29
+ "EmailApi",
30
+ "ApiResponse",
31
+ "ApiClient",
32
+ "Configuration",
33
+ "OpenApiException",
34
+ "ApiTypeError",
35
+ "ApiValueError",
36
+ "ApiKeyError",
37
+ "ApiAttributeError",
38
+ "ApiException",
39
+ "BaseResponse",
40
+ "BillingUsageEvent",
41
+ "BillingUsageItem",
42
+ "BillingUsageResponse",
43
+ "CreateNotificationChannelInput",
44
+ "CreateNotificationRuleInput",
45
+ "EmailDetectData",
46
+ "EmailDetectResponse",
47
+ "GetNotificationChannelResponse",
48
+ "GetNotificationChannelsResponse",
49
+ "GetNotificationEventsResponse",
50
+ "GetNotificationRulesResponse",
51
+ "GetPublicTeamResponse",
52
+ "IdDataResponse",
53
+ "IdDataStruct",
54
+ "InviteTeamMemberInput",
55
+ "ListPublicTeamInvitesResponse",
56
+ "ListPublicTeamMembersResponse",
57
+ "MessageResponse",
58
+ "NotificationChannelResponse",
59
+ "NotificationRuleChannelInput",
60
+ "NotificationRuleChannelResponse",
61
+ "NotificationRuleResponse",
62
+ "PublicTeamInviteResponse",
63
+ "PublicTeamMemberResponse",
64
+ "PublicTeamResponse",
65
+ "UpdateNotificationChannelInput",
66
+ "UpdateNotificationRuleInput",
67
+ "UpdateTeamInput",
68
+ "UpdateTeamMemberInput",
69
+ ]
70
+
71
+ # import apis into sdk package
72
+ from emailguard_sdk.api.billing_api import BillingApi as BillingApi
73
+ from emailguard_sdk.api.channels_api import ChannelsApi as ChannelsApi
74
+ from emailguard_sdk.api.events_api import EventsApi as EventsApi
75
+ from emailguard_sdk.api.invites_api import InvitesApi as InvitesApi
76
+ from emailguard_sdk.api.members_api import MembersApi as MembersApi
77
+ from emailguard_sdk.api.rules_api import RulesApi as RulesApi
78
+ from emailguard_sdk.api.teams_api import TeamsApi as TeamsApi
79
+ from emailguard_sdk.api.email_api import EmailApi as EmailApi
80
+
81
+ # import ApiClient
82
+ from emailguard_sdk.api_response import ApiResponse as ApiResponse
83
+ from emailguard_sdk.api_client import ApiClient as ApiClient
84
+ from emailguard_sdk.configuration import Configuration as Configuration
85
+ from emailguard_sdk.exceptions import OpenApiException as OpenApiException
86
+ from emailguard_sdk.exceptions import ApiTypeError as ApiTypeError
87
+ from emailguard_sdk.exceptions import ApiValueError as ApiValueError
88
+ from emailguard_sdk.exceptions import ApiKeyError as ApiKeyError
89
+ from emailguard_sdk.exceptions import ApiAttributeError as ApiAttributeError
90
+ from emailguard_sdk.exceptions import ApiException as ApiException
91
+
92
+ # import models into sdk package
93
+ from emailguard_sdk.models.base_response import BaseResponse as BaseResponse
94
+ from emailguard_sdk.models.billing_usage_event import BillingUsageEvent as BillingUsageEvent
95
+ from emailguard_sdk.models.billing_usage_item import BillingUsageItem as BillingUsageItem
96
+ from emailguard_sdk.models.billing_usage_response import BillingUsageResponse as BillingUsageResponse
97
+ from emailguard_sdk.models.create_notification_channel_input import CreateNotificationChannelInput as CreateNotificationChannelInput
98
+ from emailguard_sdk.models.create_notification_rule_input import CreateNotificationRuleInput as CreateNotificationRuleInput
99
+ from emailguard_sdk.models.email_detect_data import EmailDetectData as EmailDetectData
100
+ from emailguard_sdk.models.email_detect_response import EmailDetectResponse as EmailDetectResponse
101
+ from emailguard_sdk.models.get_notification_channel_response import GetNotificationChannelResponse as GetNotificationChannelResponse
102
+ from emailguard_sdk.models.get_notification_channels_response import GetNotificationChannelsResponse as GetNotificationChannelsResponse
103
+ from emailguard_sdk.models.get_notification_events_response import GetNotificationEventsResponse as GetNotificationEventsResponse
104
+ from emailguard_sdk.models.get_notification_rules_response import GetNotificationRulesResponse as GetNotificationRulesResponse
105
+ from emailguard_sdk.models.get_public_team_response import GetPublicTeamResponse as GetPublicTeamResponse
106
+ from emailguard_sdk.models.id_data_response import IdDataResponse as IdDataResponse
107
+ from emailguard_sdk.models.id_data_struct import IdDataStruct as IdDataStruct
108
+ from emailguard_sdk.models.invite_team_member_input import InviteTeamMemberInput as InviteTeamMemberInput
109
+ from emailguard_sdk.models.list_public_team_invites_response import ListPublicTeamInvitesResponse as ListPublicTeamInvitesResponse
110
+ from emailguard_sdk.models.list_public_team_members_response import ListPublicTeamMembersResponse as ListPublicTeamMembersResponse
111
+ from emailguard_sdk.models.message_response import MessageResponse as MessageResponse
112
+ from emailguard_sdk.models.notification_channel_response import NotificationChannelResponse as NotificationChannelResponse
113
+ from emailguard_sdk.models.notification_rule_channel_input import NotificationRuleChannelInput as NotificationRuleChannelInput
114
+ from emailguard_sdk.models.notification_rule_channel_response import NotificationRuleChannelResponse as NotificationRuleChannelResponse
115
+ from emailguard_sdk.models.notification_rule_response import NotificationRuleResponse as NotificationRuleResponse
116
+ from emailguard_sdk.models.public_team_invite_response import PublicTeamInviteResponse as PublicTeamInviteResponse
117
+ from emailguard_sdk.models.public_team_member_response import PublicTeamMemberResponse as PublicTeamMemberResponse
118
+ from emailguard_sdk.models.public_team_response import PublicTeamResponse as PublicTeamResponse
119
+ from emailguard_sdk.models.update_notification_channel_input import UpdateNotificationChannelInput as UpdateNotificationChannelInput
120
+ from emailguard_sdk.models.update_notification_rule_input import UpdateNotificationRuleInput as UpdateNotificationRuleInput
121
+ from emailguard_sdk.models.update_team_input import UpdateTeamInput as UpdateTeamInput
122
+ from emailguard_sdk.models.update_team_member_input import UpdateTeamMemberInput as UpdateTeamMemberInput
123
+
@@ -0,0 +1,12 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from emailguard_sdk.api.billing_api import BillingApi
5
+ from emailguard_sdk.api.channels_api import ChannelsApi
6
+ from emailguard_sdk.api.events_api import EventsApi
7
+ from emailguard_sdk.api.invites_api import InvitesApi
8
+ from emailguard_sdk.api.members_api import MembersApi
9
+ from emailguard_sdk.api.rules_api import RulesApi
10
+ from emailguard_sdk.api.teams_api import TeamsApi
11
+ from emailguard_sdk.api.email_api import EmailApi
12
+
@@ -0,0 +1,348 @@
1
+ """
2
+ EmailGuard Public API
3
+
4
+ Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: dev@emailguard.co
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr, field_validator
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from emailguard_sdk.models.billing_usage_response import BillingUsageResponse
23
+
24
+ from emailguard_sdk.api_client import ApiClient, RequestSerialized
25
+ from emailguard_sdk.api_response import ApiResponse
26
+ from emailguard_sdk.rest import RESTResponseType
27
+
28
+
29
+ class BillingApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def api_v1_team_billing_usage_get(
44
+ self,
45
+ range: Annotated[Optional[StrictStr], Field(description="Period selector: current, previous, or custom")] = None,
46
+ start: Annotated[Optional[StrictStr], Field(description="Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom")] = None,
47
+ end: Annotated[Optional[StrictStr], Field(description="Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom")] = None,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> BillingUsageResponse:
61
+ """Get billing usage
62
+
63
+ Returns metered feature usage for the team's billing period. Defaults to the current period; use `range=previous` or `range=custom` with `start` and `end` to query other windows.
64
+
65
+ :param range: Period selector: current, previous, or custom
66
+ :type range: str
67
+ :param start: Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom
68
+ :type start: str
69
+ :param end: Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom
70
+ :type end: str
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._api_v1_team_billing_usage_get_serialize(
94
+ range=range,
95
+ start=start,
96
+ end=end,
97
+ _request_auth=_request_auth,
98
+ _content_type=_content_type,
99
+ _headers=_headers,
100
+ _host_index=_host_index
101
+ )
102
+
103
+ _response_types_map: Dict[str, Optional[str]] = {
104
+ '200': "BillingUsageResponse",
105
+ '400': "BaseResponse",
106
+ '401': "BaseResponse",
107
+ '403': "BaseResponse",
108
+ '404': "BaseResponse",
109
+ }
110
+ response_data = self.api_client.call_api(
111
+ *_param,
112
+ _request_timeout=_request_timeout
113
+ )
114
+ response_data.read()
115
+ return self.api_client.response_deserialize(
116
+ response_data=response_data,
117
+ response_types_map=_response_types_map,
118
+ ).data
119
+
120
+
121
+ @validate_call
122
+ def api_v1_team_billing_usage_get_with_http_info(
123
+ self,
124
+ range: Annotated[Optional[StrictStr], Field(description="Period selector: current, previous, or custom")] = None,
125
+ start: Annotated[Optional[StrictStr], Field(description="Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom")] = None,
126
+ end: Annotated[Optional[StrictStr], Field(description="Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom")] = None,
127
+ _request_timeout: Union[
128
+ None,
129
+ Annotated[StrictFloat, Field(gt=0)],
130
+ Tuple[
131
+ Annotated[StrictFloat, Field(gt=0)],
132
+ Annotated[StrictFloat, Field(gt=0)]
133
+ ]
134
+ ] = None,
135
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
136
+ _content_type: Optional[StrictStr] = None,
137
+ _headers: Optional[Dict[StrictStr, Any]] = None,
138
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
139
+ ) -> ApiResponse[BillingUsageResponse]:
140
+ """Get billing usage
141
+
142
+ Returns metered feature usage for the team's billing period. Defaults to the current period; use `range=previous` or `range=custom` with `start` and `end` to query other windows.
143
+
144
+ :param range: Period selector: current, previous, or custom
145
+ :type range: str
146
+ :param start: Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom
147
+ :type start: str
148
+ :param end: Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom
149
+ :type end: str
150
+ :param _request_timeout: timeout setting for this request. If one
151
+ number provided, it will be total request
152
+ timeout. It can also be a pair (tuple) of
153
+ (connection, read) timeouts.
154
+ :type _request_timeout: int, tuple(int, int), optional
155
+ :param _request_auth: set to override the auth_settings for an a single
156
+ request; this effectively ignores the
157
+ authentication in the spec for a single request.
158
+ :type _request_auth: dict, optional
159
+ :param _content_type: force content-type for the request.
160
+ :type _content_type: str, Optional
161
+ :param _headers: set to override the headers for a single
162
+ request; this effectively ignores the headers
163
+ in the spec for a single request.
164
+ :type _headers: dict, optional
165
+ :param _host_index: set to override the host_index for a single
166
+ request; this effectively ignores the host_index
167
+ in the spec for a single request.
168
+ :type _host_index: int, optional
169
+ :return: Returns the result object.
170
+ """ # noqa: E501
171
+
172
+ _param = self._api_v1_team_billing_usage_get_serialize(
173
+ range=range,
174
+ start=start,
175
+ end=end,
176
+ _request_auth=_request_auth,
177
+ _content_type=_content_type,
178
+ _headers=_headers,
179
+ _host_index=_host_index
180
+ )
181
+
182
+ _response_types_map: Dict[str, Optional[str]] = {
183
+ '200': "BillingUsageResponse",
184
+ '400': "BaseResponse",
185
+ '401': "BaseResponse",
186
+ '403': "BaseResponse",
187
+ '404': "BaseResponse",
188
+ }
189
+ response_data = self.api_client.call_api(
190
+ *_param,
191
+ _request_timeout=_request_timeout
192
+ )
193
+ response_data.read()
194
+ return self.api_client.response_deserialize(
195
+ response_data=response_data,
196
+ response_types_map=_response_types_map,
197
+ )
198
+
199
+
200
+ @validate_call
201
+ def api_v1_team_billing_usage_get_without_preload_content(
202
+ self,
203
+ range: Annotated[Optional[StrictStr], Field(description="Period selector: current, previous, or custom")] = None,
204
+ start: Annotated[Optional[StrictStr], Field(description="Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom")] = None,
205
+ end: Annotated[Optional[StrictStr], Field(description="Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom")] = None,
206
+ _request_timeout: Union[
207
+ None,
208
+ Annotated[StrictFloat, Field(gt=0)],
209
+ Tuple[
210
+ Annotated[StrictFloat, Field(gt=0)],
211
+ Annotated[StrictFloat, Field(gt=0)]
212
+ ]
213
+ ] = None,
214
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
215
+ _content_type: Optional[StrictStr] = None,
216
+ _headers: Optional[Dict[StrictStr, Any]] = None,
217
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
218
+ ) -> RESTResponseType:
219
+ """Get billing usage
220
+
221
+ Returns metered feature usage for the team's billing period. Defaults to the current period; use `range=previous` or `range=custom` with `start` and `end` to query other windows.
222
+
223
+ :param range: Period selector: current, previous, or custom
224
+ :type range: str
225
+ :param start: Custom range start (RFC3339 or YYYY-MM-DD); required when range=custom
226
+ :type start: str
227
+ :param end: Custom range end (RFC3339 or YYYY-MM-DD); required when range=custom
228
+ :type end: str
229
+ :param _request_timeout: timeout setting for this request. If one
230
+ number provided, it will be total request
231
+ timeout. It can also be a pair (tuple) of
232
+ (connection, read) timeouts.
233
+ :type _request_timeout: int, tuple(int, int), optional
234
+ :param _request_auth: set to override the auth_settings for an a single
235
+ request; this effectively ignores the
236
+ authentication in the spec for a single request.
237
+ :type _request_auth: dict, optional
238
+ :param _content_type: force content-type for the request.
239
+ :type _content_type: str, Optional
240
+ :param _headers: set to override the headers for a single
241
+ request; this effectively ignores the headers
242
+ in the spec for a single request.
243
+ :type _headers: dict, optional
244
+ :param _host_index: set to override the host_index for a single
245
+ request; this effectively ignores the host_index
246
+ in the spec for a single request.
247
+ :type _host_index: int, optional
248
+ :return: Returns the result object.
249
+ """ # noqa: E501
250
+
251
+ _param = self._api_v1_team_billing_usage_get_serialize(
252
+ range=range,
253
+ start=start,
254
+ end=end,
255
+ _request_auth=_request_auth,
256
+ _content_type=_content_type,
257
+ _headers=_headers,
258
+ _host_index=_host_index
259
+ )
260
+
261
+ _response_types_map: Dict[str, Optional[str]] = {
262
+ '200': "BillingUsageResponse",
263
+ '400': "BaseResponse",
264
+ '401': "BaseResponse",
265
+ '403': "BaseResponse",
266
+ '404': "BaseResponse",
267
+ }
268
+ response_data = self.api_client.call_api(
269
+ *_param,
270
+ _request_timeout=_request_timeout
271
+ )
272
+ return response_data.response
273
+
274
+
275
+ def _api_v1_team_billing_usage_get_serialize(
276
+ self,
277
+ range,
278
+ start,
279
+ end,
280
+ _request_auth,
281
+ _content_type,
282
+ _headers,
283
+ _host_index,
284
+ ) -> RequestSerialized:
285
+
286
+ _host = None
287
+
288
+ _collection_formats: Dict[str, str] = {
289
+ }
290
+
291
+ _path_params: Dict[str, str] = {}
292
+ _query_params: List[Tuple[str, str]] = []
293
+ _header_params: Dict[str, Optional[str]] = _headers or {}
294
+ _form_params: List[Tuple[str, str]] = []
295
+ _files: Dict[
296
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
297
+ ] = {}
298
+ _body_params: Optional[bytes] = None
299
+
300
+ # process the path parameters
301
+ # process the query parameters
302
+ if range is not None:
303
+
304
+ _query_params.append(('range', range))
305
+
306
+ if start is not None:
307
+
308
+ _query_params.append(('start', start))
309
+
310
+ if end is not None:
311
+
312
+ _query_params.append(('end', end))
313
+
314
+ # process the header parameters
315
+ # process the form parameters
316
+ # process the body parameter
317
+
318
+
319
+ # set the HTTP header `Accept`
320
+ if 'Accept' not in _header_params:
321
+ _header_params['Accept'] = self.api_client.select_header_accept(
322
+ [
323
+ 'application/json'
324
+ ]
325
+ )
326
+
327
+
328
+ # authentication setting
329
+ _auth_settings: List[str] = [
330
+ 'ApiKeyAuth'
331
+ ]
332
+
333
+ return self.api_client.param_serialize(
334
+ method='GET',
335
+ resource_path='/api/v1/team/billing/usage',
336
+ path_params=_path_params,
337
+ query_params=_query_params,
338
+ header_params=_header_params,
339
+ body=_body_params,
340
+ post_params=_form_params,
341
+ files=_files,
342
+ auth_settings=_auth_settings,
343
+ collection_formats=_collection_formats,
344
+ _host=_host,
345
+ _request_auth=_request_auth
346
+ )
347
+
348
+