Skip to content

Commit c5cc6fa

Browse files
authored
chore(cloud): fix file shares examples
1 parent 2ac6bce commit c5cc6fa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/cloud/file_shares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_file_share(*, client: Gcore, file_share_id: str) -> None:
7171

7272
def update_file_share(*, client: Gcore, file_share_id: str) -> None:
7373
print("\n=== UPDATE FILE SHARE ===")
74-
file_share = client.cloud.file_shares.update( # pyright: ignore[reportDeprecated]
74+
file_share = client.cloud.file_shares.update_and_poll(
7575
file_share_id=file_share_id,
7676
name="gcore-go-example-updated",
7777
)

examples/cloud/file_shares_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def get_file_share(*, client: AsyncGcore, file_share_id: str) -> None:
7575

7676
async def update_file_share(*, client: AsyncGcore, file_share_id: str) -> None:
7777
print("\n=== UPDATE FILE SHARE ===")
78-
file_share = await client.cloud.file_shares.update( # pyright: ignore[reportDeprecated]
78+
file_share = await client.cloud.file_shares.update_and_poll(
7979
file_share_id=file_share_id,
8080
name="gcore-go-example-updated",
8181
)

0 commit comments

Comments
 (0)