gcore 0.11.0__py3-none-any.whl → 0.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/_version.py +1 -1
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +608 -0
- gcore/resources/cloud/volumes.py +1121 -219
- gcore/resources/storage/storage.py +18 -14
- gcore/types/storage/storage_update_params.py +4 -4
- {gcore-0.11.0.dist-info → gcore-0.12.0.dist-info}/METADATA +1 -1
- {gcore-0.11.0.dist-info → gcore-0.12.0.dist-info}/RECORD +9 -9
- {gcore-0.11.0.dist-info → gcore-0.12.0.dist-info}/WHEEL +0 -0
- {gcore-0.11.0.dist-info → gcore-0.12.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -168,14 +168,16 @@ class StorageResource(SyncAPIResource):
|
|
|
168
168
|
extra_body: Body | None = None,
|
|
169
169
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
170
170
|
) -> Storage:
|
|
171
|
-
"""
|
|
172
|
-
|
|
171
|
+
"""Updates storage configuration such as expiration date and server alias.
|
|
172
|
+
|
|
173
|
+
Used for
|
|
174
|
+
SFTP storages.
|
|
173
175
|
|
|
174
176
|
Args:
|
|
175
|
-
expires:
|
|
176
|
-
expiration.
|
|
177
|
+
expires: Duration when the storage should expire in format like "1 years 6 months 2 weeks
|
|
178
|
+
3 days 5 hours 10 minutes 15 seconds". Set empty to remove expiration.
|
|
177
179
|
|
|
178
|
-
server_alias: Custom domain alias for accessing the storage.
|
|
180
|
+
server_alias: Custom domain alias for accessing the storage. Set empty to remove alias.
|
|
179
181
|
|
|
180
182
|
extra_headers: Send extra headers
|
|
181
183
|
|
|
@@ -185,8 +187,8 @@ class StorageResource(SyncAPIResource):
|
|
|
185
187
|
|
|
186
188
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
187
189
|
"""
|
|
188
|
-
return self.
|
|
189
|
-
f"/storage/provisioning/
|
|
190
|
+
return self._patch(
|
|
191
|
+
f"/storage/provisioning/v2/storage/{storage_id}",
|
|
190
192
|
body=maybe_transform(
|
|
191
193
|
{
|
|
192
194
|
"expires": expires,
|
|
@@ -568,14 +570,16 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
568
570
|
extra_body: Body | None = None,
|
|
569
571
|
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
570
572
|
) -> Storage:
|
|
571
|
-
"""
|
|
572
|
-
|
|
573
|
+
"""Updates storage configuration such as expiration date and server alias.
|
|
574
|
+
|
|
575
|
+
Used for
|
|
576
|
+
SFTP storages.
|
|
573
577
|
|
|
574
578
|
Args:
|
|
575
|
-
expires:
|
|
576
|
-
expiration.
|
|
579
|
+
expires: Duration when the storage should expire in format like "1 years 6 months 2 weeks
|
|
580
|
+
3 days 5 hours 10 minutes 15 seconds". Set empty to remove expiration.
|
|
577
581
|
|
|
578
|
-
server_alias: Custom domain alias for accessing the storage.
|
|
582
|
+
server_alias: Custom domain alias for accessing the storage. Set empty to remove alias.
|
|
579
583
|
|
|
580
584
|
extra_headers: Send extra headers
|
|
581
585
|
|
|
@@ -585,8 +589,8 @@ class AsyncStorageResource(AsyncAPIResource):
|
|
|
585
589
|
|
|
586
590
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
587
591
|
"""
|
|
588
|
-
return await self.
|
|
589
|
-
f"/storage/provisioning/
|
|
592
|
+
return await self._patch(
|
|
593
|
+
f"/storage/provisioning/v2/storage/{storage_id}",
|
|
590
594
|
body=await async_maybe_transform(
|
|
591
595
|
{
|
|
592
596
|
"expires": expires,
|
|
@@ -9,10 +9,10 @@ __all__ = ["StorageUpdateParams"]
|
|
|
9
9
|
|
|
10
10
|
class StorageUpdateParams(TypedDict, total=False):
|
|
11
11
|
expires: str
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
"""
|
|
13
|
+
Duration when the storage should expire in format like "1 years 6 months 2 weeks
|
|
14
|
+
3 days 5 hours 10 minutes 15 seconds". Set empty to remove expiration.
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
server_alias: str
|
|
18
|
-
"""Custom domain alias for accessing the storage.
|
|
18
|
+
"""Custom domain alias for accessing the storage. Set empty to remove alias."""
|
|
@@ -11,7 +11,7 @@ gcore/_resource.py,sha256=wjIMnFffh-DZDdpBCgdDCdoXR2TPhpAosw7rElBSpYo,1094
|
|
|
11
11
|
gcore/_response.py,sha256=V1N02BVR5uoyxmvzOS3O579oe_PkeA4eyM_Hzodv9EU,28782
|
|
12
12
|
gcore/_streaming.py,sha256=ICh9tioDlP6Uvmis9p5Aieefqhjfhu6xLCJqDSDIqK4,10096
|
|
13
13
|
gcore/_types.py,sha256=a1BT4LrPlMIBjEiuDZs7tEgtl7rmOuZScTpDYVKuCWU,7295
|
|
14
|
-
gcore/_version.py,sha256=
|
|
14
|
+
gcore/_version.py,sha256=2jiR-hEsxRG81NudmaW_HNZCaoH3pFTTAZBJ1uQuiTk,158
|
|
15
15
|
gcore/pagination.py,sha256=vRpi4H_oQAPcGbdX7r3hpnXulNB3WQ_vqqI3mBaJHQg,9961
|
|
16
16
|
gcore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
gcore/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
@@ -43,7 +43,7 @@ gcore/resources/cloud/secrets.py,sha256=1CjKZsd1NlUEQV_mWPjcHG8YxGz8VNM25HzsVrkW
|
|
|
43
43
|
gcore/resources/cloud/ssh_keys.py,sha256=eJTqhShwMkxMV1UObWTT5y3MLnUsUofbD79Jtc_P2lY,23724
|
|
44
44
|
gcore/resources/cloud/tasks.py,sha256=V-PsCKOA27kBk9ouzckIBGMHYwDPYZdgHxZcGeWb9Aw,31431
|
|
45
45
|
gcore/resources/cloud/usage_reports.py,sha256=ePI7JDHeyriPXnLmHenMLK2F3yVSTwjF0L6E6yxFrOE,12726
|
|
46
|
-
gcore/resources/cloud/volumes.py,sha256=
|
|
46
|
+
gcore/resources/cloud/volumes.py,sha256=pNDVbUyMUfz-QzpuW2BfjAZfqvDQyOl893ZlD-bz1Ro,110025
|
|
47
47
|
gcore/resources/cloud/baremetal/__init__.py,sha256=IuBkP5vf0P9cHUGzYJs3_Ke09f6btmHF52-_uS_lxm0,1967
|
|
48
48
|
gcore/resources/cloud/baremetal/baremetal.py,sha256=Lv3NvaU7U-KR_-4qbUVDrRODZoglsI85g-Gtjhvm2vc,5909
|
|
49
49
|
gcore/resources/cloud/baremetal/flavors.py,sha256=ZGSFbiDsZfXSOG-w6Bi9oWqc6vH75ovGbsv5In20jWw,9780
|
|
@@ -113,7 +113,7 @@ gcore/resources/cloud/registries/repositories.py,sha256=vbSv32w527YyMGApjmjJP_9R
|
|
|
113
113
|
gcore/resources/cloud/registries/tags.py,sha256=OirEjKeOGaUIRA6Nh-D-jA77bV_4RhrKMjh5F5nPHKQ,7271
|
|
114
114
|
gcore/resources/cloud/registries/users.py,sha256=HI8pYW6-x46jXmX5NyYtKZXNlxOw1CIl_BqHUUy8VVs,26867
|
|
115
115
|
gcore/resources/cloud/reserved_fixed_ips/__init__.py,sha256=mUobCCb_OV1iWtJaH0ssP6lrcodgQoJbpG_yPXqC_Q4,1095
|
|
116
|
-
gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py,sha256=
|
|
116
|
+
gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py,sha256=VR1otpBDq9he43k7c0fcJOrnL47zcX8TldZKuYyAOH0,62441
|
|
117
117
|
gcore/resources/cloud/reserved_fixed_ips/vip.py,sha256=BvivEVkkPPwH6lcB0z0Fbe5UvAnpFLr-mwO1M8mO-3o,23464
|
|
118
118
|
gcore/resources/cloud/security_groups/__init__.py,sha256=_Pz7mSfMPkKbBCfiOgD79Q2CVDbpB4z86kcgKt_n2NQ,1094
|
|
119
119
|
gcore/resources/cloud/security_groups/rules.py,sha256=GD9yFWc0nLvLesXjG9IHTz8O9RdKK23Xkp8XVBjdkTY,23240
|
|
@@ -156,7 +156,7 @@ gcore/resources/storage/__init__.py,sha256=gwyyqNXHRKYTfyxCACoRr2-w8l4Yhec3flOCs
|
|
|
156
156
|
gcore/resources/storage/credentials.py,sha256=2XkbpBXoCEFa2lwvBk9AScg-BVkuyIC0iOd-YJHot98,8872
|
|
157
157
|
gcore/resources/storage/locations.py,sha256=HMaKCDFiDOf2I0mKvwzE_KFypIomJiCNTcYFyrIIeZY,6907
|
|
158
158
|
gcore/resources/storage/statistics.py,sha256=Sw9bCjCEb4xeI1Xsrwh1gKpkHmOUJxeoRQoPDSniW3s,14510
|
|
159
|
-
gcore/resources/storage/storage.py,sha256=
|
|
159
|
+
gcore/resources/storage/storage.py,sha256=b7evv3kLdS45NMGo9xW2ZFt3w0sGsKOfQDVIHpM9AVY,40728
|
|
160
160
|
gcore/resources/storage/buckets/__init__.py,sha256=44GAjXUD0U4TxY5xKP5BLreVNXRaB-3_p9bKD0D8n1s,1928
|
|
161
161
|
gcore/resources/storage/buckets/buckets.py,sha256=-quT6kxRl-82oRG9VhWu1b1890jQScxy_W2bRRihD1w,17316
|
|
162
162
|
gcore/resources/storage/buckets/cors.py,sha256=3hIpDOEtRDaj82c9-PKl3oD3P-RZr_-xNDEyygjI6xg,10342
|
|
@@ -662,7 +662,7 @@ gcore/types/storage/storage.py,sha256=EweaEopWpEgU2ayYWfX9op2LBbUNKiFnpYyUJbvaAn
|
|
|
662
662
|
gcore/types/storage/storage_create_params.py,sha256=nItMG_PZKkdaObl9BjI8MmayVL-ANE7O1248mYOChmk,1387
|
|
663
663
|
gcore/types/storage/storage_list_params.py,sha256=WGYXW5qrRIKLKaMMikd8g0QzjGenO-wmY3uMPr8y_W8,954
|
|
664
664
|
gcore/types/storage/storage_restore_params.py,sha256=xh8mgIRPKJRMpGv5Iri2uYtGChN9hEpBl5zoIhpORA0,272
|
|
665
|
-
gcore/types/storage/storage_update_params.py,sha256=
|
|
665
|
+
gcore/types/storage/storage_update_params.py,sha256=sieW9OJlAL-mMkHhoHB-NVzS9wN97wT717VuBjGQ4go,551
|
|
666
666
|
gcore/types/storage/usage_series.py,sha256=hne_NN-TEUeamo7uIPBoaoUeAkdEZ3Yuq_8QhGeDXUE,7265
|
|
667
667
|
gcore/types/storage/usage_total.py,sha256=w70OOawdUzBih-Tj2s_gCV8dMmDGINn6Jl1awnmK5bw,1854
|
|
668
668
|
gcore/types/storage/buckets/__init__.py,sha256=gy-3ZKaA-hUCFF6OK3GALKxy2EXgIWX_bzDWXR1sm9Y,451
|
|
@@ -890,7 +890,7 @@ gcore/types/waap/domains/waap_traffic_metrics.py,sha256=V0sIysP7i9cE4-gCNyVy4w0k
|
|
|
890
890
|
gcore/types/waap/ip_info/__init__.py,sha256=7kZyBUDcEtgynsVDprZT53Y7e71PJuhj0-B3DaqtY0c,262
|
|
891
891
|
gcore/types/waap/ip_info/metric_list_params.py,sha256=7vY-RbkECV1yEixczDXaQPZG42WDGbH8ZOBsabzIs-g,562
|
|
892
892
|
gcore/types/waap/ip_info/waap_ip_info_counts.py,sha256=NmLfOuddBtkA_nkpa0JrESkax_PRaXlxlXqROcn8SbA,460
|
|
893
|
-
gcore-0.
|
|
894
|
-
gcore-0.
|
|
895
|
-
gcore-0.
|
|
896
|
-
gcore-0.
|
|
893
|
+
gcore-0.12.0.dist-info/METADATA,sha256=wVOz5J7mJYHF8AmMNEA8JVk6t_bCHsXS--3lRvgWdPg,16321
|
|
894
|
+
gcore-0.12.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
895
|
+
gcore-0.12.0.dist-info/licenses/LICENSE,sha256=2pZguB1aJ1XYFdGBG1gSFtWegXINirA9gVU0ouDbP_s,11335
|
|
896
|
+
gcore-0.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|