Source code for jdcloud_sdk.services.live.models.WatermarkTemplate

# 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.


[docs]class WatermarkTemplate(object): def __init__(self, position=None, offsetUnit=None, offSetX=None, offSetY=None, sizeUnit=None, width=None, height=None, url=None, template=None): """ :param position: (Optional) 水印位置 - 取值范围:左上:1,右上:3, 左下:7,右下:9,默认:1 :param offsetUnit: (Optional) 偏移量单位 - 取值: percent,pixel :param offSetX: (Optional) x轴偏移量 :param offSetY: (Optional) y轴偏移量 :param sizeUnit: (Optional) 水印大小单位 - 取值: percent,pixel :param width: (Optional) 水印宽度 :param height: (Optional) 水印高度 :param url: (Optional) 水印地址 :param template: (Optional) 水印模板自定义名称 """ self.position = position self.offsetUnit = offsetUnit self.offSetX = offSetX self.offSetY = offSetY self.sizeUnit = sizeUnit self.width = width self.height = height self.url = url self.template = template