Skip to content

Commit

Permalink
Supported SortBy for ListUserDevices.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 16, 2023
1 parent f367d57 commit 1889c19
Show file tree
Hide file tree
Showing 17 changed files with 780 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-csas/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-16 Version: 1.0.3
- Supported SortBy for ListUserDevices.

2023-08-31 Version: 1.0.2
- Supported connector visualization manage.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-csas/aliyunsdkcsas/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.2'
__version__ = '1.0.3'
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
import json

class CreateRegistrationPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'CreateRegistrationPolicy')
self.set_method('POST')

def get_Description(self): # String
return self.get_body_params().get('Description')

def set_Description(self, Description): # String
self.add_body_params('Description', Description)
def get_MatchMode(self): # String
return self.get_body_params().get('MatchMode')

def set_MatchMode(self, MatchMode): # String
self.add_body_params('MatchMode', MatchMode)
def get_CompanyLimitCount(self): # Struct
return self.get_body_params().get('CompanyLimitCount')

def set_CompanyLimitCount(self, CompanyLimitCount): # Struct
self.add_body_params("CompanyLimitCount", json.dumps(CompanyLimitCount))
def get_PersonalLimitCount(self): # Struct
return self.get_body_params().get('PersonalLimitCount')

def set_PersonalLimitCount(self, PersonalLimitCount): # Struct
self.add_body_params("PersonalLimitCount", json.dumps(PersonalLimitCount))
def get_UserGroupIds(self): # Array
return self.get_body_params().get('UserGroupIds')

def set_UserGroupIds(self, UserGroupIds): # Array
for index1, value1 in enumerate(UserGroupIds):
self.add_body_params('UserGroupIds.' + str(index1 + 1), value1)
def get_Whitelist(self): # Array
return self.get_body_params().get('Whitelist')

def set_Whitelist(self, Whitelist): # Array
for index1, value1 in enumerate(Whitelist):
self.add_body_params('Whitelist.' + str(index1 + 1), value1)
def get_Priority(self): # Long
return self.get_body_params().get('Priority')

def set_Priority(self, Priority): # Long
self.add_body_params('Priority', Priority)
def get_PersonalLimitType(self): # String
return self.get_body_params().get('PersonalLimitType')

def set_PersonalLimitType(self, PersonalLimitType): # String
self.add_body_params('PersonalLimitType', PersonalLimitType)
def get_Name(self): # String
return self.get_body_params().get('Name')

def set_Name(self, Name): # String
self.add_body_params('Name', Name)
def get_CompanyLimitType(self): # String
return self.get_body_params().get('CompanyLimitType')

def set_CompanyLimitType(self, CompanyLimitType): # String
self.add_body_params('CompanyLimitType', CompanyLimitType)
def get_Status(self): # String
return self.get_body_params().get('Status')

def set_Status(self, Status): # String
self.add_body_params('Status', Status)
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class DeleteRegistrationPoliciesRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'DeleteRegistrationPolicies')
self.set_method('POST')

def get_PolicyIds(self): # Array
return self.get_body_params().get('PolicyIds')

def set_PolicyIds(self, PolicyIds): # Array
for index1, value1 in enumerate(PolicyIds):
self.add_body_params('PolicyIds.' + str(index1 + 1), value1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class GetRegistrationPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'GetRegistrationPolicy')
self.set_method('GET')

def get_PolicyId(self): # String
return self.get_query_params().get('PolicyId')

def set_PolicyId(self, PolicyId): # String
self.add_query_param('PolicyId', PolicyId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class GetUserDeviceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'GetUserDevice')
self.set_method('GET')

def get_DeviceTag(self): # String
return self.get_query_params().get('DeviceTag')

def set_DeviceTag(self, DeviceTag): # String
self.add_query_param('DeviceTag', DeviceTag)
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class ListExcessiveDeviceRegistrationApplicationsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'ListExcessiveDeviceRegistrationApplications')
self.set_method('GET')

def get_DeviceTag(self): # String
return self.get_query_params().get('DeviceTag')

def set_DeviceTag(self, DeviceTag): # String
self.add_query_param('DeviceTag', DeviceTag)
def get_Mac(self): # String
return self.get_query_params().get('Mac')

def set_Mac(self, Mac): # String
self.add_query_param('Mac', Mac)
def get_Hostname(self): # String
return self.get_query_params().get('Hostname')

