Skip to content

Commit 2a09961

Browse files
feat(storage): support TF for object storages
1 parent 6c7c89f commit 2a09961

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 658
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore/gcore-b820f61295467b1a516809974eae11711127afba6586ef72f3f4bc0dc4d367fa.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore/gcore-05944c6511995a38bc1b5220f89972a3b95d8ba0fafe7d130028a531308ecc09.yml
33
openapi_spec_hash: 56b7f9ac85a32a2db9de669906c2de81
4-
config_hash: dd354d0fdf5f566e1f6403c402d862dc
4+
config_hash: d9d6130b73734fc0909ceb1320c74917

src/gcore/resources/storage/object_storages/object_storages.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242

4343

4444
class ObjectStoragesResource(SyncAPIResource):
45+
"""
46+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
47+
"""
48+
4549
@cached_property
4650
def access_keys(self) -> AccessKeysResource:
4751
"""
@@ -288,6 +292,10 @@ def restore(
288292

289293

290294
class AsyncObjectStoragesResource(AsyncAPIResource):
295+
"""
296+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
297+
"""
298+
291299
@cached_property
292300
def access_keys(self) -> AsyncAccessKeysResource:
293301
"""

src/gcore/resources/storage/storage.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def locations(self) -> LocationsResource:
5656

5757
@cached_property
5858
def object_storages(self) -> ObjectStoragesResource:
59+
"""
60+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
61+
"""
5962
return ObjectStoragesResource(self._client)
6063

6164
@cached_property
@@ -101,6 +104,9 @@ def locations(self) -> AsyncLocationsResource:
101104

102105
@cached_property
103106
def object_storages(self) -> AsyncObjectStoragesResource:
107+
"""
108+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
109+
"""
104110
return AsyncObjectStoragesResource(self._client)
105111

106112
@cached_property
@@ -149,6 +155,9 @@ def locations(self) -> LocationsResourceWithRawResponse:
149155

150156
@cached_property
151157
def object_storages(self) -> ObjectStoragesResourceWithRawResponse:
158+
"""
159+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
160+
"""
152161
return ObjectStoragesResourceWithRawResponse(self._storage.object_storages)
153162

154163
@cached_property
@@ -178,6 +187,9 @@ def locations(self) -> AsyncLocationsResourceWithRawResponse:
178187

179188
@cached_property
180189
def object_storages(self) -> AsyncObjectStoragesResourceWithRawResponse:
190+
"""
191+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
192+
"""
181193
return AsyncObjectStoragesResourceWithRawResponse(self._storage.object_storages)
182194

183195
@cached_property
@@ -207,6 +219,9 @@ def locations(self) -> LocationsResourceWithStreamingResponse:
207219

208220
@cached_property
209221
def object_storages(self) -> ObjectStoragesResourceWithStreamingResponse:
222+
"""
223+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
224+
"""
210225
return ObjectStoragesResourceWithStreamingResponse(self._storage.object_storages)
211226

212227
@cached_property
@@ -236,6 +251,9 @@ def locations(self) -> AsyncLocationsResourceWithStreamingResponse:
236251

237252
@cached_property
238253
def object_storages(self) -> AsyncObjectStoragesResourceWithStreamingResponse:
254+
"""
255+
S3-compatible object storages provide scalable cloud storage with S3 API compatibility. Each storage is provisioned in a specific location and exposes one or more access keys for authentication.
256+
"""
239257
return AsyncObjectStoragesResourceWithStreamingResponse(self._storage.object_storages)
240258

241259
@cached_property

0 commit comments

Comments
 (0)