tencentcloud-sdk-waf 3.0.654 → 3.0.655
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +24 -48
- data/lib/v20180125/models.rb +44 -97
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 46503de204e5452414dac21519fc38d355d6504a
         | 
| 4 | 
            +
              data.tar.gz: bae522c71cef32f0e45c2407bbb7353fe775a147
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 07b16beda78c95aa7cf7595ef7bfb8ea334f7d2f5e1d48287b8085859d89ee9a609f34c80bea7d875222682103aa369fa9b2fef5487260d6726599b0fa69b9a1
         | 
| 7 | 
            +
              data.tar.gz: 74a7bc90ae03f4cdfe08ed750657cf7eae94127785a56ffaa0fc819af2577a3593999075f8a78240b22761e16494e11c9f04682300fa15a232c3bf56720b9f36
         | 
    
        data/lib/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            3.0. | 
| 1 | 
            +
            3.0.655
         | 
    
        data/lib/v20180125/client.rb
    CHANGED
    
    | @@ -173,54 +173,6 @@ module TencentCloud | |
| 173 173 | 
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 174 174 | 
             
                    end
         | 
| 175 175 |  | 
| 176 | 
            -
                    # 一键接入
         | 
| 177 | 
            -
             | 
| 178 | 
            -
                    # @param request: Request instance for AddSpartaProtectionAuto.
         | 
| 179 | 
            -
                    # @type request: :class:`Tencentcloud::waf::V20180125::AddSpartaProtectionAutoRequest`
         | 
| 180 | 
            -
                    # @rtype: :class:`Tencentcloud::waf::V20180125::AddSpartaProtectionAutoResponse`
         | 
| 181 | 
            -
                    def AddSpartaProtectionAuto(request)
         | 
| 182 | 
            -
                      body = send_request('AddSpartaProtectionAuto', request.serialize)
         | 
| 183 | 
            -
                      response = JSON.parse(body)
         | 
| 184 | 
            -
                      if response['Response'].key?('Error') == false
         | 
| 185 | 
            -
                        model = AddSpartaProtectionAutoResponse.new
         | 
| 186 | 
            -
                        model.deserialize(response['Response'])
         | 
| 187 | 
            -
                        model
         | 
| 188 | 
            -
                      else
         | 
| 189 | 
            -
                        code = response['Response']['Error']['Code']
         | 
| 190 | 
            -
                        message = response['Response']['Error']['Message']
         | 
| 191 | 
            -
                        reqid = response['Response']['RequestId']
         | 
| 192 | 
            -
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         | 
| 193 | 
            -
                      end
         | 
| 194 | 
            -
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         | 
| 195 | 
            -
                      raise e
         | 
| 196 | 
            -
                    rescue StandardError => e
         | 
| 197 | 
            -
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 198 | 
            -
                    end
         | 
| 199 | 
            -
             | 
| 200 | 
            -
                    # 批量添加域名
         | 
| 201 | 
            -
             | 
| 202 | 
            -
                    # @param request: Request instance for AddSpartaProtectionsAuto.
         | 
| 203 | 
            -
                    # @type request: :class:`Tencentcloud::waf::V20180125::AddSpartaProtectionsAutoRequest`
         | 
| 204 | 
            -
                    # @rtype: :class:`Tencentcloud::waf::V20180125::AddSpartaProtectionsAutoResponse`
         | 
| 205 | 
            -
                    def AddSpartaProtectionsAuto(request)
         | 
| 206 | 
            -
                      body = send_request('AddSpartaProtectionsAuto', request.serialize)
         | 
| 207 | 
            -
                      response = JSON.parse(body)
         | 
| 208 | 
            -
                      if response['Response'].key?('Error') == false
         | 
| 209 | 
            -
                        model = AddSpartaProtectionsAutoResponse.new
         | 
| 210 | 
            -
                        model.deserialize(response['Response'])
         | 
| 211 | 
            -
                        model
         | 
| 212 | 
            -
                      else
         | 
| 213 | 
            -
                        code = response['Response']['Error']['Code']
         | 
| 214 | 
            -
                        message = response['Response']['Error']['Message']
         | 
| 215 | 
            -
                        reqid = response['Response']['RequestId']
         | 
| 216 | 
            -
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         | 
| 217 | 
            -
                      end
         | 
| 218 | 
            -
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         | 
| 219 | 
            -
                      raise e
         | 
| 220 | 
            -
                    rescue StandardError => e
         | 
| 221 | 
            -
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 222 | 
            -
                    end
         | 
| 223 | 
            -
             | 
