gcore 0.3.0__py3-none-any.whl → 0.4.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 +2 -1
- gcore/_base_client.py +22 -0
- gcore/_client.py +9 -0
- gcore/_version.py +1 -1
- gcore/pagination.py +61 -1
- gcore/resources/__init__.py +14 -0
- gcore/resources/cloud/baremetal/flavors.py +11 -137
- gcore/resources/cloud/baremetal/images.py +10 -12
- gcore/resources/cloud/baremetal/servers.py +31 -28
- gcore/resources/cloud/billing_reservations.py +2 -2
- gcore/resources/cloud/file_shares/file_shares.py +7 -8
- gcore/resources/cloud/floating_ips.py +7 -12
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +31 -20
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +9 -10
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -2
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +8 -4
- gcore/resources/cloud/inference/deployments/deployments.py +10 -2
- gcore/resources/cloud/inference/registry_credentials.py +2 -2
- gcore/resources/cloud/inference/secrets.py +8 -8
- gcore/resources/cloud/instances/flavors.py +9 -233
- gcore/resources/cloud/instances/images.py +47 -37
- gcore/resources/cloud/instances/instances.py +47 -32
- gcore/resources/cloud/instances/interfaces.py +2 -2
- gcore/resources/cloud/ip_ranges.py +34 -2
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -2
- gcore/resources/cloud/load_balancers/listeners.py +17 -8
- gcore/resources/cloud/load_balancers/load_balancers.py +73 -21
- gcore/resources/cloud/load_balancers/metrics.py +2 -2
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +2 -2
- gcore/resources/cloud/load_balancers/pools/members.py +6 -2
- gcore/resources/cloud/networks/networks.py +81 -17
- gcore/resources/cloud/networks/routers.py +18 -18
- gcore/resources/cloud/networks/subnets.py +51 -11
- gcore/resources/cloud/projects.py +38 -24
- gcore/resources/cloud/quotas/quotas.py +6 -6
- gcore/resources/cloud/quotas/requests.py +8 -8
- gcore/resources/cloud/registries/artifacts.py +4 -4
- gcore/resources/cloud/registries/registries.py +14 -16
- gcore/resources/cloud/registries/repositories.py +4 -4
- gcore/resources/cloud/registries/tags.py +2 -2
- gcore/resources/cloud/registries/users.py +21 -22
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +20 -20
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -10
- gcore/resources/cloud/security_groups/rules.py +6 -6
- gcore/resources/cloud/security_groups/security_groups.py +70 -31
- gcore/resources/cloud/tasks.py +4 -4
- gcore/resources/cloud/users/role_assignments.py +12 -14
- gcore/resources/cloud/volumes.py +139 -49
- gcore/resources/iam/__init__.py +47 -0
- gcore/resources/iam/api_tokens.py +521 -0
- gcore/resources/iam/iam.py +199 -0
- gcore/resources/iam/users.py +642 -0
- gcore/resources/waap/__init__.py +0 -14
- gcore/resources/waap/waap.py +0 -32
- gcore/types/cloud/baremetal/__init__.py +0 -1
- gcore/types/cloud/baremetal/image_list_params.py +1 -5
- gcore/types/cloud/baremetal/server_create_params.py +4 -8
- gcore/types/cloud/baremetal/server_list_params.py +1 -5
- gcore/types/cloud/ddos_profile.py +9 -3
- gcore/types/cloud/file_share_create_params.py +3 -5
- gcore/types/cloud/floating_ip_create_params.py +2 -4
- gcore/types/cloud/floating_ip_list_params.py +1 -5
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +2 -3
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +2 -4
- gcore/types/cloud/health_monitor.py +6 -1
- gcore/types/cloud/instance_create_params.py +7 -8
- gcore/types/cloud/instance_list_params.py +1 -5
- gcore/types/cloud/instances/__init__.py +0 -2
- gcore/types/cloud/instances/image_create_from_volume_params.py +2 -4
- gcore/types/cloud/instances/image_list_params.py +1 -5
- gcore/types/cloud/instances/image_upload_params.py +2 -4
- gcore/types/cloud/load_balancer_create_params.py +8 -4
- gcore/types/cloud/load_balancer_list_params.py +1 -5
- gcore/types/cloud/load_balancer_update_params.py +24 -0
- gcore/types/cloud/load_balancers/pool_create_params.py +6 -1
- gcore/types/cloud/load_balancers/pool_update_params.py +6 -1
- gcore/types/cloud/load_balancers/pools/member_add_params.py +6 -1
- gcore/types/cloud/member.py +6 -1
- gcore/types/cloud/network_create_params.py +2 -3
- gcore/types/cloud/network_list_params.py +4 -5
- gcore/types/cloud/network_update_params.py +28 -2
- gcore/types/cloud/networks/router_list_params.py +2 -2
- gcore/types/cloud/networks/subnet_create_params.py +2 -3
- gcore/types/cloud/networks/subnet_list_params.py +1 -5
- gcore/types/cloud/networks/subnet_update_params.py +25 -0
- gcore/types/cloud/registries/__init__.py +1 -0
- gcore/types/cloud/registries/user_refresh_secret_response.py +31 -0
- gcore/types/cloud/reserved_fixed_ip_list_params.py +2 -2
- gcore/types/cloud/security_group_list_params.py +3 -7
- gcore/types/cloud/security_group_update_params.py +25 -0
- gcore/types/cloud/tag_update_map_param.py +2 -2
- gcore/types/cloud/volume_list_params.py +1 -5
- gcore/types/cloud/volume_update_params.py +29 -3
- gcore/types/iam/__init__.py +17 -0
- gcore/types/iam/account_overview.py +488 -0
- gcore/types/iam/api_token.py +78 -0
- gcore/types/iam/api_token_create.py +15 -0
- gcore/types/iam/api_token_create_params.py +42 -0
- gcore/types/iam/api_token_list.py +81 -0
- gcore/types/iam/api_token_list_params.py +41 -0
- gcore/types/iam/user.py +86 -0
- gcore/types/iam/user_detailed.py +104 -0
- gcore/types/iam/user_invite.py +15 -0
- gcore/types/iam/user_invite_params.py +37 -0
- gcore/types/iam/user_list_params.py +15 -0
- gcore/types/iam/user_update.py +104 -0
- gcore/types/iam/user_update_params.py +52 -0
- gcore/types/waap/__init__.py +0 -1
- gcore/types/waap/domains/custom_rule_create_params.py +7 -3
- gcore/types/waap/domains/custom_rule_update_params.py +7 -3
- gcore/types/waap/waap_custom_rule.py +7 -3
- {gcore-0.3.0.dist-info → gcore-0.4.0.dist-info}/METADATA +40 -3
- {gcore-0.3.0.dist-info → gcore-0.4.0.dist-info}/RECORD +115 -101
- gcore/resources/waap/clients.py +0 -135
- gcore/types/cloud/baremetal/flavor_list_suitable_params.py +0 -22
- gcore/types/cloud/instances/flavor_list_for_resize_params.py +0 -16
- gcore/types/cloud/instances/flavor_list_suitable_params.py +0 -59
- gcore/types/waap/client_me_response.py +0 -34
- {gcore-0.3.0.dist-info → gcore-0.4.0.dist-info}/WHEEL +0 -0
- {gcore-0.3.0.dist-info → gcore-0.4.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"AccountOverview",
|
|
12
|
+
"FreeFeatures",
|
|
13
|
+
"FreeFeaturesCdn",
|
|
14
|
+
"FreeFeaturesCloud",
|
|
15
|
+
"FreeFeaturesDDOS",
|
|
16
|
+
"FreeFeaturesDNS",
|
|
17
|
+
"FreeFeaturesStorage",
|
|
18
|
+
"FreeFeaturesStreaming",
|
|
19
|
+
"PaidFeatures",
|
|
20
|
+
"PaidFeaturesCdn",
|
|
21
|
+
"PaidFeaturesCloud",
|
|
22
|
+
"PaidFeaturesDDOS",
|
|
23
|
+
"PaidFeaturesDNS",
|
|
24
|
+
"PaidFeaturesStorage",
|
|
25
|
+
"PaidFeaturesStreaming",
|
|
26
|
+
"ServiceStatuses",
|
|
27
|
+
"ServiceStatusesCdn",
|
|
28
|
+
"ServiceStatusesCloud",
|
|
29
|
+
"ServiceStatusesDDOS",
|
|
30
|
+
"ServiceStatusesDNS",
|
|
31
|
+
"ServiceStatusesStorage",
|
|
32
|
+
"ServiceStatusesStreaming",
|
|
33
|
+
"User",
|
|
34
|
+
"UserGroup",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class FreeFeaturesCdn(BaseModel):
|
|
39
|
+
create_date: Optional[str] = None
|
|
40
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
41
|
+
|
|
42
|
+
feature_id: Optional[int] = None
|
|
43
|
+
"""Feature ID."""
|
|
44
|
+
|
|
45
|
+
free_feature_id: Optional[int] = None
|
|
46
|
+
"""Internal feature activation ID."""
|
|
47
|
+
|
|
48
|
+
name: Optional[str] = None
|
|
49
|
+
"""Name of the feature."""
|
|
50
|
+
|
|
51
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
52
|
+
"""Service's name."""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class FreeFeaturesCloud(BaseModel):
|
|
56
|
+
create_date: Optional[str] = None
|
|
57
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
58
|
+
|
|
59
|
+
feature_id: Optional[int] = None
|
|
60
|
+
"""Feature ID."""
|
|
61
|
+
|
|
62
|
+
free_feature_id: Optional[int] = None
|
|
63
|
+
"""Internal feature activation ID."""
|
|
64
|
+
|
|
65
|
+
name: Optional[str] = None
|
|
66
|
+
"""Name of the feature."""
|
|
67
|
+
|
|
68
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
69
|
+
"""Service's name."""
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class FreeFeaturesDDOS(BaseModel):
|
|
73
|
+
create_date: Optional[str] = None
|
|
74
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
75
|
+
|
|
76
|
+
feature_id: Optional[int] = None
|
|
77
|
+
"""Feature ID."""
|
|
78
|
+
|
|
79
|
+
free_feature_id: Optional[int] = None
|
|
80
|
+
"""Internal feature activation ID."""
|
|
81
|
+
|
|
82
|
+
name: Optional[str] = None
|
|
83
|
+
"""Name of the feature."""
|
|
84
|
+
|
|
85
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
86
|
+
"""Service's name."""
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class FreeFeaturesDNS(BaseModel):
|
|
90
|
+
create_date: Optional[str] = None
|
|
91
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
92
|
+
|
|
93
|
+
feature_id: Optional[int] = None
|
|
94
|
+
"""Feature ID."""
|
|
95
|
+
|
|
96
|
+
free_feature_id: Optional[int] = None
|
|
97
|
+
"""Internal feature activation ID."""
|
|
98
|
+
|
|
99
|
+
name: Optional[str] = None
|
|
100
|
+
"""Name of the feature."""
|
|
101
|
+
|
|
102
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
103
|
+
"""Service's name."""
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class FreeFeaturesStorage(BaseModel):
|
|
107
|
+
create_date: Optional[str] = None
|
|
108
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
109
|
+
|
|
110
|
+
feature_id: Optional[int] = None
|
|
111
|
+
"""Feature ID."""
|
|
112
|
+
|
|
113
|
+
free_feature_id: Optional[int] = None
|
|
114
|
+
"""Internal feature activation ID."""
|
|
115
|
+
|
|
116
|
+
name: Optional[str] = None
|
|
117
|
+
"""Name of the feature."""
|
|
118
|
+
|
|
119
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
120
|
+
"""Service's name."""
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class FreeFeaturesStreaming(BaseModel):
|
|
124
|
+
create_date: Optional[str] = None
|
|
125
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
126
|
+
|
|
127
|
+
feature_id: Optional[int] = None
|
|
128
|
+
"""Feature ID."""
|
|
129
|
+
|
|
130
|
+
free_feature_id: Optional[int] = None
|
|
131
|
+
"""Internal feature activation ID."""
|
|
132
|
+
|
|
133
|
+
name: Optional[str] = None
|
|
134
|
+
"""Name of the feature."""
|
|
135
|
+
|
|
136
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
137
|
+
"""Service's name."""
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
class FreeFeatures(BaseModel):
|
|
141
|
+
cdn: Optional[List[FreeFeaturesCdn]] = FieldInfo(alias="CDN", default=None)
|
|
142
|
+
|
|
143
|
+
cloud: Optional[List[FreeFeaturesCloud]] = FieldInfo(alias="CLOUD", default=None)
|
|
144
|
+
|
|
145
|
+
ddos: Optional[List[FreeFeaturesDDOS]] = FieldInfo(alias="DDOS", default=None)
|
|
146
|
+
|
|
147
|
+
dns: Optional[List[FreeFeaturesDNS]] = FieldInfo(alias="DNS", default=None)
|
|
148
|
+
|
|
149
|
+
storage: Optional[List[FreeFeaturesStorage]] = FieldInfo(alias="STORAGE", default=None)
|
|
150
|
+
|
|
151
|
+
streaming: Optional[List[FreeFeaturesStreaming]] = FieldInfo(alias="STREAMING", default=None)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class PaidFeaturesCdn(BaseModel):
|
|
155
|
+
create_date: Optional[str] = None
|
|
156
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
157
|
+
|
|
158
|
+
feature_id: Optional[int] = None
|
|
159
|
+
"""Feature ID."""
|
|
160
|
+
|
|
161
|
+
name: Optional[str] = None
|
|
162
|
+
"""Name of the feature."""
|
|
163
|
+
|
|
164
|
+
paid_feature_id: Optional[int] = None
|
|
165
|
+
"""Internal feature activation ID."""
|
|
166
|
+
|
|
167
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
168
|
+
"""Service's name."""
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
class PaidFeaturesCloud(BaseModel):
|
|
172
|
+
create_date: Optional[str] = None
|
|
173
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
174
|
+
|
|
175
|
+
feature_id: Optional[int] = None
|
|
176
|
+
"""Feature ID."""
|
|
177
|
+
|
|
178
|
+
name: Optional[str] = None
|
|
179
|
+
"""Name of the feature."""
|
|
180
|
+
|
|
181
|
+
paid_feature_id: Optional[int] = None
|
|
182
|
+
"""Internal feature activation ID."""
|
|
183
|
+
|
|
184
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
185
|
+
"""Service's name."""
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class PaidFeaturesDDOS(BaseModel):
|
|
189
|
+
create_date: Optional[str] = None
|
|
190
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
191
|
+
|
|
192
|
+
feature_id: Optional[int] = None
|
|
193
|
+
"""Feature ID."""
|
|
194
|
+
|
|
195
|
+
name: Optional[str] = None
|
|
196
|
+
"""Name of the feature."""
|
|
197
|
+
|
|
198
|
+
paid_feature_id: Optional[int] = None
|
|
199
|
+
"""Internal feature activation ID."""
|
|
200
|
+
|
|
201
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
202
|
+
"""Service's name."""
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class PaidFeaturesDNS(BaseModel):
|
|
206
|
+
create_date: Optional[str] = None
|
|
207
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
208
|
+
|
|
209
|
+
feature_id: Optional[int] = None
|
|
210
|
+
"""Feature ID."""
|
|
211
|
+
|
|
212
|
+
name: Optional[str] = None
|
|
213
|
+
"""Name of the feature."""
|
|
214
|
+
|
|
215
|
+
paid_feature_id: Optional[int] = None
|
|
216
|
+
"""Internal feature activation ID."""
|
|
217
|
+
|
|
218
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
219
|
+
"""Service's name."""
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
class PaidFeaturesStorage(BaseModel):
|
|
223
|
+
create_date: Optional[str] = None
|
|
224
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
225
|
+
|
|
226
|
+
feature_id: Optional[int] = None
|
|
227
|
+
"""Feature ID."""
|
|
228
|
+
|
|
229
|
+
name: Optional[str] = None
|
|
230
|
+
"""Name of the feature."""
|
|
231
|
+
|
|
232
|
+
paid_feature_id: Optional[int] = None
|
|
233
|
+
"""Internal feature activation ID."""
|
|
234
|
+
|
|
235
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
236
|
+
"""Service's name."""
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
class PaidFeaturesStreaming(BaseModel):
|
|
240
|
+
create_date: Optional[str] = None
|
|
241
|
+
"""Date and time when the feature was activated (ISO 8086/RFC 3339 format)."""
|
|
242
|
+
|
|
243
|
+
feature_id: Optional[int] = None
|
|
244
|
+
"""Feature ID."""
|
|
245
|
+
|
|
246
|
+
name: Optional[str] = None
|
|
247
|
+
"""Name of the feature."""
|
|
248
|
+
|
|
249
|
+
paid_feature_id: Optional[int] = None
|
|
250
|
+
"""Internal feature activation ID."""
|
|
251
|
+
|
|
252
|
+
service: Optional[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]] = None
|
|
253
|
+
"""Service's name."""
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
class PaidFeatures(BaseModel):
|
|
257
|
+
cdn: Optional[List[PaidFeaturesCdn]] = FieldInfo(alias="CDN", default=None)
|
|
258
|
+
|
|
259
|
+
cloud: Optional[List[PaidFeaturesCloud]] = FieldInfo(alias="CLOUD", default=None)
|
|
260
|
+
|
|
261
|
+
ddos: Optional[List[PaidFeaturesDDOS]] = FieldInfo(alias="DDOS", default=None)
|
|
262
|
+
|
|
263
|
+
dns: Optional[List[PaidFeaturesDNS]] = FieldInfo(alias="DNS", default=None)
|
|
264
|
+
|
|
265
|
+
storage: Optional[List[PaidFeaturesStorage]] = FieldInfo(alias="STORAGE", default=None)
|
|
266
|
+
|
|
267
|
+
streaming: Optional[List[PaidFeaturesStreaming]] = FieldInfo(alias="STREAMING", default=None)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
class ServiceStatusesCdn(BaseModel):
|
|
271
|
+
enabled: Optional[bool] = None
|
|
272
|
+
"""`true` - service is available in the Control Panel."""
|
|
273
|
+
|
|
274
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "paused", "activating", "deleted"]] = None
|
|
275
|
+
"""Status of the service."""
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
class ServiceStatusesCloud(BaseModel):
|
|
279
|
+
enabled: Optional[bool] = None
|
|
280
|
+
"""`true` - service is available in the Control Panel."""
|
|
281
|
+
|
|
282
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "paused", "activating", "deleted"]] = None
|
|
283
|
+
"""Status of the service."""
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
class ServiceStatusesDDOS(BaseModel):
|
|
287
|
+
enabled: Optional[bool] = None
|
|
288
|
+
"""`true` - service is available in the Control Panel."""
|
|
289
|
+
|
|
290
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "paused", "activating", "deleted"]] = None
|
|
291
|
+
"""Status of the service."""
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
class ServiceStatusesDNS(BaseModel):
|
|
295
|
+
enabled: Optional[bool] = None
|
|
296
|
+
"""`true` - service is available in the Control Panel."""
|
|
297
|
+
|
|
298
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "paused", "activating", "deleted"]] = None
|
|
299
|
+
"""Status of the service."""
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
class ServiceStatusesStorage(BaseModel):
|
|
303
|
+
enabled: Optional[bool] = None
|
|
304
|
+
"""`true` - service is available in the Control Panel."""
|
|
305
|
+
|
|
306
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "paused", "activating", "deleted"]] = None
|
|
307
|
+
"""Status of the service."""
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class ServiceStatusesStreaming(BaseModel):
|
|
311
|
+
enabled: Optional[bool] = None
|
|
312
|
+
"""`true` - service is available in the Control Panel."""
|
|
313
|
+
|
|
314
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "paused", "activating", "deleted"]] = None
|
|
315
|
+
"""Status of the service."""
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
class ServiceStatuses(BaseModel):
|
|
319
|
+
cdn: Optional[ServiceStatusesCdn] = FieldInfo(alias="CDN", default=None)
|
|
320
|
+
|
|
321
|
+
cloud: Optional[ServiceStatusesCloud] = FieldInfo(alias="CLOUD", default=None)
|
|
322
|
+
|
|
323
|
+
ddos: Optional[ServiceStatusesDDOS] = FieldInfo(alias="DDOS", default=None)
|
|
324
|
+
|
|
325
|
+
dns: Optional[ServiceStatusesDNS] = FieldInfo(alias="DNS", default=None)
|
|
326
|
+
|
|
327
|
+
storage: Optional[ServiceStatusesStorage] = FieldInfo(alias="STORAGE", default=None)
|
|
328
|
+
|
|
329
|
+
streaming: Optional[ServiceStatusesStreaming] = FieldInfo(alias="STREAMING", default=None)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
class UserGroup(BaseModel):
|
|
333
|
+
id: Optional[int] = None
|
|
334
|
+
"""Group's ID: Possible values are:
|
|
335
|
+
|
|
336
|
+
- 1 - Administrators* 2 - Users* 5 - Engineers* 3009 - Purge and Prefetch only
|
|
337
|
+
(API+Web)* 3022 - Purge and Prefetch only (API)
|
|
338
|
+
"""
|
|
339
|
+
|
|
340
|
+
name: Optional[
|
|
341
|
+
Literal[
|
|
342
|
+
"Users", "Administrators", "Engineers", "Purge and Prefetch only (API)", "Purge and Prefetch only (API+Web)"
|
|
343
|
+
]
|
|
344
|
+
] = None
|
|
345
|
+
"""Group's name."""
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
class User(BaseModel):
|
|
349
|
+
id: Optional[int] = None
|
|
350
|
+
"""User's ID."""
|
|
351
|
+
|
|
352
|
+
activated: Optional[bool] = None
|
|
353
|
+
"""Email confirmation:
|
|
354
|
+
|
|
355
|
+
- `true` – user confirmed the email;
|
|
356
|
+
- `false` – user did not confirm the email.
|
|
357
|
+
"""
|
|
358
|
+
|
|
359
|
+
auth_types: Optional[List[Literal["password", "sso", "github", "google-oauth2"]]] = None
|
|
360
|
+
"""System field. List of auth types available for the account."""
|
|
361
|
+
|
|
362
|
+
client: Optional[float] = None
|
|
363
|
+
"""User's account ID."""
|
|
364
|
+
|
|
365
|
+
company: Optional[str] = None
|
|
366
|
+
"""User's company."""
|
|
367
|
+
|
|
368
|
+
deleted: Optional[bool] = None
|
|
369
|
+
"""Deletion flag. If `true` then user was deleted."""
|
|
370
|
+
|
|
371
|
+
email: Optional[str] = None
|
|
372
|
+
"""User's email address."""
|
|
373
|
+
|
|
374
|
+
groups: Optional[List[UserGroup]] = None
|
|
375
|
+
"""User's group in the current account. IAM supports 5 groups:
|
|
376
|
+
|
|
377
|
+
- Users
|
|
378
|
+
- Administrators
|
|
379
|
+
- Engineers
|
|
380
|
+
- Purge and Prefetch only (API)
|
|
381
|
+
- Purge and Prefetch only (API+Web)
|
|
382
|
+
"""
|
|
383
|
+
|
|
384
|
+
lang: Optional[Literal["de", "en", "ru", "zh", "az"]] = None
|
|
385
|
+
"""User's language. Defines language of the control panel and email messages."""
|
|
386
|
+
|
|
387
|
+
name: Optional[str] = None
|
|
388
|
+
"""User's name."""
|
|
389
|
+
|
|
390
|
+
phone: Optional[str] = None
|
|
391
|
+
"""User's phone."""
|
|
392
|
+
|
|
393
|
+
reseller: Optional[int] = None
|
|
394
|
+
"""Services provider ID."""
|
|
395
|
+
|
|
396
|
+
sso_auth: Optional[bool] = None
|
|
397
|
+
"""SSO authentication flag. If `true` then user can login via SAML SSO."""
|
|
398
|
+
|
|
399
|
+
two_fa: Optional[bool] = None
|
|
400
|
+
"""Two-step verification:
|
|
401
|
+
|
|
402
|
+
- `true` – user enabled two-step verification;
|
|
403
|
+
- `false` – user disabled two-step verification.
|
|
404
|
+
"""
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
class AccountOverview(BaseModel):
|
|
408
|
+
id: Optional[int] = None
|
|
409
|
+
"""The account ID."""
|
|
410
|
+
|
|
411
|
+
bill_type: Optional[str] = None
|
|
412
|
+
"""System field. Billing type of the account."""
|
|
413
|
+
|
|
414
|
+
capabilities: Optional[List[Literal["CDN", "STORAGE", "STREAMING", "DNS", "DDOS", "CLOUD"]]] = None
|
|
415
|
+
"""System field. List of services available for the account."""
|
|
416
|
+
|
|
417
|
+
company_name: Optional[str] = FieldInfo(alias="companyName", default=None)
|
|
418
|
+
"""The company name."""
|
|
419
|
+
|
|
420
|
+
country_code: Optional[str] = None
|
|
421
|
+
"""System field. The company country (ISO 3166-1 alpha-2 format)."""
|
|
422
|
+
|
|
423
|
+
current_user: Optional[int] = FieldInfo(alias="currentUser", default=None)
|
|
424
|
+
"""ID of the current user."""
|
|
425
|
+
|
|
426
|
+
custom_id: Optional[str] = None
|
|
427
|
+
"""The account custom ID."""
|
|
428
|
+
|
|
429
|
+
deleted: Optional[bool] = None
|
|
430
|
+
"""The field shows the status of the account:
|
|
431
|
+
|
|
432
|
+
- `true` – the account has been deleted
|
|
433
|
+
- `false` – the account is not deleted
|
|
434
|
+
"""
|
|
435
|
+
|
|
436
|
+
email: Optional[str] = None
|
|
437
|
+
"""The account email."""
|
|
438
|
+
|
|
439
|
+
entry_base_domain: Optional[str] = FieldInfo(alias="entryBaseDomain", default=None)
|
|
440
|
+
"""System field. Control panel domain."""
|
|
441
|
+
|
|
442
|
+
free_features: Optional[FreeFeatures] = FieldInfo(alias="freeFeatures", default=None)
|
|
443
|
+
"""
|
|
444
|
+
An object of arrays which contains information about free features available for
|
|
445
|
+
the requested account.
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
has_active_admin: Optional[bool] = None
|
|
449
|
+
"""System field."""
|
|
450
|
+
|
|
451
|
+
is_test: Optional[bool] = None
|
|
452
|
+
"""System field:
|
|
453
|
+
|
|
454
|
+
- `true` — a test account;
|
|
455
|
+
- `false` — a production account.
|
|
456
|
+
"""
|
|
457
|
+
|
|
458
|
+
name: Optional[str] = None
|
|
459
|
+
"""Name of a user who registered the requested account."""
|
|
460
|
+
|
|
461
|
+
paid_features: Optional[PaidFeatures] = FieldInfo(alias="paidFeatures", default=None)
|
|
462
|
+
"""
|
|
463
|
+
An object of arrays which contains information about paid features available for
|
|
464
|
+
the requested account.
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
phone: Optional[str] = None
|
|
468
|
+
"""Phone of a user who registered the requested account."""
|
|
469
|
+
|
|
470
|
+
service_statuses: Optional[ServiceStatuses] = FieldInfo(alias="serviceStatuses", default=None)
|
|
471
|
+
"""
|
|
472
|
+
An object of arrays which contains information about all services available for
|
|
473
|
+
the requested account.
|
|
474
|
+
"""
|
|
475
|
+
|
|
476
|
+
signup_process: Optional[Literal["sign_up_full", "sign_up_simple"]] = None
|
|
477
|
+
"""System field. Type of the account registration process."""
|
|
478
|
+
|
|
479
|
+
status: Optional[Literal["new", "trial", "trialend", "active", "integration", "paused", "preparation", "ready"]] = (
|
|
480
|
+
None
|
|
481
|
+
)
|
|
482
|
+
"""Status of the account."""
|
|
483
|
+
|
|
484
|
+
users: Optional[List[User]] = None
|
|
485
|
+
"""List of account users."""
|
|
486
|
+
|
|
487
|
+
website: Optional[str] = None
|
|
488
|
+
"""The company website."""
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from ..._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["APIToken", "ClientUser", "ClientUserRole"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ClientUserRole(BaseModel):
|
|
12
|
+
id: Optional[int] = None
|
|
13
|
+
"""Group's ID: Possible values are:
|
|
14
|
+
|
|
15
|
+
- 1 - Administrators* 2 - Users* 5 - Engineers* 3009 - Purge and Prefetch only
|
|
16
|
+
(API+Web)* 3022 - Purge and Prefetch only (API)
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
name: Optional[
|
|
20
|
+
Literal[
|
|
21
|
+
"Users", "Administrators", "Engineers", "Purge and Prefetch only (API)", "Purge and Prefetch only (API+Web)"
|
|
22
|
+
]
|
|
23
|
+
] = None
|
|
24
|
+
"""Group's name."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ClientUser(BaseModel):
|
|
28
|
+
client_id: Optional[int] = None
|
|
29
|
+
"""Account's ID."""
|
|
30
|
+
|
|
31
|
+
deleted: Optional[bool] = None
|
|
32
|
+
"""Deletion flag. If true, then the API token was deleted."""
|
|
33
|
+
|
|
34
|
+
role: Optional[ClientUserRole] = None
|
|
35
|
+
|
|
36
|
+
user_email: Optional[str] = None
|
|
37
|
+
"""User's email who issued the API token."""
|
|
38
|
+
|
|
39
|
+
user_id: Optional[int] = None
|
|
40
|
+
"""User's ID who issued the API token."""
|
|
41
|
+
|
|
42
|
+
user_name: Optional[str] = None
|
|
43
|
+
"""User's name who issued the API token."""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class APIToken(BaseModel):
|
|
47
|
+
client_user: ClientUser
|
|
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
|
|
59
|
+
"""API token ID."""
|
|
60
|
+
|
|
61
|
+
created: Optional[str] = None
|
|
62
|
+
"""Date when the API token was issued (ISO 8086/RFC 3339 format), UTC."""
|
|
63
|
+
|
|
64
|
+
deleted: Optional[bool] = None
|
|
65
|
+
"""Deletion flag. If true, then the API token was deleted."""
|
|
66
|
+
|
|
67
|
+
description: Optional[str] = None
|
|
68
|
+
"""API token description."""
|
|
69
|
+
|
|
70
|
+
expired: Optional[bool] = None
|
|
71
|
+
"""Expiration flag.
|
|
72
|
+
|
|
73
|
+
If true, then the API token has expired. When an API token expires it will be
|
|
74
|
+
automatically deleted.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
last_usage: Optional[str] = None
|
|
78
|
+
"""Date when the API token was last used (ISO 8086/RFC 3339 format), UTC."""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["APITokenCreate"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class APITokenCreate(BaseModel):
|
|
11
|
+
token: Optional[str] = None
|
|
12
|
+
"""
|
|
13
|
+
API token. Copy it, because you will not be able to get it again. We do not
|
|
14
|
+
store tokens. All responsibility for token storage and usage is on the issuer.
|
|
15
|
+
"""
|
|
@@ -0,0 +1,42 @@
|
|
|
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 Literal, Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["APITokenCreateParams", "ClientUser", "ClientUserRole"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class APITokenCreateParams(TypedDict, total=False):
|
|
11
|
+
client_user: Required[ClientUser]
|
|
12
|
+
"""API token role."""
|
|
13
|
+
|
|
14
|
+
exp_date: Required[str]
|
|
15
|
+
"""
|
|
16
|
+
Date when the API token becomes expired (ISO 8086/RFC 3339 format), UTC. If
|
|
17
|
+
null, then the API token will never expire.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: Required[str]
|
|
21
|
+
"""API token name."""
|
|
22
|
+
|
|
23
|
+
description: str
|
|
24
|
+
"""API token description."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ClientUserRole(TypedDict, total=False):
|
|
28
|
+
id: int
|
|
29
|
+
"""Group's ID: Possible values are:
|
|
30
|
+
|
|
31
|
+
- 1 - Administrators* 2 - Users* 5 - Engineers* 3009 - Purge and Prefetch only
|
|
32
|
+
(API+Web)* 3022 - Purge and Prefetch only (API)
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
name: Literal[
|
|
36
|
+
"Users", "Administrators", "Engineers", "Purge and Prefetch only (API)", "Purge and Prefetch only (API+Web)"
|
|
37
|
+
]
|
|
38
|
+
"""Group's name."""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class ClientUser(TypedDict, total=False):
|
|
42
|
+
role: ClientUserRole
|