Skip to content

Commit 63abaa7

Browse files
feat(cloud): enable TF for placement groups
1 parent f3f52da commit 63abaa7

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 607
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-69cdddee2436ba596d5c966a54c73d4ed4081564ec1c09282e3736bdb9ec6e20.yml
33
openapi_spec_hash: 33a4d60dd35c4e8ae937a9b079a25cad
4-
config_hash: 047e7f6015b85a7f8ee3c1127e5cd4a1
4+
config_hash: 92707e07e9f37f45fb1c3067865e2185

src/gcore/resources/cloud/cloud.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ def inference(self) -> InferenceResource:
283283

284284
@cached_property
285285
def placement_groups(self) -> PlacementGroupsResource:
286+
"""
287+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
288+
"""
286289
return PlacementGroupsResource(self._client)
287290

288291
@cached_property
@@ -412,6 +415,9 @@ def inference(self) -> AsyncInferenceResource:
412415

413416
@cached_property
414417
def placement_groups(self) -> AsyncPlacementGroupsResource:
418+
"""
419+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
420+
"""
415421
return AsyncPlacementGroupsResource(self._client)
416422

417423
@cached_property
@@ -544,6 +550,9 @@ def inference(self) -> InferenceResourceWithRawResponse:
544550

545551
@cached_property
546552
def placement_groups(self) -> PlacementGroupsResourceWithRawResponse:
553+
"""
554+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
555+
"""
547556
return PlacementGroupsResourceWithRawResponse(self._cloud.placement_groups)
548557

549558
@cached_property
@@ -657,6 +666,9 @@ def inference(self) -> AsyncInferenceResourceWithRawResponse:
657666

658667
@cached_property
659668
def placement_groups(self) -> AsyncPlacementGroupsResourceWithRawResponse:
669+
"""
670+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
671+
"""
660672
return AsyncPlacementGroupsResourceWithRawResponse(self._cloud.placement_groups)
661673

662674
@cached_property
@@ -770,6 +782,9 @@ def inference(self) -> InferenceResourceWithStreamingResponse:
770782

771783
@cached_property
772784
def placement_groups(self) -> PlacementGroupsResourceWithStreamingResponse:
785+
"""
786+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
787+
"""
773788
return PlacementGroupsResourceWithStreamingResponse(self._cloud.placement_groups)
774789

775790
@cached_property
@@ -883,6 +898,9 @@ def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
883898

884899
@cached_property
885900
def placement_groups(self) -> AsyncPlacementGroupsResourceWithStreamingResponse:
901+
"""
902+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
903+
"""
886904
return AsyncPlacementGroupsResourceWithStreamingResponse(self._cloud.placement_groups)
887905

888906
@cached_property

src/gcore/resources/cloud/placement_groups.py

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

2727

2828
class PlacementGroupsResource(SyncAPIResource):
29+
"""
30+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
31+
"""
32+
2933
@cached_property
3034
def with_raw_response(self) -> PlacementGroupsResourceWithRawResponse:
3135
"""
@@ -210,6 +214,10 @@ def get(
210214

211215

212216
class AsyncPlacementGroupsResource(AsyncAPIResource):
217+
"""
218+
Placement Groups allow you to specific a policy that determines whether Virtual Machines will be hosted on the same physical server or on different ones.
219+
"""
220+
213221
@cached_property
214222
def with_raw_response(self) -> AsyncPlacementGroupsResourceWithRawResponse:
215223
"""

0 commit comments

Comments
 (0)