| 224 176 | 
             
                    # 本接口用于创建访问日志导出
         | 
| 225 177 |  | 
| 226 178 | 
             
                    # @param request: Request instance for CreateAccessExport.
         | 
| @@ -1042,6 +994,30 @@ module TencentCloud | |
| 1042 994 | 
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 1043 995 | 
             
                    end
         | 
| 1044 996 |  | 
| 997 | 
            +
                    # 获取添加域名操作的结果
         | 
| 998 | 
            +
             | 
| 999 | 
            +
                    # @param request: Request instance for DescribeDomainVerifyResult.
         | 
| 1000 | 
            +
                    # @type request: :class:`Tencentcloud::waf::V20180125::DescribeDomainVerifyResultRequest`
         | 
| 1001 | 
            +
                    # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeDomainVerifyResultResponse`
         | 
| 1002 | 
            +
                    def DescribeDomainVerifyResult(request)
         | 
| 1003 | 
            +
                      body = send_request('DescribeDomainVerifyResult', request.serialize)
         | 
| 1004 | 
            +
                      response = JSON.parse(body)
         | 
| 1005 | 
            +
                      if response['Response'].key?('Error') == false
         | 
| 1006 | 
            +
                        model = DescribeDomainVerifyResultResponse.new
         | 
| 1007 | 
            +
                        model.deserialize(response['Response'])
         | 
| 1008 | 
            +
                        model
         | 
| 1009 | 
            +
                      else
         | 
| 1010 | 
            +
                        code = response['Response']['Error']['Code']
         | 
| 1011 | 
            +
                        message = response['Response']['Error']['Message']
         | 
| 1012 | 
            +
                        reqid = response['Response']['RequestId']
         | 
| 1013 | 
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         | 
| 1014 | 
            +
                      end
         | 
| 1015 | 
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         | 
| 1016 | 
            +
                      raise e
         | 
| 1017 | 
            +
                    rescue StandardError => e
         | 
| 1018 | 
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 1019 | 
            +
                    end
         | 
| 1020 | 
            +
             | 
| 1045 1021 | 
             
                    # 获取域名的规则白名单
         | 
| 1046 1022 |  | 
| 1047 1023 | 
             
                    # @param request: Request instance for DescribeDomainWhiteRules.
         | 
    
        data/lib/v20180125/models.rb
    CHANGED
    
    | @@ -628,38 +628,6 @@ module TencentCloud | |
| 628 628 | 
             
                    end
         | 
| 629 629 | 
             
                  end
         | 
| 630 630 |  | 
| 631 | 
            -
                  # AddSpartaProtectionAuto请求参数结构体
         | 
| 632 | 
            -
                  class AddSpartaProtectionAutoRequest < TencentCloud::Common::AbstractModel
         | 
| 633 | 
            -
                    # @param Domain: 域名
         | 
| 634 | 
            -
                    # @type Domain: String
         | 
| 635 | 
            -
             | 
| 636 | 
            -
                    attr_accessor :Domain
         | 
| 637 | 
            -
             | 
| 638 | 
            -
                    def initialize(domain=nil)
         | 
| 639 | 
            -
                      @Domain = domain
         | 
| 640 | 
            -
                    end
         | 
| 641 | 
            -
             | 
| 642 | 
            -
                    def deserialize(params)
         | 
| 643 | 
            -
                      @Domain = params['Domain']
         | 
| 644 | 
            -
                    end
         | 
| 645 | 
            -
                  end
         | 
| 646 | 
            -
             | 
| 647 | 
            -
                  # AddSpartaProtectionAuto返回参数结构体
         | 
| 648 | 
            -
                  class AddSpartaProtectionAutoResponse < TencentCloud::Common::AbstractModel
         | 
| 649 | 
            -
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         | 
| 650 | 
            -
                    # @type RequestId: String
         | 
| 651 | 
            -
             | 
| 652 | 
            -
                    attr_accessor :RequestId
         | 
| 653 | 
            -
             | 
| 654 | 
            -
                    def initialize(requestid=nil)
         | 
| 655 | 
            -
                      @RequestId = requestid
         | 
| 656 | 
            -
                    end
         | 
| 657 | 
            -
             | 
| 658 | 
            -
                    def deserialize(params)
         | 
| 659 | 
            -
                      @RequestId = params['RequestId']
         | 
| 660 | 
            -
                    end
         | 
| 661 | 
            -
                  end
         | 
| 662 | 
            -
             | 
| 663 631 | 
             
                  # AddSpartaProtection请求参数结构体
         | 
