gcore 0.1.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 +89 -0
- gcore/_base_client.py +1943 -0
- gcore/_client.py +493 -0
- gcore/_compat.py +219 -0
- gcore/_constants.py +16 -0
- gcore/_exceptions.py +108 -0
- gcore/_files.py +123 -0
- gcore/_models.py +803 -0
- gcore/_qs.py +150 -0
- gcore/_resource.py +43 -0
- gcore/_response.py +830 -0
- gcore/_streaming.py +333 -0
- gcore/_types.py +217 -0
- gcore/_utils/__init__.py +57 -0
- gcore/_utils/_logs.py +25 -0
- gcore/_utils/_proxy.py +65 -0
- gcore/_utils/_reflection.py +42 -0
- gcore/_utils/_resources_proxy.py +24 -0
- gcore/_utils/_streams.py +12 -0
- gcore/_utils/_sync.py +86 -0
- gcore/_utils/_transform.py +447 -0
- gcore/_utils/_typing.py +151 -0
- gcore/_utils/_utils.py +422 -0
- gcore/_version.py +4 -0
- gcore/lib/.keep +4 -0
- gcore/lib/polling.py +19 -0
- gcore/pagination.py +70 -0
- gcore/py.typed +0 -0
- gcore/resources/__init__.py +33 -0
- gcore/resources/cloud/__init__.py +327 -0
- gcore/resources/cloud/baremetal/__init__.py +61 -0
- gcore/resources/cloud/baremetal/baremetal.py +166 -0
- gcore/resources/cloud/baremetal/flavors.py +371 -0
- gcore/resources/cloud/baremetal/images.py +238 -0
- gcore/resources/cloud/baremetal/servers.py +1042 -0
- gcore/resources/cloud/billing_reservations.py +386 -0
- gcore/resources/cloud/cloud.py +774 -0
- gcore/resources/cloud/file_shares/__init__.py +33 -0
- gcore/resources/cloud/file_shares/access_rules.py +434 -0
- gcore/resources/cloud/file_shares/file_shares.py +994 -0
- gcore/resources/cloud/floating_ips.py +765 -0
- gcore/resources/cloud/gpu_baremetal_clusters/__init__.py +75 -0
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +211 -0
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +1493 -0
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +785 -0
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +175 -0
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +1178 -0
- gcore/resources/cloud/inference/__init__.py +89 -0
- gcore/resources/cloud/inference/deployments/__init__.py +33 -0
- gcore/resources/cloud/inference/deployments/deployments.py +1493 -0
- gcore/resources/cloud/inference/deployments/logs.py +235 -0
- gcore/resources/cloud/inference/flavors.py +280 -0
- gcore/resources/cloud/inference/inference.py +295 -0
- gcore/resources/cloud/inference/models.py +289 -0
- gcore/resources/cloud/inference/registry_credentials.py +649 -0
- gcore/resources/cloud/inference/secrets.py +629 -0
- gcore/resources/cloud/instances/__init__.py +75 -0
- gcore/resources/cloud/instances/flavors.py +449 -0
- gcore/resources/cloud/instances/images.py +1297 -0
- gcore/resources/cloud/instances/instances.py +2821 -0
- gcore/resources/cloud/instances/interfaces.py +797 -0
- gcore/resources/cloud/instances/metrics.py +217 -0
- gcore/resources/cloud/ip_ranges.py +135 -0
- gcore/resources/cloud/load_balancers/__init__.py +103 -0
- gcore/resources/cloud/load_balancers/flavors.py +193 -0
- gcore/resources/cloud/load_balancers/l7_policies/__init__.py +33 -0
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +1020 -0
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +1036 -0
- gcore/resources/cloud/load_balancers/listeners.py +1089 -0
- gcore/resources/cloud/load_balancers/load_balancers.py +1583 -0
- gcore/resources/cloud/load_balancers/metrics.py +205 -0
- gcore/resources/cloud/load_balancers/pools/__init__.py +47 -0
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +352 -0
- gcore/resources/cloud/load_balancers/pools/members.py +353 -0
- gcore/resources/cloud/load_balancers/pools/pools.py +1190 -0
- gcore/resources/cloud/load_balancers/statuses.py +260 -0
- gcore/resources/cloud/networks/__init__.py +47 -0
- gcore/resources/cloud/networks/networks.py +771 -0
- gcore/resources/cloud/networks/routers.py +875 -0
- gcore/resources/cloud/networks/subnets.py +865 -0
- gcore/resources/cloud/placement_groups.py +465 -0
- gcore/resources/cloud/projects.py +608 -0
- gcore/resources/cloud/quotas/__init__.py +33 -0
- gcore/resources/cloud/quotas/quotas.py +335 -0
- gcore/resources/cloud/quotas/requests.py +482 -0
- gcore/resources/cloud/regions.py +328 -0
- gcore/resources/cloud/registries/__init__.py +75 -0
- gcore/resources/cloud/registries/artifacts.py +277 -0
- gcore/resources/cloud/registries/registries.py +688 -0
- gcore/resources/cloud/registries/repositories.py +265 -0
- gcore/resources/cloud/registries/tags.py +190 -0
- gcore/resources/cloud/registries/users.py +701 -0
- gcore/resources/cloud/reserved_fixed_ips/__init__.py +33 -0
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +965 -0
- gcore/resources/cloud/reserved_fixed_ips/vip.py +577 -0
- gcore/resources/cloud/secrets.py +797 -0
- gcore/resources/cloud/security_groups/__init__.py +33 -0
- gcore/resources/cloud/security_groups/rules.py +626 -0
- gcore/resources/cloud/security_groups/security_groups.py +863 -0
- gcore/resources/cloud/ssh_keys.py +635 -0
- gcore/resources/cloud/tasks.py +700 -0
- gcore/resources/cloud/users/__init__.py +33 -0
- gcore/resources/cloud/users/role_assignments.py +533 -0
- gcore/resources/cloud/users/users.py +102 -0
- gcore/resources/cloud/volumes.py +1710 -0
- gcore/resources/waap/__init__.py +33 -0
- gcore/resources/waap/domains/__init__.py +33 -0
- gcore/resources/waap/domains/domains.py +515 -0
- gcore/resources/waap/domains/settings.py +271 -0
- gcore/resources/waap/waap.py +102 -0
- gcore/types/__init__.py +3 -0
- gcore/types/cloud/__init__.py +199 -0
- gcore/types/cloud/allowed_address_pairs.py +15 -0
- gcore/types/cloud/aws_iam_data.py +13 -0
- gcore/types/cloud/aws_iam_data_param.py +15 -0
- gcore/types/cloud/baremetal/__init__.py +13 -0
- gcore/types/cloud/baremetal/baremetal_fixed_address.py +30 -0
- gcore/types/cloud/baremetal/baremetal_floating_address.py +15 -0
- gcore/types/cloud/baremetal/baremetal_server.py +178 -0
- gcore/types/cloud/baremetal/flavor_list_params.py +35 -0
- gcore/types/cloud/baremetal/flavor_list_suitable_params.py +22 -0
- gcore/types/cloud/baremetal/image_list_params.py +33 -0
- gcore/types/cloud/baremetal/server_create_params.py +370 -0
- gcore/types/cloud/baremetal/server_list_params.py +114 -0
- gcore/types/cloud/baremetal/server_rebuild_params.py +23 -0
- gcore/types/cloud/baremetal_flavor.py +58 -0
- gcore/types/cloud/baremetal_flavor_list.py +16 -0
- gcore/types/cloud/billing_reservation.py +153 -0
- gcore/types/cloud/billing_reservation_list_params.py +59 -0
- gcore/types/cloud/blackhole_port.py +66 -0
- gcore/types/cloud/capacity.py +13 -0
- gcore/types/cloud/console.py +18 -0
- gcore/types/cloud/container_probe.py +36 -0
- gcore/types/cloud/container_probe_config.py +16 -0
- gcore/types/cloud/container_probe_config_create_param.py +18 -0
- gcore/types/cloud/container_probe_create_param.py +38 -0
- gcore/types/cloud/container_probe_exec.py +12 -0
- gcore/types/cloud/container_probe_exec_create_param.py +13 -0
- gcore/types/cloud/container_probe_http_get.py +26 -0
- gcore/types/cloud/container_probe_http_get_create_param.py +25 -0
- gcore/types/cloud/container_probe_tcp_socket.py +10 -0
- gcore/types/cloud/container_probe_tcp_socket_create_param.py +12 -0
- gcore/types/cloud/container_scale.py +25 -0
- gcore/types/cloud/container_scale_trigger_rate.py +13 -0
- gcore/types/cloud/container_scale_trigger_sqs.py +33 -0
- gcore/types/cloud/container_scale_trigger_threshold.py +10 -0
- gcore/types/cloud/container_scale_triggers.py +36 -0
- gcore/types/cloud/ddos_profile.py +33 -0
- gcore/types/cloud/ddos_profile_field.py +31 -0
- gcore/types/cloud/ddos_profile_option_list.py +15 -0
- gcore/types/cloud/ddos_profile_status.py +13 -0
- gcore/types/cloud/ddos_profile_template.py +18 -0
- gcore/types/cloud/ddos_profile_template_field.py +23 -0
- gcore/types/cloud/deploy_status.py +13 -0
- gcore/types/cloud/file_share.py +111 -0
- gcore/types/cloud/file_share_create_params.py +104 -0
- gcore/types/cloud/file_share_list_params.py +24 -0
- gcore/types/cloud/file_share_resize_params.py +18 -0
- gcore/types/cloud/file_share_update_params.py +18 -0
- gcore/types/cloud/file_shares/__init__.py +7 -0
- gcore/types/cloud/file_shares/access_rule.py +21 -0
- gcore/types/cloud/file_shares/access_rule_create_params.py +21 -0
- gcore/types/cloud/file_shares/access_rule_list.py +16 -0
- gcore/types/cloud/fixed_address.py +38 -0
- gcore/types/cloud/fixed_address_short.py +24 -0
- gcore/types/cloud/flavor_hardware_description.py +27 -0
- gcore/types/cloud/floating_address.py +15 -0
- gcore/types/cloud/floating_ip.py +77 -0
- gcore/types/cloud/floating_ip_assign_params.py +20 -0
- gcore/types/cloud/floating_ip_create_params.py +40 -0
- gcore/types/cloud/floating_ip_detailed.py +222 -0
- gcore/types/cloud/floating_ip_list_params.py +35 -0
- gcore/types/cloud/floating_ip_status.py +7 -0
- gcore/types/cloud/gpu_baremetal_cluster.py +116 -0
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +155 -0
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +28 -0
- gcore/types/cloud/gpu_baremetal_cluster_list_params.py +19 -0
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +26 -0
- gcore/types/cloud/gpu_baremetal_cluster_resize_params.py +16 -0
- gcore/types/cloud/gpu_baremetal_cluster_server.py +200 -0
- gcore/types/cloud/gpu_baremetal_cluster_server_list.py +16 -0
- gcore/types/cloud/gpu_baremetal_clusters/__init__.py +9 -0
- gcore/types/cloud/gpu_baremetal_clusters/flavor_list_params.py +21 -0
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +58 -0
- gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +253 -0
- gcore/types/cloud/gpu_baremetal_clusters/server_delete_params.py +21 -0
- gcore/types/cloud/gpu_baremetal_clusters/server_detach_interface_params.py +19 -0
- gcore/types/cloud/gpu_baremetal_flavor.py +133 -0
- gcore/types/cloud/gpu_baremetal_flavor_list.py +16 -0
- gcore/types/cloud/gpu_image.py +70 -0
- gcore/types/cloud/gpu_image_list.py +16 -0
- gcore/types/cloud/health_monitor.py +48 -0
- gcore/types/cloud/health_monitor_status.py +22 -0
- gcore/types/cloud/http_method.py +7 -0
- gcore/types/cloud/image.py +100 -0
- gcore/types/cloud/image_list.py +16 -0
- gcore/types/cloud/inference/__init__.py +25 -0
- gcore/types/cloud/inference/container.py +26 -0
- gcore/types/cloud/inference/deployment_create_params.py +222 -0
- gcore/types/cloud/inference/deployment_list_params.py +21 -0
- gcore/types/cloud/inference/deployment_update_params.py +215 -0
- gcore/types/cloud/inference/deployments/__init__.py +5 -0
- gcore/types/cloud/inference/deployments/log_list_params.py +28 -0
- gcore/types/cloud/inference/flavor_list_params.py +18 -0
- gcore/types/cloud/inference/inference.py +95 -0
- gcore/types/cloud/inference/inference_apikey_secret.py +15 -0
- gcore/types/cloud/inference/inference_flavor.py +34 -0
- gcore/types/cloud/inference/inference_log.py +21 -0
- gcore/types/cloud/inference/inference_registry_credential.py +19 -0
- gcore/types/cloud/inference/inference_registry_credential_full.py +22 -0
- gcore/types/cloud/inference/inference_secret.py +17 -0
- gcore/types/cloud/inference/mlcatalog_model_card.py +65 -0
- gcore/types/cloud/inference/mlcatalog_order_by_choices.py +7 -0
- gcore/types/cloud/inference/model_list_params.py +23 -0
- gcore/types/cloud/inference/registry_credential_create_params.py +24 -0
- gcore/types/cloud/inference/registry_credential_list_params.py +21 -0
- gcore/types/cloud/inference/registry_credential_replace_params.py +21 -0
- gcore/types/cloud/inference/secret_create_params.py +23 -0
- gcore/types/cloud/inference/secret_list_params.py +21 -0
- gcore/types/cloud/inference/secret_replace_params.py +20 -0
- gcore/types/cloud/inference_probes.py +19 -0
- gcore/types/cloud/ingress_opts_out.py +16 -0
- gcore/types/cloud/ingress_opts_param.py +18 -0
- gcore/types/cloud/instance.py +296 -0
- gcore/types/cloud/instance_action_params.py +32 -0
- gcore/types/cloud/instance_add_to_placement_group_params.py +16 -0
- gcore/types/cloud/instance_assign_security_group_params.py +28 -0
- gcore/types/cloud/instance_create_params.py +622 -0
- gcore/types/cloud/instance_delete_params.py +33 -0
- gcore/types/cloud/instance_get_console_params.py +16 -0
- gcore/types/cloud/instance_interface.py +40 -0
- gcore/types/cloud/instance_isolation.py +12 -0
- gcore/types/cloud/instance_list.py +16 -0
- gcore/types/cloud/instance_list_params.py +146 -0
- gcore/types/cloud/instance_metrics_time_unit.py +7 -0
- gcore/types/cloud/instance_resize_params.py +16 -0
- gcore/types/cloud/instance_unassign_security_group_params.py +28 -0
- gcore/types/cloud/instance_update_params.py +18 -0
- gcore/types/cloud/instances/__init__.py +19 -0
- gcore/types/cloud/instances/flavor_list_for_resize_params.py +16 -0
- gcore/types/cloud/instances/flavor_list_params.py +25 -0
- gcore/types/cloud/instances/flavor_list_suitable_params.py +56 -0
- gcore/types/cloud/instances/image_create_from_volume_params.py +53 -0
- gcore/types/cloud/instances/image_get_params.py +16 -0
- gcore/types/cloud/instances/image_list_params.py +33 -0
- gcore/types/cloud/instances/image_update_params.py +43 -0
- gcore/types/cloud/instances/image_upload_params.py +62 -0
- gcore/types/cloud/instances/instance_flavor.py +49 -0
- gcore/types/cloud/instances/instance_flavor_list.py +16 -0
- gcore/types/cloud/instances/interface_attach_params.py +253 -0
- gcore/types/cloud/instances/interface_detach_params.py +19 -0
- gcore/types/cloud/instances/metric_list_params.py +23 -0
- gcore/types/cloud/instances/metrics.py +52 -0
- gcore/types/cloud/instances/metrics_list.py +16 -0
- gcore/types/cloud/interface_ip_family.py +7 -0
- gcore/types/cloud/ip_assignment.py +13 -0
- gcore/types/cloud/ip_ranges.py +12 -0
- gcore/types/cloud/ip_version.py +7 -0
- gcore/types/cloud/laas_index_retention_policy.py +12 -0
- gcore/types/cloud/laas_index_retention_policy_param.py +13 -0
- gcore/types/cloud/lb_algorithm.py +7 -0
- gcore/types/cloud/lb_health_monitor_type.py +7 -0
- gcore/types/cloud/lb_listener_protocol.py +7 -0
- gcore/types/cloud/lb_pool_protocol.py +7 -0
- gcore/types/cloud/lb_session_persistence_type.py +7 -0
- gcore/types/cloud/listener_status.py +27 -0
- gcore/types/cloud/load_balancer.py +144 -0
- gcore/types/cloud/load_balancer_create_params.py +327 -0
- gcore/types/cloud/load_balancer_failover_params.py +16 -0
- gcore/types/cloud/load_balancer_flavor_detail.py +40 -0
- gcore/types/cloud/load_balancer_flavor_list.py +16 -0
- gcore/types/cloud/load_balancer_get_params.py +19 -0
- gcore/types/cloud/load_balancer_instance_role.py +7 -0
- gcore/types/cloud/load_balancer_l7_policy.py +86 -0
- gcore/types/cloud/load_balancer_l7_policy_list.py +16 -0
- gcore/types/cloud/load_balancer_l7_rule.py +72 -0
- gcore/types/cloud/load_balancer_l7_rule_list.py +16 -0
- gcore/types/cloud/load_balancer_list_params.py +53 -0
- gcore/types/cloud/load_balancer_listener_detail.py +97 -0
- gcore/types/cloud/load_balancer_listener_list.py +16 -0
- gcore/types/cloud/load_balancer_member_connectivity.py +7 -0
- gcore/types/cloud/load_balancer_metrics.py +32 -0
- gcore/types/cloud/load_balancer_metrics_list.py +16 -0
- gcore/types/cloud/load_balancer_operating_status.py +7 -0
- gcore/types/cloud/load_balancer_pool.py +87 -0
- gcore/types/cloud/load_balancer_pool_list.py +16 -0
- gcore/types/cloud/load_balancer_resize_params.py +16 -0
- gcore/types/cloud/load_balancer_statistics.py +22 -0
- gcore/types/cloud/load_balancer_status.py +38 -0
- gcore/types/cloud/load_balancer_status_list.py +16 -0
- gcore/types/cloud/load_balancer_update_params.py +43 -0
- gcore/types/cloud/load_balancers/__init__.py +15 -0
- gcore/types/cloud/load_balancers/flavor_list_params.py +16 -0
- gcore/types/cloud/load_balancers/l7_policies/__init__.py +6 -0
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +50 -0
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +43 -0
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +54 -0
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +51 -0
- gcore/types/cloud/load_balancers/listener_create_params.py +72 -0
- gcore/types/cloud/load_balancers/listener_get_params.py +16 -0
- gcore/types/cloud/load_balancers/listener_list_params.py +19 -0
- gcore/types/cloud/load_balancers/listener_update_params.py +55 -0
- gcore/types/cloud/load_balancers/metric_list_params.py +21 -0
- gcore/types/cloud/load_balancers/pool_create_params.py +141 -0
- gcore/types/cloud/load_balancers/pool_list_params.py +25 -0
- gcore/types/cloud/load_balancers/pool_update_params.py +139 -0
- gcore/types/cloud/load_balancers/pools/__init__.py +6 -0
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +49 -0
- gcore/types/cloud/load_balancers/pools/member_add_params.py +44 -0
- gcore/types/cloud/logging.py +22 -0
- gcore/types/cloud/member.py +47 -0
- gcore/types/cloud/member_status.py +24 -0
- gcore/types/cloud/network.py +79 -0
- gcore/types/cloud/network_create_params.py +36 -0
- gcore/types/cloud/network_details.py +80 -0
- gcore/types/cloud/network_interface.py +78 -0
- gcore/types/cloud/network_interface_list.py +16 -0
- gcore/types/cloud/network_list_params.py +41 -0
- gcore/types/cloud/network_update_params.py +18 -0
- gcore/types/cloud/networks/__init__.py +14 -0
- gcore/types/cloud/networks/router.py +83 -0
- gcore/types/cloud/networks/router_attach_subnet_params.py +24 -0
- gcore/types/cloud/networks/router_create_params.py +75 -0
- gcore/types/cloud/networks/router_detach_subnet_params.py +16 -0
- gcore/types/cloud/networks/router_list.py +16 -0
- gcore/types/cloud/networks/router_list_params.py +19 -0
- gcore/types/cloud/networks/router_update_params.py +45 -0
- gcore/types/cloud/networks/subnet_create_params.py +82 -0
- gcore/types/cloud/networks/subnet_list_params.py +58 -0
- gcore/types/cloud/networks/subnet_update_params.py +47 -0
- gcore/types/cloud/placement_group.py +41 -0
- gcore/types/cloud/placement_group_create_params.py +19 -0
- gcore/types/cloud/placement_group_list.py +16 -0
- gcore/types/cloud/pool_status.py +31 -0
- gcore/types/cloud/project.py +47 -0
- gcore/types/cloud/project_create_params.py +22 -0
- gcore/types/cloud/project_list_params.py +27 -0
- gcore/types/cloud/project_replace_params.py +18 -0
- gcore/types/cloud/provisioning_status.py +9 -0
- gcore/types/cloud/quota_get_all_response.py +340 -0
- gcore/types/cloud/quota_get_by_region_response.py +288 -0
- gcore/types/cloud/quota_get_global_response.py +51 -0
- gcore/types/cloud/quotas/__init__.py +8 -0
- gcore/types/cloud/quotas/request_create_params.py +193 -0
- gcore/types/cloud/quotas/request_get_response.py +205 -0
- gcore/types/cloud/quotas/request_list_params.py +22 -0
- gcore/types/cloud/quotas/request_list_response.py +205 -0
- gcore/types/cloud/region.py +101 -0
- gcore/types/cloud/region_capacity.py +16 -0
- gcore/types/cloud/region_capacity_list.py +16 -0
- gcore/types/cloud/region_get_params.py +18 -0
- gcore/types/cloud/region_list_params.py +31 -0
- gcore/types/cloud/registries/__init__.py +14 -0
- gcore/types/cloud/registries/registry_artifact.py +35 -0
- gcore/types/cloud/registries/registry_artifact_list.py +16 -0
- gcore/types/cloud/registries/registry_repository.py +30 -0
- gcore/types/cloud/registries/registry_repository_list.py +16 -0
- gcore/types/cloud/registries/registry_user.py +28 -0
- gcore/types/cloud/registries/registry_user_created.py +31 -0
- gcore/types/cloud/registries/registry_user_list.py +16 -0
- gcore/types/cloud/registries/user_create_multiple_params.py +36 -0
- gcore/types/cloud/registries/user_create_params.py +30 -0
- gcore/types/cloud/registries/user_update_params.py +21 -0
- gcore/types/cloud/registry.py +33 -0
- gcore/types/cloud/registry_create_params.py +24 -0
- gcore/types/cloud/registry_list.py +16 -0
- gcore/types/cloud/registry_resize_params.py +16 -0
- gcore/types/cloud/registry_tag.py +27 -0
- gcore/types/cloud/reserved_fixed_ip.py +98 -0
- gcore/types/cloud/reserved_fixed_ip_create_params.py +107 -0
- gcore/types/cloud/reserved_fixed_ip_list_params.py +47 -0
- gcore/types/cloud/reserved_fixed_ips/__init__.py +12 -0
- gcore/types/cloud/reserved_fixed_ips/candidate_port.py +26 -0
- gcore/types/cloud/reserved_fixed_ips/candidate_port_list.py +16 -0
- gcore/types/cloud/reserved_fixed_ips/connected_port.py +26 -0
- gcore/types/cloud/reserved_fixed_ips/connected_port_list.py +16 -0
- gcore/types/cloud/reserved_fixed_ips/ip_with_subnet.py +17 -0
- gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +17 -0
- gcore/types/cloud/reserved_fixed_ips/vip_toggle_params.py +16 -0
- gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +17 -0
- gcore/types/cloud/route.py +16 -0
- gcore/types/cloud/secret.py +64 -0
- gcore/types/cloud/secret_create_params.py +66 -0
- gcore/types/cloud/secret_list_response.py +16 -0
- gcore/types/cloud/secret_upload_tls_certificate_params.py +39 -0
- gcore/types/cloud/security_group.py +45 -0
- gcore/types/cloud/security_group_copy_params.py +16 -0
- gcore/types/cloud/security_group_create_params.py +94 -0
- gcore/types/cloud/security_group_list_params.py +30 -0
- gcore/types/cloud/security_group_rule.py +83 -0
- gcore/types/cloud/security_group_update_params.py +83 -0
- gcore/types/cloud/security_groups/__init__.py +6 -0
- gcore/types/cloud/security_groups/rule_create_params.py +65 -0
- gcore/types/cloud/security_groups/rule_replace_params.py +72 -0
- gcore/types/cloud/session_persistence.py +22 -0
- gcore/types/cloud/ssh_key.py +39 -0
- gcore/types/cloud/ssh_key_create_params.py +31 -0
- gcore/types/cloud/ssh_key_created.py +53 -0
- gcore/types/cloud/ssh_key_list_params.py +21 -0
- gcore/types/cloud/ssh_key_update_params.py +15 -0
- gcore/types/cloud/subnet.py +87 -0
- gcore/types/cloud/tag.py +16 -0
- gcore/types/cloud/tag_update_map_param.py +10 -0
- gcore/types/cloud/task.py +191 -0
- gcore/types/cloud/task_acknowledge_all_params.py +16 -0
- gcore/types/cloud/task_id_list.py +12 -0
- gcore/types/cloud/task_list_params.py +104 -0
- gcore/types/cloud/users/__init__.py +9 -0
- gcore/types/cloud/users/role_assignment.py +33 -0
- gcore/types/cloud/users/role_assignment_create_params.py +22 -0
- gcore/types/cloud/users/role_assignment_list_params.py +25 -0
- gcore/types/cloud/users/role_assignment_update_delete.py +10 -0
- gcore/types/cloud/users/role_assignment_update_params.py +22 -0
- gcore/types/cloud/volume.py +141 -0
- gcore/types/cloud/volume_attach_to_instance_params.py +21 -0
- gcore/types/cloud/volume_change_type_params.py +18 -0
- gcore/types/cloud/volume_create_params.py +176 -0
- gcore/types/cloud/volume_delete_params.py +18 -0
- gcore/types/cloud/volume_detach_from_instance_params.py +18 -0
- gcore/types/cloud/volume_list_params.py +56 -0
- gcore/types/cloud/volume_resize_params.py +18 -0
- gcore/types/cloud/volume_update_params.py +18 -0
- gcore/types/waap/__init__.py +12 -0
- gcore/types/waap/domain_list_params.py +30 -0
- gcore/types/waap/domain_update_params.py +12 -0
- gcore/types/waap/domains/__init__.py +5 -0
- gcore/types/waap/domains/setting_update_params.py +41 -0
- gcore/types/waap/waap_api_urls.py +15 -0
- gcore/types/waap/waap_detailed_domain.py +37 -0
- gcore/types/waap/waap_domain_ddos_settings.py +31 -0
- gcore/types/waap/waap_domain_settings.py +15 -0
- gcore/types/waap/waap_domain_status.py +7 -0
- gcore/types/waap/waap_summary_domain.py +26 -0
- gcore-0.1.0.dist-info/METADATA +482 -0
- gcore-0.1.0.dist-info/RECORD +437 -0
- gcore-0.1.0.dist-info/WHEEL +4 -0
- gcore-0.1.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from .network import Network
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
from .allowed_address_pairs import AllowedAddressPairs
|
|
9
|
+
|
|
10
|
+
__all__ = ["ReservedFixedIP", "Attachment", "Reservation"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Attachment(BaseModel):
|
|
14
|
+
resource_id: Optional[str] = None
|
|
15
|
+
"""Resource ID"""
|
|
16
|
+
|
|
17
|
+
resource_type: Optional[str] = None
|
|
18
|
+
"""Resource type"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Reservation(BaseModel):
|
|
22
|
+
resource_id: Optional[str] = None
|
|
23
|
+
"""ID of the instance or load balancer the IP is attached to"""
|
|
24
|
+
|
|
25
|
+
resource_type: Optional[str] = None
|
|
26
|
+
"""Resource type of the resource the IP is attached to"""
|
|
27
|
+
|
|
28
|
+
status: Optional[str] = None
|
|
29
|
+
"""IP reservation status"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class ReservedFixedIP(BaseModel):
|
|
33
|
+
allowed_address_pairs: List[AllowedAddressPairs]
|
|
34
|
+
"""Group of subnet masks and/or IP addresses that share the current IP as VIP"""
|
|
35
|
+
|
|
36
|
+
attachments: List[Attachment]
|
|
37
|
+
"""Reserved fixed IP attachment entities"""
|
|
38
|
+
|
|
39
|
+
created_at: datetime
|
|
40
|
+
"""Datetime when the reserved fixed IP was created"""
|
|
41
|
+
|
|
42
|
+
is_external: bool
|
|
43
|
+
"""If reserved fixed IP belongs to a public network"""
|
|
44
|
+
|
|
45
|
+
is_vip: bool
|
|
46
|
+
"""If reserved fixed IP is a VIP"""
|
|
47
|
+
|
|
48
|
+
name: str
|
|
49
|
+
"""Reserved fixed IP name"""
|
|
50
|
+
|
|
51
|
+
network: Network
|
|
52
|
+
"""Network details"""
|
|
53
|
+
|
|
54
|
+
network_id: str
|
|
55
|
+
"""ID of the network the port is attached to"""
|
|
56
|
+
|
|
57
|
+
port_id: str
|
|
58
|
+
"""ID of the port underlying the reserved fixed IP"""
|
|
59
|
+
|
|
60
|
+
region: str
|
|
61
|
+
"""Region name"""
|
|
62
|
+
|
|
63
|
+
region_id: int
|
|
64
|
+
"""Region ID"""
|
|
65
|
+
|
|
66
|
+
reservation: Reservation
|
|
67
|
+
"""Reserved fixed IP status with resource type and ID it is attached to"""
|
|
68
|
+
|
|
69
|
+
status: str
|
|
70
|
+
"""Underlying port status"""
|
|
71
|
+
|
|
72
|
+
updated_at: datetime
|
|
73
|
+
"""Datetime when the reserved fixed IP was last updated"""
|
|
74
|
+
|
|
75
|
+
creator_task_id: Optional[str] = None
|
|
76
|
+
"""Task that created this entity"""
|
|
77
|
+
|
|
78
|
+
fixed_ip_address: Optional[str] = None
|
|
79
|
+
"""IPv4 address of the reserved fixed IP"""
|
|
80
|
+
|
|
81
|
+
fixed_ipv6_address: Optional[str] = None
|
|
82
|
+
"""IPv6 address of the reserved fixed IP"""
|
|
83
|
+
|
|
84
|
+
project_id: Optional[int] = None
|
|
85
|
+
"""Project ID"""
|
|
86
|
+
|
|
87
|
+
subnet_id: Optional[str] = None
|
|
88
|
+
"""ID of the subnet that owns the IP address"""
|
|
89
|
+
|
|
90
|
+
subnet_v6_id: Optional[str] = None
|
|
91
|
+
"""ID of the subnet that owns the IPv6 address"""
|
|
92
|
+
|
|
93
|
+
task_id: Optional[str] = None
|
|
94
|
+
"""The UUID of the active task that currently holds a lock on the resource.
|
|
95
|
+
|
|
96
|
+
This lock prevents concurrent modifications to ensure consistency. If `null`,
|
|
97
|
+
the resource is not locked.
|
|
98
|
+
"""
|
|
@@ -0,0 +1,107 @@
|
|
|
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 Union, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
+
|
|
8
|
+
from .interface_ip_family import InterfaceIPFamily
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ReservedFixedIPCreateParams",
|
|
12
|
+
"NewReservedFixedIPExternalSerializer",
|
|
13
|
+
"NewReservedFixedIPSpecificSubnetSerializer",
|
|
14
|
+
"NewReservedFixedIPAnySubnetSerializer",
|
|
15
|
+
"NewReservedFixedIPSpecificIPAddressSerializer",
|
|
16
|
+
"NewReservedFixedIPSpecificPortSerializer",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class NewReservedFixedIPExternalSerializer(TypedDict, total=False):
|
|
21
|
+
project_id: int
|
|
22
|
+
|
|
23
|
+
region_id: int
|
|
24
|
+
|
|
25
|
+
type: Required[Literal["external"]]
|
|
26
|
+
"""Must be 'external'"""
|
|
27
|
+
|
|
28
|
+
ip_family: Optional[InterfaceIPFamily]
|
|
29
|
+
"""Which subnets should be selected: IPv4, IPv6 or use dual stack."""
|
|
30
|
+
|
|
31
|
+
is_vip: bool
|
|
32
|
+
"""If reserved fixed IP is a VIP"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class NewReservedFixedIPSpecificSubnetSerializer(TypedDict, total=False):
|
|
36
|
+
project_id: int
|
|
37
|
+
|
|
38
|
+
region_id: int
|
|
39
|
+
|
|
40
|
+
subnet_id: Required[str]
|
|
41
|
+
"""Reserved fixed IP will be allocated in this subnet"""
|
|
42
|
+
|
|
43
|
+
type: Required[Literal["subnet"]]
|
|
44
|
+
"""Must be 'subnet'."""
|
|
45
|
+
|
|
46
|
+
is_vip: bool
|
|
47
|
+
"""If reserved fixed IP is a VIP"""
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class NewReservedFixedIPAnySubnetSerializer(TypedDict, total=False):
|
|
51
|
+
project_id: int
|
|
52
|
+
|
|
53
|
+
region_id: int
|
|
54
|
+
|
|
55
|
+
network_id: Required[str]
|
|
56
|
+
"""Reserved fixed IP will be allocated in a subnet of this network"""
|
|
57
|
+
|
|
58
|
+
type: Required[Literal["any_subnet"]]
|
|
59
|
+
"""Must be 'any_subnet'."""
|
|
60
|
+
|
|
61
|
+
ip_family: Optional[InterfaceIPFamily]
|
|
62
|
+
"""Which subnets should be selected: IPv4, IPv6 or use dual stack."""
|
|
63
|
+
|
|
64
|
+
is_vip: bool
|
|
65
|
+
"""If reserved fixed IP is a VIP"""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class NewReservedFixedIPSpecificIPAddressSerializer(TypedDict, total=False):
|
|
69
|
+
project_id: int
|
|
70
|
+
|
|
71
|
+
region_id: int
|
|
72
|
+
|
|
73
|
+
ip_address: Required[str]
|
|
74
|
+
"""Reserved fixed IP will be allocated the given IP address"""
|
|
75
|
+
|
|
76
|
+
network_id: Required[str]
|
|
77
|
+
"""Reserved fixed IP will be allocated in a subnet of this network"""
|
|
78
|
+
|
|
79
|
+
type: Required[Literal["ip_address"]]
|
|
80
|
+
"""Must be 'ip_address'."""
|
|
81
|
+
|
|
82
|
+
is_vip: bool
|
|
83
|
+
"""If reserved fixed IP is a VIP"""
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class NewReservedFixedIPSpecificPortSerializer(TypedDict, total=False):
|
|
87
|
+
project_id: int
|
|
88
|
+
|
|
89
|
+
region_id: int
|
|
90
|
+
|
|
91
|
+
port_id: Required[str]
|
|
92
|
+
"""
|
|
93
|
+
Port ID to make a reserved fixed IP (for example, `vip_port_id` of the Load
|
|
94
|
+
Balancer entity).
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
type: Required[Literal["port"]]
|
|
98
|
+
"""Must be 'port'."""
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
ReservedFixedIPCreateParams: TypeAlias = Union[
|
|
102
|
+
NewReservedFixedIPExternalSerializer,
|
|
103
|
+
NewReservedFixedIPSpecificSubnetSerializer,
|
|
104
|
+
NewReservedFixedIPAnySubnetSerializer,
|
|
105
|
+
NewReservedFixedIPSpecificIPAddressSerializer,
|
|
106
|
+
NewReservedFixedIPSpecificPortSerializer,
|
|
107
|
+
]
|
|
@@ -0,0 +1,47 @@
|
|
|
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__ = ["ReservedFixedIPListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ReservedFixedIPListParams(TypedDict, total=False):
|
|
11
|
+
project_id: int
|
|
12
|
+
|
|
13
|
+
region_id: int
|
|
14
|
+
|
|
15
|
+
available_only: bool
|
|
16
|
+
"""
|
|
17
|
+
Set to true if the response should only list IP addresses that are not attached
|
|
18
|
+
to any instance
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
device_id: str
|
|
22
|
+
"""Filter IPs by device ID it is attached to"""
|
|
23
|
+
|
|
24
|
+
external_only: bool
|
|
25
|
+
"""Set to true if the response should only list public IP addresses"""
|
|
26
|
+
|
|
27
|
+
internal_only: bool
|
|
28
|
+
"""Set to true if the response should only list private IP addresses"""
|
|
29
|
+
|
|
30
|
+
ip_address: str
|
|
31
|
+
"""An IPv4 address to filter results by. Regular expression allowed"""
|
|
32
|
+
|
|
33
|
+
limit: int
|
|
34
|
+
"""Limit the number of returned IPs"""
|
|
35
|
+
|
|
36
|
+
offset: int
|
|
37
|
+
"""Offset value is used to exclude the first set of records from the result"""
|
|
38
|
+
|
|
39
|
+
order_by: str
|
|
40
|
+
"""
|
|
41
|
+
Ordering reserved fixed IP list result by name, status, updated_at, created_at
|
|
42
|
+
or fixed_ip_address fields of the reserved fixed IP and directions (status.asc),
|
|
43
|
+
default is "fixed_ip_address.asc"
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
vip_only: bool
|
|
47
|
+
"""Set to true if the response should only list VIPs"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .candidate_port import CandidatePort as CandidatePort
|
|
6
|
+
from .connected_port import ConnectedPort as ConnectedPort
|
|
7
|
+
from .ip_with_subnet import IPWithSubnet as IPWithSubnet
|
|
8
|
+
from .vip_toggle_params import VipToggleParams as VipToggleParams
|
|
9
|
+
from .candidate_port_list import CandidatePortList as CandidatePortList
|
|
10
|
+
from .connected_port_list import ConnectedPortList as ConnectedPortList
|
|
11
|
+
from .vip_update_connected_ports_params import VipUpdateConnectedPortsParams as VipUpdateConnectedPortsParams
|
|
12
|
+
from .vip_replace_connected_ports_params import VipReplaceConnectedPortsParams as VipReplaceConnectedPortsParams
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ..network import Network
|
|
6
|
+
from ...._models import BaseModel
|
|
7
|
+
from .ip_with_subnet import IPWithSubnet
|
|
8
|
+
|
|
9
|
+
__all__ = ["CandidatePort"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CandidatePort(BaseModel):
|
|
13
|
+
instance_id: str
|
|
14
|
+
"""ID of the instance that owns the port"""
|
|
15
|
+
|
|
16
|
+
instance_name: str
|
|
17
|
+
"""Name of the instance that owns the port"""
|
|
18
|
+
|
|
19
|
+
ip_assignments: List[IPWithSubnet]
|
|
20
|
+
"""IP addresses assigned to this port"""
|
|
21
|
+
|
|
22
|
+
network: Network
|
|
23
|
+
"""Network details"""
|
|
24
|
+
|
|
25
|
+
port_id: str
|
|
26
|
+
"""Port ID that shares VIP"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
from .candidate_port import CandidatePort
|
|
7
|
+
|
|
8
|
+
__all__ = ["CandidatePortList"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CandidatePortList(BaseModel):
|
|
12
|
+
count: int
|
|
13
|
+
"""Number of objects"""
|
|
14
|
+
|
|
15
|
+
results: List[CandidatePort]
|
|
16
|
+
"""Objects"""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ..network import Network
|
|
6
|
+
from ...._models import BaseModel
|
|
7
|
+
from .ip_with_subnet import IPWithSubnet
|
|
8
|
+
|
|
9
|
+
__all__ = ["ConnectedPort"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ConnectedPort(BaseModel):
|
|
13
|
+
instance_id: str
|
|
14
|
+
"""ID of the instance that owns the port"""
|
|
15
|
+
|
|
16
|
+
instance_name: str
|
|
17
|
+
"""Name of the instance that owns the port"""
|
|
18
|
+
|
|
19
|
+
ip_assignments: List[IPWithSubnet]
|
|
20
|
+
"""IP addresses assigned to this port"""
|
|
21
|
+
|
|
22
|
+
network: Network
|
|
23
|
+
"""Network details"""
|
|
24
|
+
|
|
25
|
+
port_id: str
|
|
26
|
+
"""Port ID that shares VIP"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
from .connected_port import ConnectedPort
|
|
7
|
+
|
|
8
|
+
__all__ = ["ConnectedPortList"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ConnectedPortList(BaseModel):
|
|
12
|
+
count: int
|
|
13
|
+
"""Number of objects"""
|
|
14
|
+
|
|
15
|
+
results: List[ConnectedPort]
|
|
16
|
+
"""Objects"""
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ..subnet import Subnet
|
|
4
|
+
from ...._models import BaseModel
|
|
5
|
+
|
|
6
|
+
__all__ = ["IPWithSubnet"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class IPWithSubnet(BaseModel):
|
|
10
|
+
ip_address: str
|
|
11
|
+
"""IP address"""
|
|
12
|
+
|
|
13
|
+
subnet: Subnet
|
|
14
|
+
"""Subnet details"""
|
|
15
|
+
|
|
16
|
+
subnet_id: str
|
|
17
|
+
"""ID of the subnet that allocated the IP"""
|
|
@@ -0,0 +1,17 @@
|
|
|
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 List
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VipReplaceConnectedPortsParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VipReplaceConnectedPortsParams(TypedDict, total=False):
|
|
12
|
+
project_id: int
|
|
13
|
+
|
|
14
|
+
region_id: int
|
|
15
|
+
|
|
16
|
+
port_ids: List[str]
|
|
17
|
+
"""List of port IDs that will share one VIP"""
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["VipToggleParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VipToggleParams(TypedDict, total=False):
|
|
11
|
+
project_id: int
|
|
12
|
+
|
|
13
|
+
region_id: int
|
|
14
|
+
|
|
15
|
+
is_vip: Required[bool]
|
|
16
|
+
"""If reserved fixed IP should be a VIP"""
|
|
@@ -0,0 +1,17 @@
|
|
|
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 List
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["VipUpdateConnectedPortsParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class VipUpdateConnectedPortsParams(TypedDict, total=False):
|
|
12
|
+
project_id: int
|
|
13
|
+
|
|
14
|
+
region_id: int
|
|
15
|
+
|
|
16
|
+
port_ids: List[str]
|
|
17
|
+
"""List of port IDs that will share one VIP"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ..._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["Route"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Route(BaseModel):
|
|
9
|
+
destination: str
|
|
10
|
+
"""CIDR of destination IPv4 subnet."""
|
|
11
|
+
|
|
12
|
+
nexthop: str
|
|
13
|
+
"""
|
|
14
|
+
IPv4 address to forward traffic to if it's destination IP matches 'destination'
|
|
15
|
+
CIDR.
|
|
16
|
+
"""
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["Secret"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Secret(BaseModel):
|
|
13
|
+
id: str
|
|
14
|
+
"""Secret uuid"""
|
|
15
|
+
|
|
16
|
+
name: str
|
|
17
|
+
"""Secret name"""
|
|
18
|
+
|
|
19
|
+
secret_type: Literal["certificate", "opaque", "passphrase", "private", "public", "symmetric"]
|
|
20
|
+
"""Secret type, base64 encoded.
|
|
21
|
+
|
|
22
|
+
symmetric - Used for storing byte arrays such as keys suitable for symmetric
|
|
23
|
+
encryption; public - Used for storing the public key of an asymmetric keypair;
|
|
24
|
+
private - Used for storing the private key of an asymmetric keypair;
|
|
25
|
+
passphrase - Used for storing plain text passphrases; certificate - Used for
|
|
26
|
+
storing cryptographic certificates such as X.509 certificates; opaque - Used for
|
|
27
|
+
backwards compatibility with previous versions of the API
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
status: str
|
|
31
|
+
"""Status"""
|
|
32
|
+
|
|
33
|
+
algorithm: Optional[str] = None
|
|
34
|
+
"""Metadata provided by a user or system for informational purposes.
|
|
35
|
+
|
|
36
|
+
Defaults to None
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
bit_length: Optional[int] = None
|
|
40
|
+
"""Metadata provided by a user or system for informational purposes.
|
|
41
|
+
|
|
42
|
+
Value must be greater than zero. Defaults to None
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
content_types: Optional[Dict[str, str]] = None
|
|
46
|
+
"""Describes the content-types that can be used to retrieve the payload.
|
|
47
|
+
|
|
48
|
+
The content-type used with symmetric secrets is application/octet-stream
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
created: Optional[datetime] = None
|
|
52
|
+
"""Datetime when the secret was created. The format is 2020-01-01T12:00:00+00:00"""
|
|
53
|
+
|
|
54
|
+
expiration: Optional[datetime] = None
|
|
55
|
+
"""Datetime when the secret will expire.
|
|
56
|
+
|
|
57
|
+
The format is 2020-01-01T12:00:00+00:00. Defaults to None
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
mode: Optional[str] = None
|
|
61
|
+
"""Metadata provided by a user or system for informational purposes.
|
|
62
|
+
|
|
63
|
+
Defaults to None
|
|
64
|
+
"""
|
|
@@ -0,0 +1,66 @@
|
|
|
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 Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["SecretCreateParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SecretCreateParams(TypedDict, total=False):
|
|
12
|
+
project_id: int
|
|
13
|
+
"""Project ID"""
|
|
14
|
+
|
|
15
|
+
region_id: int
|
|
16
|
+
"""Region ID"""
|
|
17
|
+
|
|
18
|
+
name: Required[str]
|
|
19
|
+
"""Secret name"""
|
|
20
|
+
|
|
21
|
+
payload: Required[str]
|
|
22
|
+
"""Secret payload.
|
|
23
|
+
|
|
24
|
+
For HTTPS-terminated load balancing, provide base64 encoded conents of a PKCS12
|
|
25
|
+
file. The PKCS12 file is the combined TLS certificate, key, and intermediate
|
|
26
|
+
certificate chain obtained from an external certificate authority. The file can
|
|
27
|
+
be created via openssl, e.g.'openssl pkcs12 -export -inkey server.key -in
|
|
28
|
+
server.crt -certfile ca-chain.crt -passout pass: -out server.p12'The key and
|
|
29
|
+
certificate should be PEM-encoded, and the intermediate certificate chain should
|
|
30
|
+
be multiple PEM-encoded certs concatenated together
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
payload_content_encoding: Required[Literal["base64"]]
|
|
34
|
+
"""The encoding used for the payload to be able to include it in the JSON request.
|
|
35
|
+
|
|
36
|
+
Currently only base64 is supported
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
payload_content_type: Required[str]
|
|
40
|
+
"""The media type for the content of the payload"""
|
|
41
|
+
|
|
42
|
+
secret_type: Required[Literal["certificate", "opaque", "passphrase", "private", "public", "symmetric"]]
|
|
43
|
+
"""Secret type.
|
|
44
|
+
|
|
45
|
+
symmetric - Used for storing byte arrays such as keys suitable for symmetric
|
|
46
|
+
encryption; public - Used for storing the public key of an asymmetric keypair;
|
|
47
|
+
private - Used for storing the private key of an asymmetric keypair;
|
|
48
|
+
passphrase - Used for storing plain text passphrases; certificate - Used for
|
|
49
|
+
storing cryptographic certificates such as X.509 certificates; opaque - Used for
|
|
50
|
+
backwards compatibility with previous versions of the API
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
algorithm: Optional[str]
|
|
54
|
+
"""Metadata provided by a user or system for informational purposes."""
|
|
55
|
+
|
|
56
|
+
bit_length: Optional[int]
|
|
57
|
+
"""Metadata provided by a user or system for informational purposes.
|
|
58
|
+
|
|
59
|
+
Value must be greater than zero.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
expiration: Optional[str]
|
|
63
|
+
"""Datetime when the secret will expire."""
|
|
64
|
+
|
|
65
|
+
mode: Optional[str]
|
|
66
|
+
"""Metadata provided by a user or system for informational purposes."""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from .secret import Secret
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["SecretListResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SecretListResponse(BaseModel):
|
|
12
|
+
count: int
|
|
13
|
+
"""Number of objects"""
|
|
14
|
+
|
|
15
|
+
results: List[Secret]
|
|
16
|
+
"""Objects"""
|
|
@@ -0,0 +1,39 @@
|
|
|
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 Union
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
from ..._utils import PropertyInfo
|
|
10
|
+
|
|
11
|
+
__all__ = ["SecretUploadTlsCertificateParams", "Payload"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SecretUploadTlsCertificateParams(TypedDict, total=False):
|
|
15
|
+
project_id: int
|
|
16
|
+
"""Project ID"""
|
|
17
|
+
|
|
18
|
+
region_id: int
|
|
19
|
+
"""Region ID"""
|
|
20
|
+
|
|
21
|
+
name: Required[str]
|
|
22
|
+
"""Secret name"""
|
|
23
|
+
|
|
24
|
+
payload: Required[Payload]
|
|
25
|
+
"""Secret payload."""
|
|
26
|
+
|
|
27
|
+
expiration: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
28
|
+
"""Datetime when the secret will expire. Defaults to None"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class Payload(TypedDict, total=False):
|
|
32
|
+
certificate: Required[str]
|
|
33
|
+
"""SSL certificate in PEM format."""
|
|
34
|
+
|
|
35
|
+
certificate_chain: Required[str]
|
|
36
|
+
"""SSL certificate chain of intermediates and root certificates in PEM format."""
|
|
37
|
+
|
|
38
|
+
private_key: Required[str]
|
|
39
|
+
"""SSL private key in PEM format."""
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
|
|
6
|
+
from .tag import Tag
|
|
7
|
+
from ..._models import BaseModel
|
|
8
|
+
from .security_group_rule import SecurityGroupRule
|
|
9
|
+
|
|
10
|
+
__all__ = ["SecurityGroup"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SecurityGroup(BaseModel):
|
|
14
|
+
id: str
|
|
15
|
+
"""Security group ID"""
|
|
16
|
+
|
|
17
|
+
created_at: datetime
|
|
18
|
+
"""Datetime when the security group was created"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
"""Security group name"""
|
|
22
|
+
|
|
23
|
+
project_id: int
|
|
24
|
+
"""Project ID"""
|
|
25
|
+
|
|
26
|
+
region: str
|
|
27
|
+
"""Region name"""
|
|
28
|
+
|
|
29
|
+
region_id: int
|
|
30
|
+
"""Region ID"""
|
|
31
|
+
|
|
32
|
+
revision_number: int
|
|
33
|
+
"""The number of revisions"""
|
|
34
|
+
|
|
35
|
+
tags_v2: List[Tag]
|
|
36
|
+
"""Tags for a security group"""
|
|
37
|
+
|
|
38
|
+
updated_at: datetime
|
|
39
|
+
"""Datetime when the security group was last updated"""
|
|
40
|
+
|
|
41
|
+
description: Optional[str] = None
|
|
42
|
+
"""Security group description"""
|
|
43
|
+
|
|
44
|
+
security_group_rules: Optional[List[SecurityGroupRule]] = None
|
|
45
|
+
"""Security group rules"""
|