diff --git a/aliyun-python-sdk-avatar/ChangeLog.txt b/aliyun-python-sdk-avatar/ChangeLog.txt index 527102cde7..409078d4a5 100644 --- a/aliyun-python-sdk-avatar/ChangeLog.txt +++ b/aliyun-python-sdk-avatar/ChangeLog.txt @@ -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`. diff --git a/aliyun-python-sdk-avatar/aliyunsdkavatar/__init__.py b/aliyun-python-sdk-avatar/aliyunsdkavatar/__init__.py index d8972c55c9..3435a04f25 100644 --- a/aliyun-python-sdk-avatar/aliyunsdkavatar/__init__.py +++ b/aliyun-python-sdk-avatar/aliyunsdkavatar/__init__.py @@ -1 +1 @@ -__version__ = '2.0.5' \ No newline at end of file +__version__ = '2.0.6' \ No newline at end of file diff --git a/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/ClientUnbindDeviceRequest.py b/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/ClientUnbindDeviceRequest.py new file mode 100644 index 0000000000..2e52aebfc3 --- /dev/null +++ b/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/ClientUnbindDeviceRequest.py @@ -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) diff --git a/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo2DAvatarVideoTaskRequest.py b/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo2DAvatarVideoTaskRequest.py index da76924b78..d1bf6faeca 100644 --- a/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo2DAvatarVideoTaskRequest.py +++ b/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo2DAvatarVideoTaskRequest.py @@ -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') diff --git a/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo3DAvatarVideoTaskRequest.py b/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo3DAvatarVideoTaskRequest.py index 35318ac321..6ab1c99a95 100644 --- a/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo3DAvatarVideoTaskRequest.py +++ b/aliyun-python-sdk-avatar/aliyunsdkavatar/request/v20220130/SubmitAudioTo3DAvatarVideoTaskRequest.py @@ -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')