gcore 0.1.0a2__py3-none-any.whl → 0.3.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/__init__.py +5 -0
- gcore/_base_client.py +22 -2
- gcore/_client.py +9 -0
- gcore/_models.py +2 -0
- gcore/_types.py +2 -0
- gcore/_utils/_proxy.py +4 -1
- gcore/_utils/_resources_proxy.py +24 -0
- gcore/_version.py +1 -1
- gcore/resources/__init__.py +14 -0
- gcore/resources/cloud/baremetal/flavors.py +2 -2
- gcore/resources/cloud/baremetal/images.py +2 -2
- gcore/resources/cloud/baremetal/servers.py +280 -52
- gcore/resources/cloud/billing_reservations.py +24 -0
- gcore/resources/cloud/file_shares/file_shares.py +16 -0
- gcore/resources/cloud/floating_ips.py +4 -4
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +358 -8
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +206 -2
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +84 -4
- gcore/resources/cloud/inference/deployments/deployments.py +328 -10
- gcore/resources/cloud/instances/flavors.py +2 -2
- gcore/resources/cloud/instances/images.py +318 -2
- gcore/resources/cloud/instances/instances.py +534 -70
- gcore/resources/cloud/instances/interfaces.py +4 -4
- gcore/resources/cloud/load_balancers/flavors.py +2 -2
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +302 -20
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +326 -0
- gcore/resources/cloud/load_balancers/listeners.py +385 -20
- gcore/resources/cloud/load_balancers/load_balancers.py +392 -24
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +24 -0
- gcore/resources/cloud/load_balancers/pools/members.py +34 -6
- gcore/resources/cloud/load_balancers/pools/pools.py +388 -8
- gcore/resources/cloud/networks/networks.py +72 -16
- gcore/resources/cloud/networks/subnets.py +6 -6
- gcore/resources/cloud/registries/registries.py +6 -10
- gcore/resources/cloud/registries/users.py +4 -10
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +10 -10
- gcore/resources/cloud/secrets.py +56 -11
- gcore/resources/cloud/security_groups/security_groups.py +2 -2
- gcore/resources/cloud/ssh_keys.py +2 -2
- gcore/resources/cloud/tasks.py +203 -184
- gcore/resources/cloud/users/role_assignments.py +4 -4
- gcore/resources/cloud/volumes.py +18 -18
- gcore/resources/waap/__init__.py +131 -0
- gcore/resources/waap/advanced_rules.py +135 -0
- gcore/resources/waap/clients.py +135 -0
- gcore/resources/waap/custom_page_sets.py +805 -0
- gcore/resources/waap/domains/__init__.py +173 -0
- gcore/resources/waap/domains/advanced_rules.py +876 -0
- gcore/resources/waap/domains/analytics/__init__.py +33 -0
- gcore/resources/waap/domains/analytics/analytics.py +676 -0
- gcore/resources/waap/domains/analytics/requests.py +378 -0
- gcore/resources/waap/domains/api_discovery/__init__.py +33 -0
- gcore/resources/waap/domains/api_discovery/api_discovery.py +530 -0
- gcore/resources/waap/domains/api_discovery/scan_results.py +352 -0
- gcore/resources/waap/domains/api_path_groups.py +163 -0
- gcore/resources/waap/domains/api_paths.py +771 -0
- gcore/resources/waap/domains/custom_rules.py +889 -0
- gcore/resources/waap/domains/domains.py +914 -0
- gcore/resources/waap/domains/firewall_rules.py +884 -0
- gcore/resources/waap/domains/insight_silences.py +689 -0
- gcore/resources/waap/domains/insights.py +425 -0
- gcore/resources/waap/domains/policies.py +173 -0
- gcore/resources/waap/domains/settings.py +271 -0
- gcore/resources/waap/ip_info.py +1017 -0
- gcore/resources/waap/organizations.py +217 -0
- gcore/resources/waap/statistics.py +225 -0
- gcore/resources/waap/tags.py +233 -0
- gcore/resources/waap/waap.py +391 -0
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/allowed_address_pairs.py +2 -2
- gcore/types/cloud/baremetal/baremetal_server.py +1 -1
- gcore/types/cloud/baremetal/image_list_params.py +1 -1
- gcore/types/cloud/baremetal/server_create_params.py +9 -9
- gcore/types/cloud/baremetal/server_list_params.py +8 -8
- gcore/types/cloud/baremetal/server_rebuild_params.py +1 -1
- gcore/types/cloud/baremetal_flavor.py +3 -3
- gcore/types/cloud/billing_reservation_list_params.py +5 -0
- gcore/types/cloud/container_probe_config.py +1 -1
- gcore/types/cloud/container_probe_config_create_param.py +2 -3
- gcore/types/cloud/container_scale_triggers.py +2 -2
- gcore/types/cloud/file_share.py +3 -0
- gcore/types/cloud/file_share_list_params.py +7 -1
- gcore/types/cloud/floating_ip_detailed.py +1 -1
- gcore/types/cloud/floating_ip_list_params.py +2 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +21 -1
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +1 -1
- gcore/types/cloud/gpu_baremetal_cluster_server.py +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +10 -10
- gcore/types/cloud/gpu_baremetal_flavor.py +3 -3
- gcore/types/cloud/image.py +1 -1
- gcore/types/cloud/inference/deployment_create_params.py +4 -4
- gcore/types/cloud/inference/deployment_update_params.py +206 -9
- gcore/types/cloud/inference/inference.py +5 -5
- gcore/types/cloud/instance.py +1 -1
- gcore/types/cloud/instance_create_params.py +8 -10
- gcore/types/cloud/instance_list_params.py +8 -8
- gcore/types/cloud/instances/flavor_list_suitable_params.py +4 -1
- gcore/types/cloud/instances/image_list_params.py +1 -1
- gcore/types/cloud/instances/instance_flavor.py +3 -3
- gcore/types/cloud/instances/interface_attach_params.py +10 -10
- gcore/types/cloud/load_balancer_create_params.py +17 -15
- gcore/types/cloud/load_balancer_flavor_detail.py +3 -3
- gcore/types/cloud/load_balancer_l7_policy.py +5 -5
- gcore/types/cloud/load_balancer_list_params.py +5 -5
- gcore/types/cloud/load_balancer_listener_detail.py +17 -17
- gcore/types/cloud/load_balancer_pool.py +13 -13
- gcore/types/cloud/load_balancer_pool_list.py +99 -4
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +5 -5
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +5 -5
- gcore/types/cloud/load_balancers/listener_create_params.py +6 -4
- gcore/types/cloud/load_balancers/listener_get_params.py +3 -1
- gcore/types/cloud/load_balancers/listener_list_params.py +4 -2
- gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +6 -4
- gcore/types/cloud/load_balancers/pool_list_params.py +5 -6
- gcore/types/cloud/load_balancers/pool_update_params.py +6 -4
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +2 -0
- gcore/types/cloud/load_balancers/pools/member_add_params.py +5 -3
- gcore/types/cloud/member.py +2 -2
- gcore/types/cloud/network.py +22 -22
- gcore/types/cloud/network_create_params.py +2 -0
- gcore/types/cloud/network_details.py +25 -24
- gcore/types/cloud/network_list_params.py +15 -10
- gcore/types/cloud/network_update_params.py +2 -0
- gcore/types/cloud/networks/subnet_create_params.py +1 -1
- gcore/types/cloud/networks/subnet_list_params.py +2 -2
- gcore/types/cloud/quota_get_all_response.py +18 -0
- gcore/types/cloud/quota_get_by_region_response.py +18 -0
- gcore/types/cloud/quotas/request_create_params.py +9 -0
- gcore/types/cloud/quotas/request_get_response.py +9 -0
- gcore/types/cloud/quotas/request_list_response.py +9 -0
- gcore/types/cloud/region.py +4 -4
- gcore/types/cloud/registries/user_create_multiple_params.py +3 -5
- gcore/types/cloud/registries/user_create_params.py +3 -5
- gcore/types/cloud/registry_create_params.py +3 -5
- gcore/types/cloud/reserved_fixed_ip_create_params.py +2 -2
- gcore/types/cloud/reserved_fixed_ip_list_params.py +3 -3
- gcore/types/cloud/secret_list_params.py +24 -0
- gcore/types/cloud/security_group_list_params.py +1 -1
- gcore/types/cloud/session_persistence.py +1 -1
- gcore/types/cloud/ssh_key_created.py +3 -6
- gcore/types/cloud/task.py +1 -4
- gcore/types/cloud/task_list_params.py +56 -46
- gcore/types/cloud/users/role_assignment_create_params.py +1 -1
- gcore/types/cloud/users/role_assignment_update_params.py +1 -1
- gcore/types/cloud/volume_create_params.py +6 -6
- gcore/types/cloud/volume_list_params.py +3 -3
- gcore/types/waap/__init__.py +108 -0
- gcore/types/waap/client_me_response.py +34 -0
- gcore/types/waap/custom_page_set_create_params.py +35 -0
- gcore/types/waap/custom_page_set_list_params.py +25 -0
- gcore/types/waap/custom_page_set_preview_params.py +34 -0
- gcore/types/waap/custom_page_set_update_params.py +35 -0
- gcore/types/waap/domain_list_params.py +30 -0
- gcore/types/waap/domain_list_rule_sets_response.py +10 -0
- gcore/types/waap/domain_update_params.py +12 -0
- gcore/types/waap/domains/__init__.py +47 -0
- gcore/types/waap/domains/advanced_rule_create_params.py +80 -0
- gcore/types/waap/domains/advanced_rule_list_params.py +58 -0
- gcore/types/waap/domains/advanced_rule_update_params.py +83 -0
- gcore/types/waap/domains/analytics/__init__.py +5 -0
- gcore/types/waap/domains/analytics/request_list_params.py +53 -0
- gcore/types/waap/domains/analytics_get_event_statistics_params.py +34 -0
- gcore/types/waap/domains/analytics_list_ddos_attacks_params.py +28 -0
- gcore/types/waap/domains/analytics_list_ddos_info_params.py +31 -0
- gcore/types/waap/domains/analytics_list_event_traffic_params.py +26 -0
- gcore/types/waap/domains/analytics_list_event_traffic_response.py +10 -0
- gcore/types/waap/domains/api_discovery/__init__.py +7 -0
- gcore/types/waap/domains/api_discovery/scan_result_get_response.py +29 -0
- gcore/types/waap/domains/api_discovery/scan_result_list_params.py +41 -0
- gcore/types/waap/domains/api_discovery/scan_result_list_response.py +29 -0
- gcore/types/waap/domains/api_discovery_get_settings_response.py +36 -0
- gcore/types/waap/domains/api_discovery_scan_openapi_response.py +10 -0
- gcore/types/waap/domains/api_discovery_update_settings_params.py +34 -0
- gcore/types/waap/domains/api_discovery_update_settings_response.py +36 -0
- gcore/types/waap/domains/api_discovery_upload_openapi_params.py +19 -0
- gcore/types/waap/domains/api_discovery_upload_openapi_response.py +10 -0
- gcore/types/waap/domains/api_path_create_params.py +31 -0
- gcore/types/waap/domains/api_path_create_response.py +50 -0
- gcore/types/waap/domains/api_path_get_response.py +50 -0
- gcore/types/waap/domains/api_path_group_list_response.py +12 -0
- gcore/types/waap/domains/api_path_list_params.py +62 -0
- gcore/types/waap/domains/api_path_list_response.py +50 -0
- gcore/types/waap/domains/api_path_update_params.py +29 -0
- gcore/types/waap/domains/custom_rule_create_params.py +368 -0
- gcore/types/waap/domains/custom_rule_delete_multiple_params.py +13 -0
- gcore/types/waap/domains/custom_rule_list_params.py +35 -0
- gcore/types/waap/domains/custom_rule_update_params.py +371 -0
- gcore/types/waap/domains/firewall_rule_create_params.py +75 -0
- gcore/types/waap/domains/firewall_rule_delete_multiple_params.py +13 -0
- gcore/types/waap/domains/firewall_rule_list_params.py +33 -0
- gcore/types/waap/domains/firewall_rule_update_params.py +78 -0
- gcore/types/waap/domains/insight_list_params.py +34 -0
- gcore/types/waap/domains/insight_replace_params.py +17 -0
- gcore/types/waap/domains/insight_silence_create_params.py +28 -0
- gcore/types/waap/domains/insight_silence_list_params.py +33 -0
- gcore/types/waap/domains/insight_silence_update_params.py +28 -0
- gcore/types/waap/domains/setting_update_params.py +48 -0
- gcore/types/waap/ip_info_get_attack_time_series_params.py +12 -0
- gcore/types/waap/ip_info_get_attack_time_series_response.py +10 -0
- gcore/types/waap/ip_info_get_blocked_requests_params.py +15 -0
- gcore/types/waap/ip_info_get_blocked_requests_response.py +10 -0
- gcore/types/waap/ip_info_get_counts_params.py +19 -0
- gcore/types/waap/ip_info_get_ddos_attack_series_params.py +12 -0
- gcore/types/waap/ip_info_get_params.py +12 -0
- gcore/types/waap/ip_info_get_top_sessions_params.py +15 -0
- gcore/types/waap/ip_info_get_top_sessions_response.py +10 -0
- gcore/types/waap/ip_info_get_top_urls_params.py +15 -0
- gcore/types/waap/ip_info_get_top_urls_response.py +10 -0
- gcore/types/waap/ip_info_get_top_user_agents_params.py +15 -0
- gcore/types/waap/ip_info_get_top_user_agents_response.py +10 -0
- gcore/types/waap/ip_info_list_attacked_countries_params.py +12 -0
- gcore/types/waap/ip_info_list_attacked_countries_response.py +10 -0
- gcore/types/waap/organization_list_params.py +22 -0
- gcore/types/waap/statistic_get_usage_series_params.py +25 -0
- gcore/types/waap/tag_list_params.py +28 -0
- gcore/types/waap/waap_advanced_rule.py +83 -0
- gcore/types/waap/waap_advanced_rule_descriptor.py +49 -0
- gcore/types/waap/waap_advanced_rule_descriptor_list.py +15 -0
- gcore/types/waap/waap_block_csrf_page_data.py +28 -0
- gcore/types/waap/waap_block_csrf_page_data_param.py +28 -0
- gcore/types/waap/waap_block_page_data.py +28 -0
- gcore/types/waap/waap_block_page_data_param.py +28 -0
- gcore/types/waap/waap_blocked_statistics.py +36 -0
- gcore/types/waap/waap_captcha_page_data.py +31 -0
- gcore/types/waap/waap_captcha_page_data_param.py +31 -0
- gcore/types/waap/waap_common_tag.py +16 -0
- gcore/types/waap/waap_cookie_disabled_page_data.py +18 -0
- gcore/types/waap/waap_cookie_disabled_page_data_param.py +18 -0
- gcore/types/waap/waap_count_statistics.py +36 -0
- gcore/types/waap/waap_custom_page_preview.py +10 -0
- gcore/types/waap/waap_custom_page_set.py +36 -0
- gcore/types/waap/waap_custom_rule.py +373 -0
- gcore/types/waap/waap_customer_rule_state.py +7 -0
- gcore/types/waap/waap_ddos_attack.py +16 -0
- gcore/types/waap/waap_ddos_info.py +17 -0
- gcore/types/waap/waap_detailed_domain.py +37 -0
- gcore/types/waap/waap_domain_api_settings.py +22 -0
- gcore/types/waap/waap_domain_ddos_settings.py +31 -0
- gcore/types/waap/waap_domain_policy.py +29 -0
- gcore/types/waap/waap_domain_settings_model.py +15 -0
- gcore/types/waap/waap_domain_status.py +7 -0
- gcore/types/waap/waap_event_statistics.py +15 -0
- gcore/types/waap/waap_firewall_rule.py +78 -0
- gcore/types/waap/waap_get_account_overview_response.py +34 -0
- gcore/types/waap/waap_handshake_page_data.py +25 -0
- gcore/types/waap/waap_handshake_page_data_param.py +25 -0
- gcore/types/waap/waap_insight.py +38 -0
- gcore/types/waap/waap_insight_silence.py +28 -0
- gcore/types/waap/waap_insight_silence_sort_by.py +9 -0
- gcore/types/waap/waap_insight_sort_by.py +20 -0
- gcore/types/waap/waap_insight_status.py +7 -0
- gcore/types/waap/waap_ip_country_attack.py +16 -0
- gcore/types/waap/waap_ip_ddos_info_model.py +23 -0
- gcore/types/waap/waap_ip_info.py +57 -0
- gcore/types/waap/waap_ip_info_counts.py +16 -0
- gcore/types/waap/waap_javascript_disabled_page_data.py +18 -0
- gcore/types/waap/waap_javascript_disabled_page_data_param.py +18 -0
- gcore/types/waap/waap_network_details.py +17 -0
- gcore/types/waap/waap_organization.py +13 -0
- gcore/types/waap/waap_page_type.py +9 -0
- gcore/types/waap/waap_paginated_custom_page_set.py +22 -0
- gcore/types/waap/waap_paginated_ddos_attack.py +22 -0
- gcore/types/waap/waap_paginated_ddos_info.py +22 -0
- gcore/types/waap/waap_paginated_request_summary.py +22 -0
- gcore/types/waap/waap_pattern_matched_tag.py +37 -0
- gcore/types/waap/waap_policy_action.py +7 -0
- gcore/types/waap/waap_policy_mode.py +10 -0
- gcore/types/waap/waap_request_details.py +92 -0
- gcore/types/waap/waap_request_organization.py +13 -0
- gcore/types/waap/waap_request_summary.py +59 -0
- gcore/types/waap/waap_resolution.py +7 -0
- gcore/types/waap/waap_rule_action_type.py +7 -0
- gcore/types/waap/waap_rule_blocked_requests.py +16 -0
- gcore/types/waap/waap_rule_set.py +41 -0
- gcore/types/waap/waap_statistic_item.py +18 -0
- gcore/types/waap/waap_statistics_series.py +16 -0
- gcore/types/waap/waap_summary_domain.py +26 -0
- gcore/types/waap/waap_tag.py +16 -0
- gcore/types/waap/waap_time_series_attack.py +23 -0
- gcore/types/waap/waap_top_session.py +24 -0
- gcore/types/waap/waap_top_url.py +13 -0
- gcore/types/waap/waap_top_user_agent.py +13 -0
- gcore/types/waap/waap_traffic_metrics.py +68 -0
- gcore/types/waap/waap_traffic_type.py +28 -0
- gcore/types/waap/waap_user_agent_details.py +40 -0
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/METADATA +3 -3
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/RECORD +293 -126
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/WHEEL +0 -0
- {gcore-0.1.0a2.dist-info → gcore-0.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -56,7 +56,7 @@ class NewReservedFixedIPAnySubnetSerializer(TypedDict, total=False):
|
|
|
56
56
|
"""Reserved fixed IP will be allocated in a subnet of this network"""
|
|
57
57
|
|
|
58
58
|
type: Required[Literal["any_subnet"]]
|
|
59
|
-
"""Must be 'any_subnet'."""
|
|
59
|
+
"""Must be '`any_subnet`'."""
|
|
60
60
|
|
|
61
61
|
ip_family: Optional[InterfaceIPFamily]
|
|
62
62
|
"""Which subnets should be selected: IPv4, IPv6 or use dual stack."""
|
|
@@ -77,7 +77,7 @@ class NewReservedFixedIPSpecificIPAddressSerializer(TypedDict, total=False):
|
|
|
77
77
|
"""Reserved fixed IP will be allocated in a subnet of this network"""
|
|
78
78
|
|
|
79
79
|
type: Required[Literal["ip_address"]]
|
|
80
|
-
"""Must be 'ip_address'."""
|
|
80
|
+
"""Must be '`ip_address`'."""
|
|
81
81
|
|
|
82
82
|
is_vip: bool
|
|
83
83
|
"""If reserved fixed IP is a VIP"""
|
|
@@ -38,9 +38,9 @@ class ReservedFixedIPListParams(TypedDict, total=False):
|
|
|
38
38
|
|
|
39
39
|
order_by: str
|
|
40
40
|
"""
|
|
41
|
-
Ordering reserved fixed IP list result by name, status, updated_at
|
|
42
|
-
or fixed_ip_address fields of the reserved fixed IP and
|
|
43
|
-
default is "fixed_ip_address
|
|
41
|
+
Ordering reserved fixed IP list result by name, status, `updated_at`,
|
|
42
|
+
`created_at` or `fixed_ip_address` fields of the reserved fixed IP and
|
|
43
|
+
directions (status.asc), default is "`fixed_ip_address`.asc"
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
46
|
vip_only: bool
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["SecretListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SecretListParams(TypedDict, total=False):
|
|
11
|
+
project_id: int
|
|
12
|
+
"""Project ID"""
|
|
13
|
+
|
|
14
|
+
region_id: int
|
|
15
|
+
"""Region ID"""
|
|
16
|
+
|
|
17
|
+
limit: int
|
|
18
|
+
"""Optional. Limit the number of returned items"""
|
|
19
|
+
|
|
20
|
+
offset: int
|
|
21
|
+
"""Optional.
|
|
22
|
+
|
|
23
|
+
Offset value is used to exclude the first set of records from the result
|
|
24
|
+
"""
|
|
@@ -25,6 +25,6 @@ class SecurityGroupListParams(TypedDict, total=False):
|
|
|
25
25
|
tag_key_value: str
|
|
26
26
|
"""Filter by tag key-value pairs.
|
|
27
27
|
|
|
28
|
-
Must be a valid JSON string. curl -G --data-urlencode "tag_key_value
|
|
28
|
+
Must be a valid JSON string. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
29
29
|
"value"}" --url "http://localhost:1111/v1/securitygroups/1/1"
|
|
30
30
|
"""
|
|
@@ -16,7 +16,7 @@ class SessionPersistence(BaseModel):
|
|
|
16
16
|
"""Should be set if app cookie or http cookie is used"""
|
|
17
17
|
|
|
18
18
|
persistence_granularity: Optional[str] = None
|
|
19
|
-
"""Subnet mask if source_ip is used. For UDP ports only"""
|
|
19
|
+
"""Subnet mask if `source_ip` is used. For UDP ports only"""
|
|
20
20
|
|
|
21
21
|
persistence_timeout: Optional[int] = None
|
|
22
22
|
"""Session persistence timeout. For UDP ports only"""
|
|
@@ -26,12 +26,9 @@ class SSHKeyCreated(BaseModel):
|
|
|
26
26
|
"""The private part of an SSH key is the confidential portion of the key pair.
|
|
27
27
|
|
|
28
28
|
It should never be shared or exposed. This key is used to prove your identity
|
|
29
|
-
when connecting to a server.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
private_key will be returned **once** in the API response. Be sure to save it
|
|
33
|
-
securely, as it cannot be retrieved again later.
|
|
34
|
-
|
|
29
|
+
when connecting to a server. If you omit the `public_key`, the platform will
|
|
30
|
+
generate a key for you. The `private_key` will be returned **once** in the API
|
|
31
|
+
response. Be sure to save it securely, as it cannot be retrieved again later.
|
|
35
32
|
Best practice: Save the private key to a secure location on your machine (e.g.,
|
|
36
33
|
`~/.ssh/id_ed25519`) and set the file permissions to be readable only by you.
|
|
37
34
|
"""
|
gcore/types/cloud/task.py
CHANGED
|
@@ -36,9 +36,6 @@ class CreatedResources(BaseModel):
|
|
|
36
36
|
healthmonitors: Optional[List[str]] = None
|
|
37
37
|
"""IDs of created health monitors"""
|
|
38
38
|
|
|
39
|
-
heat: Optional[List[str]] = None
|
|
40
|
-
"""IDs of created heat resources"""
|
|
41
|
-
|
|
42
39
|
images: Optional[List[str]] = None
|
|
43
40
|
"""IDs of created images"""
|
|
44
41
|
|
|
@@ -132,7 +129,7 @@ class Task(BaseModel):
|
|
|
132
129
|
"""If task was acknowledged, this field stores acknowledge timestamp"""
|
|
133
130
|
|
|
134
131
|
acknowledged_by: Optional[int] = None
|
|
135
|
-
"""If task was acknowledged, this field stores user_id of the person"""
|
|
132
|
+
"""If task was acknowledged, this field stores `user_id` of the person"""
|
|
136
133
|
|
|
137
134
|
client_id: Optional[int] = None
|
|
138
135
|
"""The client ID"""
|
|
@@ -15,7 +15,7 @@ class TaskListParams(TypedDict, total=False):
|
|
|
15
15
|
from_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
16
16
|
"""ISO formatted datetime string.
|
|
17
17
|
|
|
18
|
-
Filter the tasks by creation date greater than or equal to from_timestamp
|
|
18
|
+
Filter the tasks by creation date greater than or equal to `from_timestamp`
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
is_acknowledged: Optional[bool]
|
|
@@ -30,6 +30,9 @@ class TaskListParams(TypedDict, total=False):
|
|
|
30
30
|
offset: int
|
|
31
31
|
"""Offset value is used to exclude the first set of records from the result"""
|
|
32
32
|
|
|
33
|
+
order_by: Literal["asc", "desc"]
|
|
34
|
+
"""Sorting by creation date. Oldest first, or most recent first"""
|
|
35
|
+
|
|
33
36
|
project_id: Optional[Iterable[int]]
|
|
34
37
|
"""The project ID to filter the tasks by project.
|
|
35
38
|
|
|
@@ -42,8 +45,11 @@ class TaskListParams(TypedDict, total=False):
|
|
|
42
45
|
Supports multiple values of kind key=value1&key=value2
|
|
43
46
|
"""
|
|
44
47
|
|
|
45
|
-
sorting:
|
|
46
|
-
"""Sorting by creation date.
|
|
48
|
+
sorting: Literal["asc", "desc"]
|
|
49
|
+
"""(DEPRECATED Use '`order_by`' instead) Sorting by creation date.
|
|
50
|
+
|
|
51
|
+
Oldest first, or most recent first
|
|
52
|
+
"""
|
|
47
53
|
|
|
48
54
|
state: Optional[List[Literal["ERROR", "FINISHED", "NEW", "RUNNING"]]]
|
|
49
55
|
"""Filter the tasks by state.
|
|
@@ -53,52 +59,56 @@ class TaskListParams(TypedDict, total=False):
|
|
|
53
59
|
|
|
54
60
|
task_type: Optional[str]
|
|
55
61
|
"""
|
|
56
|
-
Filter the tasks by their type one of ['activate_ddos_profile',
|
|
57
|
-
'attach_bm_to_reserved_fixed_ip', 'attach_vm_interface',
|
|
58
|
-
'attach_vm_to_reserved_fixed_ip', 'attach_volume',
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
62
|
+
Filter the tasks by their type one of ['`activate_ddos_profile`',
|
|
63
|
+
'`attach_bm_to_reserved_fixed_ip`', '`attach_vm_interface`',
|
|
64
|
+
'`attach_vm_to_reserved_fixed_ip`', '`attach_volume`',
|
|
65
|
+
'`create_ai_cluster_gpu`', '`create_bm`', '`create_caas_container`',
|
|
66
|
+
'`create_dbaas_postgres_cluster`', '`create_ddos_profile`',
|
|
67
|
+
'`create_faas_function`', '`create_faas_namespace`', '`create_fip`',
|
|
68
|
+
'`create_gpu_virtual_cluster`', '`create_image`', '`create_inference_instance`',
|
|
69
|
+
'`create_inference_instance_key`', '`create_k8s_cluster_pool_v2`',
|
|
70
|
+
'`create_k8s_cluster_v2`', '`create_l7policy`', '`create_l7rule`',
|
|
71
|
+
'`create_lblistener`', '`create_lbmember`', '`create_lbpool`',
|
|
72
|
+
'`create_lbpool_health_monitor`', '`create_loadbalancer`', '`create_network`',
|
|
73
|
+
'`create_reserved_fixed_ip`', '`create_router`', '`create_secret`',
|
|
74
|
+
'`create_servergroup`', '`create_sfs`', '`create_snapshot`', '`create_subnet`',
|
|
75
|
+
'`create_vm`', '`create_volume`', '`deactivate_ddos_profile`',
|
|
76
|
+
'`delete_ai_cluster_gpu`', '`delete_caas_container`',
|
|
77
|
+
'`delete_dbaas_postgres_cluster`', '`delete_ddos_profile`',
|
|
78
|
+
'`delete_faas_function`', '`delete_faas_namespace`', '`delete_fip`',
|
|
79
|
+
'`delete_gpu_virtual_cluster`', '`delete_gpu_virtual_server`', '`delete_image`',
|
|
80
|
+
'`delete_inference_instance`', '`delete_k8s_cluster_pool_v2`',
|
|
81
|
+
'`delete_k8s_cluster_v2`', '`delete_l7policy`', '`delete_l7rule`',
|
|
82
|
+
'`delete_lblistener`', '`delete_lbmember`', '`delete_lbmetadata`',
|
|
83
|
+
'`delete_lbpool`', '`delete_loadbalancer`', '`delete_network`',
|
|
84
|
+
'`delete_reserved_fixed_ip`', '`delete_router`', '`delete_secret`',
|
|
85
|
+
'`delete_servergroup`', '`delete_sfs`', '`delete_snapshot`', '`delete_subnet`',
|
|
86
|
+
'`delete_vm`', '`delete_volume`', '`detach_vm_interface`', '`detach_volume`',
|
|
87
|
+
'`download_image`', '`downscale_ai_cluster_gpu`',
|
|
88
|
+
'`downscale_gpu_virtual_cluster`', '`extend_sfs`', '`extend_volume`',
|
|
89
|
+
'`failover_loadbalancer`', '`hard_reboot_gpu_baremetal_server`',
|
|
90
|
+
'`hard_reboot_gpu_virtual_cluster`', '`hard_reboot_gpu_virtual_server`',
|
|
91
|
+
'`hard_reboot_vm`', '`patch_caas_container`', '`patch_dbaas_postgres_cluster`',
|
|
92
|
+
'`patch_faas_function`', '`patch_faas_namespace`', '`patch_lblistener`',
|
|
93
|
+
'`patch_lbpool`', '`put_into_server_group`', '`put_l7policy`', '`put_l7rule`',
|
|
94
|
+
'`rebuild_bm`', '`rebuild_gpu_baremetal_node`', '`remove_from_server_group`',
|
|
95
|
+
'`replace_lbmetadata`', '`resize_k8s_cluster_v2`', '`resize_loadbalancer`',
|
|
96
|
+
'`resize_vm`', '`resume_vm`', '`revert_volume`',
|
|
97
|
+
'`soft_reboot_gpu_baremetal_server`', '`soft_reboot_gpu_virtual_cluster`',
|
|
98
|
+
'`soft_reboot_gpu_virtual_server`', '`soft_reboot_vm`',
|
|
99
|
+
'`start_gpu_baremetal_server`', '`start_gpu_virtual_cluster`',
|
|
100
|
+
'`start_gpu_virtual_server`', '`start_vm`', '`stop_gpu_baremetal_server`',
|
|
101
|
+
'`stop_gpu_virtual_cluster`', '`stop_gpu_virtual_server`', '`stop_vm`',
|
|
102
|
+
'`suspend_vm`', '`sync_private_flavors`', '`update_ddos_profile`',
|
|
103
|
+
'`update_inference_instance`', '`update_inference_instance_key`',
|
|
104
|
+
'`update_k8s_cluster_v2`', '`update_lbmetadata`',
|
|
105
|
+
'`update_port_allowed_address_pairs`', '`update_tags_gpu_virtual_cluster`',
|
|
106
|
+
'`upgrade_k8s_cluster_v2`', '`upscale_ai_cluster_gpu`',
|
|
107
|
+
'`upscale_gpu_virtual_cluster`']
|
|
98
108
|
"""
|
|
99
109
|
|
|
100
110
|
to_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
101
111
|
"""ISO formatted datetime string.
|
|
102
112
|
|
|
103
|
-
Filter the tasks by creation date less than or equal to to_timestamp
|
|
113
|
+
Filter the tasks by creation date less than or equal to `to_timestamp`
|
|
104
114
|
"""
|
|
@@ -16,7 +16,7 @@ class RoleAssignmentCreateParams(TypedDict, total=False):
|
|
|
16
16
|
"""User ID"""
|
|
17
17
|
|
|
18
18
|
client_id: Optional[int]
|
|
19
|
-
"""Client ID. Required if project_id is specified"""
|
|
19
|
+
"""Client ID. Required if `project_id` is specified"""
|
|
20
20
|
|
|
21
21
|
project_id: Optional[int]
|
|
22
22
|
"""Project ID"""
|
|
@@ -16,7 +16,7 @@ class RoleAssignmentUpdateParams(TypedDict, total=False):
|
|
|
16
16
|
"""User ID"""
|
|
17
17
|
|
|
18
18
|
client_id: Optional[int]
|
|
19
|
-
"""Client ID. Required if project_id is specified"""
|
|
19
|
+
"""Client ID. Required if `project_id` is specified"""
|
|
20
20
|
|
|
21
21
|
project_id: Optional[int]
|
|
22
22
|
"""Project ID"""
|
|
@@ -37,11 +37,11 @@ class CreateVolumeFromImageSerializer(TypedDict, total=False):
|
|
|
37
37
|
attachment_tag: str
|
|
38
38
|
"""Block device attachment tag (not exposed in the user tags).
|
|
39
39
|
|
|
40
|
-
Only used in conjunction with instance_id_to_attach_to
|
|
40
|
+
Only used in conjunction with `instance_id_to_attach_to`
|
|
41
41
|
"""
|
|
42
42
|
|
|
43
43
|
instance_id_to_attach_to: str
|
|
44
|
-
"""instance_id to attach newly-created volume to"""
|
|
44
|
+
"""`instance_id` to attach newly-created volume to"""
|
|
45
45
|
|
|
46
46
|
lifecycle_policy_ids: Iterable[int]
|
|
47
47
|
"""
|
|
@@ -86,11 +86,11 @@ class CreateVolumeFromSnapshotSerializer(TypedDict, total=False):
|
|
|
86
86
|
attachment_tag: str
|
|
87
87
|
"""Block device attachment tag (not exposed in the user tags).
|
|
88
88
|
|
|
89
|
-
Only used in conjunction with instance_id_to_attach_to
|
|
89
|
+
Only used in conjunction with `instance_id_to_attach_to`
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
92
|
instance_id_to_attach_to: str
|
|
93
|
-
"""instance_id to attach newly-created volume to"""
|
|
93
|
+
"""`instance_id` to attach newly-created volume to"""
|
|
94
94
|
|
|
95
95
|
lifecycle_policy_ids: Iterable[int]
|
|
96
96
|
"""
|
|
@@ -141,11 +141,11 @@ class CreateNewVolumeSerializer(TypedDict, total=False):
|
|
|
141
141
|
attachment_tag: str
|
|
142
142
|
"""Block device attachment tag (not exposed in the user tags).
|
|
143
143
|
|
|
144
|
-
Only used in conjunction with instance_id_to_attach_to
|
|
144
|
+
Only used in conjunction with `instance_id_to_attach_to`
|
|
145
145
|
"""
|
|
146
146
|
|
|
147
147
|
instance_id_to_attach_to: str
|
|
148
|
-
"""instance_id to attach newly-created volume to"""
|
|
148
|
+
"""`instance_id` to attach newly-created volume to"""
|
|
149
149
|
|
|
150
150
|
lifecycle_policy_ids: Iterable[int]
|
|
151
151
|
"""
|
|
@@ -35,7 +35,7 @@ class VolumeListParams(TypedDict, total=False):
|
|
|
35
35
|
|
|
36
36
|
name_part: str
|
|
37
37
|
"""
|
|
38
|
-
Filter volumes by name_part inclusion in volume name.Any substring can be used
|
|
38
|
+
Filter volumes by `name_part` inclusion in volume name.Any substring can be used
|
|
39
39
|
and volumes will be returned with names containing the substring.
|
|
40
40
|
"""
|
|
41
41
|
|
|
@@ -46,11 +46,11 @@ class VolumeListParams(TypedDict, total=False):
|
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
tag_key: List[str]
|
|
49
|
-
"""Optional. Filter by tag keys.
|
|
49
|
+
"""Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
|
|
50
50
|
|
|
51
51
|
tag_key_value: str
|
|
52
52
|
"""Optional.
|
|
53
53
|
|
|
54
|
-
Filter by tag key-value pairs. curl -G --data-urlencode "tag_key_value
|
|
54
|
+
Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
|
|
55
55
|
"value"}" --url "https://example.com/cloud/v1/resource/1/1"
|
|
56
56
|
"""
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .waap_tag import WaapTag as WaapTag
|
|
6
|
+
from .waap_insight import WaapInsight as WaapInsight
|
|
7
|
+
from .waap_ip_info import WaapIPInfo as WaapIPInfo
|
|
8
|
+
from .waap_top_url import WaapTopURL as WaapTopURL
|
|
9
|
+
from .waap_rule_set import WaapRuleSet as WaapRuleSet
|
|
10
|
+
from .waap_ddos_info import WaapDDOSInfo as WaapDDOSInfo
|
|
11
|
+
from .waap_page_type import WaapPageType as WaapPageType
|
|
12
|
+
from .tag_list_params import TagListParams as TagListParams
|
|
13
|
+
from .waap_common_tag import WaapCommonTag as WaapCommonTag
|
|
14
|
+
from .waap_resolution import WaapResolution as WaapResolution
|
|
15
|
+
from .waap_custom_rule import WaapCustomRule as WaapCustomRule
|
|
16
|
+
from .waap_ddos_attack import WaapDDOSAttack as WaapDDOSAttack
|
|
17
|
+
from .waap_policy_mode import WaapPolicyMode as WaapPolicyMode
|
|
18
|
+
from .waap_top_session import WaapTopSession as WaapTopSession
|
|
19
|
+
from .waap_organization import WaapOrganization as WaapOrganization
|
|
20
|
+
from .waap_traffic_type import WaapTrafficType as WaapTrafficType
|
|
21
|
+
from .client_me_response import ClientMeResponse as ClientMeResponse
|
|
22
|
+
from .domain_list_params import DomainListParams as DomainListParams
|
|
23
|
+
from .ip_info_get_params import IPInfoGetParams as IPInfoGetParams
|
|
24
|
+
from .waap_advanced_rule import WaapAdvancedRule as WaapAdvancedRule
|
|
25
|
+
from .waap_domain_policy import WaapDomainPolicy as WaapDomainPolicy
|
|
26
|
+
from .waap_domain_status import WaapDomainStatus as WaapDomainStatus
|
|
27
|
+
from .waap_firewall_rule import WaapFirewallRule as WaapFirewallRule
|
|
28
|
+
from .waap_policy_action import WaapPolicyAction as WaapPolicyAction
|
|
29
|
+
from .waap_insight_status import WaapInsightStatus as WaapInsightStatus
|
|
30
|
+
from .waap_ip_info_counts import WaapIPInfoCounts as WaapIPInfoCounts
|
|
31
|
+
from .waap_statistic_item import WaapStatisticItem as WaapStatisticItem
|
|
32
|
+
from .waap_summary_domain import WaapSummaryDomain as WaapSummaryDomain
|
|
33
|
+
from .waap_top_user_agent import WaapTopUserAgent as WaapTopUserAgent
|
|
34
|
+
from .domain_update_params import DomainUpdateParams as DomainUpdateParams
|
|
35
|
+
from .waap_block_page_data import WaapBlockPageData as WaapBlockPageData
|
|
36
|
+
from .waap_custom_page_set import WaapCustomPageSet as WaapCustomPageSet
|
|
37
|
+
from .waap_detailed_domain import WaapDetailedDomain as WaapDetailedDomain
|
|
38
|
+
from .waap_insight_silence import WaapInsightSilence as WaapInsightSilence
|
|
39
|
+
from .waap_insight_sort_by import WaapInsightSortBy as WaapInsightSortBy
|
|
40
|
+
from .waap_network_details import WaapNetworkDetails as WaapNetworkDetails
|
|
41
|
+
from .waap_request_details import WaapRequestDetails as WaapRequestDetails
|
|
42
|
+
from .waap_request_summary import WaapRequestSummary as WaapRequestSummary
|
|
43
|
+
from .waap_traffic_metrics import WaapTrafficMetrics as WaapTrafficMetrics
|
|
44
|
+
from .waap_count_statistics import WaapCountStatistics as WaapCountStatistics
|
|
45
|
+
from .waap_event_statistics import WaapEventStatistics as WaapEventStatistics
|
|
46
|
+
from .waap_rule_action_type import WaapRuleActionType as WaapRuleActionType
|
|
47
|
+
from .waap_captcha_page_data import WaapCaptchaPageData as WaapCaptchaPageData
|
|
48
|
+
from .waap_ip_country_attack import WaapIPCountryAttack as WaapIPCountryAttack
|
|
49
|
+
from .waap_statistics_series import WaapStatisticsSeries as WaapStatisticsSeries
|
|
50
|
+
from .waap_blocked_statistics import WaapBlockedStatistics as WaapBlockedStatistics
|
|
51
|
+
from .waap_ip_ddos_info_model import WaapIPDDOSInfoModel as WaapIPDDOSInfoModel
|
|
52
|
+
from .waap_time_series_attack import WaapTimeSeriesAttack as WaapTimeSeriesAttack
|
|
53
|
+
from .waap_user_agent_details import WaapUserAgentDetails as WaapUserAgentDetails
|
|
54
|
+
from .organization_list_params import OrganizationListParams as OrganizationListParams
|
|
55
|
+
from .waap_custom_page_preview import WaapCustomPagePreview as WaapCustomPagePreview
|
|
56
|
+
from .waap_customer_rule_state import WaapCustomerRuleState as WaapCustomerRuleState
|
|
57
|
+
from .waap_domain_api_settings import WaapDomainAPISettings as WaapDomainAPISettings
|
|
58
|
+
from .waap_handshake_page_data import WaapHandshakePageData as WaapHandshakePageData
|
|
59
|
+
from .waap_paginated_ddos_info import WaapPaginatedDDOSInfo as WaapPaginatedDDOSInfo
|
|
60
|
+
from .waap_pattern_matched_tag import WaapPatternMatchedTag as WaapPatternMatchedTag
|
|
61
|
+
from .ip_info_get_counts_params import IPInfoGetCountsParams as IPInfoGetCountsParams
|
|
62
|
+
from .waap_block_csrf_page_data import WaapBlockCsrfPageData as WaapBlockCsrfPageData
|
|
63
|
+
from .waap_domain_ddos_settings import WaapDomainDDOSSettings as WaapDomainDDOSSettings
|
|
64
|
+
from .waap_request_organization import WaapRequestOrganization as WaapRequestOrganization
|
|
65
|
+
from .waap_block_page_data_param import WaapBlockPageDataParam as WaapBlockPageDataParam
|
|
66
|
+
from .waap_domain_settings_model import WaapDomainSettingsModel as WaapDomainSettingsModel
|
|
67
|
+
from .waap_paginated_ddos_attack import WaapPaginatedDDOSAttack as WaapPaginatedDDOSAttack
|
|
68
|
+
from .waap_rule_blocked_requests import WaapRuleBlockedRequests as WaapRuleBlockedRequests
|
|
69
|
+
from .custom_page_set_list_params import CustomPageSetListParams as CustomPageSetListParams
|
|
70
|
+
from .ip_info_get_top_urls_params import IPInfoGetTopURLsParams as IPInfoGetTopURLsParams
|
|
71
|
+
from .waap_captcha_page_data_param import WaapCaptchaPageDataParam as WaapCaptchaPageDataParam
|
|
72
|
+
from .waap_insight_silence_sort_by import WaapInsightSilenceSortBy as WaapInsightSilenceSortBy
|
|
73
|
+
from .custom_page_set_create_params import CustomPageSetCreateParams as CustomPageSetCreateParams
|
|
74
|
+
from .custom_page_set_update_params import CustomPageSetUpdateParams as CustomPageSetUpdateParams
|
|
75
|
+
from .ip_info_get_top_urls_response import IPInfoGetTopURLsResponse as IPInfoGetTopURLsResponse
|
|
76
|
+
from .waap_advanced_rule_descriptor import WaapAdvancedRuleDescriptor as WaapAdvancedRuleDescriptor
|
|
77
|
+
from .custom_page_set_preview_params import CustomPageSetPreviewParams as CustomPageSetPreviewParams
|
|
78
|
+
from .domain_list_rule_sets_response import DomainListRuleSetsResponse as DomainListRuleSetsResponse
|
|
79
|
+
from .waap_cookie_disabled_page_data import WaapCookieDisabledPageData as WaapCookieDisabledPageData
|
|
80
|
+
from .waap_handshake_page_data_param import WaapHandshakePageDataParam as WaapHandshakePageDataParam
|
|
81
|
+
from .waap_paginated_custom_page_set import WaapPaginatedCustomPageSet as WaapPaginatedCustomPageSet
|
|
82
|
+
from .waap_paginated_request_summary import WaapPaginatedRequestSummary as WaapPaginatedRequestSummary
|
|
83
|
+
from .ip_info_get_top_sessions_params import IPInfoGetTopSessionsParams as IPInfoGetTopSessionsParams
|
|
84
|
+
from .waap_block_csrf_page_data_param import WaapBlockCsrfPageDataParam as WaapBlockCsrfPageDataParam
|
|
85
|
+
from .ip_info_get_top_sessions_response import IPInfoGetTopSessionsResponse as IPInfoGetTopSessionsResponse
|
|
86
|
+
from .statistic_get_usage_series_params import StatisticGetUsageSeriesParams as StatisticGetUsageSeriesParams
|
|
87
|
+
from .ip_info_get_top_user_agents_params import IPInfoGetTopUserAgentsParams as IPInfoGetTopUserAgentsParams
|
|
88
|
+
from .waap_advanced_rule_descriptor_list import WaapAdvancedRuleDescriptorList as WaapAdvancedRuleDescriptorList
|
|
89
|
+
from .waap_get_account_overview_response import WaapGetAccountOverviewResponse as WaapGetAccountOverviewResponse
|
|
90
|
+
from .waap_javascript_disabled_page_data import WaapJavascriptDisabledPageData as WaapJavascriptDisabledPageData
|
|
91
|
+
from .ip_info_get_blocked_requests_params import IPInfoGetBlockedRequestsParams as IPInfoGetBlockedRequestsParams
|
|
92
|
+
from .ip_info_get_top_user_agents_response import IPInfoGetTopUserAgentsResponse as IPInfoGetTopUserAgentsResponse
|
|
93
|
+
from .waap_cookie_disabled_page_data_param import WaapCookieDisabledPageDataParam as WaapCookieDisabledPageDataParam
|
|
94
|
+
from .ip_info_get_attack_time_series_params import IPInfoGetAttackTimeSeriesParams as IPInfoGetAttackTimeSeriesParams
|
|
95
|
+
from .ip_info_get_blocked_requests_response import IPInfoGetBlockedRequestsResponse as IPInfoGetBlockedRequestsResponse
|
|
96
|
+
from .ip_info_get_ddos_attack_series_params import IPInfoGetDDOSAttackSeriesParams as IPInfoGetDDOSAttackSeriesParams
|
|
97
|
+
from .ip_info_list_attacked_countries_params import (
|
|
98
|
+
IPInfoListAttackedCountriesParams as IPInfoListAttackedCountriesParams,
|
|
99
|
+
)
|
|
100
|
+
from .ip_info_get_attack_time_series_response import (
|
|
101
|
+
IPInfoGetAttackTimeSeriesResponse as IPInfoGetAttackTimeSeriesResponse,
|
|
102
|
+
)
|
|
103
|
+
from .ip_info_list_attacked_countries_response import (
|
|
104
|
+
IPInfoListAttackedCountriesResponse as IPInfoListAttackedCountriesResponse,
|
|
105
|
+
)
|
|
106
|
+
from .waap_javascript_disabled_page_data_param import (
|
|
107
|
+
WaapJavascriptDisabledPageDataParam as WaapJavascriptDisabledPageDataParam,
|
|
108
|
+
)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["ClientMeResponse", "Quotas", "Service"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Quotas(BaseModel):
|
|
11
|
+
allowed: int
|
|
12
|
+
"""The maximum allowed number of this resource"""
|
|
13
|
+
|
|
14
|
+
current: int
|
|
15
|
+
"""The current number of this resource"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Service(BaseModel):
|
|
19
|
+
enabled: bool
|
|
20
|
+
"""Whether the service is enabled"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ClientMeResponse(BaseModel):
|
|
24
|
+
id: Optional[int] = None
|
|
25
|
+
"""The client ID"""
|
|
26
|
+
|
|
27
|
+
features: List[str]
|
|
28
|
+
"""List of enabled features"""
|
|
29
|
+
|
|
30
|
+
quotas: Dict[str, Quotas]
|
|
31
|
+
"""Quotas for the client"""
|
|
32
|
+
|
|
33
|
+
service: Service
|
|
34
|
+
"""Information about the WAAP service status"""
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
from typing_extensions import Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .waap_block_page_data_param import WaapBlockPageDataParam
|
|
9
|
+
from .waap_captcha_page_data_param import WaapCaptchaPageDataParam
|
|
10
|
+
from .waap_handshake_page_data_param import WaapHandshakePageDataParam
|
|
11
|
+
from .waap_block_csrf_page_data_param import WaapBlockCsrfPageDataParam
|
|
12
|
+
from .waap_cookie_disabled_page_data_param import WaapCookieDisabledPageDataParam
|
|
13
|
+
from .waap_javascript_disabled_page_data_param import WaapJavascriptDisabledPageDataParam
|
|
14
|
+
|
|
15
|
+
__all__ = ["CustomPageSetCreateParams"]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CustomPageSetCreateParams(TypedDict, total=False):
|
|
19
|
+
name: Required[str]
|
|
20
|
+
"""Name of the custom page set"""
|
|
21
|
+
|
|
22
|
+
block: Optional[WaapBlockPageDataParam]
|
|
23
|
+
|
|
24
|
+
block_csrf: Optional[WaapBlockCsrfPageDataParam]
|
|
25
|
+
|
|
26
|
+
captcha: Optional[WaapCaptchaPageDataParam]
|
|
27
|
+
|
|
28
|
+
cookie_disabled: Optional[WaapCookieDisabledPageDataParam]
|
|
29
|
+
|
|
30
|
+
domains: Optional[Iterable[int]]
|
|
31
|
+
"""List of domain IDs that are associated with this page set"""
|
|
32
|
+
|
|
33
|
+
handshake: Optional[WaapHandshakePageDataParam]
|
|
34
|
+
|
|
35
|
+
javascript_disabled: Optional[WaapJavascriptDisabledPageDataParam]
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["CustomPageSetListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CustomPageSetListParams(TypedDict, total=False):
|
|
12
|
+
ids: Iterable[int]
|
|
13
|
+
"""Filter page sets based on their IDs"""
|
|
14
|
+
|
|
15
|
+
limit: int
|
|
16
|
+
"""Number of items to return"""
|
|
17
|
+
|
|
18
|
+
name: str
|
|
19
|
+
"""Filter page sets based on their name. Supports '\\**' as a wildcard character"""
|
|
20
|
+
|
|
21
|
+
offset: int
|
|
22
|
+
"""Number of items to skip"""
|
|
23
|
+
|
|
24
|
+
ordering: Literal["name", "-name", "id", "-id"]
|
|
25
|
+
"""Sort the response by given field."""
|
|
@@ -0,0 +1,34 @@
|
|
|
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 Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .waap_page_type import WaapPageType
|
|
9
|
+
|
|
10
|
+
__all__ = ["CustomPageSetPreviewParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CustomPageSetPreviewParams(TypedDict, total=False):
|
|
14
|
+
page_type: Required[WaapPageType]
|
|
15
|
+
"""The type of the custom page"""
|
|
16
|
+
|
|
17
|
+
error: Optional[str]
|
|
18
|
+
"""Error message"""
|
|
19
|
+
|
|
20
|
+
header: Optional[str]
|
|
21
|
+
"""The text to display in the header of the custom page"""
|
|
22
|
+
|
|
23
|
+
logo: Optional[str]
|
|
24
|
+
"""
|
|
25
|
+
Supported image types are JPEG, PNG and JPG, size is limited to width 450px,
|
|
26
|
+
height 130px. This should be a base 64 encoding of the full HTML img tag
|
|
27
|
+
compatible image, with the header included.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
text: Optional[str]
|
|
31
|
+
"""The text to display in the body of the custom page"""
|
|
32
|
+
|
|
33
|
+
title: Optional[str]
|
|
34
|
+
"""The text to display in the title of the custom page"""
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
from .waap_block_page_data_param import WaapBlockPageDataParam
|
|
9
|
+
from .waap_captcha_page_data_param import WaapCaptchaPageDataParam
|
|
10
|
+
from .waap_handshake_page_data_param import WaapHandshakePageDataParam
|
|
11
|
+
from .waap_block_csrf_page_data_param import WaapBlockCsrfPageDataParam
|
|
12
|
+
from .waap_cookie_disabled_page_data_param import WaapCookieDisabledPageDataParam
|
|
13
|
+
from .waap_javascript_disabled_page_data_param import WaapJavascriptDisabledPageDataParam
|
|
14
|
+
|
|
15
|
+
__all__ = ["CustomPageSetUpdateParams"]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CustomPageSetUpdateParams(TypedDict, total=False):
|
|
19
|
+
block: Optional[WaapBlockPageDataParam]
|
|
20
|
+
|
|
21
|
+
block_csrf: Optional[WaapBlockCsrfPageDataParam]
|
|
22
|
+
|
|
23
|
+
captcha: Optional[WaapCaptchaPageDataParam]
|
|
24
|
+
|
|
25
|
+
cookie_disabled: Optional[WaapCookieDisabledPageDataParam]
|
|
26
|
+
|
|
27
|
+
domains: Optional[Iterable[int]]
|
|
28
|
+
"""List of domain IDs that are associated with this page set"""
|
|
29
|
+
|
|
30
|
+
handshake: Optional[WaapHandshakePageDataParam]
|
|
31
|
+
|
|
32
|
+
javascript_disabled: Optional[WaapJavascriptDisabledPageDataParam]
|
|
33
|
+
|
|
34
|
+
name: Optional[str]
|
|
35
|
+
"""Name of the custom page set"""
|