Skip to content

Commit

Permalink
support unbind device
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 17, 2024
1 parent a2794b4 commit e587a9f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-avatar/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-01-17 Version: 2.0.6
- support unbind device

2023-12-28 Version: 2.0.5
- Generated 2022-01-30 for `avatar`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-avatar/aliyunsdkavatar/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.5'
__version__ = '2.0.6'
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 ClientUnbindDeviceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'avatar', '2022-01-30', 'ClientUnbindDevice')
self.set_protocol_type('https')
self.set_method('POST')

def get_TenantId(self): # Long
return self.get_query_params().get('TenantId')

def set_TenantId(self, TenantId): # Long
self.add_query_param('TenantId', TenantId)
def get_DeviceId(self): # String
return self.get_query_params().get('DeviceId')

def set_DeviceId(self, DeviceId): # String
self.add_query_param('DeviceId', DeviceId)
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def get_App(self): # Struct

def set_App(self, App): # Struct
self.add_query_param("App", json.dumps(App))
def get_AudioInfo(self): # Struct
return self.get_query_params().get('AudioInfo')

def set_AudioInfo(self, AudioInfo): # Struct
self.add_query_param("AudioInfo", json.dumps(AudioInfo))
def get_AvatarInfo(self): # Struct
return self.get_query_params().get('AvatarInfo')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def get_App(self): # Struct

def set_App(self, App): # Struct
self.add_query_param("App", json.dumps(App))
def get_AudioInfo(self): # Struct
return self.get_query_params().get('AudioInfo')

def set_AudioInfo(self, AudioInfo): # Struct
self.add_query_param("AudioInfo", json.dumps(AudioInfo))
def get_AvatarInfo(self): # Struct
return self.get_query_params().get('AvatarInfo')

Expand Down

0 comments on commit e587a9f

Please sign in to comment.