Skip to content

Commit 4c5fce2

Browse files
committed
feat: listProjects support description
1 parent 6d31978 commit 4c5fce2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

aliyun/log/logclient.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3464,7 +3464,7 @@ def copy_alert(self, from_project, from_alert_name, to_project=None, to_alert_na
34643464
"""
34653465
return copy_alert(self, from_project, from_alert_name, to_project=to_project, to_alert_name=to_alert_name, to_client=to_client, to_region_endpoint=to_region_endpoint)
34663466

3467-
def list_project(self, offset=0, size=100, project_name_pattern=None, resource_group_id=''):
3467+
def list_project(self, offset=0, size=100, project_name_pattern=None, resource_group_id='', description=None):
34683468
""" list the project
34693469
Unsuccessful operation will cause an LogException.
34703470
@@ -3480,6 +3480,9 @@ def list_project(self, offset=0, size=100, project_name_pattern=None, resource_g
34803480
:type resource_group_id: string
34813481
:param resource_group_id: the resource group id, used for the server to return project in resource group
34823482
3483+
:type description: string
3484+
:param description: use this to filter project by description, support fuzzy search
3485+
34833486
:return: ListProjectResponse
34843487
34853488
:raise: LogException
@@ -3497,6 +3500,8 @@ def list_project(self, offset=0, size=100, project_name_pattern=None, resource_g
34973500
params['offset'] = str(offset)
34983501
params['size'] = str(size)
34993502
params['resourceGroupId'] = resource_group_id
3503+
if description:
3504+
params['description'] = str(description)
35003505
(resp, header) = self._send("GET", None, None, resource, params, headers)
35013506
return ListProjectResponse(resp, header)
35023507

aliyun/log/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.9.31'
1+
__version__ = '0.9.32'
22

33
import sys
44
OS_VERSION = str(sys.platform)

0 commit comments

Comments
 (0)