Source code for jdcloud_sdk.services.cdn.apis.CreateLiveDomainPrefecthTaskRequest

# 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 CreateLiveDomainPrefecthTaskRequest(JDCloudRequest): """ 创建直播预热任务 """ def __init__(self, parameters, header=None, version="v1"): super(CreateLiveDomainPrefecthTaskRequest, self).__init__( '/task:createLivePrefetchTask', 'POST', header, version) self.parameters = parameters
[docs]class CreateLiveDomainPrefecthTaskParameters(object): def __init__(self,): """ """ self.urlList = None self.prefetchTime = None self.action = None
[docs] def setUrlList(self, urlList): """ :param urlList: (Optional) 预热的URL """ self.urlList = urlList
[docs] def setPrefetchTime(self, prefetchTime): """ :param prefetchTime: (Optional) 预热时长 """ self.prefetchTime = prefetchTime
[docs] def setAction(self, action): """ :param action: (Optional) 操作类型只能是[start,stop]中的一种 """ self.action = action