From aae8296910f96894d4d77ec99168b60d33004f83 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 30 Oct 2024 09:14:48 +0000 Subject: [PATCH] Update to support new apis. --- aliyun-python-sdk-live/ChangeLog.txt | 3 + aliyun-python-sdk-live/README.rst | 2 +- .../aliyunsdklive/__init__.py | 2 +- .../v20161101/AddLiveAIProduceRulesRequest.py | 10 +++ .../request/v20161101/AddLiveDomainRequest.py | 9 +++ .../ChangeLiveDomainResourceGroupRequest.py | 49 ++++++++++++++ .../request/v20161101/CreateCasterRequest.py | 9 +++ .../v20161101/DescribeCastersRequest.py | 9 +++ .../DescribeLiveTrafficDomainLogRequest.py | 64 +++++++++++++++++++ .../UpdateLiveAIProduceRulesRequest.py | 10 +++ aliyun-python-sdk-live/setup.py | 12 ++-- 11 files changed, 171 insertions(+), 8 deletions(-) create mode 100644 aliyun-python-sdk-live/aliyunsdklive/request/v20161101/ChangeLiveDomainResourceGroupRequest.py create mode 100644 aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveTrafficDomainLogRequest.py diff --git a/aliyun-python-sdk-live/ChangeLog.txt b/aliyun-python-sdk-live/ChangeLog.txt index c471a5a765..19c88752c3 100644 --- a/aliyun-python-sdk-live/ChangeLog.txt +++ b/aliyun-python-sdk-live/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-10-30 Version: 3.9.62 +- Update to support new apis. + 2024-09-26 Version: 3.9.61 - Update to support new apis. diff --git a/aliyun-python-sdk-live/README.rst b/aliyun-python-sdk-live/README.rst index 6a2ed0c310..461c2b0fac 100644 --- a/aliyun-python-sdk-live/README.rst +++ b/aliyun-python-sdk-live/README.rst @@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy This module works on Python versions: -2.6.5 and greater +3.7 and greater **Documentation:** diff --git a/aliyun-python-sdk-live/aliyunsdklive/__init__.py b/aliyun-python-sdk-live/aliyunsdklive/__init__.py index c0b84c7080..db41a66632 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/__init__.py +++ b/aliyun-python-sdk-live/aliyunsdklive/__init__.py @@ -1 +1 @@ -__version__ = '3.9.61' \ No newline at end of file +__version__ = '3.9.62' \ No newline at end of file diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveAIProduceRulesRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveAIProduceRulesRequest.py index 0734202335..2b90b26c4a 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveAIProduceRulesRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveAIProduceRulesRequest.py @@ -36,6 +36,11 @@ def get_Description(self): # String def set_Description(self, Description): # String self.add_query_param('Description', Description) + def get_Suffix(self): # String + return self.get_query_params().get('Suffix') + + def set_Suffix(self, Suffix): # String + self.add_query_param('Suffix', Suffix) def get_SubtitleName(self): # String return self.get_query_params().get('SubtitleName') @@ -56,6 +61,11 @@ def get_IsLazy(self): # Boolean def set_IsLazy(self, IsLazy): # Boolean self.add_query_param('IsLazy', IsLazy) + def get_StudioName(self): # String + return self.get_query_params().get('StudioName') + + def set_StudioName(self, StudioName): # String + self.add_query_param('StudioName', StudioName) def get_LiveTemplate(self): # String return self.get_query_params().get('LiveTemplate') diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py index 0908390e93..2e1f8eb268 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddLiveDomainRequest.py @@ -46,6 +46,15 @@ def get_Scope(self): # String def set_Scope(self, Scope): # String self.add_query_param('Scope', Scope) + def get_Tags(self): # RepeatList + return self.get_query_params().get('Tag') + + def set_Tags(self, Tag): # RepeatList + for depth1 in range(len(Tag)): + if Tag[depth1].get('Value') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) + if Tag[depth1].get('Key') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) def get_TopLevelDomain(self): # String return self.get_query_params().get('TopLevelDomain') diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/ChangeLiveDomainResourceGroupRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/ChangeLiveDomainResourceGroupRequest.py new file mode 100644 index 0000000000..8f35e5e6c2 --- /dev/null +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/ChangeLiveDomainResourceGroupRequest.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 ChangeLiveDomainResourceGroupRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'live', '2016-11-01', 'ChangeLiveDomainResourceGroup','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_DomainName(self): # String + return self.get_query_params().get('DomainName') + + def set_DomainName(self, DomainName): # String + self.add_query_param('DomainName', DomainName) + 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/CreateCasterRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/CreateCasterRequest.py index ed4268ae33..cab0b96e0c 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/CreateCasterRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/CreateCasterRequest.py @@ -46,6 +46,15 @@ def get_CasterName(self): # String def set_CasterName(self, CasterName): # String self.add_query_param('CasterName', CasterName) + def get_Tags(self): # RepeatList + return self.get_query_params().get('Tag') + + def set_Tags(self, Tag): # RepeatList + for depth1 in range(len(Tag)): + if Tag[depth1].get('Key') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) + if Tag[depth1].get('Value') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) def get_CasterTemplate(self): # String return self.get_query_params().get('CasterTemplate') diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeCastersRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeCastersRequest.py index 289123650b..d9fd4da1d9 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeCastersRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeCastersRequest.py @@ -56,6 +56,15 @@ def get_PageSize(self): # Integer def set_PageSize(self, PageSize): # Integer self.add_query_param('PageSize', PageSize) + def get_Tags(self): # RepeatList + return self.get_query_params().get('Tag') + + def set_Tags(self, Tag): # RepeatList + for depth1 in range(len(Tag)): + if Tag[depth1].get('Key') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) + if Tag[depth1].get('Value') is not None: + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) def get_NormType(self): # String return self.get_query_params().get('NormType') diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveTrafficDomainLogRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveTrafficDomainLogRequest.py new file mode 100644 index 0000000000..51434aa2bc --- /dev/null +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveTrafficDomainLogRequest.py @@ -0,0 +1,64 @@ +# 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 DescribeLiveTrafficDomainLogRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'live', '2016-11-01', 'DescribeLiveTrafficDomainLog','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_StartTime(self): # String + return self.get_query_params().get('StartTime') + + def set_StartTime(self, StartTime): # String + self.add_query_param('StartTime', StartTime) + def get_PageNumber(self): # Long + return self.get_query_params().get('PageNumber') + + def set_PageNumber(self, PageNumber): # Long + self.add_query_param('PageNumber', PageNumber) + 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_DomainName(self): # String + return self.get_query_params().get('DomainName') + + def set_DomainName(self, DomainName): # String + self.add_query_param('DomainName', DomainName) + def get_EndTime(self): # String + return self.get_query_params().get('EndTime') + + def set_EndTime(self, EndTime): # String + self.add_query_param('EndTime', EndTime) + def get_OwnerId(self): # Long + return self.get_query_params().get('OwnerId') + + def set_OwnerId(self, OwnerId): # Long + self.add_query_param('OwnerId', OwnerId) diff --git a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveAIProduceRulesRequest.py b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveAIProduceRulesRequest.py index 6f1f8585f6..f2410cd022 100644 --- a/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveAIProduceRulesRequest.py +++ b/aliyun-python-sdk-live/aliyunsdklive/request/v20161101/UpdateLiveAIProduceRulesRequest.py @@ -36,6 +36,11 @@ def get_Description(self): # String def set_Description(self, Description): # String self.add_query_param('Description', Description) + def get_Suffix(self): # String + return self.get_query_params().get('Suffix') + + def set_Suffix(self, Suffix): # String + self.add_query_param('Suffix', Suffix) def get_SubtitleName(self): # String return self.get_query_params().get('SubtitleName') @@ -61,6 +66,11 @@ def get_IsLazy(self): # Boolean def set_IsLazy(self, IsLazy): # Boolean self.add_query_param('IsLazy', IsLazy) + def get_StudioName(self): # String + return self.get_query_params().get('StudioName') + + def set_StudioName(self, StudioName): # String + self.add_query_param('StudioName', StudioName) def get_LiveTemplate(self): # String return self.get_query_params().get('LiveTemplate') diff --git a/aliyun-python-sdk-live/setup.py b/aliyun-python-sdk-live/setup.py index ed51dff7bd..cf7be8d7bc 100644 --- a/aliyun-python-sdk-live/setup.py +++ b/aliyun-python-sdk-live/setup.py @@ -65,13 +65,13 @@ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 2.6", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development", )