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 Dec 13, 2023
1 parent a36b78b commit 22f19d1
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 15 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 @@
2023-12-13 Version: 3.9.42
- Update to support new apis.

2023-11-22 Version: 3.9.41
- Update to support new apis.

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.41'
__version__ = '3.9.42'
Original file line number Diff line number Diff line change
@@ -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 DescribeLiveDomainEdgeLogRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'live', '2016-11-01', 'DescribeLiveDomainEdgeLog','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_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
@@ -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 ListEventSubEventRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'live', '2016-11-01', 'ListEventSubEvent','live')
self.set_protocol_type('https')
self.set_method('GET')

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_SubscribeId(self): # String
return self.get_query_params().get('SubscribeId')

def set_SubscribeId(self, SubscribeId): # String
self.add_query_param('SubscribeId', SubscribeId)
def get_EndTime(self): # Long
return self.get_query_params().get('EndTime')

def set_EndTime(self, EndTime): # Long
self.add_query_param('EndTime', EndTime)
def get_StartTime(self): # Long
return self.get_query_params().get('StartTime')

def set_StartTime(self, StartTime): # Long
self.add_query_param('StartTime', StartTime)
def get_PageNo(self): # Long
return self.get_query_params().get('PageNo')

def set_PageNo(self, PageNo): # Long
self.add_query_param('PageNo', PageNo)
def get_AppId(self): # String
return self.get_query_params().get('AppId')

def set_AppId(self, AppId): # String
self.add_query_param('AppId', AppId)
def get_PageSize(self): # Long
return self.get_query_params().get('PageSize')

def set_PageSize(self, PageSize): # Long
self.add_query_param('PageSize', PageSize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 ListEventSubRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'live', '2016-11-01', 'ListEventSub','live')
self.set_protocol_type('https')
self.set_method('GET')

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_AppId(self): # String
return self.get_query_params().get('AppId')

def set_AppId(self, AppId): # String
self.add_query_param('AppId', AppId)
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,41 @@ def __init__(self):
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_SenderMetaInfo(self): # String
return self.get_query_params().get('SenderMetaInfo')

def set_SenderMetaInfo(self, SenderMetaInfo): # String
self.add_query_param('SenderMetaInfo', SenderMetaInfo)
def get_Body(self): # String
return self.get_query_params().get('Body')

def set_Body(self, Body): # String
self.add_query_param('Body', Body)
def get_StaticsIncrease(self): # Long
return self.get_query_params().get('StaticsIncrease')

def set_StaticsIncrease(self, StaticsIncrease): # Long
self.add_query_param('StaticsIncrease', StaticsIncrease)
def get_MsgType(self): # Long
return self.get_query_params().get('MsgType')

def set_MsgType(self, MsgType): # Long
self.add_query_param('MsgType', MsgType)
def get_NoStorage(self): # Boolean
return self.get_query_params().get('NoStorage')

def set_NoStorage(self, NoStorage): # Boolean
self.add_query_param('NoStorage', NoStorage)
def get_GroupId(self): # String
return self.get_query_params().get('GroupId')

def set_GroupId(self, GroupId): # String
self.add_query_param('GroupId', GroupId)
def get_SenderMetaInfo(self): # String
return self.get_query_params().get('SenderMetaInfo')
def get_Weight(self): # Long
return self.get_query_params().get('Weight')

def set_SenderMetaInfo(self, SenderMetaInfo): # String
self.add_query_param('SenderMetaInfo', SenderMetaInfo)
def set_Weight(self, Weight): # Long
self.add_query_param('Weight', Weight)
def get_DataCenter(self): # String
return self.get_query_params().get('DataCenter')

Expand All @@ -52,11 +77,6 @@ def get_MsgTid(self): # String

def set_MsgTid(self, MsgTid): # String
self.add_query_param('MsgTid', MsgTid)
def get_Body(self): # String
return self.get_query_params().get('Body')

def set_Body(self, Body): # String
self.add_query_param('Body', Body)
def get_SenderId(self): # String
return self.get_query_params().get('SenderId')

Expand All @@ -67,8 +87,3 @@ def get_AppId(self): # String

def set_AppId(self, AppId): # String
self.add_query_param('AppId', AppId)
def get_MsgType(self): # Long
return self.get_query_params().get('MsgType')

def set_MsgType(self, MsgType): # Long
self.add_query_param('MsgType', MsgType)
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 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 UpdateEventSubRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'live', '2016-11-01', 'UpdateEventSub','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_SubscribeId(self): # String
return self.get_query_params().get('SubscribeId')

def set_SubscribeId(self, SubscribeId): # String
self.add_query_param('SubscribeId', SubscribeId)
def get_Userss(self): # RepeatList
return self.get_query_params().get('Users')

def set_Userss(self, Users): # RepeatList
for depth1 in range(len(Users)):
self.add_query_param('Users.' + str(depth1 + 1), Users[depth1])
def get_AppId(self): # String
return self.get_query_params().get('AppId')

def set_AppId(self, AppId): # String
self.add_query_param('AppId', AppId)
def get_CallbackUrl(self): # String
return self.get_query_params().get('CallbackUrl')

def set_CallbackUrl(self, CallbackUrl): # String
self.add_query_param('CallbackUrl', CallbackUrl)
def get_ChannelId(self): # String
return self.get_query_params().get('ChannelId')

def set_ChannelId(self, ChannelId): # String
self.add_query_param('ChannelId', ChannelId)
def get_Eventss(self): # RepeatList
return self.get_query_params().get('Events')

def set_Eventss(self, Events): # RepeatList
for depth1 in range(len(Events)):
self.add_query_param('Events.' + str(depth1 + 1), Events[depth1])

0 comments on commit 22f19d1

Please sign in to comment.