Skip to content

Commit

Permalink
Add BatchGetMediaInfos.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 19, 2024
1 parent a2d3dc3 commit 84b1be9
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 1 deletion.
4 changes: 4 additions & 0 deletions aliyun-python-sdk-vod/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-12-19 Version: 2.16.29
- Add BatchGetMediaInfos.
- Modify UploadStreamByURL.

2024-12-06 Version: 2.16.28
-Release GetJobDetail, ListJobInfo.
-Modify GetTranscodeTask.
Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-vod/aliyunsdkvod/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.16.28'
__version__ = '2.16.29'
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 aliyunsdkvod.endpoint import endpoint_data

class BatchGetMediaInfosRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'vod', '2017-03-21', 'BatchGetMediaInfos','vod')
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_MediaIds(self): # String
return self.get_query_params().get('MediaIds')

def set_MediaIds(self, MediaIds): # String
self.add_query_param('MediaIds', MediaIds)
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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 aliyunsdkvod.endpoint import endpoint_data

class DescribeMediaDistributionRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'vod', '2017-03-21', 'DescribeMediaDistribution','vod')
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_EndTime(self): # String
return self.get_query_params().get('EndTime')

def set_EndTime(self, EndTime): # String
self.add_query_param('EndTime', EndTime)
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_StorageClass(self): # String
return self.get_query_params().get('StorageClass')

def set_StorageClass(self, StorageClass): # String
self.add_query_param('StorageClass', StorageClass)
def get_Interval(self): # String
return self.get_query_params().get('Interval')

def set_Interval(self, Interval): # String
self.add_query_param('Interval', Interval)
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ def get_MediaId(self): # String

def set_MediaId(self, MediaId): # String
self.add_query_param('MediaId', MediaId)
def get_UploadMetadata(self): # String
return self.get_query_params().get('UploadMetadata')

def set_UploadMetadata(self, UploadMetadata): # String
self.add_query_param('UploadMetadata', UploadMetadata)

0 comments on commit 84b1be9

Please sign in to comment.