gcore 0.9.0__py3-none-any.whl → 0.10.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/load_balancers/pools/health_monitors.py +8 -4
- gcore/resources/cloud/load_balancers/pools/members.py +2 -2
- gcore/resources/security/bgp_announces.py +15 -15
- gcore/resources/waap/__init__.py +14 -0
- gcore/resources/waap/custom_page_sets.py +40 -34
- gcore/resources/waap/domains/__init__.py +14 -28
- gcore/resources/waap/domains/advanced_rules.py +5 -8
- gcore/resources/waap/domains/{api_discovery/api_discovery.py → api_discovery.py} +292 -59
- gcore/resources/waap/domains/api_path_groups.py +5 -5
- gcore/resources/waap/domains/api_paths.py +15 -17
- gcore/resources/waap/domains/custom_rules.py +5 -8
- gcore/resources/waap/domains/domains.py +120 -64
- gcore/resources/waap/domains/firewall_rules.py +3 -5
- gcore/resources/waap/domains/insight_silences.py +28 -5
- gcore/resources/waap/domains/insights.py +36 -10
- gcore/resources/waap/domains/{analytics/analytics.py → statistics.py} +514 -213
- gcore/resources/waap/insights.py +233 -0
- gcore/resources/waap/ip_info/__init__.py +33 -0
- gcore/resources/waap/{ip_info.py → ip_info/ip_info.py} +149 -235
- gcore/resources/waap/ip_info/metrics.py +203 -0
- gcore/resources/waap/waap.py +40 -8
- gcore/types/cloud/health_monitor.py +6 -0
- gcore/types/cloud/load_balancer_create_params.py +8 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +8 -3
- gcore/types/cloud/load_balancers/pool_update_params.py +8 -3
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +7 -2
- gcore/types/cloud/load_balancers/pools/member_add_params.py +1 -1
- gcore/types/cloud/region.py +0 -3
- gcore/types/security/__init__.py +1 -1
- gcore/types/security/{bgp_announce_change_params.py → bgp_announce_toggle_params.py} +2 -2
- gcore/types/waap/__init__.py +6 -54
- gcore/types/waap/custom_page_set_create_params.py +121 -14
- gcore/types/waap/custom_page_set_preview_params.py +11 -4
- gcore/types/waap/custom_page_set_update_params.py +122 -15
- gcore/types/waap/domain_list_params.py +1 -3
- gcore/types/waap/domains/__init__.py +28 -18
- gcore/types/waap/domains/advanced_rule_list_params.py +1 -3
- gcore/types/waap/domains/{api_discovery/scan_result_list_params.py → api_discovery_list_scan_results_params.py} +2 -2
- gcore/types/waap/domains/{api_path_group_list_response.py → api_path_group_list.py} +2 -2
- gcore/types/waap/domains/custom_rule_list_params.py +1 -3
- gcore/types/waap/domains/insight_list_params.py +16 -6
- gcore/types/waap/domains/insight_replace_params.py +2 -4
- gcore/types/waap/domains/insight_silence_list_params.py +13 -4
- gcore/types/waap/domains/{analytics_list_ddos_attacks_params.py → statistic_get_ddos_attacks_params.py} +2 -2
- gcore/types/waap/domains/{analytics_list_ddos_info_params.py → statistic_get_ddos_info_params.py} +2 -2
- gcore/types/waap/domains/{analytics_get_event_statistics_params.py → statistic_get_events_aggregated_params.py} +2 -2
- gcore/types/waap/domains/{analytics/request_list_params.py → statistic_get_requests_series_params.py} +27 -5
- gcore/types/waap/domains/{analytics_list_event_traffic_params.py → statistic_get_traffic_series_params.py} +4 -5
- gcore/types/waap/domains/statistic_get_traffic_series_response.py +10 -0
- gcore/types/waap/{waap_advanced_rule.py → domains/waap_advanced_rule.py} +1 -1
- gcore/types/waap/domains/{api_discovery_get_settings_response.py → waap_api_discovery_settings.py} +2 -2
- gcore/types/waap/domains/{api_path_get_response.py → waap_api_path.py} +2 -2
- gcore/types/waap/domains/{api_discovery/scan_result_get_response.py → waap_api_scan_result.py} +3 -3
- gcore/types/waap/{waap_blocked_statistics.py → domains/waap_blocked_statistics.py} +1 -1
- gcore/types/waap/{waap_count_statistics.py → domains/waap_count_statistics.py} +1 -1
- gcore/types/waap/{waap_custom_rule.py → domains/waap_custom_rule.py} +1 -1
- gcore/types/waap/{waap_ddos_attack.py → domains/waap_ddos_attack.py} +1 -1
- gcore/types/waap/{waap_ddos_info.py → domains/waap_ddos_info.py} +1 -1
- gcore/types/waap/{waap_event_statistics.py → domains/waap_event_statistics.py} +1 -1
- gcore/types/waap/{waap_firewall_rule.py → domains/waap_firewall_rule.py} +1 -1
- gcore/types/waap/{waap_insight.py → domains/waap_insight.py} +3 -3
- gcore/types/waap/{waap_insight_silence.py → domains/waap_insight_silence.py} +1 -1
- gcore/types/waap/domains/waap_request_details.py +185 -0
- gcore/types/waap/{waap_request_summary.py → domains/waap_request_summary.py} +1 -1
- gcore/types/waap/domains/{api_discovery_scan_openapi_response.py → waap_task_id.py} +2 -2
- gcore/types/waap/{waap_traffic_metrics.py → domains/waap_traffic_metrics.py} +1 -1
- gcore/types/waap/insight_list_types_params.py +28 -0
- gcore/types/waap/ip_info/__init__.py +6 -0
- gcore/types/waap/{ip_info_get_counts_params.py → ip_info/metric_list_params.py} +2 -2
- gcore/types/waap/{waap_ip_info_counts.py → ip_info/waap_ip_info_counts.py} +1 -1
- gcore/types/waap/{ip_info_get_params.py → ip_info_get_ip_info_params.py} +2 -2
- gcore/types/waap/{waap_ip_info.py → ip_info_get_ip_info_response.py} +2 -2
- gcore/types/waap/ip_info_get_top_urls_response.py +12 -3
- gcore/types/waap/{ip_info_get_top_sessions_params.py → ip_info_get_top_user_sessions_params.py} +2 -2
- gcore/types/waap/{ip_info_get_top_sessions_response.py → ip_info_get_top_user_sessions_response.py} +2 -2
- gcore/types/waap/waap_custom_page_set.py +113 -13
- gcore/types/waap/waap_detailed_domain.py +2 -2
- gcore/types/waap/waap_insight_type.py +33 -0
- gcore/types/waap/waap_rule_set.py +26 -3
- gcore/types/waap/waap_summary_domain.py +2 -2
- {gcore-0.9.0.dist-info → gcore-0.10.0.dist-info}/METADATA +1 -1
- {gcore-0.9.0.dist-info → gcore-0.10.0.dist-info}/RECORD +85 -124
- gcore/resources/waap/domains/analytics/__init__.py +0 -33
- gcore/resources/waap/domains/analytics/requests.py +0 -378
- gcore/resources/waap/domains/api_discovery/__init__.py +0 -33
- gcore/resources/waap/domains/api_discovery/scan_results.py +0 -352
- gcore/resources/waap/domains/policies.py +0 -173
- gcore/types/waap/domains/analytics/__init__.py +0 -5
- gcore/types/waap/domains/analytics_list_event_traffic_response.py +0 -10
- gcore/types/waap/domains/api_discovery/__init__.py +0 -7
- gcore/types/waap/domains/api_discovery/scan_result_list_response.py +0 -29
- gcore/types/waap/domains/api_discovery_update_settings_response.py +0 -36
- gcore/types/waap/domains/api_discovery_upload_openapi_response.py +0 -10
- gcore/types/waap/domains/api_path_create_response.py +0 -50
- gcore/types/waap/domains/api_path_list_response.py +0 -50
- gcore/types/waap/waap_block_csrf_page_data.py +0 -28
- gcore/types/waap/waap_block_csrf_page_data_param.py +0 -28
- gcore/types/waap/waap_block_page_data.py +0 -28
- gcore/types/waap/waap_block_page_data_param.py +0 -28
- gcore/types/waap/waap_captcha_page_data.py +0 -31
- gcore/types/waap/waap_captcha_page_data_param.py +0 -31
- gcore/types/waap/waap_common_tag.py +0 -16
- gcore/types/waap/waap_cookie_disabled_page_data.py +0 -18
- gcore/types/waap/waap_cookie_disabled_page_data_param.py +0 -18
- gcore/types/waap/waap_customer_rule_state.py +0 -7
- gcore/types/waap/waap_domain_policy.py +0 -29
- gcore/types/waap/waap_domain_status.py +0 -7
- gcore/types/waap/waap_handshake_page_data.py +0 -25
- gcore/types/waap/waap_handshake_page_data_param.py +0 -25
- gcore/types/waap/waap_insight_silence_sort_by.py +0 -9
- gcore/types/waap/waap_insight_sort_by.py +0 -20
- gcore/types/waap/waap_insight_status.py +0 -7
- gcore/types/waap/waap_javascript_disabled_page_data.py +0 -18
- gcore/types/waap/waap_javascript_disabled_page_data_param.py +0 -18
- gcore/types/waap/waap_network_details.py +0 -17
- gcore/types/waap/waap_page_type.py +0 -9
- gcore/types/waap/waap_paginated_custom_page_set.py +0 -22
- gcore/types/waap/waap_paginated_ddos_attack.py +0 -22
- gcore/types/waap/waap_paginated_ddos_info.py +0 -22
- gcore/types/waap/waap_paginated_request_summary.py +0 -22
- gcore/types/waap/waap_pattern_matched_tag.py +0 -37
- gcore/types/waap/waap_policy_action.py +0 -7
- gcore/types/waap/waap_request_details.py +0 -92
- gcore/types/waap/waap_request_organization.py +0 -13
- gcore/types/waap/waap_resolution.py +0 -7
- gcore/types/waap/waap_rule_action_type.py +0 -7
- gcore/types/waap/waap_top_url.py +0 -13
- gcore/types/waap/waap_traffic_type.py +0 -28
- gcore/types/waap/waap_user_agent_details.py +0 -40
- {gcore-0.9.0.dist-info → gcore-0.10.0.dist-info}/WHEEL +0 -0
- {gcore-0.9.0.dist-info → gcore-0.10.0.dist-info}/licenses/LICENSE +0 -0
gcore/_version.py
CHANGED
|
@@ -58,7 +58,7 @@ class HealthMonitorsResource(SyncAPIResource):
|
|
|
58
58
|
type: LbHealthMonitorType,
|
|
59
59
|
expected_codes: Optional[str] | NotGiven = NOT_GIVEN,
|
|
60
60
|
http_method: Optional[HTTPMethod] | NotGiven = NOT_GIVEN,
|
|
61
|
-
max_retries_down:
|
|
61
|
+
max_retries_down: int | NotGiven = NOT_GIVEN,
|
|
62
62
|
url_path: Optional[str] | NotGiven = NOT_GIVEN,
|
|
63
63
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
64
64
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -85,7 +85,9 @@ class HealthMonitorsResource(SyncAPIResource):
|
|
|
85
85
|
|
|
86
86
|
type: Health monitor type. Once health monitor is created, cannot be changed.
|
|
87
87
|
|
|
88
|
-
expected_codes: Can
|
|
88
|
+
expected_codes: Expected HTTP response codes. Can be a single code or a range of codes. Can only
|
|
89
|
+
be used together with `HTTP` or `HTTPS` health monitor type. For example,
|
|
90
|
+
200,202,300-302,401,403,404,500-504. If not specified, the default is 200.
|
|
89
91
|
|
|
90
92
|
http_method: HTTP method. Can only be used together with `HTTP` or `HTTPS` health monitor
|
|
91
93
|
type.
|
|
@@ -209,7 +211,7 @@ class AsyncHealthMonitorsResource(AsyncAPIResource):
|
|
|
209
211
|
type: LbHealthMonitorType,
|
|
210
212
|
expected_codes: Optional[str] | NotGiven = NOT_GIVEN,
|
|
211
213
|
http_method: Optional[HTTPMethod] | NotGiven = NOT_GIVEN,
|
|
212
|
-
max_retries_down:
|
|
214
|
+
max_retries_down: int | NotGiven = NOT_GIVEN,
|
|
213
215
|
url_path: Optional[str] | NotGiven = NOT_GIVEN,
|
|
214
216
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
215
217
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -236,7 +238,9 @@ class AsyncHealthMonitorsResource(AsyncAPIResource):
|
|
|
236
238
|
|
|
237
239
|
type: Health monitor type. Once health monitor is created, cannot be changed.
|
|
238
240
|
|
|
239
|
-
expected_codes: Can
|
|
241
|
+
expected_codes: Expected HTTP response codes. Can be a single code or a range of codes. Can only
|
|
242
|
+
be used together with `HTTP` or `HTTPS` health monitor type. For example,
|
|
243
|
+
200,202,300-302,401,403,404,500-504. If not specified, the default is 200.
|
|
240
244
|
|
|
241
245
|
http_method: HTTP method. Can only be used together with `HTTP` or `HTTPS` health monitor
|
|
242
246
|
type.
|
|
@@ -57,7 +57,7 @@ class MembersResource(SyncAPIResource):
|
|
|
57
57
|
monitor_address: Optional[str] | NotGiven = NOT_GIVEN,
|
|
58
58
|
monitor_port: Optional[int] | NotGiven = NOT_GIVEN,
|
|
59
59
|
subnet_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
60
|
-
weight:
|
|
60
|
+
weight: int | NotGiven = NOT_GIVEN,
|
|
61
61
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
62
62
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
63
63
|
extra_headers: Headers | None = None,
|
|
@@ -222,7 +222,7 @@ class AsyncMembersResource(AsyncAPIResource):
|
|
|
222
222
|
monitor_address: Optional[str] | NotGiven = NOT_GIVEN,
|
|
223
223
|
monitor_port: Optional[int] | NotGiven = NOT_GIVEN,
|
|
224
224
|
subnet_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
225
|
-
weight:
|
|
225
|
+
weight: int | NotGiven = NOT_GIVEN,
|
|
226
226
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
227
227
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
228
228
|
extra_headers: Headers | None = None,
|
|
@@ -18,7 +18,7 @@ from ..._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.security import bgp_announce_list_params,
|
|
21
|
+
from ...types.security import bgp_announce_list_params, bgp_announce_toggle_params
|
|
22
22
|
from ...types.security.bgp_announce_list_response import BgpAnnounceListResponse
|
|
23
23
|
|
|
24
24
|
__all__ = ["BgpAnnouncesResource", "AsyncBgpAnnouncesResource"]
|
|
@@ -93,7 +93,7 @@ class BgpAnnouncesResource(SyncAPIResource):
|
|
|
93
93
|
cast_to=BgpAnnounceListResponse,
|
|
94
94
|
)
|
|
95
95
|
|
|
96
|
-
def
|
|
96
|
+
def toggle(
|
|
97
97
|
self,
|
|
98
98
|
*,
|
|
99
99
|
announce: str,
|
|
@@ -128,14 +128,14 @@ class BgpAnnouncesResource(SyncAPIResource):
|
|
|
128
128
|
"announce": announce,
|
|
129
129
|
"enabled": enabled,
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
bgp_announce_toggle_params.BgpAnnounceToggleParams,
|
|
132
132
|
),
|
|
133
133
|
options=make_request_options(
|
|
134
134
|
extra_headers=extra_headers,
|
|
135
135
|
extra_query=extra_query,
|
|
136
136
|
extra_body=extra_body,
|
|
137
137
|
timeout=timeout,
|
|
138
|
-
query=maybe_transform({"client_id": client_id},
|
|
138
|
+
query=maybe_transform({"client_id": client_id}, bgp_announce_toggle_params.BgpAnnounceToggleParams),
|
|
139
139
|
),
|
|
140
140
|
cast_to=object,
|
|
141
141
|
)
|
|
@@ -210,7 +210,7 @@ class AsyncBgpAnnouncesResource(AsyncAPIResource):
|
|
|
210
210
|
cast_to=BgpAnnounceListResponse,
|
|
211
211
|
)
|
|
212
212
|
|
|
213
|
-
async def
|
|
213
|
+
async def toggle(
|
|
214
214
|
self,
|
|
215
215
|
*,
|
|
216
216
|
announce: str,
|
|
@@ -245,7 +245,7 @@ class AsyncBgpAnnouncesResource(AsyncAPIResource):
|
|
|
245
245
|
"announce": announce,
|
|
246
246
|
"enabled": enabled,
|
|
247
247
|
},
|
|
248
|
-
|
|
248
|
+
bgp_announce_toggle_params.BgpAnnounceToggleParams,
|
|
249
249
|
),
|
|
250
250
|
options=make_request_options(
|
|
251
251
|
extra_headers=extra_headers,
|
|
@@ -253,7 +253,7 @@ class AsyncBgpAnnouncesResource(AsyncAPIResource):
|
|
|
253
253
|
extra_body=extra_body,
|
|
254
254
|
timeout=timeout,
|
|
255
255
|
query=await async_maybe_transform(
|
|
256
|
-
{"client_id": client_id},
|
|
256
|
+
{"client_id": client_id}, bgp_announce_toggle_params.BgpAnnounceToggleParams
|
|
257
257
|
),
|
|
258
258
|
),
|
|
259
259
|
cast_to=object,
|
|
@@ -267,8 +267,8 @@ class BgpAnnouncesResourceWithRawResponse:
|
|
|
267
267
|
self.list = to_raw_response_wrapper(
|
|
268
268
|
bgp_announces.list,
|
|
269
269
|
)
|
|
270
|
-
self.
|
|
271
|
-
bgp_announces.
|
|
270
|
+
self.toggle = to_raw_response_wrapper(
|
|
271
|
+
bgp_announces.toggle,
|
|
272
272
|
)
|
|
273
273
|
|
|
274
274
|
|
|
@@ -279,8 +279,8 @@ class AsyncBgpAnnouncesResourceWithRawResponse:
|
|
|
279
279
|
self.list = async_to_raw_response_wrapper(
|
|
280
280
|
bgp_announces.list,
|
|
281
281
|
)
|
|
282
|
-
self.
|
|
283
|
-
bgp_announces.
|
|
282
|
+
self.toggle = async_to_raw_response_wrapper(
|
|
283
|
+
bgp_announces.toggle,
|
|
284
284
|
)
|
|
285
285
|
|
|
286
286
|
|
|
@@ -291,8 +291,8 @@ class BgpAnnouncesResourceWithStreamingResponse:
|
|
|
291
291
|
self.list = to_streamed_response_wrapper(
|
|
292
292
|
bgp_announces.list,
|
|
293
293
|
)
|
|
294
|
-
self.
|
|
295
|
-
bgp_announces.
|
|
294
|
+
self.toggle = to_streamed_response_wrapper(
|
|
295
|
+
bgp_announces.toggle,
|
|
296
296
|
)
|
|
297
297
|
|
|
298
298
|
|
|
@@ -303,6 +303,6 @@ class AsyncBgpAnnouncesResourceWithStreamingResponse:
|
|
|
303
303
|
self.list = async_to_streamed_response_wrapper(
|
|
304
304
|
bgp_announces.list,
|
|
305
305
|
)
|
|
306
|
-
self.
|
|
307
|
-
bgp_announces.
|
|
306
|
+
self.toggle = async_to_streamed_response_wrapper(
|
|
307
|
+
bgp_announces.toggle,
|
|
308
308
|
)
|
gcore/resources/waap/__init__.py
CHANGED
|
@@ -32,6 +32,14 @@ from .ip_info import (
|
|
|
32
32
|
IPInfoResourceWithStreamingResponse,
|
|
33
33
|
AsyncIPInfoResourceWithStreamingResponse,
|
|
34
34
|
)
|
|
35
|
+
from .insights import (
|
|
36
|
+
InsightsResource,
|
|
37
|
+
AsyncInsightsResource,
|
|
38
|
+
InsightsResourceWithRawResponse,
|
|
39
|
+
AsyncInsightsResourceWithRawResponse,
|
|
40
|
+
InsightsResourceWithStreamingResponse,
|
|
41
|
+
AsyncInsightsResourceWithStreamingResponse,
|
|
42
|
+
)
|
|
35
43
|
from .statistics import (
|
|
36
44
|
StatisticsResource,
|
|
37
45
|
AsyncStatisticsResource,
|
|
@@ -102,6 +110,12 @@ __all__ = [
|
|
|
102
110
|
"AsyncOrganizationsResourceWithRawResponse",
|
|
103
111
|
"OrganizationsResourceWithStreamingResponse",
|
|
104
112
|
"AsyncOrganizationsResourceWithStreamingResponse",
|
|
113
|
+
"InsightsResource",
|
|
114
|
+
"AsyncInsightsResource",
|
|
115
|
+
"InsightsResourceWithRawResponse",
|
|
116
|
+
"AsyncInsightsResourceWithRawResponse",
|
|
117
|
+
"InsightsResourceWithStreamingResponse",
|
|
118
|
+
"AsyncInsightsResourceWithStreamingResponse",
|
|
105
119
|
"IPInfoResource",
|
|
106
120
|
"AsyncIPInfoResource",
|
|
107
121
|
"IPInfoResourceWithRawResponse",
|
|
@@ -19,22 +19,14 @@ from ..._response import (
|
|
|
19
19
|
)
|
|
20
20
|
from ...pagination import SyncOffsetPage, AsyncOffsetPage
|
|
21
21
|
from ...types.waap import (
|
|
22
|
-
WaapPageType,
|
|
23
22
|
custom_page_set_list_params,
|
|
24
23
|
custom_page_set_create_params,
|
|
25
24
|
custom_page_set_update_params,
|
|
26
25
|
custom_page_set_preview_params,
|
|
27
26
|
)
|
|
28
27
|
from ..._base_client import AsyncPaginator, make_request_options
|
|
29
|
-
from ...types.waap.waap_page_type import WaapPageType
|
|
30
28
|
from ...types.waap.waap_custom_page_set import WaapCustomPageSet
|
|
31
29
|
from ...types.waap.waap_custom_page_preview import WaapCustomPagePreview
|
|
32
|
-
from ...types.waap.waap_block_page_data_param import WaapBlockPageDataParam
|
|
33
|
-
from ...types.waap.waap_captcha_page_data_param import WaapCaptchaPageDataParam
|
|
34
|
-
from ...types.waap.waap_handshake_page_data_param import WaapHandshakePageDataParam
|
|
35
|
-
from ...types.waap.waap_block_csrf_page_data_param import WaapBlockCsrfPageDataParam
|
|
36
|
-
from ...types.waap.waap_cookie_disabled_page_data_param import WaapCookieDisabledPageDataParam
|
|
37
|
-
from ...types.waap.waap_javascript_disabled_page_data_param import WaapJavascriptDisabledPageDataParam
|
|
38
30
|
|
|
39
31
|
__all__ = ["CustomPageSetsResource", "AsyncCustomPageSetsResource"]
|
|
40
32
|
|
|
@@ -63,13 +55,13 @@ class CustomPageSetsResource(SyncAPIResource):
|
|
|
63
55
|
self,
|
|
64
56
|
*,
|
|
65
57
|
name: str,
|
|
66
|
-
block: Optional[
|
|
67
|
-
block_csrf: Optional[
|
|
68
|
-
captcha: Optional[
|
|
69
|
-
cookie_disabled: Optional[
|
|
58
|
+
block: Optional[custom_page_set_create_params.Block] | NotGiven = NOT_GIVEN,
|
|
59
|
+
block_csrf: Optional[custom_page_set_create_params.BlockCsrf] | NotGiven = NOT_GIVEN,
|
|
60
|
+
captcha: Optional[custom_page_set_create_params.Captcha] | NotGiven = NOT_GIVEN,
|
|
61
|
+
cookie_disabled: Optional[custom_page_set_create_params.CookieDisabled] | NotGiven = NOT_GIVEN,
|
|
70
62
|
domains: Optional[Iterable[int]] | NotGiven = NOT_GIVEN,
|
|
71
|
-
handshake: Optional[
|
|
72
|
-
javascript_disabled: Optional[
|
|
63
|
+
handshake: Optional[custom_page_set_create_params.Handshake] | NotGiven = NOT_GIVEN,
|
|
64
|
+
javascript_disabled: Optional[custom_page_set_create_params.JavascriptDisabled] | NotGiven = NOT_GIVEN,
|
|
73
65
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
74
66
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
75
67
|
extra_headers: Headers | None = None,
|
|
@@ -120,13 +112,13 @@ class CustomPageSetsResource(SyncAPIResource):
|
|
|
120
112
|
self,
|
|
121
113
|
set_id: int,
|
|
122
114
|
*,
|
|
123
|
-
block: Optional[
|
|
124
|
-
block_csrf: Optional[
|
|
125
|
-
captcha: Optional[
|
|
126
|
-
cookie_disabled: Optional[
|
|
115
|
+
block: Optional[custom_page_set_update_params.Block] | NotGiven = NOT_GIVEN,
|
|
116
|
+
block_csrf: Optional[custom_page_set_update_params.BlockCsrf] | NotGiven = NOT_GIVEN,
|
|
117
|
+
captcha: Optional[custom_page_set_update_params.Captcha] | NotGiven = NOT_GIVEN,
|
|
118
|
+
cookie_disabled: Optional[custom_page_set_update_params.CookieDisabled] | NotGiven = NOT_GIVEN,
|
|
127
119
|
domains: Optional[Iterable[int]] | NotGiven = NOT_GIVEN,
|
|
128
|
-
handshake: Optional[
|
|
129
|
-
javascript_disabled: Optional[
|
|
120
|
+
handshake: Optional[custom_page_set_update_params.Handshake] | NotGiven = NOT_GIVEN,
|
|
121
|
+
javascript_disabled: Optional[custom_page_set_update_params.JavascriptDisabled] | NotGiven = NOT_GIVEN,
|
|
130
122
|
name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
131
123
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
132
124
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -309,7 +301,14 @@ class CustomPageSetsResource(SyncAPIResource):
|
|
|
309
301
|
def preview(
|
|
310
302
|
self,
|
|
311
303
|
*,
|
|
312
|
-
page_type:
|
|
304
|
+
page_type: Literal[
|
|
305
|
+
"block.html",
|
|
306
|
+
"block_csrf.html",
|
|
307
|
+
"captcha.html",
|
|
308
|
+
"cookieDisabled.html",
|
|
309
|
+
"handshake.html",
|
|
310
|
+
"javascriptDisabled.html",
|
|
311
|
+
],
|
|
313
312
|
error: Optional[str] | NotGiven = NOT_GIVEN,
|
|
314
313
|
header: Optional[str] | NotGiven = NOT_GIVEN,
|
|
315
314
|
logo: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -398,13 +397,13 @@ class AsyncCustomPageSetsResource(AsyncAPIResource):
|
|
|
398
397
|
self,
|
|
399
398
|
*,
|
|
400
399
|
name: str,
|
|
401
|
-
block: Optional[
|
|
402
|
-
block_csrf: Optional[
|
|
403
|
-
captcha: Optional[
|
|
404
|
-
cookie_disabled: Optional[
|
|
400
|
+
block: Optional[custom_page_set_create_params.Block] | NotGiven = NOT_GIVEN,
|
|
401
|
+
block_csrf: Optional[custom_page_set_create_params.BlockCsrf] | NotGiven = NOT_GIVEN,
|
|
402
|
+
captcha: Optional[custom_page_set_create_params.Captcha] | NotGiven = NOT_GIVEN,
|
|
403
|
+
cookie_disabled: Optional[custom_page_set_create_params.CookieDisabled] | NotGiven = NOT_GIVEN,
|
|
405
404
|
domains: Optional[Iterable[int]] | NotGiven = NOT_GIVEN,
|
|
406
|
-
handshake: Optional[
|
|
407
|
-
javascript_disabled: Optional[
|
|
405
|
+
handshake: Optional[custom_page_set_create_params.Handshake] | NotGiven = NOT_GIVEN,
|
|
406
|
+
javascript_disabled: Optional[custom_page_set_create_params.JavascriptDisabled] | NotGiven = NOT_GIVEN,
|
|
408
407
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
409
408
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
410
409
|
extra_headers: Headers | None = None,
|
|
@@ -455,13 +454,13 @@ class AsyncCustomPageSetsResource(AsyncAPIResource):
|
|
|
455
454
|
self,
|
|
456
455
|
set_id: int,
|
|
457
456
|
*,
|
|
458
|
-
block: Optional[
|
|
459
|
-
block_csrf: Optional[
|
|
460
|
-
captcha: Optional[
|
|
461
|
-
cookie_disabled: Optional[
|
|
457
|
+
block: Optional[custom_page_set_update_params.Block] | NotGiven = NOT_GIVEN,
|
|
458
|
+
block_csrf: Optional[custom_page_set_update_params.BlockCsrf] | NotGiven = NOT_GIVEN,
|
|
459
|
+
captcha: Optional[custom_page_set_update_params.Captcha] | NotGiven = NOT_GIVEN,
|
|
460
|
+
cookie_disabled: Optional[custom_page_set_update_params.CookieDisabled] | NotGiven = NOT_GIVEN,
|
|
462
461
|
domains: Optional[Iterable[int]] | NotGiven = NOT_GIVEN,
|
|
463
|
-
handshake: Optional[
|
|
464
|
-
javascript_disabled: Optional[
|
|
462
|
+
handshake: Optional[custom_page_set_update_params.Handshake] | NotGiven = NOT_GIVEN,
|
|
463
|
+
javascript_disabled: Optional[custom_page_set_update_params.JavascriptDisabled] | NotGiven = NOT_GIVEN,
|
|
465
464
|
name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
466
465
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
467
466
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -644,7 +643,14 @@ class AsyncCustomPageSetsResource(AsyncAPIResource):
|
|
|
644
643
|
async def preview(
|
|
645
644
|
self,
|
|
646
645
|
*,
|
|
647
|
-
page_type:
|
|
646
|
+
page_type: Literal[
|
|
647
|
+
"block.html",
|
|
648
|
+
"block_csrf.html",
|
|
649
|
+
"captcha.html",
|
|
650
|
+
"cookieDisabled.html",
|
|
651
|
+
"handshake.html",
|
|
652
|
+
"javascriptDisabled.html",
|
|
653
|
+
],
|
|
648
654
|
error: Optional[str] | NotGiven = NOT_GIVEN,
|
|
649
655
|
header: Optional[str] | NotGiven = NOT_GIVEN,
|
|
650
656
|
logo: Optional[str] | NotGiven = NOT_GIVEN,
|
|
@@ -16,14 +16,6 @@ from .insights import (
|
|
|
16
16
|
InsightsResourceWithStreamingResponse,
|
|
17
17
|
AsyncInsightsResourceWithStreamingResponse,
|
|
18
18
|
)
|
|
19
|
-
from .policies import (
|
|
20
|
-
PoliciesResource,
|
|
21
|
-
AsyncPoliciesResource,
|
|
22
|
-
PoliciesResourceWithRawResponse,
|
|
23
|
-
AsyncPoliciesResourceWithRawResponse,
|
|
24
|
-
PoliciesResourceWithStreamingResponse,
|
|
25
|
-
AsyncPoliciesResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
19
|
from .settings import (
|
|
28
20
|
SettingsResource,
|
|
29
21
|
AsyncSettingsResource,
|
|
@@ -32,14 +24,6 @@ from .settings import (
|
|
|
32
24
|
SettingsResourceWithStreamingResponse,
|
|
33
25
|
AsyncSettingsResourceWithStreamingResponse,
|
|
34
26
|
)
|
|
35
|
-
from .analytics import (
|
|
36
|
-
AnalyticsResource,
|
|
37
|
-
AsyncAnalyticsResource,
|
|
38
|
-
AnalyticsResourceWithRawResponse,
|
|
39
|
-
AsyncAnalyticsResourceWithRawResponse,
|
|
40
|
-
AnalyticsResourceWithStreamingResponse,
|
|
41
|
-
AsyncAnalyticsResourceWithStreamingResponse,
|
|
42
|
-
)
|
|
43
27
|
from .api_paths import (
|
|
44
28
|
APIPathsResource,
|
|
45
29
|
AsyncAPIPathsResource,
|
|
@@ -48,6 +32,14 @@ from .api_paths import (
|
|
|
48
32
|
APIPathsResourceWithStreamingResponse,
|
|
49
33
|
AsyncAPIPathsResourceWithStreamingResponse,
|
|
50
34
|
)
|
|
35
|
+
from .statistics import (
|
|
36
|
+
StatisticsResource,
|
|
37
|
+
AsyncStatisticsResource,
|
|
38
|
+
StatisticsResourceWithRawResponse,
|
|
39
|
+
AsyncStatisticsResourceWithRawResponse,
|
|
40
|
+
StatisticsResourceWithStreamingResponse,
|
|
41
|
+
AsyncStatisticsResourceWithStreamingResponse,
|
|
42
|
+
)
|
|
51
43
|
from .custom_rules import (
|
|
52
44
|
CustomRulesResource,
|
|
53
45
|
AsyncCustomRulesResource,
|
|
@@ -134,18 +126,12 @@ __all__ = [
|
|
|
134
126
|
"AsyncInsightSilencesResourceWithRawResponse",
|
|
135
127
|
"InsightSilencesResourceWithStreamingResponse",
|
|
136
128
|
"AsyncInsightSilencesResourceWithStreamingResponse",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"AnalyticsResource",
|
|
144
|
-
"AsyncAnalyticsResource",
|
|
145
|
-
"AnalyticsResourceWithRawResponse",
|
|
146
|
-
"AsyncAnalyticsResourceWithRawResponse",
|
|
147
|
-
"AnalyticsResourceWithStreamingResponse",
|
|
148
|
-
"AsyncAnalyticsResourceWithStreamingResponse",
|
|
129
|
+
"StatisticsResource",
|
|
130
|
+
"AsyncStatisticsResource",
|
|
131
|
+
"StatisticsResourceWithRawResponse",
|
|
132
|
+
"AsyncStatisticsResourceWithRawResponse",
|
|
133
|
+
"StatisticsResourceWithStreamingResponse",
|
|
134
|
+
"AsyncStatisticsResourceWithStreamingResponse",
|
|
149
135
|
"CustomRulesResource",
|
|
150
136
|
"AsyncCustomRulesResource",
|
|
151
137
|
"CustomRulesResourceWithRawResponse",
|
|
@@ -18,12 +18,9 @@ from ...._response import (
|
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
20
|
from ....pagination import SyncOffsetPage, AsyncOffsetPage
|
|
21
|
-
from ....types.waap import WaapRuleActionType, WaapCustomerRuleState
|
|
22
21
|
from ...._base_client import AsyncPaginator, make_request_options
|
|
23
22
|
from ....types.waap.domains import advanced_rule_list_params, advanced_rule_create_params, advanced_rule_update_params
|
|
24
|
-
from ....types.waap.waap_advanced_rule import WaapAdvancedRule
|
|
25
|
-
from ....types.waap.waap_rule_action_type import WaapRuleActionType
|
|
26
|
-
from ....types.waap.waap_customer_rule_state import WaapCustomerRuleState
|
|
23
|
+
from ....types.waap.domains.waap_advanced_rule import WaapAdvancedRule
|
|
27
24
|
|
|
28
25
|
__all__ = ["AdvancedRulesResource", "AsyncAdvancedRulesResource"]
|
|
29
26
|
|
|
@@ -196,7 +193,7 @@ class AdvancedRulesResource(SyncAPIResource):
|
|
|
196
193
|
self,
|
|
197
194
|
domain_id: int,
|
|
198
195
|
*,
|
|
199
|
-
action:
|
|
196
|
+
action: Literal["allow", "block", "captcha", "handshake", "monitor", "tag"] | NotGiven = NOT_GIVEN,
|
|
200
197
|
description: str | NotGiven = NOT_GIVEN,
|
|
201
198
|
enabled: bool | NotGiven = NOT_GIVEN,
|
|
202
199
|
limit: int | NotGiven = NOT_GIVEN,
|
|
@@ -363,7 +360,7 @@ class AdvancedRulesResource(SyncAPIResource):
|
|
|
363
360
|
|
|
364
361
|
def toggle(
|
|
365
362
|
self,
|
|
366
|
-
action:
|
|
363
|
+
action: Literal["enable", "disable"],
|
|
367
364
|
*,
|
|
368
365
|
domain_id: int,
|
|
369
366
|
rule_id: int,
|
|
@@ -572,7 +569,7 @@ class AsyncAdvancedRulesResource(AsyncAPIResource):
|
|
|
572
569
|
self,
|
|
573
570
|
domain_id: int,
|
|
574
571
|
*,
|
|
575
|
-
action:
|
|
572
|
+
action: Literal["allow", "block", "captcha", "handshake", "monitor", "tag"] | NotGiven = NOT_GIVEN,
|
|
576
573
|
description: str | NotGiven = NOT_GIVEN,
|
|
577
574
|
enabled: bool | NotGiven = NOT_GIVEN,
|
|
578
575
|
limit: int | NotGiven = NOT_GIVEN,
|
|
@@ -739,7 +736,7 @@ class AsyncAdvancedRulesResource(AsyncAPIResource):
|
|
|
739
736
|
|
|
740
737
|
async def toggle(
|
|
741
738
|
self,
|
|
742
|
-
action:
|
|
739
|
+
action: Literal["enable", "disable"],
|
|
743
740
|
*,
|
|
744
741
|
domain_id: int,
|
|
745
742
|
rule_id: int,
|