# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed 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.
#
# NOTE: This class is auto generated by the jdcloud code generator program.
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
[docs]class AddLiveDomainRequest(JDCloudRequest):
"""
添加直播域名
- 创建直播域名之前,必须先开通直播服务
- 直播域名必须已经备案完成
"""
def __init__(self, parameters, header=None, version="v1"):
super(AddLiveDomainRequest, self).__init__(
'/domains', 'POST', header, version)
self.parameters = parameters
[docs]class AddLiveDomainParameters(object):
def __init__(self, publishDomain, playDomain):
"""
:param publishDomain: 直播的推流域名
- 不支持泛域名
:param playDomain: 直播的播放域名
- 不支持泛域名
"""
self.publishDomain = publishDomain
self.playDomain = playDomain