From b7a8d114fc3449b6f078f782f46952bc7b273414 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 26 Sep 2024 06:31:19 +0000 Subject: [PATCH] Update to support new apis. --- aliyun-python-sdk-live/ChangeLog.txt | 3 + .../aliyunsdklive/__init__.py | 2 +- .../request/v20161101/AddLiveDomainRequest.py | 5 + .../DescribeLiveUserDomainsRequest.py | 5 + .../UpdateCasterResourceGroupRequest.py | 49 ++++++ .../UpdateCustomLiveStreamTranscodeRequest.py | 143 ++++++++++++++++++ .../UpdateLiveStreamTranscodeRequest.py | 63 ++++++++ .../UpdateRtsLiveStreamTranscodeRequest.py | 128 ++++++++++++++++ 8 files changed, 397 insertions(+), 1 deletion(-) create mode 100644 aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCasterResourceGroupRequest.py create mode 100644 aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCustomLiveStreamTranscodeRequest.py create mode 100644 aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveStreamTranscodeRequest.py create mode 100644 aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateRtsLiveStreamTranscodeRequest.py diff --git a/aliyun-python-sdk-live/ChangeLog.txt b/aliyun-python-sdk-live/ChangeLog.txt index 40613c43b3..c471a5a765 100644 --- a/aliyun-python-sdk-live/ChangeLog.txt +++ b/aliyun-python-sdk-live/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-09-26 Version: 3.9.61 +- Update to support new apis. + 2024-08-22 Version: 3.9.60 - Update to support new apis. diff --git a/aliyun-python-sdk-live/aliyunsdklive/__init__.py b/aliyun-python-sdk-live/aliyunsdklive/__init__.py index bd8a01a248..c0b84c7080 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/__init__.py +++ b/aliyun-python-sdk-live/aliyunsdklive/__init__.py @@ -1 +1 @@ -__version__ = '3.9.60' \ No newline at end of file +__version__ = '3.9.61' \ No newline at end of file diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py index 5a8d529008..0908390e93 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py @@ -31,6 +31,11 @@ def __init__(self): if hasattr(self, "endpoint_regional"): setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + def get_ResourceGroupId(self): # String + return self.get_query_params().get('ResourceGroupId') + + def set_ResourceGroupId(self, ResourceGroupId): # String + self.add_query_param('ResourceGroupId', ResourceGroupId) def get_SecurityToken(self): # String return self.get_query_params().get('SecurityToken') diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveUserDomainsRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveUserDomainsRequest.py index f3c85239d9..58a22ea4c6 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveUserDomainsRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveUserDomainsRequest.py @@ -36,6 +36,11 @@ def get_PageNumber(self): # Integer def set_PageNumber(self, PageNumber): # Integer self.add_query_param('PageNumber', PageNumber) + def get_ResourceGroupId(self): # String + return self.get_query_params().get('ResourceGroupId') + + def set_ResourceGroupId(self, ResourceGroupId): # String + self.add_query_param('ResourceGroupId', ResourceGroupId) def get_SecurityToken(self): # String return self.get_query_params().get('SecurityToken') diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCasterResourceGroupRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCasterResourceGroupRequest.py new file mode 100644 index 0000000000..ed5f188b89 --- /dev/null +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCasterResourceGroupRequest.py @@ -0,0 +1,49 @@ +# 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 +from aliyunsdklive.endpoint import endpoint_data + +class UpdateCasterResourceGroupRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'live', '2016-11-01', 'UpdateCasterResourceGroup','live') + self.set_protocol_type('https') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_CasterId(self): # String + return self.get_query_params().get('CasterId') + + def set_CasterId(self, CasterId): # String + self.add_query_param('CasterId', CasterId) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_NewResourceGroupId(self): # String + return self.get_query_params().get('NewResourceGroupId') + + def set_NewResourceGroupId(self, NewResourceGroupId): # String + self.add_query_param('NewResourceGroupId', NewResourceGroupId) diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCustomLiveStreamTranscodeRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCustomLiveStreamTranscodeRequest.py new file mode 100644 index 0000000000..84f9e10699 --- /dev/null +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateCustomLiveStreamTranscodeRequest.py @@ -0,0 +1,143 @@ +# 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 +from aliyunsdklive.endpoint import endpoint_data + +class UpdateCustomLiveStreamTranscodeRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'live', '2016-11-01', 'UpdateCustomLiveStreamTranscode','live') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_Template(self): # String + return self.get_query_params().get('Template') + + def set_Template(self, Template): # String + self.add_query_param('Template', Template) + def get_ResWithSource(self): # String + return self.get_query_params().get('ResWithSource') + + def set_ResWithSource(self, ResWithSource): # String + self.add_query_param('ResWithSource', ResWithSource) + def get_Lazy(self): # String + return self.get_query_params().get('Lazy') + + def set_Lazy(self, Lazy): # String + self.add_query_param('Lazy', Lazy) + def get_Gop(self): # String + return self.get_query_params().get('Gop') + + def set_Gop(self, Gop): # String + self.add_query_param('Gop', Gop) + def get_AudioCodec(self): # String + return self.get_query_params().get('AudioCodec') + + def set_AudioCodec(self, AudioCodec): # String + self.add_query_param('AudioCodec', AudioCodec) + def get_TemplateType(self): # String + return self.get_query_params().get('TemplateType') + + def set_TemplateType(self, TemplateType): # String + self.add_query_param('TemplateType', TemplateType) + def get_AudioProfile(self): # String + return self.get_query_params().get('AudioProfile') + + def set_AudioProfile(self, AudioProfile): # String + self.add_query_param('AudioProfile', AudioProfile) + def get_Height(self): # Integer + return self.get_query_params().get('Height') + + def set_Height(self, Height): # Integer + self.add_query_param('Height', Height) + def get_App(self): # String + return self.get_query_params().get('App') + + def set_App(self, App): # String + self.add_query_param('App', App) + def get_EncryptParameters(self): # String + return self.get_query_params().get('EncryptParameters') + + def set_EncryptParameters(self, EncryptParameters): # String + self.add_query_param('EncryptParameters', EncryptParameters) + def get_AudioChannelNum(self): # Integer + return self.get_query_params().get('AudioChannelNum') + + def set_AudioChannelNum(self, AudioChannelNum): # Integer + self.add_query_param('AudioChannelNum', AudioChannelNum) + def get_Profile(self): # Integer + return self.get_query_params().get('Profile') + + def set_Profile(self, Profile): # Integer + self.add_query_param('Profile', Profile) + def get_FPS(self): # Integer + return self.get_query_params().get('FPS') + + def set_FPS(self, FPS): # Integer + self.add_query_param('FPS', FPS) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_ExtWithSource(self): # String + return self.get_query_params().get('ExtWithSource') + + def set_ExtWithSource(self, ExtWithSource): # String + self.add_query_param('ExtWithSource', ExtWithSource) + def get_BitrateWithSource(self): # String + return self.get_query_params().get('BitrateWithSource') + + def set_BitrateWithSource(self, BitrateWithSource): # String + self.add_query_param('BitrateWithSource', BitrateWithSource) + def get_AudioRate(self): # Integer + return self.get_query_params().get('AudioRate') + + def set_AudioRate(self, AudioRate): # Integer + self.add_query_param('AudioRate', AudioRate) + def get_FpsWithSource(self): # String + return self.get_query_params().get('FpsWithSource') + + def set_FpsWithSource(self, FpsWithSource): # String + self.add_query_param('FpsWithSource', FpsWithSource) + def get_AudioBitrate(self): # Integer + return self.get_query_params().get('AudioBitrate') + + def set_AudioBitrate(self, AudioBitrate): # Integer + self.add_query_param('AudioBitrate', AudioBitrate) + def get_Domain(self): # String + return self.get_query_params().get('Domain') + + def set_Domain(self, Domain): # String + self.add_query_param('Domain', Domain) + def get_Width(self): # Integer + return self.get_query_params().get('Width') + + def set_Width(self, Width): # Integer + self.add_query_param('Width', Width) + def get_VideoBitrate(self): # Integer + return self.get_query_params().get('VideoBitrate') + + def set_VideoBitrate(self, VideoBitrate): # Integer + self.add_query_param('VideoBitrate', VideoBitrate) diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveStreamTranscodeRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveStreamTranscodeRequest.py new file mode 100644 index 0000000000..fe8410cebe --- /dev/null +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveStreamTranscodeRequest.py @@ -0,0 +1,63 @@ +# 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 +from aliyunsdklive.endpoint import endpoint_data + +class UpdateLiveStreamTranscodeRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'live', '2016-11-01', 'UpdateLiveStreamTranscode','live') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_Template(self): # String + return self.get_query_params().get('Template') + + def set_Template(self, Template): # String + self.add_query_param('Template', Template) + def get_Lazy(self): # String + return self.get_query_params().get('Lazy') + + def set_Lazy(self, Lazy): # String + self.add_query_param('Lazy', Lazy) + def get_App(self): # String + return self.get_query_params().get('App') + + def set_App(self, App): # String + self.add_query_param('App', App) + def get_EncryptParameters(self): # String + return self.get_query_params().get('EncryptParameters') + + def set_EncryptParameters(self, EncryptParameters): # String + self.add_query_param('EncryptParameters', EncryptParameters) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_Domain(self): # String + return self.get_query_params().get('Domain') + + def set_Domain(self, Domain): # String + self.add_query_param('Domain', Domain) diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateRtsLiveStreamTranscodeRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateRtsLiveStreamTranscodeRequest.py new file mode 100644 index 0000000000..261349413b --- /dev/null +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateRtsLiveStreamTranscodeRequest.py @@ -0,0 +1,128 @@ +# 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 +from aliyunsdklive.endpoint import endpoint_data + +class UpdateRtsLiveStreamTranscodeRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'live', '2016-11-01', 'UpdateRtsLiveStreamTranscode','live') + self.set_method('POST') + + if hasattr(self, "endpoint_map"): + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) + if hasattr(self, "endpoint_regional"): + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) + + def get_Template(self): # String + return self.get_query_params().get('Template') + + def set_Template(self, Template): # String + self.add_query_param('Template', Template) + def get_DeleteBframes(self): # Boolean + return self.get_query_params().get('DeleteBframes') + + def set_DeleteBframes(self, DeleteBframes): # Boolean + self.add_query_param('DeleteBframes', DeleteBframes) + def get_Lazy(self): # String + return self.get_query_params().get('Lazy') + + def set_Lazy(self, Lazy): # String + self.add_query_param('Lazy', Lazy) + def get_Gop(self): # String + return self.get_query_params().get('Gop') + + def set_Gop(self, Gop): # String + self.add_query_param('Gop', Gop) + def get_Opus(self): # Boolean + return self.get_query_params().get('Opus') + + def set_Opus(self, Opus): # Boolean + self.add_query_param('Opus', Opus) + def get_AudioCodec(self): # String + return self.get_query_params().get('AudioCodec') + + def set_AudioCodec(self, AudioCodec): # String + self.add_query_param('AudioCodec', AudioCodec) + def get_TemplateType(self): # String + return self.get_query_params().get('TemplateType') + + def set_TemplateType(self, TemplateType): # String + self.add_query_param('TemplateType', TemplateType) + def get_AudioProfile(self): # String + return self.get_query_params().get('AudioProfile') + + def set_AudioProfile(self, AudioProfile): # String + self.add_query_param('AudioProfile', AudioProfile) + def get_Height(self): # Integer + return self.get_query_params().get('Height') + + def set_Height(self, Height): # Integer + self.add_query_param('Height', Height) + def get_App(self): # String + return self.get_query_params().get('App') + + def set_App(self, App): # String + self.add_query_param('App', App) + def get_AudioChannelNum(self): # Integer + return self.get_query_params().get('AudioChannelNum') + + def set_AudioChannelNum(self, AudioChannelNum): # Integer + self.add_query_param('AudioChannelNum', AudioChannelNum) + def get_Profile(self): # Integer + return self.get_query_params().get('Profile') + + def set_Profile(self, Profile): # Integer + self.add_query_param('Profile', Profile) + def get_FPS(self): # Integer + return self.get_query_params().get('FPS') + + def set_FPS(self, FPS): # Integer + self.add_query_param('FPS', FPS) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) + def get_AudioRate(self): # Integer + return self.get_query_params().get('AudioRate') + + def set_AudioRate(self, AudioRate): # Integer + self.add_query_param('AudioRate', AudioRate) + def get_AudioBitrate(self): # Integer + return self.get_query_params().get('AudioBitrate') + + def set_AudioBitrate(self, AudioBitrate): # Integer + self.add_query_param('AudioBitrate', AudioBitrate) + def get_Domain(self): # String + return self.get_query_params().get('Domain') + + def set_Domain(self, Domain): # String + self.add_query_param('Domain', Domain) + def get_Width(self): # Integer + return self.get_query_params().get('Width') + + def set_Width(self, Width): # Integer + self.add_query_param('Width', Width) + def get_VideoBitrate(self): # Integer + return self.get_query_params().get('VideoBitrate') + + def set_VideoBitrate(self, VideoBitrate): # Integer + self.add_query_param('VideoBitrate', VideoBitrate)