| 664 632 | 
             
                  class AddSpartaProtectionRequest < TencentCloud::Common::AbstractModel
         | 
| 665 633 | 
             
                    # @param Domain: 需要防御的域名
         | 
| @@ -831,49 +799,6 @@ module TencentCloud | |
| 831 799 | 
             
                    end
         | 
| 832 800 | 
             
                  end
         | 
| 833 801 |  | 
| 834 | 
            -
                  # AddSpartaProtectionsAuto请求参数结构体
         | 
| 835 | 
            -
                  class AddSpartaProtectionsAutoRequest < TencentCloud::Common::AbstractModel
         | 
| 836 | 
            -
                    # @param Domain: 多域名
         | 
| 837 | 
            -
                    # @type Domain: String
         | 
| 838 | 
            -
             | 
| 839 | 
            -
                    attr_accessor :Domain
         | 
| 840 | 
            -
             | 
| 841 | 
            -
                    def initialize(domain=nil)
         | 
| 842 | 
            -
                      @Domain = domain
         | 
| 843 | 
            -
                    end
         | 
| 844 | 
            -
             | 
| 845 | 
            -
                    def deserialize(params)
         | 
| 846 | 
            -
                      @Domain = params['Domain']
         | 
| 847 | 
            -
                    end
         | 
| 848 | 
            -
                  end
         | 
| 849 | 
            -
             | 
| 850 | 
            -
                  # AddSpartaProtectionsAuto返回参数结构体
         | 
| 851 | 
            -
                  class AddSpartaProtectionsAutoResponse < TencentCloud::Common::AbstractModel
         | 
| 852 | 
            -
                    # @param FailedInfos: 失败原因
         | 
| 853 | 
            -
                    # @type FailedInfos: Array
         | 
| 854 | 
            -
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         | 
| 855 | 
            -
                    # @type RequestId: String
         | 
| 856 | 
            -
             | 
| 857 | 
            -
                    attr_accessor :FailedInfos, :RequestId
         | 
| 858 | 
            -
             | 
| 859 | 
            -
                    def initialize(failedinfos=nil, requestid=nil)
         | 
| 860 | 
            -
                      @FailedInfos = failedinfos
         | 
| 861 | 
            -
                      @RequestId = requestid
         | 
| 862 | 
            -
                    end
         | 
| 863 | 
            -
             | 
| 864 | 
            -
                    def deserialize(params)
         | 
| 865 | 
            -
                      unless params['FailedInfos'].nil?
         | 
| 866 | 
            -
                        @FailedInfos = []
         | 
| 867 | 
            -
                        params['FailedInfos'].each do |i|
         | 
| 868 | 
            -
                          failedinfo_tmp = FailedInfo.new
         | 
| 869 | 
            -
                          failedinfo_tmp.deserialize(i)
         | 
| 870 | 
            -
                          @FailedInfos << failedinfo_tmp
         | 
| 871 | 
            -
                        end
         | 
| 872 | 
            -
                      end
         | 
| 873 | 
            -
                      @RequestId = params['RequestId']
         | 
| 874 | 
            -
                    end
         | 
| 875 | 
            -
                  end
         | 
| 876 | 
            -
             | 
| 877 802 | 
             
                  # 攻击日志详情
         | 
| 878 803 | 
             
                  class AttackLogInfo < TencentCloud::Common::AbstractModel
         | 
| 879 804 | 
             
                    # @param Content: 攻击日志的详情内容
         | 
| @@ -3355,6 +3280,50 @@ module TencentCloud | |
| 3355 3280 | 
             
                    end
         | 
| 3356 3281 | 
             
                  end
         | 
| 3357 3282 |  | 
| 3283 | 
            +
                  # DescribeDomainVerifyResult请求参数结构体
         | 
| 3284 | 
            +
                  class DescribeDomainVerifyResultRequest < TencentCloud::Common::AbstractModel
         | 
| 3285 | 
            +
                    # @param Domain: 域名
         | 
| 3286 | 
            +
                    # @type Domain: String
         | 
| 3287 | 
            +
                    # @param InstanceID: 实例id
         | 
| 3288 | 
            +
                    # @type InstanceID: String
         | 
| 3289 | 
            +
             | 
| 3290 | 
            +
                    attr_accessor :Domain, :InstanceID
         | 
| 3291 | 
            +
             | 
| 3292 | 
            +
                    def initialize(domain=nil, instanceid=nil)
         | 
| 3293 | 
            +
                      @Domain = domain
         | 