def set_Hostname(self, Hostname): # String
self.add_query_param('Hostname', Hostname)
def get_SaseUserId(self): # String
return self.get_query_params().get('SaseUserId')

def set_SaseUserId(self, SaseUserId): # String
self.add_query_param('SaseUserId', SaseUserId)
def get_PageSize(self): # Long
return self.get_query_params().get('PageSize')

def set_PageSize(self, PageSize): # Long
self.add_query_param('PageSize', PageSize)
def get_Department(self): # String
return self.get_query_params().get('Department')

def set_Department(self, Department): # String
self.add_query_param('Department', Department)
def get_CurrentPage(self): # Long
return self.get_query_params().get('CurrentPage')

def set_CurrentPage(self, CurrentPage): # Long
self.add_query_param('CurrentPage', CurrentPage)
def get_ApplicationIds(self): # Array
return self.get_query_params().get('ApplicationIds')

def set_ApplicationIds(self, ApplicationIds): # Array
for index1, value1 in enumerate(ApplicationIds):
self.add_query_param('ApplicationIds.' + str(index1 + 1), value1)
def get_Statuses(self): # Array
return self.get_query_params().get('Statuses')

def set_Statuses(self, Statuses): # Array
for index1, value1 in enumerate(Statuses):
self.add_query_param('Statuses.' + str(index1 + 1), value1)
def get_Username(self): # String
return self.get_query_params().get('Username')

def set_Username(self, Username): # String
self.add_query_param('Username', Username)
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def get_ApplicationId(self): # String

def set_ApplicationId(self, ApplicationId): # String
self.add_query_param('ApplicationId', ApplicationId)
def get_SimpleMode(self): # Boolean
return self.get_query_params().get('SimpleMode')

def set_SimpleMode(self, SimpleMode): # Boolean
self.add_query_param('SimpleMode', SimpleMode)
def get_TagIds(self): # Array
return self.get_query_params().get('TagIds')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class ListRegistrationPoliciesForUserGroupRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'ListRegistrationPoliciesForUserGroup')
self.set_method('GET')

def get_UserGroupIds(self): # Array
return self.get_query_params().get('UserGroupIds')

def set_UserGroupIds(self, UserGroupIds): # Array
for index1, value1 in enumerate(UserGroupIds):
self.add_query_param('UserGroupIds.' + str(index1 + 1), value1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class ListRegistrationPoliciesRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'csas', '2023-01-20', 'ListRegistrationPolicies')
self.set_method('GET')

def get_PolicyIds(self): # Array
return self.get_query_params().get('PolicyIds')

def set_PolicyIds(self, PolicyIds): # Array
for index1, value1 in enumerate(PolicyIds):
self.add_query_param('PolicyIds.' + str(index1 + 1), value1)
def get_MatchMode(self): # String
return self.get_query_params().get('MatchMode')

def set_MatchMode(self, MatchMode): # String
self.add_query_param('MatchMode', MatchMode)
def get_PageSize(self): # Long
return self.get_query_params().get('PageSize')

def set_PageSize(self, PageSize): # Long
self.add_query_param('PageSize', PageSize)
def get_UserGroupId(self): # String
return self.get_query_params().get('UserGroupId')

def set_UserGroupId(self, UserGroupId): # String
self.add_query_param('UserGroupId', UserGroupId)
def get_CurrentPage(self): # Long
return self.get_query_params().get('CurrentPage')

def set_CurrentPage(self, CurrentPage): # Long
self.add_query_param('CurrentPage', CurrentPage)
def get_PersonalLimitType(self): # String
return self.get_query_params().get('PersonalLimitType')

def set_PersonalLimitType(self, PersonalLimitType): # String
self.add_query_param('PersonalLimitType', PersonalLimitType)
def get_Name(self): # String
return self.get_query_params().get('Name')

def set_Name(self, Name): # String
self.add_query_param('Name', Name)
def get_CompanyLimitType(self): # String
return self.get_query_params().get('CompanyLimitType')

def set_CompanyLimitType(self, CompanyLimitType): # String
self.add_query_param('CompanyLimitType', CompanyLimitType)
def get_Status(self): # String
return self.get_query_params().get('Status')

def set_Status(self, Status): # String
self.add_query_param('Status', Status)
Loading

0 comments on commit 1889c19

Please sign in to comment.