Skip to content

Commit

Permalink
Update to support new apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 30, 2024
1 parent 8821adb commit aae8296
Show file tree
Hide file tree
Showing 11 changed files with 171 additions and 8 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-live/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-live/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:**

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-live/aliyunsdklive/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.9.61'
__version__ = '3.9.62'
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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')

Expand Down
12 changes: 6 additions & 6 deletions aliyun-python-sdk-live/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down

0 comments on commit aae8296

Please sign in to comment.