gcore 0.12.0__py3-none-any.whl → 0.13.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.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/_version.py +1 -1
- gcore/resources/cloud/floating_ips.py +177 -1
- gcore/resources/dns/zones/zones.py +2 -2
- gcore/resources/waap/ip_info/ip_info.py +5 -5
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/floating_ip.py +1 -1
- gcore/types/cloud/floating_ip_detailed.py +1 -1
- gcore/types/cloud/floating_ip_update_params.py +41 -0
- gcore/types/waap/__init__.py +2 -1
- gcore/types/waap/ip_info_get_top_urls_response.py +3 -12
- gcore/types/waap/{ip_info_get_ip_info_response.py → waap_ip_info.py} +2 -2
- gcore/types/waap/waap_top_url.py +13 -0
- {gcore-0.12.0.dist-info → gcore-0.13.0.dist-info}/METADATA +1 -1
- {gcore-0.12.0.dist-info → gcore-0.13.0.dist-info}/RECORD +16 -14
- {gcore-0.12.0.dist-info → gcore-0.13.0.dist-info}/WHEEL +0 -0
- {gcore-0.12.0.dist-info → gcore-0.13.0.dist-info}/licenses/LICENSE +0 -0
gcore/_version.py
CHANGED
|
@@ -17,11 +17,17 @@ from ..._response import (
|
|
|
17
17
|
async_to_streamed_response_wrapper,
|
|
18
18
|
)
|
|
19
19
|
from ...pagination import SyncOffsetPage, AsyncOffsetPage
|
|
20
|
-
from ...types.cloud import
|
|
20
|
+
from ...types.cloud import (
|
|
21
|
+
floating_ip_list_params,
|
|
22
|
+
floating_ip_assign_params,
|
|
23
|
+
floating_ip_create_params,
|
|
24
|
+
floating_ip_update_params,
|
|
25
|
+
)
|
|
21
26
|
from ..._base_client import AsyncPaginator, make_request_options
|
|
22
27
|
from ...types.cloud.floating_ip import FloatingIP
|
|
23
28
|
from ...types.cloud.task_id_list import TaskIDList
|
|
24
29
|
from ...types.cloud.floating_ip_detailed import FloatingIPDetailed
|
|
30
|
+
from ...types.cloud.tag_update_map_param import TagUpdateMapParam
|
|
25
31
|
|
|
26
32
|
__all__ = ["FloatingIPsResource", "AsyncFloatingIPsResource"]
|
|
27
33
|
|
|
@@ -109,6 +115,73 @@ class FloatingIPsResource(SyncAPIResource):
|
|
|
109
115
|
cast_to=TaskIDList,
|
|
110
116
|
)
|
|
111
117
|
|
|
118
|
+
def update(
|
|
119
|
+
self,
|
|
120
|
+
floating_ip_id: str,
|
|
121
|
+
*,
|
|
122
|
+
project_id: int | None = None,
|
|
123
|
+
region_id: int | None = None,
|
|
124
|
+
tags: Optional[TagUpdateMapParam] | NotGiven = NOT_GIVEN,
|
|
125
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
126
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
127
|
+
extra_headers: Headers | None = None,
|
|
128
|
+
extra_query: Query | None = None,
|
|
129
|
+
extra_body: Body | None = None,
|
|
130
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
131
|
+
) -> FloatingIP:
|
|
132
|
+
"""
|
|
133
|
+
Update floating IP
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
project_id: Project ID
|
|
137
|
+
|
|
138
|
+
region_id: Region ID
|
|
139
|
+
|
|
140
|
+
floating_ip_id: Floating IP ID
|
|
141
|
+
|
|
142
|
+
tags: Update key-value tags using JSON Merge Patch semantics (RFC 7386). Provide
|
|
143
|
+
key-value pairs to add or update tags. Set tag values to `null` to remove tags.
|
|
144
|
+
Unspecified tags remain unchanged. Read-only tags are always preserved and
|
|
145
|
+
cannot be modified. **Examples:**
|
|
146
|
+
|
|
147
|
+
- **Add/update tags:**
|
|
148
|
+
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
149
|
+
updates existing ones.
|
|
150
|
+
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
|
|
151
|
+
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
152
|
+
tags are preserved).
|
|
153
|
+
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
154
|
+
specified tags.
|
|
155
|
+
- **Mixed operations:**
|
|
156
|
+
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
|
|
157
|
+
adds/updates 'environment' and '`cost_center`' while removing
|
|
158
|
+
'`deprecated_tag`', preserving other existing tags.
|
|
159
|
+
- **Replace all:** first delete existing tags with null values, then add new
|
|
160
|
+
ones in the same request.
|
|
161
|
+
|
|
162
|
+
extra_headers: Send extra headers
|
|
163
|
+
|
|
164
|
+
extra_query: Add additional query parameters to the request
|
|
165
|
+
|
|
166
|
+
extra_body: Add additional JSON properties to the request
|
|
167
|
+
|
|
168
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
169
|
+
"""
|
|
170
|
+
if project_id is None:
|
|
171
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
172
|
+
if region_id is None:
|
|
173
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
174
|
+
if not floating_ip_id:
|
|
175
|
+
raise ValueError(f"Expected a non-empty value for `floating_ip_id` but received {floating_ip_id!r}")
|
|
176
|
+
return self._patch(
|
|
177
|
+
f"/cloud/v1/floatingips/{project_id}/{region_id}/{floating_ip_id}",
|
|
178
|
+
body=maybe_transform({"tags": tags}, floating_ip_update_params.FloatingIPUpdateParams),
|
|
179
|
+
options=make_request_options(
|
|
180
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
181
|
+
),
|
|
182
|
+
cast_to=FloatingIP,
|
|
183
|
+
)
|
|
184
|
+
|
|
112
185
|
def list(
|
|
113
186
|
self,
|
|
114
187
|
*,
|
|
@@ -192,6 +265,12 @@ class FloatingIPsResource(SyncAPIResource):
|
|
|
192
265
|
Delete floating IP
|
|
193
266
|
|
|
194
267
|
Args:
|
|
268
|
+
project_id: Project ID
|
|
269
|
+
|
|
270
|
+
region_id: Region ID
|
|
271
|
+
|
|
272
|
+
floating_ip_id: Floating IP ID
|
|
273
|
+
|
|
195
274
|
extra_headers: Send extra headers
|
|
196
275
|
|
|
197
276
|
extra_query: Add additional query parameters to the request
|
|
@@ -283,6 +362,12 @@ class FloatingIPsResource(SyncAPIResource):
|
|
|
283
362
|
Get floating IP
|
|
284
363
|
|
|
285
364
|
Args:
|
|
365
|
+
project_id: Project ID
|
|
366
|
+
|
|
367
|
+
region_id: Region ID
|
|
368
|
+
|
|
369
|
+
floating_ip_id: Floating IP ID
|
|
370
|
+
|
|
286
371
|
extra_headers: Send extra headers
|
|
287
372
|
|
|
288
373
|
extra_query: Add additional query parameters to the request
|
|
@@ -512,6 +597,73 @@ class AsyncFloatingIPsResource(AsyncAPIResource):
|
|
|
512
597
|
cast_to=TaskIDList,
|
|
513
598
|
)
|
|
514
599
|
|
|
600
|
+
async def update(
|
|
601
|
+
self,
|
|
602
|
+
floating_ip_id: str,
|
|
603
|
+
*,
|
|
604
|
+
project_id: int | None = None,
|
|
605
|
+
region_id: int | None = None,
|
|
606
|
+
tags: Optional[TagUpdateMapParam] | NotGiven = NOT_GIVEN,
|
|
607
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
608
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
609
|
+
extra_headers: Headers | None = None,
|
|
610
|
+
extra_query: Query | None = None,
|
|
611
|
+
extra_body: Body | None = None,
|
|
612
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
613
|
+
) -> FloatingIP:
|
|
614
|
+
"""
|
|
615
|
+
Update floating IP
|
|
616
|
+
|
|
617
|
+
Args:
|
|
618
|
+
project_id: Project ID
|
|
619
|
+
|
|
620
|
+
region_id: Region ID
|
|
621
|
+
|
|
622
|
+
floating_ip_id: Floating IP ID
|
|
623
|
+
|
|
624
|
+
tags: Update key-value tags using JSON Merge Patch semantics (RFC 7386). Provide
|
|
625
|
+
key-value pairs to add or update tags. Set tag values to `null` to remove tags.
|
|
626
|
+
Unspecified tags remain unchanged. Read-only tags are always preserved and
|
|
627
|
+
cannot be modified. **Examples:**
|
|
628
|
+
|
|
629
|
+
- **Add/update tags:**
|
|
630
|
+
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
631
|
+
updates existing ones.
|
|
632
|
+
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
|
|
633
|
+
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
634
|
+
tags are preserved).
|
|
635
|
+
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
636
|
+
specified tags.
|
|
637
|
+
- **Mixed operations:**
|
|
638
|
+
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
|
|
639
|
+
adds/updates 'environment' and '`cost_center`' while removing
|
|
640
|
+
'`deprecated_tag`', preserving other existing tags.
|
|
641
|
+
- **Replace all:** first delete existing tags with null values, then add new
|
|
642
|
+
ones in the same request.
|
|
643
|
+
|
|
644
|
+
extra_headers: Send extra headers
|
|
645
|
+
|
|
646
|
+
extra_query: Add additional query parameters to the request
|
|
647
|
+
|
|
648
|
+
extra_body: Add additional JSON properties to the request
|
|
649
|
+
|
|
650
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
651
|
+
"""
|
|
652
|
+
if project_id is None:
|
|
653
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
654
|
+
if region_id is None:
|
|
655
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
656
|
+
if not floating_ip_id:
|
|
657
|
+
raise ValueError(f"Expected a non-empty value for `floating_ip_id` but received {floating_ip_id!r}")
|
|
658
|
+
return await self._patch(
|
|
659
|
+
f"/cloud/v1/floatingips/{project_id}/{region_id}/{floating_ip_id}",
|
|
660
|
+
body=await async_maybe_transform({"tags": tags}, floating_ip_update_params.FloatingIPUpdateParams),
|
|
661
|
+
options=make_request_options(
|
|
662
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
663
|
+
),
|
|
664
|
+
cast_to=FloatingIP,
|
|
665
|
+
)
|
|
666
|
+
|
|
515
667
|
def list(
|
|
516
668
|
self,
|
|
517
669
|
*,
|
|
@@ -595,6 +747,12 @@ class AsyncFloatingIPsResource(AsyncAPIResource):
|
|
|
595
747
|
Delete floating IP
|
|
596
748
|
|
|
597
749
|
Args:
|
|
750
|
+
project_id: Project ID
|
|
751
|
+
|
|
752
|
+
region_id: Region ID
|
|
753
|
+
|
|
754
|
+
floating_ip_id: Floating IP ID
|
|
755
|
+
|
|
598
756
|
extra_headers: Send extra headers
|
|
599
757
|
|
|
600
758
|
extra_query: Add additional query parameters to the request
|
|
@@ -686,6 +844,12 @@ class AsyncFloatingIPsResource(AsyncAPIResource):
|
|
|
686
844
|
Get floating IP
|
|
687
845
|
|
|
688
846
|
Args:
|
|
847
|
+
project_id: Project ID
|
|
848
|
+
|
|
849
|
+
region_id: Region ID
|
|
850
|
+
|
|
851
|
+
floating_ip_id: Floating IP ID
|
|
852
|
+
|
|
689
853
|
extra_headers: Send extra headers
|
|
690
854
|
|
|
691
855
|
extra_query: Add additional query parameters to the request
|
|
@@ -839,6 +1003,9 @@ class FloatingIPsResourceWithRawResponse:
|
|
|
839
1003
|
self.create = to_raw_response_wrapper(
|
|
840
1004
|
floating_ips.create,
|
|
841
1005
|
)
|
|
1006
|
+
self.update = to_raw_response_wrapper(
|
|
1007
|
+
floating_ips.update,
|
|
1008
|
+
)
|
|
842
1009
|
self.list = to_raw_response_wrapper(
|
|
843
1010
|
floating_ips.list,
|
|
844
1011
|
)
|
|
@@ -869,6 +1036,9 @@ class AsyncFloatingIPsResourceWithRawResponse:
|
|
|
869
1036
|
self.create = async_to_raw_response_wrapper(
|
|
870
1037
|
floating_ips.create,
|
|
871
1038
|
)
|
|
1039
|
+
self.update = async_to_raw_response_wrapper(
|
|
1040
|
+
floating_ips.update,
|
|
1041
|
+
)
|
|
872
1042
|
self.list = async_to_raw_response_wrapper(
|
|
873
1043
|
floating_ips.list,
|
|
874
1044
|
)
|
|
@@ -899,6 +1069,9 @@ class FloatingIPsResourceWithStreamingResponse:
|
|
|
899
1069
|
self.create = to_streamed_response_wrapper(
|
|
900
1070
|
floating_ips.create,
|
|
901
1071
|
)
|
|
1072
|
+
self.update = to_streamed_response_wrapper(
|
|
1073
|
+
floating_ips.update,
|
|
1074
|
+
)
|
|
902
1075
|
self.list = to_streamed_response_wrapper(
|
|
903
1076
|
floating_ips.list,
|
|
904
1077
|
)
|
|
@@ -929,6 +1102,9 @@ class AsyncFloatingIPsResourceWithStreamingResponse:
|
|
|
929
1102
|
self.create = async_to_streamed_response_wrapper(
|
|
930
1103
|
floating_ips.create,
|
|
931
1104
|
)
|
|
1105
|
+
self.update = async_to_streamed_response_wrapper(
|
|
1106
|
+
floating_ips.update,
|
|
1107
|
+
)
|
|
932
1108
|
self.list = async_to_streamed_response_wrapper(
|
|
933
1109
|
floating_ips.list,
|
|
934
1110
|
)
|
|
@@ -317,7 +317,7 @@ class ZonesResource(SyncAPIResource):
|
|
|
317
317
|
"""
|
|
318
318
|
if not name:
|
|
319
319
|
raise ValueError(f"Expected a non-empty value for `name` but received {name!r}")
|
|
320
|
-
return self.
|
|
320
|
+
return self._get(
|
|
321
321
|
f"/dns/v2/analyze/{name}/delegation-status",
|
|
322
322
|
options=make_request_options(
|
|
323
323
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -943,7 +943,7 @@ class AsyncZonesResource(AsyncAPIResource):
|
|
|
943
943
|
"""
|
|
944
944
|
if not name:
|
|
945
945
|
raise ValueError(f"Expected a non-empty value for `name` but received {name!r}")
|
|
946
|
-
return await self.
|
|
946
|
+
return await self._get(
|
|
947
947
|
f"/dns/v2/analyze/{name}/delegation-status",
|
|
948
948
|
options=make_request_options(
|
|
949
949
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
@@ -33,8 +33,8 @@ from ....types.waap import (
|
|
|
33
33
|
ip_info_list_attacked_countries_params,
|
|
34
34
|
)
|
|
35
35
|
from ...._base_client import make_request_options
|
|
36
|
+
from ....types.waap.waap_ip_info import WaapIPInfo
|
|
36
37
|
from ....types.waap.waap_ip_ddos_info_model import WaapIPDDOSInfoModel
|
|
37
|
-
from ....types.waap.ip_info_get_ip_info_response import IPInfoGetIPInfoResponse
|
|
38
38
|
from ....types.waap.ip_info_get_top_urls_response import IPInfoGetTopURLsResponse
|
|
39
39
|
from ....types.waap.ip_info_get_top_user_agents_response import IPInfoGetTopUserAgentsResponse
|
|
40
40
|
from ....types.waap.ip_info_get_blocked_requests_response import IPInfoGetBlockedRequestsResponse
|
|
@@ -212,7 +212,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
212
212
|
extra_query: Query | None = None,
|
|
213
213
|
extra_body: Body | None = None,
|
|
214
214
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
215
|
-
) ->
|
|
215
|
+
) -> WaapIPInfo:
|
|
216
216
|
"""
|
|
217
217
|
Fetch details about a particular IP address, including WHOIS data, risk score,
|
|
218
218
|
and additional tags.
|
|
@@ -237,7 +237,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
237
237
|
timeout=timeout,
|
|
238
238
|
query=maybe_transform({"ip": ip}, ip_info_get_ip_info_params.IPInfoGetIPInfoParams),
|
|
239
239
|
),
|
|
240
|
-
cast_to=
|
|
240
|
+
cast_to=WaapIPInfo,
|
|
241
241
|
)
|
|
242
242
|
|
|
243
243
|
def get_top_urls(
|
|
@@ -596,7 +596,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
596
596
|
extra_query: Query | None = None,
|
|
597
597
|
extra_body: Body | None = None,
|
|
598
598
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
599
|
-
) ->
|
|
599
|
+
) -> WaapIPInfo:
|
|
600
600
|
"""
|
|
601
601
|
Fetch details about a particular IP address, including WHOIS data, risk score,
|
|
602
602
|
and additional tags.
|
|
@@ -621,7 +621,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
621
621
|
timeout=timeout,
|
|
622
622
|
query=await async_maybe_transform({"ip": ip}, ip_info_get_ip_info_params.IPInfoGetIPInfoParams),
|
|
623
623
|
),
|
|
624
|
-
cast_to=
|
|
624
|
+
cast_to=WaapIPInfo,
|
|
625
625
|
)
|
|
626
626
|
|
|
627
627
|
async def get_top_urls(
|
gcore/types/cloud/__init__.py
CHANGED
|
@@ -122,6 +122,7 @@ from .load_balancer_get_params import LoadBalancerGetParams as LoadBalancerGetPa
|
|
|
122
122
|
from .load_balancer_statistics import LoadBalancerStatistics as LoadBalancerStatistics
|
|
123
123
|
from .floating_ip_assign_params import FloatingIPAssignParams as FloatingIPAssignParams
|
|
124
124
|
from .floating_ip_create_params import FloatingIPCreateParams as FloatingIPCreateParams
|
|
125
|
+
from .floating_ip_update_params import FloatingIPUpdateParams as FloatingIPUpdateParams
|
|
125
126
|
from .inference_region_capacity import InferenceRegionCapacity as InferenceRegionCapacity
|
|
126
127
|
from .load_balancer_flavor_list import LoadBalancerFlavorList as LoadBalancerFlavorList
|
|
127
128
|
from .load_balancer_list_params import LoadBalancerListParams as LoadBalancerListParams
|
gcore/types/cloud/floating_ip.py
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
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 Optional
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
from .tag_update_map_param import TagUpdateMapParam
|
|
9
|
+
|
|
10
|
+
__all__ = ["FloatingIPUpdateParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FloatingIPUpdateParams(TypedDict, total=False):
|
|
14
|
+
project_id: int
|
|
15
|
+
"""Project ID"""
|
|
16
|
+
|
|
17
|
+
region_id: int
|
|
18
|
+
"""Region ID"""
|
|
19
|
+
|
|
20
|
+
tags: Optional[TagUpdateMapParam]
|
|
21
|
+
"""Update key-value tags using JSON Merge Patch semantics (RFC 7386).
|
|
22
|
+
|
|
23
|
+
Provide key-value pairs to add or update tags. Set tag values to `null` to
|
|
24
|
+
remove tags. Unspecified tags remain unchanged. Read-only tags are always
|
|
25
|
+
preserved and cannot be modified. **Examples:**
|
|
26
|
+
|
|
27
|
+
- **Add/update tags:**
|
|
28
|
+
`{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
|
|
29
|
+
updates existing ones.
|
|
30
|
+
- **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
|
|
31
|
+
- **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
|
|
32
|
+
tags are preserved).
|
|
33
|
+
- **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
|
|
34
|
+
specified tags.
|
|
35
|
+
- **Mixed operations:**
|
|
36
|
+
`{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
|
|
37
|
+
adds/updates 'environment' and '`cost_center`' while removing
|
|
38
|
+
'`deprecated_tag`', preserving other existing tags.
|
|
39
|
+
- **Replace all:** first delete existing tags with null values, then add new
|
|
40
|
+
ones in the same request.
|
|
41
|
+
"""
|
gcore/types/waap/__init__.py
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from .waap_tag import WaapTag as WaapTag
|
|
6
|
+
from .waap_ip_info import WaapIPInfo as WaapIPInfo
|
|
7
|
+
from .waap_top_url import WaapTopURL as WaapTopURL
|
|
6
8
|
from .waap_rule_set import WaapRuleSet as WaapRuleSet
|
|
7
9
|
from .tag_list_params import TagListParams as TagListParams
|
|
8
10
|
from .waap_policy_mode import WaapPolicyMode as WaapPolicyMode
|
|
@@ -30,7 +32,6 @@ from .waap_domain_settings_model import WaapDomainSettingsModel as WaapDomainSet
|
|
|
30
32
|
from .waap_rule_blocked_requests import WaapRuleBlockedRequests as WaapRuleBlockedRequests
|
|
31
33
|
from .custom_page_set_list_params import CustomPageSetListParams as CustomPageSetListParams
|
|
32
34
|
from .ip_info_get_top_urls_params import IPInfoGetTopURLsParams as IPInfoGetTopURLsParams
|
|
33
|
-
from .ip_info_get_ip_info_response import IPInfoGetIPInfoResponse as IPInfoGetIPInfoResponse
|
|
34
35
|
from .custom_page_set_create_params import CustomPageSetCreateParams as CustomPageSetCreateParams
|
|
35
36
|
from .custom_page_set_update_params import CustomPageSetUpdateParams as CustomPageSetUpdateParams
|
|
36
37
|
from .ip_info_get_top_urls_response import IPInfoGetTopURLsResponse as IPInfoGetTopURLsResponse
|
|
@@ -3,17 +3,8 @@
|
|
|
3
3
|
from typing import List
|
|
4
4
|
from typing_extensions import TypeAlias
|
|
5
5
|
|
|
6
|
-
from
|
|
6
|
+
from .waap_top_url import WaapTopURL
|
|
7
7
|
|
|
8
|
-
__all__ = ["IPInfoGetTopURLsResponse"
|
|
8
|
+
__all__ = ["IPInfoGetTopURLsResponse"]
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
class IPInfoGetTopURLsResponseItem(BaseModel):
|
|
12
|
-
count: int
|
|
13
|
-
"""The number of attacks to the URL"""
|
|
14
|
-
|
|
15
|
-
url: str
|
|
16
|
-
"""The URL that was attacked"""
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
IPInfoGetTopURLsResponse: TypeAlias = List[IPInfoGetTopURLsResponseItem]
|
|
10
|
+
IPInfoGetTopURLsResponse: TypeAlias = List[WaapTopURL]
|
|
@@ -5,7 +5,7 @@ from typing_extensions import Literal
|
|
|
5
5
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["WaapIPInfo", "Whois"]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Whois(BaseModel):
|
|
@@ -46,7 +46,7 @@ class Whois(BaseModel):
|
|
|
46
46
|
"""The state"""
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class WaapIPInfo(BaseModel):
|
|
50
50
|
risk_score: Literal["NO_RISK", "LOW", "MEDIUM", "HIGH", "EXTREME", "NOT_ENOUGH_DATA"]
|
|
51
51
|
"""The risk score of the IP address"""
|
|
52
52
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ..._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["WaapTopURL"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class WaapTopURL(BaseModel):
|
|
9
|
+
count: int
|
|
10
|
+
"""The number of attacks to the URL"""
|
|
11
|
+
|
|
12
|
+
url: str
|
|
13
|
+
"""The URL that was attacked"""
|
|
@@ -11,7 +11,7 @@ gcore/_resource.py,sha256=wjIMnFffh-DZDdpBCgdDCdoXR2TPhpAosw7rElBSpYo,1094
|
|
|
11
11
|
gcore/_response.py,sha256=V1N02BVR5uoyxmvzOS3O579oe_PkeA4eyM_Hzodv9EU,28782
|
|
12
12
|
gcore/_streaming.py,sha256=ICh9tioDlP6Uvmis9p5Aieefqhjfhu6xLCJqDSDIqK4,10096
|
|
13
13
|
gcore/_types.py,sha256=a1BT4LrPlMIBjEiuDZs7tEgtl7rmOuZScTpDYVKuCWU,7295
|
|
14
|
-
gcore/_version.py,sha256=
|
|
14
|
+
gcore/_version.py,sha256=YSrTsFGfSueNSMwQ_TDL8CtidvXDBhjoIGficFVLKI0,158
|
|
15
15
|
gcore/pagination.py,sha256=vRpi4H_oQAPcGbdX7r3hpnXulNB3WQ_vqqI3mBaJHQg,9961
|
|
16
16
|
gcore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
gcore/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
@@ -34,7 +34,7 @@ gcore/resources/cloud/audit_logs.py,sha256=uVtvvfbyAjUOmS0kSSaPA-EuSjnKyAYhL4CmP
|
|
|
34
34
|
gcore/resources/cloud/billing_reservations.py,sha256=bQYK1dcMY6__hgVfu88eyn11S4hI1j6FCOCCL4eVXTo,15019
|
|
35
35
|
gcore/resources/cloud/cloud.py,sha256=vkodkBy04LJyMC4zCezMKuG8Q5_z4pyEKXsMapzHG8A,33443
|
|
36
36
|
gcore/resources/cloud/cost_reports.py,sha256=8qNjdI2jOZbrgs-YwWJDsAFjW2a28Fe1Ods-RojhfqU,34643
|
|
37
|
-
gcore/resources/cloud/floating_ips.py,sha256=
|
|
37
|
+
gcore/resources/cloud/floating_ips.py,sha256=nzkaAQ0f3Za9L-gJHB4YX-JyQFmGzMB8hG6feaUHphs,45465
|
|
38
38
|
gcore/resources/cloud/ip_ranges.py,sha256=SDSseH8LhEF2RmdLKhXaxULDUyEZRgTin8yY_q6BoII,7060
|
|
39
39
|
gcore/resources/cloud/placement_groups.py,sha256=FuhPrDY2tKqX6xL94RWbWQu1zwilyAgzZ1_KKwZU8R4,18085
|
|
40
40
|
gcore/resources/cloud/projects.py,sha256=64VHLyGUerk2qxgxDW2RShFGVmaav9I5hai7vY-raHc,23013
|
|
@@ -131,7 +131,7 @@ gcore/resources/dns/pickers/presets.py,sha256=hPittbCEOXKxiqBVuhwyvvqAi8NGC-Q6NN
|
|
|
131
131
|
gcore/resources/dns/zones/__init__.py,sha256=jaFIggTGrNj9S151FsCzCqkuhJJWBjWpSonEDKnAum0,1439
|
|
132
132
|
gcore/resources/dns/zones/dnssec.py,sha256=qy-8C-3hHneF29qJLHHoCg9hL1RuH6chSZ_7vb8wT9Q,9228
|
|
133
133
|
gcore/resources/dns/zones/rrsets.py,sha256=bYN4pQ8loRqIc84HQjXm_GdrihIBGrq76MUZp4PBJ18,41466
|
|
134
|
-
gcore/resources/dns/zones/zones.py,sha256=
|
|
134
|
+
gcore/resources/dns/zones/zones.py,sha256=4J-3YpPpCGYlORBCk6DYu5r2dwVXxeK5rvTca15KaG8,59197
|
|
135
135
|
gcore/resources/fastedge/__init__.py,sha256=WkoaliYWihAqPxK9DW5ndw0Axf-49iSpv5I186YiZ9o,3409
|
|
136
136
|
gcore/resources/fastedge/binaries.py,sha256=AeCgVSetQREJI7wCQWI24166gJRM-zxcuAvNU0ods6o,13439
|
|
137
137
|
gcore/resources/fastedge/fastedge.py,sha256=y2DuX3pI0YMyxfakxpZRL1EQknrlirmz-YbH7G_oEgU,11818
|
|
@@ -199,10 +199,10 @@ gcore/resources/waap/domains/insights.py,sha256=NKEEcYxjd9GDz9x0MK9MunDoaK00Q2no
|
|
|
199
199
|
gcore/resources/waap/domains/settings.py,sha256=kuxnA21HzZyMOQyurQGUSUk-0NGlE_3V-CPXsIjLdZo,9718
|
|
200
200
|
gcore/resources/waap/domains/statistics.py,sha256=4YysJAezvN62wlgM41qjk4dAip5Fc6X0uqI3EqPl0xw,37567
|
|
201
201
|
gcore/resources/waap/ip_info/__init__.py,sha256=5YBoU77JQB9thu-Vh6CgZjHoTGomTZS7UbLVwdTH2Y4,1016
|
|
202
|
-
gcore/resources/waap/ip_info/ip_info.py,sha256=
|
|
202
|
+
gcore/resources/waap/ip_info/ip_info.py,sha256=uX95BdNxxSR6QWzylCzOuGCnE25aUDXZ13dJ4R8chzY,37005
|
|
203
203
|
gcore/resources/waap/ip_info/metrics.py,sha256=c4LJLlwXe4TfGpvhF3OUj8sOWN0iyupI1vC66e5QpqA,7462
|
|
204
204
|
gcore/types/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
205
|
-
gcore/types/cloud/__init__.py,sha256=
|
|
205
|
+
gcore/types/cloud/__init__.py,sha256=29d78xw8SOeykhs-xteQiBgzKuiPobisLdJ9wkwUUXM,13417
|
|
206
206
|
gcore/types/cloud/allowed_address_pairs.py,sha256=VB7dOQ7kceprX7LEu3VpK-VWFevYmxA2lCURnGg9O0Q,439
|
|
207
207
|
gcore/types/cloud/audit_log_entry.py,sha256=izNkdtHa3RocYnLOxJCFvt71w0uQ9-xygS709dUZaxE,5990
|
|
208
208
|
gcore/types/cloud/audit_log_list_params.py,sha256=QUv3KwhHEekrdqz8lAc0RITFVhYiT7VDtzKeWutofnw,4343
|
|
@@ -233,12 +233,13 @@ gcore/types/cloud/fixed_address.py,sha256=m0Igtrtmz97dw-36U3wNX2W6EfYQiBvaeM7Vue
|
|
|
233
233
|
gcore/types/cloud/fixed_address_short.py,sha256=qGun0Ln1lKHfaE0P3xO0yfsvCMIw4rJldmUrmKvRMm0,667
|
|
234
234
|
gcore/types/cloud/flavor_hardware_description.py,sha256=LkKEWoXmXNHSvGQzLwCv_lKnomos0fK3UjYfLKe5xp8,690
|
|
235
235
|
gcore/types/cloud/floating_address.py,sha256=cntd-3PiECbzCWiYCdR25asaT-JleGYWVHcNxHbGcno,319
|
|
236
|
-
gcore/types/cloud/floating_ip.py,sha256=
|
|
236
|
+
gcore/types/cloud/floating_ip.py,sha256=n2wzjBPTd_FFKNC2J2sdqTuS5od2Rl_MIl9GyR5PM7w,1854
|
|
237
237
|
gcore/types/cloud/floating_ip_assign_params.py,sha256=8wwzcDjEkCNUv_768TIrYoMBwiHOeASpFcs2qOhzlaA,445
|
|
238
238
|
gcore/types/cloud/floating_ip_create_params.py,sha256=zXZZ34RnTi_u_ctBxx-dnUoOHpUfShh5lUyQ8LPSQB8,1153
|
|
239
|
-
gcore/types/cloud/floating_ip_detailed.py,sha256
|
|
239
|
+
gcore/types/cloud/floating_ip_detailed.py,sha256=LKrwlBOg57bhnhzoigBqWGOEmAdpcUkow4JlIDT_Iqk,5238
|
|
240
240
|
gcore/types/cloud/floating_ip_list_params.py,sha256=Lvpb1lfltrMBvTFJ7Y859yBXGDiAb-vPqaLSFwq_qwY,743
|
|
241
241
|
gcore/types/cloud/floating_ip_status.py,sha256=5y_NNeP--pgXhI5GI0NuTySQZen5CK2GRLv0djI84f0,234
|
|
242
|
+
gcore/types/cloud/floating_ip_update_params.py,sha256=Q2YhEOrLlTeTu81RP5F5CJGkKGSgqNeA6wuJUPBQ_zk,1554
|
|
242
243
|
gcore/types/cloud/gpu_baremetal_cluster.py,sha256=FhEgPivJnRtXDPNPxpDrECXYKs1vzppjNo3RXWvhPo8,4239
|
|
243
244
|
gcore/types/cloud/gpu_baremetal_cluster_create_params.py,sha256=KTeyor9FN9Bu4yEpVBoCH-6GLWESTJ9I6hmiBbGs-XE,4660
|
|
244
245
|
gcore/types/cloud/gpu_baremetal_cluster_delete_params.py,sha256=opq7vljPcGatf8n2UCM7wR9F9m9EGPSkGr_19Z1IawE,886
|
|
@@ -789,7 +790,7 @@ gcore/types/streaming/videos/__init__.py,sha256=hAyl5u9niQL_cXNajJaysBFyPE8_nbfW
|
|
|
789
790
|
gcore/types/streaming/videos/subtitle_create_params.py,sha256=lq3t-9V1T47Oo_rQjGNq-_RSwIZxM7WlxcE8v6kPvDg,404
|
|
790
791
|
gcore/types/streaming/videos/subtitle_list_response.py,sha256=FfW96ahKuKZowJ1g58xdB9jbw3U6ICrMwV4Z6c8lYtc,270
|
|
791
792
|
gcore/types/streaming/videos/subtitle_update_params.py,sha256=4VZaYvYXx47vrGFxCYc8in2PAYrAixmgDYe8nYzG0Gc,535
|
|
792
|
-
gcore/types/waap/__init__.py,sha256=
|
|
793
|
+
gcore/types/waap/__init__.py,sha256=dnmLGFnXvtC_V0be0FbDxyX5Wdx8y1hb4luPdlnFphs,4615
|
|
793
794
|
gcore/types/waap/custom_page_set_create_params.py,sha256=6e2XYoeLQyhKprKlvVXX3HhbPgeC9j6NM1Bs7bag5PU,3863
|
|
794
795
|
gcore/types/waap/custom_page_set_list_params.py,sha256=AR3PN6KI2GGy7IC0NhxR8H7PomGWbkRCe3z7U1KZ33s,668
|
|
795
796
|
gcore/types/waap/custom_page_set_preview_params.py,sha256=nz2PkuNCgPcF9JHzTGiSFJXnQFWEBLjo6Ynv-Lvdgpw,1158
|
|
@@ -804,9 +805,8 @@ gcore/types/waap/ip_info_get_blocked_requests_params.py,sha256=0GwQanbemvoxvb9hP
|
|
|
804
805
|
gcore/types/waap/ip_info_get_blocked_requests_response.py,sha256=o3og_VXsgnKQZegZjbvQ8s06Zp0tgu5TV6-_dXuMGvQ,341
|
|
805
806
|
gcore/types/waap/ip_info_get_ddos_attack_series_params.py,sha256=BJU1TcQyXGMAjHJbFIGPqauuKn87_bvgAqzRdoUNlSc,341
|
|
806
807
|
gcore/types/waap/ip_info_get_ip_info_params.py,sha256=8a1GXZ-ZvDjwj8svnjOkNwA2qijcZDa6lD53SLZlibo,321
|
|
807
|
-
gcore/types/waap/ip_info_get_ip_info_response.py,sha256=xr1gNcvtskbPEZHI6gZdHr8n3tJwyOnthTioM_MYSUc,1346
|
|
808
808
|
gcore/types/waap/ip_info_get_top_urls_params.py,sha256=UNBo6-dascbKs1FtrmHP7AeLsNKiBAvt_RvHlqL7DZs,546
|
|
809
|
-
gcore/types/waap/ip_info_get_top_urls_response.py,sha256=
|
|
809
|
+
gcore/types/waap/ip_info_get_top_urls_response.py,sha256=nsX7tNgAFbr7_Daaua6coyTpaYCbtnllLu-uo47naiY,285
|
|
810
810
|
gcore/types/waap/ip_info_get_top_user_agents_params.py,sha256=UVP50UiGIKw6xJ0ClRaQ7CPULT03y74USHJrOIQbUl0,558
|
|
811
811
|
gcore/types/waap/ip_info_get_top_user_agents_response.py,sha256=xMjOLG2kKUftumbmhGIqMOpVvROFYcdX9yOwv0hPd2M,316
|
|
812
812
|
gcore/types/waap/ip_info_get_top_user_sessions_params.py,sha256=oNscu7S6omzqXQfvBVOsBm6sBcGCL8zBmnKpobej3iU,562
|
|
@@ -828,6 +828,7 @@ gcore/types/waap/waap_get_account_overview_response.py,sha256=Pmw6MADEWcPiFSVWpk
|
|
|
828
828
|
gcore/types/waap/waap_insight_type.py,sha256=6Ng0P8gCpMt6K37OHiQIcCv8_x0-CyFzJ1q9ix3ntco,751
|
|
829
829
|
gcore/types/waap/waap_ip_country_attack.py,sha256=D0HrlMs7AgOGP3AUjuc0vb9l5EyYHoIYnR-8_vblBSY,411
|
|
830
830
|
gcore/types/waap/waap_ip_ddos_info_model.py,sha256=blsUw8wbfHFsetCWINxKY_XQsTFRouBBk0ecJT7TcOY,591
|
|
831
|
+
gcore/types/waap/waap_ip_info.py,sha256=FBpFFrU446IvE77bWL115jJnngVzs2QW1v14js4QFbI,1320
|
|
831
832
|
gcore/types/waap/waap_organization.py,sha256=SkGZrRqxdDPNvovUUMNQwyHIrdBQ75msXgSX3j4MScY,290
|
|
832
833
|
gcore/types/waap/waap_policy_mode.py,sha256=KFnkKxC5R-Cj1l-nosFrM9ra4UGRKv5f10YPd6dBQug,251
|
|
833
834
|
gcore/types/waap/waap_rule_blocked_requests.py,sha256=lv8_hQHyZ0GGmm9FZMsFxS6H55hHUMeOmjX7TptUxYc,403
|
|
@@ -838,6 +839,7 @@ gcore/types/waap/waap_summary_domain.py,sha256=GFjGzVeN881nip4Zrry-KVS2J-GFXWpjV
|
|
|
838
839
|
gcore/types/waap/waap_tag.py,sha256=x0_dC-j-mXB1BUsYgyCcXZ93kTmyHICqY0PukkmDEsg,387
|
|
839
840
|
gcore/types/waap/waap_time_series_attack.py,sha256=QEQtWG-QmZfuuCse1Eyu1XpUI6CAQ7to9_UtL6_NZNc,499
|
|
840
841
|
gcore/types/waap/waap_top_session.py,sha256=1gOGDK4SIhl9u9G1If37xeqKlpQAiI7nvHElcohXZDk,559
|
|
842
|
+
gcore/types/waap/waap_top_url.py,sha256=yLMrRuKeM7j-xu0jE6Sxfp7xJ1fcytFgHB4yusRtYG4,285
|
|
841
843
|
gcore/types/waap/waap_top_user_agent.py,sha256=qX8cdfACw4JEVAxBZGNdOdV3636oFzrfFRTddKC2Hys,322
|
|
842
844
|
gcore/types/waap/domains/__init__.py,sha256=byNZIecCGbXozFc3HQpZBwO6feMPo45U8ZH_AqPSBnk,4255
|
|
843
845
|
gcore/types/waap/domains/advanced_rule_create_params.py,sha256=BjdbVGRVyMw5qyw_Ad4gmHCLu_ZvCoHk-09jQXxtIeY,2799
|
|
@@ -890,7 +892,7 @@ gcore/types/waap/domains/waap_traffic_metrics.py,sha256=V0sIysP7i9cE4-gCNyVy4w0k
|
|
|
890
892
|
gcore/types/waap/ip_info/__init__.py,sha256=7kZyBUDcEtgynsVDprZT53Y7e71PJuhj0-B3DaqtY0c,262
|
|
891
893
|
gcore/types/waap/ip_info/metric_list_params.py,sha256=7vY-RbkECV1yEixczDXaQPZG42WDGbH8ZOBsabzIs-g,562
|
|
892
894
|
gcore/types/waap/ip_info/waap_ip_info_counts.py,sha256=NmLfOuddBtkA_nkpa0JrESkax_PRaXlxlXqROcn8SbA,460
|
|
893
|
-
gcore-0.
|
|
894
|
-
gcore-0.
|
|
895
|
-
gcore-0.
|
|
896
|
-
gcore-0.
|
|
895
|
+
gcore-0.13.0.dist-info/METADATA,sha256=rxLg2Gd4SP5uyJPDdHNXumWwmoZjJDkG5GwZwdjaOd4,16321
|
|
896
|
+
gcore-0.13.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
897
|
+
gcore-0.13.0.dist-info/licenses/LICENSE,sha256=2pZguB1aJ1XYFdGBG1gSFtWegXINirA9gVU0ouDbP_s,11335
|
|
898
|
+
gcore-0.13.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|