Skip to content

Commit 634f34b

Browse files
feat(cloud): enable TF for floating IPs
1 parent 7850a7a commit 634f34b

3 files changed

Lines changed: 37 additions & 3 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 524
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-da84a23d077729a2f9b3fddd8875bcfaa746d424a20bb24042c5a75c4f26cd9c.yml
3-
openapi_spec_hash: 779e938deb4b2bbf7439e759411b2612
4-
config_hash: fb616a3673c89cafa4b40ebf35b912e3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-0f2def526562974411b1e35ca95e3090a7d407c1cb60d111b08167da8ffc7d90.yml
3+
openapi_spec_hash: b1c7de35e2926455753274c2f4c567bb
4+
config_hash: ae97def27b01f1398b799f2463b56aa0

src/gcore/resources/cloud/cloud.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ def volumes(self) -> VolumesResource:
263263

264264
@cached_property
265265
def floating_ips(self) -> FloatingIPsResource:
266+
"""A floating IP is a static IP address that points to one of your Instances.
267+
268+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
269+
"""
266270
return FloatingIPsResource(self._client)
267271

268272
@cached_property
@@ -388,6 +392,10 @@ def volumes(self) -> AsyncVolumesResource:
388392

389393
@cached_property
390394
def floating_ips(self) -> AsyncFloatingIPsResource:
395+
"""A floating IP is a static IP address that points to one of your Instances.
396+
397+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
398+
"""
391399
return AsyncFloatingIPsResource(self._client)
392400

393401
@cached_property
@@ -516,6 +524,10 @@ def volumes(self) -> VolumesResourceWithRawResponse:
516524

517525
@cached_property
518526
def floating_ips(self) -> FloatingIPsResourceWithRawResponse:
527+
"""A floating IP is a static IP address that points to one of your Instances.
528+
529+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
530+
"""
519531
return FloatingIPsResourceWithRawResponse(self._cloud.floating_ips)
520532

521533
@cached_property
@@ -625,6 +637,10 @@ def volumes(self) -> AsyncVolumesResourceWithRawResponse:
625637

626638
@cached_property
627639
def floating_ips(self) -> AsyncFloatingIPsResourceWithRawResponse:
640+
"""A floating IP is a static IP address that points to one of your Instances.
641+
642+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
643+
"""
628644
return AsyncFloatingIPsResourceWithRawResponse(self._cloud.floating_ips)
629645

630646
@cached_property
@@ -734,6 +750,10 @@ def volumes(self) -> VolumesResourceWithStreamingResponse:
734750

735751
@cached_property
736752
def floating_ips(self) -> FloatingIPsResourceWithStreamingResponse:
753+
"""A floating IP is a static IP address that points to one of your Instances.
754+
755+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
756+
"""
737757
return FloatingIPsResourceWithStreamingResponse(self._cloud.floating_ips)
738758

739759
@cached_property
@@ -843,6 +863,10 @@ def volumes(self) -> AsyncVolumesResourceWithStreamingResponse:
843863

844864
@cached_property
845865
def floating_ips(self) -> AsyncFloatingIPsResourceWithStreamingResponse:
866+
"""A floating IP is a static IP address that points to one of your Instances.
867+
868+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
869+
"""
846870
return AsyncFloatingIPsResourceWithStreamingResponse(self._cloud.floating_ips)
847871

848872
@cached_property

src/gcore/resources/cloud/floating_ips.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333

3434

3535
class FloatingIPsResource(SyncAPIResource):
36+
"""A floating IP is a static IP address that points to one of your Instances.
37+
38+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
39+
"""
40+
3641
@cached_property
3742
def with_raw_response(self) -> FloatingIPsResourceWithRawResponse:
3843
"""
@@ -531,6 +536,11 @@ def delete_and_poll(
531536

532537

533538
class AsyncFloatingIPsResource(AsyncAPIResource):
539+
"""A floating IP is a static IP address that points to one of your Instances.
540+
541+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
542+
"""
543+
534544
@cached_property
535545
def with_raw_response(self) -> AsyncFloatingIPsResourceWithRawResponse:
536546
"""

0 commit comments

Comments
 (0)