Skip to content

Commit 998af61

Browse files
committed
feat: [DPS-44447] rename stream quotas method and update docs
1 parent b1ae8c3 commit 998af61

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

linode_api4/groups/monitor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,14 @@ def stream_create(
627627

628628
return LogsStream(self.client, result["id"], result)
629629

630-
def streams_quotas(self) -> PaginatedList:
630+
def stream_quotas(self) -> PaginatedList:
631631
"""
632632
Retrieve quota definitions available for the authenticated account's streams.
633633
634634
This reads from ``/monitor/streams/quotas`` on the API v4 endpoint.
635635
636+
API Documentation: TODO
637+
636638
:returns: A paginated list of stream quota definitions.
637639
:rtype: PaginatedList[LogsStreamQuota]
638640
"""

test/unit/objects/monitor_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,13 @@ def test_delete_stream(self):
654654

655655
self.assertEqual(m.call_url, "/monitor/streams/1")
656656

657-
def test_streams_quotas(self):
657+
def test_stream_quotas(self):
658658
"""
659-
Test that streams_quotas returns a paginated list of quota objects.
659+
Test that stream_quotas returns a paginated list of quota objects.
660660
"""
661661
url = "/monitor/streams/quotas"
662662
with self.mock_get(url) as m:
663-
result = self.client.monitor.streams_quotas()
663+
result = self.client.monitor.stream_quotas()
664664

665665
self.assertEqual(m.call_url, url)
666666
self.assertEqual(len(result), 2)

0 commit comments

Comments
 (0)