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 Sep 26, 2024
1 parent 17633e7 commit b7a8d11
Show file tree
Hide file tree
Showing 8 changed files with 397 additions and 1 deletion.
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-09-26 Version: 3.9.61
- Update to support new apis.

2024-08-22 Version: 3.9.60
- 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.60'
__version__ = '3.9.61'
Original file line number Diff line number Diff line change
Expand Up @@ -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')

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

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 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)
Original file line number Diff line number Diff line change
@@ -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)
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 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)
Loading

0 comments on commit b7a8d11

Please sign in to comment.