Skip to content

Commit

Permalink
ListInstances support expired time or creation time filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 8, 2023
1 parent 008fc18 commit 3397c85
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-cloudphone/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-08 Version: 1.0.1
- ListInstances support expired time or creation time filter.

2023-02-13 Version: 1.0.0
- Python SDK init.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ def get_OwnerId(self): # Long

def set_OwnerId(self, OwnerId): # Long
self.add_query_param('OwnerId', OwnerId)
def get_Filters(self): # RepeatList
return self.get_query_params().get('Filter')

def set_Filters(self, Filter): # RepeatList
for depth1 in range(len(Filter)):
if Filter[depth1].get('Key') is not None:
self.add_query_param('Filter.' + str(depth1 + 1) + '.Key', Filter[depth1].get('Key'))
if Filter[depth1].get('Value') is not None:
self.add_query_param('Filter.' + str(depth1 + 1) + '.Value', Filter[depth1].get('Value'))
def get_InstanceName(self): # String
return self.get_query_params().get('InstanceName')

Expand Down

0 comments on commit 3397c85

Please sign in to comment.