gcore 0.14.0__py3-none-any.whl → 0.16.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/_client.py +2 -8
- gcore/_version.py +1 -1
- gcore/resources/cdn/audit_log.py +4 -12
- gcore/resources/cdn/cdn.py +10 -18
- gcore/resources/cdn/certificates.py +16 -40
- gcore/resources/cdn/ip_ranges.py +4 -8
- gcore/resources/cdn/logs/__init__.py +0 -14
- gcore/resources/cdn/logs/logs.py +4 -44
- gcore/resources/cdn/logs_uploader/configs.py +14 -42
- gcore/resources/cdn/logs_uploader/policies.py +14 -42
- gcore/resources/cdn/logs_uploader/targets.py +14 -42
- gcore/resources/cdn/metrics.py +2 -6
- gcore/resources/cdn/network_capacity.py +2 -6
- gcore/resources/cdn/origin_groups.py +12 -32
- gcore/resources/cdn/resources/resources.py +18 -46
- gcore/resources/cdn/resources/rules.py +12 -36
- gcore/resources/cdn/resources/shield.py +4 -12
- gcore/resources/cdn/rule_templates.py +12 -36
- gcore/resources/cdn/shields.py +2 -6
- gcore/resources/cdn/statistics.py +16 -40
- gcore/resources/cdn/trusted_ca_certificates.py +10 -30
- gcore/resources/cloud/audit_logs.py +2 -6
- gcore/resources/cloud/baremetal/flavors.py +2 -6
- gcore/resources/cloud/baremetal/images.py +2 -6
- gcore/resources/cloud/baremetal/servers.py +6 -18
- gcore/resources/cloud/billing_reservations.py +25 -208
- gcore/resources/cloud/cost_reports.py +44 -62
- gcore/resources/cloud/file_shares/access_rules.py +6 -18
- gcore/resources/cloud/file_shares/file_shares.py +37 -44
- gcore/resources/cloud/floating_ips.py +14 -42
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +18 -54
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +8 -24
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +14 -42
- gcore/resources/cloud/inference/api_keys.py +10 -30
- gcore/resources/cloud/inference/applications/deployments.py +135 -155
- gcore/resources/cloud/inference/applications/templates.py +4 -12
- gcore/resources/cloud/inference/deployments/deployments.py +16 -48
- gcore/resources/cloud/inference/deployments/logs.py +2 -6
- gcore/resources/cloud/inference/flavors.py +4 -12
- gcore/resources/cloud/inference/inference.py +2 -6
- gcore/resources/cloud/inference/registry_credentials.py +10 -30
- gcore/resources/cloud/inference/secrets.py +10 -30
- gcore/resources/cloud/instances/flavors.py +2 -6
- gcore/resources/cloud/instances/images.py +12 -36
- gcore/resources/cloud/instances/instances.py +99 -94
- gcore/resources/cloud/instances/interfaces.py +6 -18
- gcore/resources/cloud/instances/metrics.py +2 -6
- gcore/resources/cloud/ip_ranges.py +2 -6
- gcore/resources/cloud/k8s/clusters/clusters.py +18 -54
- gcore/resources/cloud/k8s/clusters/nodes.py +4 -12
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +4 -12
- gcore/resources/cloud/k8s/clusters/pools/pools.py +12 -36
- gcore/resources/cloud/k8s/flavors.py +2 -6
- gcore/resources/cloud/k8s/k8s.py +2 -6
- gcore/resources/cloud/load_balancers/flavors.py +2 -6
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -30
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +10 -30
- gcore/resources/cloud/load_balancers/listeners.py +26 -46
- gcore/resources/cloud/load_balancers/load_balancers.py +493 -521
- gcore/resources/cloud/load_balancers/metrics.py +8 -12
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +4 -12
- gcore/resources/cloud/load_balancers/pools/members.py +4 -12
- gcore/resources/cloud/load_balancers/pools/pools.py +26 -46
- gcore/resources/cloud/load_balancers/statuses.py +10 -18
- gcore/resources/cloud/networks/networks.py +10 -30
- gcore/resources/cloud/networks/routers.py +14 -42
- gcore/resources/cloud/networks/subnets.py +15 -37
- gcore/resources/cloud/placement_groups.py +8 -24
- gcore/resources/cloud/projects.py +10 -22
- gcore/resources/cloud/quotas/quotas.py +6 -18
- gcore/resources/cloud/quotas/requests.py +8 -24
- gcore/resources/cloud/regions.py +4 -8
- gcore/resources/cloud/registries/artifacts.py +4 -12
- gcore/resources/cloud/registries/registries.py +10 -30
- gcore/resources/cloud/registries/repositories.py +4 -12
- gcore/resources/cloud/registries/tags.py +2 -6
- gcore/resources/cloud/registries/users.py +12 -36
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +114 -25
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -30
- gcore/resources/cloud/secrets.py +8 -24
- gcore/resources/cloud/security_groups/rules.py +6 -18
- gcore/resources/cloud/security_groups/security_groups.py +14 -42
- gcore/resources/cloud/ssh_keys.py +10 -30
- gcore/resources/cloud/tasks.py +14 -26
- gcore/resources/cloud/usage_reports.py +18 -24
- gcore/resources/cloud/users/role_assignments.py +8 -24
- gcore/resources/cloud/volumes.py +20 -60
- gcore/resources/dns/dns.py +4 -8
- gcore/resources/dns/locations.py +8 -20
- gcore/resources/dns/metrics.py +2 -6
- gcore/resources/dns/pickers/pickers.py +2 -2
- gcore/resources/dns/pickers/presets.py +2 -6
- gcore/resources/dns/zones/dnssec.py +4 -12
- gcore/resources/dns/zones/rrsets.py +12 -36
- gcore/resources/dns/zones/zones.py +22 -58
- gcore/resources/fastedge/apps/apps.py +12 -28
- gcore/resources/fastedge/apps/logs.py +2 -6
- gcore/resources/fastedge/binaries.py +8 -24
- gcore/resources/fastedge/fastedge.py +2 -2
- gcore/resources/fastedge/kv_stores.py +10 -22
- gcore/resources/fastedge/secrets.py +12 -36
- gcore/resources/fastedge/statistics.py +4 -12
- gcore/resources/fastedge/templates.py +10 -30
- gcore/resources/iam/api_tokens.py +12 -26
- gcore/resources/iam/iam.py +2 -2
- gcore/resources/iam/users.py +10 -26
- gcore/resources/security/bgp_announces.py +4 -12
- gcore/resources/security/events.py +2 -6
- gcore/resources/security/profile_templates.py +2 -6
- gcore/resources/security/profiles.py +16 -40
- gcore/resources/storage/buckets/buckets.py +6 -18
- gcore/resources/storage/buckets/cors.py +4 -12
- gcore/resources/storage/buckets/lifecycle.py +4 -12
- gcore/resources/storage/buckets/policy.py +6 -18
- gcore/resources/storage/credentials.py +2 -6
- gcore/resources/storage/locations.py +2 -6
- gcore/resources/storage/statistics.py +4 -12
- gcore/resources/storage/storage.py +16 -48
- gcore/resources/streaming/ai_tasks.py +10 -18
- gcore/resources/streaming/broadcasts.py +12 -36
- gcore/resources/streaming/directories.py +10 -30
- gcore/resources/streaming/players.py +12 -28
- gcore/resources/streaming/playlists.py +12 -36
- gcore/resources/streaming/quality_sets.py +4 -12
- gcore/resources/streaming/restreams.py +10 -30
- gcore/resources/streaming/statistics.py +46 -138
- gcore/resources/streaming/streams/overlays.py +12 -36
- gcore/resources/streaming/streams/streams.py +20 -52
- gcore/resources/streaming/videos/subtitles.py +10 -30
- gcore/resources/streaming/videos/videos.py +16 -40
- gcore/resources/waap/advanced_rules.py +2 -6
- gcore/resources/waap/custom_page_sets.py +12 -36
- gcore/resources/waap/domains/advanced_rules.py +12 -36
- gcore/resources/waap/domains/api_discovery.py +12 -36
- gcore/resources/waap/domains/api_path_groups.py +2 -6
- gcore/resources/waap/domains/api_paths.py +10 -30
- gcore/resources/waap/domains/custom_rules.py +14 -42
- gcore/resources/waap/domains/domains.py +12 -32
- gcore/resources/waap/domains/firewall_rules.py +14 -42
- gcore/resources/waap/domains/insight_silences.py +10 -30
- gcore/resources/waap/domains/insights.py +6 -18
- gcore/resources/waap/domains/settings.py +4 -12
- gcore/resources/waap/domains/statistics.py +12 -36
- gcore/resources/waap/insights.py +2 -6
- gcore/resources/waap/ip_info/ip_info.py +16 -48
- gcore/resources/waap/ip_info/metrics.py +2 -6
- gcore/resources/waap/organizations.py +2 -6
- gcore/resources/waap/statistics.py +2 -6
- gcore/resources/waap/tags.py +2 -2
- gcore/resources/waap/waap.py +2 -2
- gcore/types/cdn/cdn_resource.py +20 -0
- gcore/types/cdn/logs/__init__.py +0 -4
- gcore/types/cdn/logs_aggregated_stats.py +1 -1
- gcore/types/cdn/resource_create_params.py +20 -0
- gcore/types/cdn/resource_replace_params.py +20 -0
- gcore/types/cdn/resource_update_params.py +20 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +20 -0
- gcore/types/cdn/resources/rule_create_params.py +20 -0
- gcore/types/cdn/resources/rule_replace_params.py +20 -0
- gcore/types/cdn/resources/rule_update_params.py +20 -0
- gcore/types/cdn/rule_template.py +20 -0
- gcore/types/cdn/rule_template_create_params.py +20 -0
- gcore/types/cdn/rule_template_replace_params.py +20 -0
- gcore/types/cdn/rule_template_update_params.py +20 -0
- gcore/types/cloud/__init__.py +2 -0
- gcore/types/cloud/billing_reservation.py +52 -114
- gcore/types/cloud/billing_reservation_list_params.py +4 -42
- gcore/types/cloud/billing_reservations.py +16 -0
- gcore/types/cloud/cost_report_get_aggregated_params.py +2 -2
- gcore/types/cloud/cost_report_get_detailed_params.py +2 -2
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_flavor.py +12 -0
- gcore/types/cloud/inference/applications/__init__.py +1 -1
- gcore/types/cloud/inference/applications/{deployment_patch_params.py → deployment_update_params.py} +2 -2
- gcore/types/cloud/instance_list_params.py +1 -1
- gcore/types/cloud/instance_update_params.py +31 -3
- gcore/types/cloud/load_balancer_create_params.py +1 -1
- gcore/types/cloud/load_balancer_listener_detail.py +1 -1
- gcore/types/cloud/load_balancers/listener_create_params.py +1 -1
- gcore/types/cloud/load_balancers/listener_list_params.py +1 -1
- gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
- gcore/types/cloud/load_balancers/pool_list_params.py +1 -1
- gcore/types/cloud/quota_get_all_response.py +8 -8
- gcore/types/cloud/quota_get_by_region_response.py +8 -8
- gcore/types/cloud/quotas/request_create_params.py +4 -4
- gcore/types/cloud/quotas/request_get_response.py +4 -4
- gcore/types/cloud/quotas/request_list_response.py +4 -4
- gcore/types/cloud/reserved_fixed_ip_update_params.py +16 -0
- gcore/types/cloud/task_list_params.py +3 -3
- gcore/types/cloud/usage_report_get_params.py +2 -2
- gcore/types/iam/account_overview.py +24 -26
- gcore/types/iam/api_token.py +24 -24
- gcore/types/iam/api_token_create_params.py +2 -1
- gcore/types/iam/api_token_list.py +24 -24
- gcore/types/iam/user_detailed.py +15 -15
- gcore/types/iam/user_invite.py +2 -4
- gcore/types/iam/user_update.py +15 -15
- gcore/types/security/profile_create_params.py +2 -2
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/METADATA +1 -1
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/RECORD +203 -205
- gcore/resources/cdn/logs/settings.py +0 -1081
- gcore/types/cdn/logs/log_settings.py +0 -172
- gcore/types/cdn/logs/setting_create_params.py +0 -200
- gcore/types/cdn/logs/setting_update_params.py +0 -200
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/WHEEL +0 -0
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -36,7 +36,7 @@ class RequestedLimitsRegionalLimit(BaseModel):
|
|
|
36
36
|
"""Basic bare metal servers count limit"""
|
|
37
37
|
|
|
38
38
|
baremetal_gpu_a100_count_limit: Optional[int] = None
|
|
39
|
-
"""
|
|
39
|
+
"""Bare metal A100 GPU server count limit"""
|
|
40
40
|
|
|
41
41
|
baremetal_gpu_count_limit: Optional[int] = None
|
|
42
42
|
"""Total number of AI GPU bare metal servers.
|
|
@@ -47,13 +47,13 @@ class RequestedLimitsRegionalLimit(BaseModel):
|
|
|
47
47
|
"""
|
|
48
48
|
|
|
49
49
|
baremetal_gpu_h100_count_limit: Optional[int] = None
|
|
50
|
-
"""
|
|
50
|
+
"""Bare metal H100 GPU server count limit"""
|
|
51
51
|
|
|
52
52
|
baremetal_gpu_h200_count_limit: Optional[int] = None
|
|
53
|
-
"""
|
|
53
|
+
"""Bare metal H200 GPU server count limit"""
|
|
54
54
|
|
|
55
55
|
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
56
|
-
"""
|
|
56
|
+
"""Bare metal L40S GPU server count limit"""
|
|
57
57
|
|
|
58
58
|
baremetal_hf_count_limit: Optional[int] = None
|
|
59
59
|
"""High-frequency bare metal servers count limit"""
|
|
@@ -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__ = ["ReservedFixedIPUpdateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ReservedFixedIPUpdateParams(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"""
|
|
@@ -103,9 +103,9 @@ class TaskListParams(TypedDict, total=False):
|
|
|
103
103
|
'`suspend_vm`', '`sync_private_flavors`', '`update_ddos_profile`',
|
|
104
104
|
'`update_inference_application`', '`update_inference_instance`',
|
|
105
105
|
'`update_k8s_cluster_v2`', '`update_lbmetadata`',
|
|
106
|
-
'`update_port_allowed_address_pairs`', '`
|
|
107
|
-
'`
|
|
108
|
-
'`upscale_gpu_virtual_cluster`']
|
|
106
|
+
'`update_port_allowed_address_pairs`', '`update_sfs`',
|
|
107
|
+
'`update_tags_gpu_virtual_cluster`', '`upgrade_k8s_cluster_v2`',
|
|
108
|
+
'`upscale_ai_cluster_gpu`', '`upscale_gpu_virtual_cluster`']
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
111
|
to_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
@@ -47,13 +47,13 @@ class UsageReportGetParams(TypedDict, total=False):
|
|
|
47
47
|
time_from: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
48
48
|
"""The start date of the report period (ISO 8601).
|
|
49
49
|
|
|
50
|
-
The report starts from the beginning of this day.
|
|
50
|
+
The report starts from the beginning of this day in UTC.
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
time_to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
54
54
|
"""The end date of the report period (ISO 8601).
|
|
55
55
|
|
|
56
|
-
The report ends just before the beginning of this day.
|
|
56
|
+
The report ends just before the beginning of this day in UTC.
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
59
|
enable_last_day: bool
|
|
@@ -410,50 +410,44 @@ class User(BaseModel):
|
|
|
410
410
|
|
|
411
411
|
|
|
412
412
|
class AccountOverview(BaseModel):
|
|
413
|
-
id:
|
|
413
|
+
id: int
|
|
414
414
|
"""The account ID."""
|
|
415
415
|
|
|
416
|
-
bill_type:
|
|
416
|
+
bill_type: str
|
|
417
417
|
"""System field. Billing type of the account."""
|
|
418
418
|
|
|
419
|
-
capabilities:
|
|
419
|
+
capabilities: List[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]]
|
|
420
420
|
"""System field. List of services available for the account."""
|
|
421
421
|
|
|
422
|
-
company_name:
|
|
422
|
+
company_name: str = FieldInfo(alias="companyName")
|
|
423
423
|
"""The company name."""
|
|
424
424
|
|
|
425
|
-
|
|
426
|
-
"""System field. The company country (ISO 3166-1 alpha-2 format)."""
|
|
427
|
-
|
|
428
|
-
current_user: Optional[int] = FieldInfo(alias="currentUser", default=None)
|
|
425
|
+
current_user: int = FieldInfo(alias="currentUser")
|
|
429
426
|
"""ID of the current user."""
|
|
430
427
|
|
|
431
|
-
|
|
432
|
-
"""The account custom ID."""
|
|
433
|
-
|
|
434
|
-
deleted: Optional[bool] = None
|
|
428
|
+
deleted: bool
|
|
435
429
|
"""The field shows the status of the account:
|
|
436
430
|
|
|
437
431
|
- `true` – the account has been deleted
|
|
438
432
|
- `false` – the account is not deleted
|
|
439
433
|
"""
|
|
440
434
|
|
|
441
|
-
email:
|
|
435
|
+
email: str
|
|
442
436
|
"""The account email."""
|
|
443
437
|
|
|
444
438
|
entry_base_domain: Optional[str] = FieldInfo(alias="entryBaseDomain", default=None)
|
|
445
439
|
"""System field. Control panel domain."""
|
|
446
440
|
|
|
447
|
-
free_features:
|
|
441
|
+
free_features: FreeFeatures = FieldInfo(alias="freeFeatures")
|
|
448
442
|
"""
|
|
449
443
|
An object of arrays which contains information about free features available for
|
|
450
444
|
the requested account.
|
|
451
445
|
"""
|
|
452
446
|
|
|
453
|
-
has_active_admin:
|
|
447
|
+
has_active_admin: bool
|
|
454
448
|
"""System field."""
|
|
455
449
|
|
|
456
|
-
is_test:
|
|
450
|
+
is_test: bool
|
|
457
451
|
"""System field:
|
|
458
452
|
|
|
459
453
|
- `true` — a test account;
|
|
@@ -463,29 +457,33 @@ class AccountOverview(BaseModel):
|
|
|
463
457
|
name: Optional[str] = None
|
|
464
458
|
"""Name of a user who registered the requested account."""
|
|
465
459
|
|
|
466
|
-
paid_features:
|
|
460
|
+
paid_features: PaidFeatures = FieldInfo(alias="paidFeatures")
|
|
467
461
|
"""
|
|
468
462
|
An object of arrays which contains information about paid features available for
|
|
469
463
|
the requested account.
|
|
470
464
|
"""
|
|
471
465
|
|
|
472
|
-
|
|
473
|
-
"""Phone of a user who registered the requested account."""
|
|
474
|
-
|
|
475
|
-
service_statuses: Optional[ServiceStatuses] = FieldInfo(alias="serviceStatuses", default=None)
|
|
466
|
+
service_statuses: ServiceStatuses = FieldInfo(alias="serviceStatuses")
|
|
476
467
|
"""
|
|
477
468
|
An object of arrays which contains information about all services available for
|
|
478
469
|
the requested account.
|
|
479
470
|
"""
|
|
480
471
|
|
|
472
|
+
status: Literal["new", "trial", "trialend", "active", "integration", "paused", "preparation", "ready"]
|
|
473
|
+
"""Status of the account."""
|
|
474
|
+
|
|
475
|
+
country_code: Optional[str] = None
|
|
476
|
+
"""System field. The company country (ISO 3166-1 alpha-2 format)."""
|
|
477
|
+
|
|
478
|
+
custom_id: Optional[str] = None
|
|
479
|
+
"""The account custom ID."""
|
|
480
|
+
|
|
481
|
+
phone: Optional[str] = None
|
|
482
|
+
"""Phone of a user who registered the requested account."""
|
|
483
|
+
|
|
481
484
|
signup_process: Optional[Literal["sign_up_full", "sign_up_simple"]] = None
|
|
482
485
|
"""System field. Type of the account registration process."""
|
|
483
486
|
|
|
484
|
-
status: Optional[Literal["new", "trial", "trialend", "active", "integration", "paused", "preparation", "ready"]] = (
|
|
485
|
-
None
|
|
486
|
-
)
|
|
487
|
-
"""Status of the account."""
|
|
488
|
-
|
|
489
487
|
users: Optional[List[User]] = None
|
|
490
488
|
"""List of account users."""
|
|
491
489
|
|
gcore/types/iam/api_token.py
CHANGED
|
@@ -25,54 +25,54 @@ class ClientUserRole(BaseModel):
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class ClientUser(BaseModel):
|
|
28
|
-
client_id:
|
|
28
|
+
client_id: int
|
|
29
29
|
"""Account's ID."""
|
|
30
30
|
|
|
31
|
-
deleted:
|
|
31
|
+
deleted: bool
|
|
32
32
|
"""Deletion flag. If true, then the API token was deleted."""
|
|
33
33
|
|
|
34
|
-
role:
|
|
34
|
+
role: ClientUserRole
|
|
35
35
|
|
|
36
|
-
user_email:
|
|
36
|
+
user_email: str
|
|
37
37
|
"""User's email who issued the API token."""
|
|
38
38
|
|
|
39
|
-
user_id:
|
|
39
|
+
user_id: int
|
|
40
40
|
"""User's ID who issued the API token."""
|
|
41
41
|
|
|
42
|
-
user_name:
|
|
42
|
+
user_name: str
|
|
43
43
|
"""User's name who issued the API token."""
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
class APIToken(BaseModel):
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exp_date: str
|
|
50
|
-
"""
|
|
51
|
-
Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
|
|
52
|
-
null, then the API token will never expire.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
name: str
|
|
56
|
-
"""API token name."""
|
|
57
|
-
|
|
58
|
-
id: Optional[int] = None
|
|
47
|
+
id: int
|
|
59
48
|
"""API token ID."""
|
|
60
49
|
|
|
61
|
-
|
|
50
|
+
client_user: ClientUser
|
|
51
|
+
|
|
52
|
+
created: str
|
|
62
53
|
"""Date when the API token was issued (ISO 8086/RFC 3339 format), UTC."""
|
|
63
54
|
|
|
64
|
-
deleted:
|
|
55
|
+
deleted: bool
|
|
65
56
|
"""Deletion flag. If true, then the API token was deleted."""
|
|
66
57
|
|
|
67
|
-
|
|
68
|
-
"""
|
|
58
|
+
exp_date: Optional[str] = None
|
|
59
|
+
"""
|
|
60
|
+
Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
|
|
61
|
+
null, then the API token will never expire.
|
|
62
|
+
"""
|
|
69
63
|
|
|
70
|
-
expired:
|
|
64
|
+
expired: bool
|
|
71
65
|
"""Expiration flag.
|
|
72
66
|
|
|
73
67
|
If true, then the API token has expired. When an API token expires it will be
|
|
74
68
|
automatically deleted.
|
|
75
69
|
"""
|
|
76
70
|
|
|
77
|
-
last_usage:
|
|
71
|
+
last_usage: str
|
|
78
72
|
"""Date when the API token was last used (ISO 8086/RFC 3339 format), UTC."""
|
|
73
|
+
|
|
74
|
+
name: str
|
|
75
|
+
"""API token name."""
|
|
76
|
+
|
|
77
|
+
description: Optional[str] = None
|
|
78
|
+
"""API token description."""
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Optional
|
|
5
6
|
from typing_extensions import Literal, Required, TypedDict
|
|
6
7
|
|
|
7
8
|
__all__ = ["APITokenCreateParams", "ClientUser", "ClientUserRole"]
|
|
@@ -11,7 +12,7 @@ class APITokenCreateParams(TypedDict, total=False):
|
|
|
11
12
|
client_user: Required[ClientUser]
|
|
12
13
|
"""API token role."""
|
|
13
14
|
|
|
14
|
-
exp_date: Required[str]
|
|
15
|
+
exp_date: Required[Optional[str]]
|
|
15
16
|
"""
|
|
16
17
|
Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
|
|
17
18
|
null, then the API token will never expire.
|
|
@@ -25,57 +25,57 @@ class APITokenListItemClientUserRole(BaseModel):
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class APITokenListItemClientUser(BaseModel):
|
|
28
|
-
client_id:
|
|
28
|
+
client_id: int
|
|
29
29
|
"""Account's ID."""
|
|
30
30
|
|
|
31
|
-
deleted:
|
|
31
|
+
deleted: bool
|
|
32
32
|
"""Deletion flag. If true, then the API token was deleted."""
|
|
33
33
|
|
|
34
|
-
role:
|
|
34
|
+
role: APITokenListItemClientUserRole
|
|
35
35
|
|
|
36
|
-
user_email:
|
|
36
|
+
user_email: str
|
|
37
37
|
"""User's email who issued the API token."""
|
|
38
38
|
|
|
39
|
-
user_id:
|
|
39
|
+
user_id: int
|
|
40
40
|
"""User's ID who issued the API token."""
|
|
41
41
|
|
|
42
|
-
user_name:
|
|
42
|
+
user_name: str
|
|
43
43
|
"""User's name who issued the API token."""
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
class APITokenListItem(BaseModel):
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exp_date: str
|
|
50
|
-
"""
|
|
51
|
-
Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
|
|
52
|
-
null, then the API token will never expire.
|
|
53
|
-
"""
|
|
54
|
-
|
|
55
|
-
name: str
|
|
56
|
-
"""API token name."""
|
|
57
|
-
|
|
58
|
-
id: Optional[int] = None
|
|
47
|
+
id: int
|
|
59
48
|
"""API token ID."""
|
|
60
49
|
|
|
61
|
-
|
|
50
|
+
client_user: APITokenListItemClientUser
|
|
51
|
+
|
|
52
|
+
created: str
|
|
62
53
|
"""Date when the API token was issued (ISO 8086/RFC 3339 format), UTC."""
|
|
63
54
|
|
|
64
|
-
deleted:
|
|
55
|
+
deleted: bool
|
|
65
56
|
"""Deletion flag. If true, then the API token was deleted."""
|
|
66
57
|
|
|
67
|
-
|
|
68
|
-
"""
|
|
58
|
+
exp_date: Optional[str] = None
|
|
59
|
+
"""
|
|
60
|
+
Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
|
|
61
|
+
null, then the API token will never expire.
|
|
62
|
+
"""
|
|
69
63
|
|
|
70
|
-
expired:
|
|
64
|
+
expired: bool
|
|
71
65
|
"""Expiration flag.
|
|
72
66
|
|
|
73
67
|
If true, then the API token has expired. When an API token expires it will be
|
|
74
68
|
automatically deleted.
|
|
75
69
|
"""
|
|
76
70
|
|
|
77
|
-
last_usage:
|
|
71
|
+
last_usage: str
|
|
78
72
|
"""Date when the API token was last used (ISO 8086/RFC 3339 format), UTC."""
|
|
79
73
|
|
|
74
|
+
name: str
|
|
75
|
+
"""API token name."""
|
|
76
|
+
|
|
77
|
+
description: Optional[str] = None
|
|
78
|
+
"""API token description."""
|
|
79
|
+
|
|
80
80
|
|
|
81
81
|
APITokenList: TypeAlias = List[APITokenListItem]
|
gcore/types/iam/user_detailed.py
CHANGED
|
@@ -37,35 +37,35 @@ class Group(BaseModel):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class UserDetailed(BaseModel):
|
|
40
|
-
id:
|
|
40
|
+
id: int
|
|
41
41
|
"""User's ID."""
|
|
42
42
|
|
|
43
|
-
activated:
|
|
43
|
+
activated: bool
|
|
44
44
|
"""Email confirmation:
|
|
45
45
|
|
|
46
46
|
- `true` – user confirmed the email;
|
|
47
47
|
- `false` – user did not confirm the email.
|
|
48
48
|
"""
|
|
49
49
|
|
|
50
|
-
auth_types:
|
|
50
|
+
auth_types: List[Literal["password", "sso", "github", "google-oauth2"]]
|
|
51
51
|
"""System field. List of auth types available for the account."""
|
|
52
52
|
|
|
53
|
-
client:
|
|
53
|
+
client: float
|
|
54
54
|
"""User's account ID."""
|
|
55
55
|
|
|
56
|
-
client_and_roles:
|
|
56
|
+
client_and_roles: List[ClientAndRole]
|
|
57
57
|
"""List of user's clients. User can access to one or more clients."""
|
|
58
58
|
|
|
59
|
-
company:
|
|
59
|
+
company: str
|
|
60
60
|
"""User's company."""
|
|
61
61
|
|
|
62
|
-
deleted:
|
|
62
|
+
deleted: bool
|
|
63
63
|
"""Deletion flag. If `true` then user was deleted."""
|
|
64
64
|
|
|
65
|
-
email:
|
|
65
|
+
email: str
|
|
66
66
|
"""User's email address."""
|
|
67
67
|
|
|
68
|
-
groups:
|
|
68
|
+
groups: List[Group]
|
|
69
69
|
"""User's group in the current account.
|
|
70
70
|
|
|
71
71
|
IAM supports 5 groups:
|
|
@@ -77,10 +77,10 @@ class UserDetailed(BaseModel):
|
|
|
77
77
|
- Purge and Prefetch only (API+Web)
|
|
78
78
|
"""
|
|
79
79
|
|
|
80
|
-
is_active:
|
|
80
|
+
is_active: bool
|
|
81
81
|
"""User activity flag."""
|
|
82
82
|
|
|
83
|
-
lang:
|
|
83
|
+
lang: Literal["de", "en", "ru", "zh", "az"]
|
|
84
84
|
"""User's language.
|
|
85
85
|
|
|
86
86
|
Defines language of the control panel and email messages.
|
|
@@ -92,18 +92,18 @@ class UserDetailed(BaseModel):
|
|
|
92
92
|
phone: Optional[str] = None
|
|
93
93
|
"""User's phone."""
|
|
94
94
|
|
|
95
|
-
reseller:
|
|
95
|
+
reseller: int
|
|
96
96
|
"""Services provider ID."""
|
|
97
97
|
|
|
98
|
-
sso_auth:
|
|
98
|
+
sso_auth: bool
|
|
99
99
|
"""SSO authentication flag. If `true` then user can login via SAML SSO."""
|
|
100
100
|
|
|
101
|
-
two_fa:
|
|
101
|
+
two_fa: bool
|
|
102
102
|
"""Two-step verification:
|
|
103
103
|
|
|
104
104
|
- `true` – user enabled two-step verification;
|
|
105
105
|
- `false` – user disabled two-step verification.
|
|
106
106
|
"""
|
|
107
107
|
|
|
108
|
-
user_type:
|
|
108
|
+
user_type: Literal["common", "reseller", "seller"]
|
|
109
109
|
"""User's type."""
|
gcore/types/iam/user_invite.py
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
3
|
from ..._models import BaseModel
|
|
6
4
|
|
|
7
5
|
__all__ = ["UserInvite"]
|
|
8
6
|
|
|
9
7
|
|
|
10
8
|
class UserInvite(BaseModel):
|
|
11
|
-
status:
|
|
9
|
+
status: str
|
|
12
10
|
"""Status of the invitation."""
|
|
13
11
|
|
|
14
|
-
user_id:
|
|
12
|
+
user_id: int
|
|
15
13
|
"""Invited user ID."""
|
gcore/types/iam/user_update.py
CHANGED
|
@@ -37,35 +37,35 @@ class Group(BaseModel):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class UserUpdate(BaseModel):
|
|
40
|
-
id:
|
|
40
|
+
id: int
|
|
41
41
|
"""User's ID."""
|
|
42
42
|
|
|
43
|
-
activated:
|
|
43
|
+
activated: bool
|
|
44
44
|
"""Email confirmation:
|
|
45
45
|
|
|
46
46
|
- `true` – user confirmed the email;
|
|
47
47
|
- `false` – user did not confirm the email.
|
|
48
48
|
"""
|
|
49
49
|
|
|
50
|
-
auth_types:
|
|
50
|
+
auth_types: List[Literal["password", "sso", "github", "google-oauth2"]]
|
|
51
51
|
"""System field. List of auth types available for the account."""
|
|
52
52
|
|
|
53
|
-
client:
|
|
53
|
+
client: float
|
|
54
54
|
"""User's account ID."""
|
|
55
55
|
|
|
56
|
-
client_and_roles:
|
|
56
|
+
client_and_roles: List[ClientAndRole]
|
|
57
57
|
"""List of user's clients. User can access to one or more clients."""
|
|
58
58
|
|
|
59
|
-
company:
|
|
59
|
+
company: str
|
|
60
60
|
"""User's company."""
|
|
61
61
|
|
|
62
|
-
deleted:
|
|
62
|
+
deleted: bool
|
|
63
63
|
"""Deletion flag. If `true` then user was deleted."""
|
|
64
64
|
|
|
65
|
-
email:
|
|
65
|
+
email: str
|
|
66
66
|
"""User's email address."""
|
|
67
67
|
|
|
68
|
-
groups:
|
|
68
|
+
groups: List[Group]
|
|
69
69
|
"""User's group in the current account.
|
|
70
70
|
|
|
71
71
|
IAM supports 5 groups:
|
|
@@ -77,10 +77,10 @@ class UserUpdate(BaseModel):
|
|
|
77
77
|
- Purge and Prefetch only (API+Web)
|
|
78
78
|
"""
|
|
79
79
|
|
|
80
|
-
is_active:
|
|
80
|
+
is_active: bool
|
|
81
81
|
"""User activity flag."""
|
|
82
82
|
|
|
83
|
-
lang:
|
|
83
|
+
lang: Literal["de", "en", "ru", "zh", "az"]
|
|
84
84
|
"""User's language.
|
|
85
85
|
|
|
86
86
|
Defines language of the control panel and email messages.
|
|
@@ -92,18 +92,18 @@ class UserUpdate(BaseModel):
|
|
|
92
92
|
phone: Optional[str] = None
|
|
93
93
|
"""User's phone."""
|
|
94
94
|
|
|
95
|
-
reseller:
|
|
95
|
+
reseller: int
|
|
96
96
|
"""Services provider ID."""
|
|
97
97
|
|
|
98
|
-
sso_auth:
|
|
98
|
+
sso_auth: bool
|
|
99
99
|
"""SSO authentication flag. If `true` then user can login via SAML SSO."""
|
|
100
100
|
|
|
101
|
-
two_fa:
|
|
101
|
+
two_fa: bool
|
|
102
102
|
"""Two-step verification:
|
|
103
103
|
|
|
104
104
|
- `true` – user enabled two-step verification;
|
|
105
105
|
- `false` – user disabled two-step verification.
|
|
106
106
|
"""
|
|
107
107
|
|
|
108
|
-
user_type:
|
|
108
|
+
user_type: Literal["common", "reseller", "seller"]
|
|
109
109
|
"""User's type."""
|