| 3294 | 
            +
                      @InstanceID = instanceid
         | 
| 3295 | 
            +
                    end
         | 
| 3296 | 
            +
             | 
| 3297 | 
            +
                    def deserialize(params)
         | 
| 3298 | 
            +
                      @Domain = params['Domain']
         | 
| 3299 | 
            +
                      @InstanceID = params['InstanceID']
         | 
| 3300 | 
            +
                    end
         | 
| 3301 | 
            +
                  end
         | 
| 3302 | 
            +
             | 
| 3303 | 
            +
                  # DescribeDomainVerifyResult返回参数结构体
         | 
| 3304 | 
            +
                  class DescribeDomainVerifyResultResponse < TencentCloud::Common::AbstractModel
         | 
| 3305 | 
            +
                    # @param Msg: 结果描述;如果可以添加返回空字符串
         | 
| 3306 | 
            +
                    # @type Msg: String
         | 
| 3307 | 
            +
                    # @param VerifyCode: 检验状态:0表示可以添加,大于0为不能添加
         | 
| 3308 | 
            +
                    # @type VerifyCode: Integer
         | 
| 3309 | 
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         | 
| 3310 | 
            +
                    # @type RequestId: String
         | 
| 3311 | 
            +
             | 
| 3312 | 
            +
                    attr_accessor :Msg, :VerifyCode, :RequestId
         | 
| 3313 | 
            +
             | 
| 3314 | 
            +
                    def initialize(msg=nil, verifycode=nil, requestid=nil)
         | 
| 3315 | 
            +
                      @Msg = msg
         | 
| 3316 | 
            +
                      @VerifyCode = verifycode
         | 
| 3317 | 
            +
                      @RequestId = requestid
         | 
| 3318 | 
            +
                    end
         | 
| 3319 | 
            +
             | 
| 3320 | 
            +
                    def deserialize(params)
         | 
| 3321 | 
            +
                      @Msg = params['Msg']
         | 
| 3322 | 
            +
                      @VerifyCode = params['VerifyCode']
         | 
| 3323 | 
            +
                      @RequestId = params['RequestId']
         | 
| 3324 | 
            +
                    end
         | 
| 3325 | 
            +
                  end
         | 
| 3326 | 
            +
             | 
| 3358 3327 | 
             
                  # DescribeDomainWhiteRules请求参数结构体
         | 
| 3359 3328 | 
             
                  class DescribeDomainWhiteRulesRequest < TencentCloud::Common::AbstractModel
         | 
| 3360 3329 | 
             
                    # @param Domain: 需要查询的域名
         | 
| @@ -5111,28 +5080,6 @@ module TencentCloud | |
| 5111 5080 | 
             
                    end
         | 
| 5112 5081 | 
             
                  end
         | 
| 5113 5082 |  | 
| 5114 | 
            -
                  # 失败描述
         | 
| 5115 | 
            -
                  class FailedInfo < TencentCloud::Common::AbstractModel
         | 
| 5116 | 
            -
                    # @param Domain: 域名
         | 
| 5117 | 
            -
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5118 | 
            -
                    # @type Domain: String
         | 
| 5119 | 
            -
                    # @param Message: 失败信息
         | 
| 5120 | 
            -
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5121 | 
            -
                    # @type Message: String
         | 
| 5122 | 
            -
             | 
| 5123 | 
            -
                    attr_accessor :Domain, :Message
         | 
| 5124 | 
            -
             | 
| 5125 | 
            -
                    def initialize(domain=nil, message=nil)
         | 
| 5126 | 
            -
                      @Domain = domain
         | 
| 5127 | 
            -
                      @Message = message
         | 
| 5128 | 
            -
                    end
         | 
| 5129 | 
            -
             | 
| 5130 | 
            -
                    def deserialize(params)
         | 
| 5131 | 
            -
                      @Domain = params['Domain']
         | 
| 5132 | 
            -
                      @Message = params['Message']
         | 
| 5133 | 
            -
                    end
         | 
| 5134 | 
            -
                  end
         | 
| 5135 | 
            -
             | 
| 5136 5083 | 
             
                  # 过滤数组
         | 
| 5137 5084 | 
             
                  class FiltersItemNew < TencentCloud::Common::AbstractModel
         | 
| 5138 5085 | 
             
                    # @param Name: 字段名
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: tencentcloud-sdk-waf
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.0. | 
| 4 | 
            +
              version: 3.0.655
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tencent Cloud
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2023-09- | 
| 11 | 
            +
            date: 2023-09-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: tencentcloud-sdk-common
         |