<filename>jdcloud_sdk/services/waf/models/RsConfig.py<gh_stars>10-100
# 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.


class RsConfig(object):

    def __init__(self, rsAddr, weight=None, httpRsPort=None, httpsRsPort=None, rsType=None):
        """
        :param rsAddr:  回源地址
        :param weight: (Optional) 回源地址权重，与rsAddr顺序对应
        :param httpRsPort: (Optional) http回源端口
        :param httpsRsPort: (Optional) https回源端口
        :param rsType: (Optional) 回源地址类型，0为ip，1为域名
        """

        self.rsAddr = rsAddr
        self.weight = weight
        self.httpRsPort = httpRsPort
        self.httpsRsPort = httpsRsPort
        self.rsType = rsType

<filename>jdcloud_sdk/services/waf/models/RsConfig.py<gh_stars>10-100
# 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.


class RsConfig(object):

    def __init__(self, rsAddr, weight=None, httpRsPort=None, httpsRsPort=None, rsType=None):
        """
        :param rsAddr:  回源地址
        :param weight: (Optional) 回源地址权重，与rsAddr顺序对应
        :param httpRsPort: (Optional) http回源端口
        :param httpsRsPort: (Optional) https回源端口
        :param rsType: (Optional) 回源地址类型，0为ip，1为域名
        """

        self.rsAddr = rsAddr
        self.weight = weight
        self.httpRsPort = httpRsPort
        self.httpsRsPort = httpsRsPort
        self.rsType = rsType

# 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. :param rsAddr:  回源地址         :param weight: (Optional) 回源地址权重，与rsAddr顺序对应         :param httpRsPort: (Optional) http回源端口         :param httpsRsPort: (Optional) https回源端口         :param rsType: (Optional) 回源地址类型，0为ip，1为域名