gcore 0.7.0__py3-none-any.whl → 0.9.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 (46) hide show
  1. gcore/_base_client.py +4 -1
  2. gcore/_client.py +9 -0
  3. gcore/_files.py +4 -4
  4. gcore/_version.py +1 -1
  5. gcore/pagination.py +0 -62
  6. gcore/resources/__init__.py +14 -0
  7. gcore/resources/cloud/cost_reports.py +24 -0
  8. gcore/resources/cloud/quotas/requests.py +7 -15
  9. gcore/resources/fastedge/binaries.py +81 -1
  10. gcore/resources/iam/users.py +5 -5
  11. gcore/resources/security/__init__.py +75 -0
  12. gcore/resources/security/bgp_announces.py +308 -0
  13. gcore/resources/security/events.py +234 -0
  14. gcore/resources/security/profile_templates.py +143 -0
  15. gcore/resources/security/profiles.py +661 -0
  16. gcore/resources/security/security.py +198 -0
  17. gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +3 -0
  18. gcore/types/cloud/cost_report_get_aggregated_params.py +3 -0
  19. gcore/types/cloud/cost_report_get_detailed_params.py +3 -0
  20. gcore/types/cloud/floating_ip.py +0 -9
  21. gcore/types/cloud/floating_ip_detailed.py +0 -9
  22. gcore/types/cloud/gpu_baremetal_flavor.py +16 -0
  23. gcore/types/cloud/quotas/request_list_params.py +2 -2
  24. gcore/types/cloud/region.py +6 -3
  25. gcore/types/cloud/subnet.py +1 -1
  26. gcore/types/fastedge/__init__.py +1 -0
  27. gcore/types/fastedge/binary_create_params.py +11 -0
  28. gcore/types/security/__init__.py +18 -0
  29. gcore/types/security/bgp_announce_change_params.py +16 -0
  30. gcore/types/security/bgp_announce_list_params.py +18 -0
  31. gcore/types/security/bgp_announce_list_response.py +10 -0
  32. gcore/types/security/client_announce.py +15 -0
  33. gcore/types/security/client_profile.py +56 -0
  34. gcore/types/security/client_profile_template.py +43 -0
  35. gcore/types/security/client_view.py +29 -0
  36. gcore/types/security/event_list_params.py +38 -0
  37. gcore/types/security/profile_create_params.py +24 -0
  38. gcore/types/security/profile_list_params.py +17 -0
  39. gcore/types/security/profile_list_response.py +10 -0
  40. gcore/types/security/profile_recreate_params.py +24 -0
  41. gcore/types/security/profile_replace_params.py +24 -0
  42. gcore/types/security/profile_template_list_response.py +10 -0
  43. {gcore-0.7.0.dist-info → gcore-0.9.0.dist-info}/METADATA +1 -1
  44. {gcore-0.7.0.dist-info → gcore-0.9.0.dist-info}/RECORD +46 -24
  45. {gcore-0.7.0.dist-info → gcore-0.9.0.dist-info}/WHEEL +0 -0
  46. {gcore-0.7.0.dist-info → gcore-0.9.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,661 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Iterable, Optional
6
+
7
+ import httpx
8
+
9
+ from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
10
+ from ..._utils import maybe_transform, async_maybe_transform
11
+ from ..._compat import cached_property
12
+ from ..._resource import SyncAPIResource, AsyncAPIResource
13
+ from ..._response import (
14
+ to_raw_response_wrapper,
15
+ to_streamed_response_wrapper,
16
+ async_to_raw_response_wrapper,
17
+ async_to_streamed_response_wrapper,
18
+ )
19
+ from ..._base_client import make_request_options
20
+ from ...types.security import (
21
+ profile_list_params,
22
+ profile_create_params,
23
+ profile_replace_params,
24
+ profile_recreate_params,
25
+ )
26
+ from ...types.security.client_profile import ClientProfile
27
+ from ...types.security.profile_list_response import ProfileListResponse
28
+
29
+ __all__ = ["ProfilesResource", "AsyncProfilesResource"]
30
+
31
+
32
+ class ProfilesResource(SyncAPIResource):
33
+ @cached_property
34
+ def with_raw_response(self) -> ProfilesResourceWithRawResponse:
35
+ """
36
+ This property can be used as a prefix for any HTTP method call to return
37
+ the raw response object instead of the parsed content.
38
+
39
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
40
+ """
41
+ return ProfilesResourceWithRawResponse(self)
42
+
43
+ @cached_property
44
+ def with_streaming_response(self) -> ProfilesResourceWithStreamingResponse:
45
+ """
46
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
47
+
48
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
49
+ """
50
+ return ProfilesResourceWithStreamingResponse(self)
51
+
52
+ def create(
53
+ self,
54
+ *,
55
+ fields: Iterable[profile_create_params.Field],
56
+ profile_template: int,
57
+ ip_address: Optional[str] | NotGiven = NOT_GIVEN,
58
+ site: str | NotGiven = NOT_GIVEN,
59
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
60
+ # The extra values given here take precedence over values defined on the client or passed to this method.
61
+ extra_headers: Headers | None = None,
62
+ extra_query: Query | None = None,
63
+ extra_body: Body | None = None,
64
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
65
+ ) -> ClientProfile:
66
+ """Create protection profile.
67
+
68
+ Protection is enabled at the same time as profile is
69
+ created
70
+
71
+ Args:
72
+ extra_headers: Send extra headers
73
+
74
+ extra_query: Add additional query parameters to the request
75
+
76
+ extra_body: Add additional JSON properties to the request
77
+
78
+ timeout: Override the client-level default timeout for this request, in seconds
79
+ """
80
+ return self._post(
81
+ "/security/iaas/v2/profiles",
82
+ body=maybe_transform(
83
+ {
84
+ "fields": fields,
85
+ "profile_template": profile_template,
86
+ "ip_address": ip_address,
87
+ "site": site,
88
+ },
89
+ profile_create_params.ProfileCreateParams,
90
+ ),
91
+ options=make_request_options(
92
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
93
+ ),
94
+ cast_to=ClientProfile,
95
+ )
96
+
97
+ def list(
98
+ self,
99
+ *,
100
+ exclude_empty_address: bool | NotGiven = NOT_GIVEN,
101
+ include_deleted: bool | NotGiven = NOT_GIVEN,
102
+ ip_address: str | NotGiven = NOT_GIVEN,
103
+ site: str | NotGiven = NOT_GIVEN,
104
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105
+ # The extra values given here take precedence over values defined on the client or passed to this method.
106
+ extra_headers: Headers | None = None,
107
+ extra_query: Query | None = None,
108
+ extra_body: Body | None = None,
109
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
110
+ ) -> ProfileListResponse:
111
+ """Get list of protection profiles.
112
+
113
+ Client receives only profiles created by him
114
+
115
+ Args:
116
+ extra_headers: Send extra headers
117
+
118
+ extra_query: Add additional query parameters to the request
119
+
120
+ extra_body: Add additional JSON properties to the request
121
+
122
+ timeout: Override the client-level default timeout for this request, in seconds
123
+ """
124
+ return self._get(
125
+ "/security/iaas/v2/profiles",
126
+ options=make_request_options(
127
+ extra_headers=extra_headers,
128
+ extra_query=extra_query,
129
+ extra_body=extra_body,
130
+ timeout=timeout,
131
+ query=maybe_transform(
132
+ {
133
+ "exclude_empty_address": exclude_empty_address,
134
+ "include_deleted": include_deleted,
135
+ "ip_address": ip_address,
136
+ "site": site,
137
+ },
138
+ profile_list_params.ProfileListParams,
139
+ ),
140
+ ),
141
+ cast_to=ProfileListResponse,
142
+ )
143
+
144
+ def delete(
145
+ self,
146
+ id: int,
147
+ *,
148
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
149
+ # The extra values given here take precedence over values defined on the client or passed to this method.
150
+ extra_headers: Headers | None = None,
151
+ extra_query: Query | None = None,
152
+ extra_body: Body | None = None,
153
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
154
+ ) -> None:
155
+ """Delete protection profile.
156
+
157
+ Protection is disabled at the same time as profile is
158
+ deleted
159
+
160
+ Args:
161
+ extra_headers: Send extra headers
162
+
163
+ extra_query: Add additional query parameters to the request
164
+
165
+ extra_body: Add additional JSON properties to the request
166
+
167
+ timeout: Override the client-level default timeout for this request, in seconds
168
+ """
169
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
170
+ return self._delete(
171
+ f"/security/iaas/v2/profiles/{id}",
172
+ options=make_request_options(
173
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
174
+ ),
175
+ cast_to=NoneType,
176
+ )
177
+
178
+ def get(
179
+ self,
180
+ id: int,
181
+ *,
182
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
183
+ # The extra values given here take precedence over values defined on the client or passed to this method.
184
+ extra_headers: Headers | None = None,
185
+ extra_query: Query | None = None,
186
+ extra_body: Body | None = None,
187
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
188
+ ) -> ClientProfile:
189
+ """
190
+ Get profile by id
191
+
192
+ Args:
193
+ extra_headers: Send extra headers
194
+
195
+ extra_query: Add additional query parameters to the request
196
+
197
+ extra_body: Add additional JSON properties to the request
198
+
199
+ timeout: Override the client-level default timeout for this request, in seconds
200
+ """
201
+ return self._get(
202
+ f"/security/iaas/v2/profiles/{id}",
203
+ options=make_request_options(
204
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
205
+ ),
206
+ cast_to=ClientProfile,
207
+ )
208
+
209
+ def recreate(
210
+ self,
211
+ id: int,
212
+ *,
213
+ fields: Iterable[profile_recreate_params.Field],
214
+ profile_template: int,
215
+ ip_address: Optional[str] | NotGiven = NOT_GIVEN,
216
+ site: str | NotGiven = NOT_GIVEN,
217
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
218
+ # The extra values given here take precedence over values defined on the client or passed to this method.
219
+ extra_headers: Headers | None = None,
220
+ extra_query: Query | None = None,
221
+ extra_body: Body | None = None,
222
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
223
+ ) -> ClientProfile:
224
+ """
225
+ Recreate profile with another profile template (for other cases use detail API)
226
+
227
+ Args:
228
+ extra_headers: Send extra headers
229
+
230
+ extra_query: Add additional query parameters to the request
231
+
232
+ extra_body: Add additional JSON properties to the request
233
+
234
+ timeout: Override the client-level default timeout for this request, in seconds
235
+ """
236
+ return self._put(
237
+ f"/security/iaas/v2/profiles/{id}/recreate",
238
+ body=maybe_transform(
239
+ {
240
+ "fields": fields,
241
+ "profile_template": profile_template,
242
+ "ip_address": ip_address,
243
+ "site": site,
244
+ },
245
+ profile_recreate_params.ProfileRecreateParams,
246
+ ),
247
+ options=make_request_options(
248
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
249
+ ),
250
+ cast_to=ClientProfile,
251
+ )
252
+
253
+ def replace(
254
+ self,
255
+ id: int,
256
+ *,
257
+ fields: Iterable[profile_replace_params.Field],
258
+ profile_template: int,
259
+ ip_address: Optional[str] | NotGiven = NOT_GIVEN,
260
+ site: str | NotGiven = NOT_GIVEN,
261
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
262
+ # The extra values given here take precedence over values defined on the client or passed to this method.
263
+ extra_headers: Headers | None = None,
264
+ extra_query: Query | None = None,
265
+ extra_body: Body | None = None,
266
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
267
+ ) -> ClientProfile:
268
+ """Update profile.
269
+
270
+ Protection policies are updated at the same time as profile
271
+ updated
272
+
273
+ Args:
274
+ extra_headers: Send extra headers
275
+
276
+ extra_query: Add additional query parameters to the request
277
+
278
+ extra_body: Add additional JSON properties to the request
279
+
280
+ timeout: Override the client-level default timeout for this request, in seconds
281
+ """
282
+ return self._put(
283
+ f"/security/iaas/v2/profiles/{id}",
284
+ body=maybe_transform(
285
+ {
286
+ "fields": fields,
287
+ "profile_template": profile_template,
288
+ "ip_address": ip_address,
289
+ "site": site,
290
+ },
291
+ profile_replace_params.ProfileReplaceParams,
292
+ ),
293
+ options=make_request_options(
294
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
295
+ ),
296
+ cast_to=ClientProfile,
297
+ )
298
+
299
+
300
+ class AsyncProfilesResource(AsyncAPIResource):
301
+ @cached_property
302
+ def with_raw_response(self) -> AsyncProfilesResourceWithRawResponse:
303
+ """
304
+ This property can be used as a prefix for any HTTP method call to return
305
+ the raw response object instead of the parsed content.
306
+
307
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
308
+ """
309
+ return AsyncProfilesResourceWithRawResponse(self)
310
+
311
+ @cached_property
312
+ def with_streaming_response(self) -> AsyncProfilesResourceWithStreamingResponse:
313
+ """
314
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
315
+
316
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
317
+ """
318
+ return AsyncProfilesResourceWithStreamingResponse(self)
319
+
320
+ async def create(
321
+ self,
322
+ *,
323
+ fields: Iterable[profile_create_params.Field],
324
+ profile_template: int,
325
+ ip_address: Optional[str] | NotGiven = NOT_GIVEN,
326
+ site: str | NotGiven = NOT_GIVEN,
327
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
328
+ # The extra values given here take precedence over values defined on the client or passed to this method.
329
+ extra_headers: Headers | None = None,
330
+ extra_query: Query | None = None,
331
+ extra_body: Body | None = None,
332
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
333
+ ) -> ClientProfile:
334
+ """Create protection profile.
335
+
336
+ Protection is enabled at the same time as profile is
337
+ created
338
+
339
+ Args:
340
+ extra_headers: Send extra headers
341
+
342
+ extra_query: Add additional query parameters to the request
343
+
344
+ extra_body: Add additional JSON properties to the request
345
+
346
+ timeout: Override the client-level default timeout for this request, in seconds
347
+ """
348
+ return await self._post(
349
+ "/security/iaas/v2/profiles",
350
+ body=await async_maybe_transform(
351
+ {
352
+ "fields": fields,
353
+ "profile_template": profile_template,
354
+ "ip_address": ip_address,
355
+ "site": site,
356
+ },
357
+ profile_create_params.ProfileCreateParams,
358
+ ),
359
+ options=make_request_options(
360
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
361
+ ),
362
+ cast_to=ClientProfile,
363
+ )
364
+
365
+ async def list(
366
+ self,
367
+ *,
368
+ exclude_empty_address: bool | NotGiven = NOT_GIVEN,
369
+ include_deleted: bool | NotGiven = NOT_GIVEN,
370
+ ip_address: str | NotGiven = NOT_GIVEN,
371
+ site: str | NotGiven = NOT_GIVEN,
372
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
373
+ # The extra values given here take precedence over values defined on the client or passed to this method.
374
+ extra_headers: Headers | None = None,
375
+ extra_query: Query | None = None,
376
+ extra_body: Body | None = None,
377
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
378
+ ) -> ProfileListResponse:
379
+ """Get list of protection profiles.
380
+
381
+ Client receives only profiles created by him
382
+
383
+ Args:
384
+ extra_headers: Send extra headers
385
+
386
+ extra_query: Add additional query parameters to the request
387
+
388
+ extra_body: Add additional JSON properties to the request
389
+
390
+ timeout: Override the client-level default timeout for this request, in seconds
391
+ """
392
+ return await self._get(
393
+ "/security/iaas/v2/profiles",
394
+ options=make_request_options(
395
+ extra_headers=extra_headers,
396
+ extra_query=extra_query,
397
+ extra_body=extra_body,
398
+ timeout=timeout,
399
+ query=await async_maybe_transform(
400
+ {
401
+ "exclude_empty_address": exclude_empty_address,
402
+ "include_deleted": include_deleted,
403
+ "ip_address": ip_address,
404
+ "site": site,
405
+ },
406
+ profile_list_params.ProfileListParams,
407
+ ),
408
+ ),
409
+ cast_to=ProfileListResponse,
410
+ )
411
+
412
+ async def delete(
413
+ self,
414
+ id: int,
415
+ *,
416
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
417
+ # The extra values given here take precedence over values defined on the client or passed to this method.
418
+ extra_headers: Headers | None = None,
419
+ extra_query: Query | None = None,
420
+ extra_body: Body | None = None,
421
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
422
+ ) -> None:
423
+ """Delete protection profile.
424
+
425
+ Protection is disabled at the same time as profile is
426
+ deleted
427
+
428
+ Args:
429
+ extra_headers: Send extra headers
430
+
431
+ extra_query: Add additional query parameters to the request
432
+
433
+ extra_body: Add additional JSON properties to the request
434
+
435
+ timeout: Override the client-level default timeout for this request, in seconds
436
+ """
437
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
438
+ return await self._delete(
439
+ f"/security/iaas/v2/profiles/{id}",
440
+ options=make_request_options(
441
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
442
+ ),
443
+ cast_to=NoneType,
444
+ )
445
+
446
+ async def get(
447
+ self,
448
+ id: int,
449
+ *,
450
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
451
+ # The extra values given here take precedence over values defined on the client or passed to this method.
452
+ extra_headers: Headers | None = None,
453
+ extra_query: Query | None = None,
454
+ extra_body: Body | None = None,
455
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
456
+ ) -> ClientProfile:
457
+ """
458
+ Get profile by id
459
+
460
+ Args:
461
+ extra_headers: Send extra headers
462
+
463
+ extra_query: Add additional query parameters to the request
464
+
465
+ extra_body: Add additional JSON properties to the request
466
+
467
+ timeout: Override the client-level default timeout for this request, in seconds
468
+ """
469
+ return await self._get(
470
+ f"/security/iaas/v2/profiles/{id}",
471
+ options=make_request_options(
472
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
473
+ ),
474
+ cast_to=ClientProfile,
475
+ )
476
+
477
+ async def recreate(
478
+ self,
479
+ id: int,
480
+ *,
481
+ fields: Iterable[profile_recreate_params.Field],
482
+ profile_template: int,
483
+ ip_address: Optional[str] | NotGiven = NOT_GIVEN,
484
+ site: str | NotGiven = NOT_GIVEN,
485
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
486
+ # The extra values given here take precedence over values defined on the client or passed to this method.
487
+ extra_headers: Headers | None = None,
488
+ extra_query: Query | None = None,
489
+ extra_body: Body | None = None,
490
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
491
+ ) -> ClientProfile:
492
+ """
493
+ Recreate profile with another profile template (for other cases use detail API)
494
+
495
+ Args:
496
+ extra_headers: Send extra headers
497
+
498
+ extra_query: Add additional query parameters to the request
499
+
500
+ extra_body: Add additional JSON properties to the request
501
+
502
+ timeout: Override the client-level default timeout for this request, in seconds
503
+ """
504
+ return await self._put(
505
+ f"/security/iaas/v2/profiles/{id}/recreate",
506
+ body=await async_maybe_transform(
507
+ {
508
+ "fields": fields,
509
+ "profile_template": profile_template,
510
+ "ip_address": ip_address,
511
+ "site": site,
512
+ },
513
+ profile_recreate_params.ProfileRecreateParams,
514
+ ),
515
+ options=make_request_options(
516
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
517
+ ),
518
+ cast_to=ClientProfile,
519
+ )
520
+
521
+ async def replace(
522
+ self,
523
+ id: int,
524
+ *,
525
+ fields: Iterable[profile_replace_params.Field],
526
+ profile_template: int,
527
+ ip_address: Optional[str] | NotGiven = NOT_GIVEN,
528
+ site: str | NotGiven = NOT_GIVEN,
529
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
530
+ # The extra values given here take precedence over values defined on the client or passed to this method.
531
+ extra_headers: Headers | None = None,
532
+ extra_query: Query | None = None,
533
+ extra_body: Body | None = None,
534
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
535
+ ) -> ClientProfile:
536
+ """Update profile.
537
+
538
+ Protection policies are updated at the same time as profile
539
+ updated
540
+
541
+ Args:
542
+ extra_headers: Send extra headers
543
+
544
+ extra_query: Add additional query parameters to the request
545
+
546
+ extra_body: Add additional JSON properties to the request
547
+
548
+ timeout: Override the client-level default timeout for this request, in seconds
549
+ """
550
+ return await self._put(
551
+ f"/security/iaas/v2/profiles/{id}",
552
+ body=await async_maybe_transform(
553
+ {
554
+ "fields": fields,
555
+ "profile_template": profile_template,
556
+ "ip_address": ip_address,
557
+ "site": site,
558
+ },
559
+ profile_replace_params.ProfileReplaceParams,
560
+ ),
561
+ options=make_request_options(
562
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
563
+ ),
564
+ cast_to=ClientProfile,
565
+ )
566
+
567
+
568
+ class ProfilesResourceWithRawResponse:
569
+ def __init__(self, profiles: ProfilesResource) -> None:
570
+ self._profiles = profiles
571
+
572
+ self.create = to_raw_response_wrapper(
573
+ profiles.create,
574
+ )
575
+ self.list = to_raw_response_wrapper(
576
+ profiles.list,
577
+ )
578
+ self.delete = to_raw_response_wrapper(
579
+ profiles.delete,
580
+ )
581
+ self.get = to_raw_response_wrapper(
582
+ profiles.get,
583
+ )
584
+ self.recreate = to_raw_response_wrapper(
585
+ profiles.recreate,
586
+ )
587
+ self.replace = to_raw_response_wrapper(
588
+ profiles.replace,
589
+ )
590
+
591
+
592
+ class AsyncProfilesResourceWithRawResponse:
593
+ def __init__(self, profiles: AsyncProfilesResource) -> None:
594
+ self._profiles = profiles
595
+
596
+ self.create = async_to_raw_response_wrapper(
597
+ profiles.create,
598
+ )
599
+ self.list = async_to_raw_response_wrapper(
600
+ profiles.list,
601
+ )
602
+ self.delete = async_to_raw_response_wrapper(
603
+ profiles.delete,
604
+ )
605
+ self.get = async_to_raw_response_wrapper(
606
+ profiles.get,
607
+ )
608
+ self.recreate = async_to_raw_response_wrapper(
609
+ profiles.recreate,
610
+ )
611
+ self.replace = async_to_raw_response_wrapper(
612
+ profiles.replace,
613
+ )
614
+
615
+
616
+ class ProfilesResourceWithStreamingResponse:
617
+ def __init__(self, profiles: ProfilesResource) -> None:
618
+ self._profiles = profiles
619
+
620
+ self.create = to_streamed_response_wrapper(
621
+ profiles.create,
622
+ )
623
+ self.list = to_streamed_response_wrapper(
624
+ profiles.list,
625
+ )
626
+ self.delete = to_streamed_response_wrapper(
627
+ profiles.delete,
628
+ )
629
+ self.get = to_streamed_response_wrapper(
630
+ profiles.get,
631
+ )
632
+ self.recreate = to_streamed_response_wrapper(
633
+ profiles.recreate,
634
+ )
635
+ self.replace = to_streamed_response_wrapper(
636
+ profiles.replace,
637
+ )
638
+
639
+
640
+ class AsyncProfilesResourceWithStreamingResponse:
641
+ def __init__(self, profiles: AsyncProfilesResource) -> None:
642
+ self._profiles = profiles
643
+
644
+ self.create = async_to_streamed_response_wrapper(
645
+ profiles.create,
646
+ )
647
+ self.list = async_to_streamed_response_wrapper(
648
+ profiles.list,
649
+ )
650
+ self.delete = async_to_streamed_response_wrapper(
651
+ profiles.delete,
652
+ )
653
+ self.get = async_to_streamed_response_wrapper(
654
+ profiles.get,
655
+ )
656
+ self.recreate = async_to_streamed_response_wrapper(
657
+ profiles.recreate,
658
+ )
659
+ self.replace = async_to_streamed_response_wrapper(
660
+ profiles.replace,
661
+ )