tencentcloud-sdk-cfw 1.0.210 → 1.0.211
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/v20190904/client.rb +24 -0
- data/lib/v20190904/models.rb +129 -2
- 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: 9833cb067271420dac024eba15ae978afcdd30ed
         | 
| 4 | 
            +
              data.tar.gz: db82fa06f56e15554c8bfcc9e4283685bea13a99
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6901da6b6f9503ac302e7f0495acebcb8fcdb7a88333217987e9e5b68e6e7ab273f016c0527b37eac1711567de1e990e8870dd4ad258b2039186b97c4e5e2564
         | 
| 7 | 
            +
              data.tar.gz: 3f72f5245e4ff7339f48a65db97c65688e6ff027c30cada79a5399929b2632e23faab31cf7c4dd2d603e60085388e1ffb703dcdf0d545f718150c509503e3aa2
         | 
    
        data/lib/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.0. | 
| 1 | 
            +
            1.0.211
         | 
    
        data/lib/v20190904/client.rb
    CHANGED
    
    | @@ -437,6 +437,30 @@ module TencentCloud | |
| 437 437 | 
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 438 438 | 
             
                    end
         | 
| 439 439 |  | 
| 440 | 
            +
                    # 获取地址模版列表
         | 
| 441 | 
            +
             | 
| 442 | 
            +
                    # @param request: Request instance for DescribeAddrTemplateList.
         | 
| 443 | 
            +
                    # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeAddrTemplateListRequest`
         | 
| 444 | 
            +
                    # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeAddrTemplateListResponse`
         | 
| 445 | 
            +
                    def DescribeAddrTemplateList(request)
         | 
| 446 | 
            +
                      body = send_request('DescribeAddrTemplateList', request.serialize)
         | 
| 447 | 
            +
                      response = JSON.parse(body)
         | 
| 448 | 
            +
                      if response['Response'].key?('Error') == false
         | 
| 449 | 
            +
                        model = DescribeAddrTemplateListResponse.new
         | 
| 450 | 
            +
                        model.deserialize(response['Response'])
         | 
| 451 | 
            +
                        model
         | 
| 452 | 
            +
                      else
         | 
| 453 | 
            +
                        code = response['Response']['Error']['Code']
         | 
| 454 | 
            +
                        message = response['Response']['Error']['Message']
         | 
| 455 | 
            +
                        reqid = response['Response']['RequestId']
         | 
| 456 | 
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         | 
| 457 | 
            +
                      end
         | 
| 458 | 
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         | 
| 459 | 
            +
                      raise e
         | 
| 460 | 
            +
                    rescue StandardError => e
         | 
| 461 | 
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         | 
| 462 | 
            +
                    end
         | 
| 463 | 
            +
             | 
| 440 464 | 
             
                    # 获取安全组关联实例列表
         | 
| 441 465 |  | 
| 442 466 | 
             
                    # @param request: Request instance for DescribeAssociatedInstanceList.
         | 
    
        data/lib/v20190904/models.rb
    CHANGED
    
    | @@ -1226,6 +1226,73 @@ module TencentCloud | |
| 1226 1226 | 
             
                    end
         | 
| 1227 1227 | 
             
                  end
         | 
| 1228 1228 |  | 
| 1229 | 
            +
                  # DescribeAddrTemplateList请求参数结构体
         | 
| 1230 | 
            +
                  class DescribeAddrTemplateListRequest < TencentCloud::Common::AbstractModel
         | 
| 1231 | 
            +
                    # @param Offset: 偏移量,分页用
         | 
| 1232 | 
            +
                    # @type Offset: Integer
         | 
| 1233 | 
            +
                    # @param Limit: 条数,分页用
         | 
| 1234 | 
            +
                    # @type Limit: Integer
         | 
| 1235 | 
            +
                    # @param By: 排序字段,取值 'UpdateTime' | 'RulesNum'
         | 
| 1236 | 
            +
                    # @type By: String
         | 
| 1237 | 
            +
                    # @param Order: 排序,取值 'asc'|'desc'
         | 
| 1238 | 
            +
                    # @type Order: String
         | 
| 1239 | 
            +
                    # @param SearchValue: 搜索值
         | 
| 1240 | 
            +
                    # @type SearchValue: String
         | 
| 1241 | 
            +
             | 
| 1242 | 
            +
                    attr_accessor :Offset, :Limit, :By, :Order, :SearchValue
         | 
| 1243 | 
            +
                    
         | 
| 1244 | 
            +
                    def initialize(offset=nil, limit=nil, by=nil, order=nil, searchvalue=nil)
         | 
| 1245 | 
            +
                      @Offset = offset
         | 
| 1246 | 
            +
                      @Limit = limit
         | 
| 1247 | 
            +
                      @By = by
         | 
| 1248 | 
            +
                      @Order = order
         | 
| 1249 | 
            +
                      @SearchValue = searchvalue
         | 
| 1250 | 
            +
                    end
         | 
| 1251 | 
            +
             | 
| 1252 | 
            +
                    def deserialize(params)
         | 
| 1253 | 
            +
                      @Offset = params['Offset']
         | 
| 1254 | 
            +
                      @Limit = params['Limit']
         | 
| 1255 | 
            +
                      @By = params['By']
         | 
| 1256 | 
            +
                      @Order = params['Order']
         | 
| 1257 | 
            +
                      @SearchValue = params['SearchValue']
         | 
| 1258 | 
            +
                    end
         | 
| 1259 | 
            +
                  end
         | 
| 1260 | 
            +
             | 
| 1261 | 
            +
                  # DescribeAddrTemplateList返回参数结构体
         | 
| 1262 | 
            +
                  class DescribeAddrTemplateListResponse < TencentCloud::Common::AbstractModel
         | 
| 1263 | 
            +
                    # @param Total: 模版总数
         | 
| 1264 | 
            +
                    # @type Total: Integer
         | 
| 1265 | 
            +
                    # @param Data: 模版列表数据
         | 
| 1266 | 
            +
                    # @type Data: Array
         | 
| 1267 | 
            +
                    # @param NameList: 模版名称列表
         | 
| 1268 | 
            +
                    # @type NameList: Array
         | 
| 1269 | 
            +
                    # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
         | 
| 1270 | 
            +
                    # @type RequestId: String
         | 
| 1271 | 
            +
             | 
| 1272 | 
            +
                    attr_accessor :Total, :Data, :NameList, :RequestId
         | 
| 1273 | 
            +
                    
         | 
| 1274 | 
            +
                    def initialize(total=nil, data=nil, namelist=nil, requestid=nil)
         | 
| 1275 | 
            +
                      @Total = total
         | 
| 1276 | 
            +
                      @Data = data
         | 
| 1277 | 
            +
                      @NameList = namelist
         | 
| 1278 | 
            +
                      @RequestId = requestid
         | 
| 1279 | 
            +
                    end
         | 
| 1280 | 
            +
             | 
| 1281 | 
            +
                    def deserialize(params)
         | 
| 1282 | 
            +
                      @Total = params['Total']
         | 
| 1283 | 
            +
                      unless params['Data'].nil?
         | 
| 1284 | 
            +
                        @Data = []
         | 
| 1285 | 
            +
                        params['Data'].each do |i|
         | 
| 1286 | 
            +
                          templatelistinfo_tmp = TemplateListInfo.new
         | 
| 1287 | 
            +
                          templatelistinfo_tmp.deserialize(i)
         | 
| 1288 | 
            +
                          @Data << templatelistinfo_tmp
         | 
| 1289 | 
            +
                        end
         | 
| 1290 | 
            +
                      end
         | 
| 1291 | 
            +
                      @NameList = params['NameList']
         | 
| 1292 | 
            +
                      @RequestId = params['RequestId']
         | 
| 1293 | 
            +
                    end
         | 
| 1294 | 
            +
                  end
         | 
| 1295 | 
            +
             | 
| 1229 1296 | 
             
                  # DescribeAssociatedInstanceList请求参数结构体
         | 
| 1230 1297 | 
             
                  class DescribeAssociatedInstanceListRequest < TencentCloud::Common::AbstractModel
         | 
| 1231 1298 | 
             
                    # @param Offset: 列表偏移量
         | 
| @@ -4673,10 +4740,14 @@ module TencentCloud | |
| 4673 4740 | 
             
                    # @param ServiceTemplateId: 端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥
         | 
| 4674 4741 | 
             
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 4675 4742 | 
             
                    # @type ServiceTemplateId: String
         | 
| 4743 | 
            +
                    # @param Id: 规则对应的唯一id
         | 
| 4744 | 
            +
                    # @type Id: String
         | 
| 4745 | 
            +
                    # @param Enable: 规则状态,true表示启用,false表示禁用
         | 
| 4746 | 
            +
                    # @type Enable: String
         | 
| 4676 4747 |  | 
| 4677 | 
            -
                    attr_accessor :SourceContent, :SourceType, :DestContent, :DestType, :RuleAction, :Description, :OrderIndex, :Protocol, :Port, :ServiceTemplateId
         | 
| 4748 | 
            +
                    attr_accessor :SourceContent, :SourceType, :DestContent, :DestType, :RuleAction, :Description, :OrderIndex, :Protocol, :Port, :ServiceTemplateId, :Id, :Enable
         | 
| 4678 4749 |  | 
| 4679 | 
            -
                    def initialize(sourcecontent=nil, sourcetype=nil, destcontent=nil, desttype=nil, ruleaction=nil, description=nil, orderindex=nil, protocol=nil, port=nil, servicetemplateid=nil)
         | 
| 4750 | 
            +
                    def initialize(sourcecontent=nil, sourcetype=nil, destcontent=nil, desttype=nil, ruleaction=nil, description=nil, orderindex=nil, protocol=nil, port=nil, servicetemplateid=nil, id=nil, enable=nil)
         | 
| 4680 4751 | 
             
                      @SourceContent = sourcecontent
         | 
| 4681 4752 | 
             
                      @SourceType = sourcetype
         | 
| 4682 4753 | 
             
                      @DestContent = destcontent
         | 
| @@ -4687,6 +4758,8 @@ module TencentCloud | |
| 4687 4758 | 
             
                      @Protocol = protocol
         | 
| 4688 4759 | 
             
                      @Port = port
         | 
| 4689 4760 | 
             
                      @ServiceTemplateId = servicetemplateid
         | 
| 4761 | 
            +
                      @Id = id
         | 
| 4762 | 
            +
                      @Enable = enable
         | 
| 4690 4763 | 
             
                    end
         | 
| 4691 4764 |  | 
| 4692 4765 | 
             
                    def deserialize(params)
         | 
| @@ -4700,6 +4773,8 @@ module TencentCloud | |
| 4700 4773 | 
             
                      @Protocol = params['Protocol']
         | 
| 4701 4774 | 
             
                      @Port = params['Port']
         | 
| 4702 4775 | 
             
                      @ServiceTemplateId = params['ServiceTemplateId']
         | 
| 4776 | 
            +
                      @Id = params['Id']
         | 
| 4777 | 
            +
                      @Enable = params['Enable']
         | 
| 4703 4778 | 
             
                    end
         | 
| 4704 4779 | 
             
                  end
         | 
| 4705 4780 |  | 
| @@ -5016,6 +5091,58 @@ module TencentCloud | |
| 5016 5091 | 
             
                    end
         | 
| 5017 5092 | 
             
                  end
         | 
| 5018 5093 |  | 
| 5094 | 
            +
                  # 地址模版列表数据
         | 
| 5095 | 
            +
                  class TemplateListInfo < TencentCloud::Common::AbstractModel
         | 
| 5096 | 
            +
                    # @param Uuid: 模版ID
         | 
| 5097 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5098 | 
            +
                    # @type Uuid: String
         | 
| 5099 | 
            +
                    # @param Name: 模版名称
         | 
| 5100 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5101 | 
            +
                    # @type Name: String
         | 
| 5102 | 
            +
                    # @param Detail: 描述
         | 
| 5103 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5104 | 
            +
                    # @type Detail: String
         | 
| 5105 | 
            +
                    # @param IpString: IP模版
         | 
| 5106 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5107 | 
            +
                    # @type IpString: String
         | 
| 5108 | 
            +
                    # @param InsertTime: 插入时间
         | 
| 5109 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5110 | 
            +
                    # @type InsertTime: String
         | 
| 5111 | 
            +
                    # @param UpdateTime: 修改时间
         | 
| 5112 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5113 | 
            +
                    # @type UpdateTime: String
         | 
| 5114 | 
            +
                    # @param Type: 模版类型
         | 
| 5115 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5116 | 
            +
                    # @type Type: Integer
         | 
| 5117 | 
            +
                    # @param RulesNum: 关联规则条数
         | 
| 5118 | 
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         | 
| 5119 | 
            +
                    # @type RulesNum: Integer
         | 
| 5120 | 
            +
             | 
| 5121 | 
            +
                    attr_accessor :Uuid, :Name, :Detail, :IpString, :InsertTime, :UpdateTime, :Type, :RulesNum
         | 
| 5122 | 
            +
                    
         | 
| 5123 | 
            +
                    def initialize(uuid=nil, name=nil, detail=nil, ipstring=nil, inserttime=nil, updatetime=nil, type=nil, rulesnum=nil)
         | 
| 5124 | 
            +
                      @Uuid = uuid
         | 
| 5125 | 
            +
                      @Name = name
         | 
| 5126 | 
            +
                      @Detail = detail
         | 
| 5127 | 
            +
                      @IpString = ipstring
         | 
| 5128 | 
            +
                      @InsertTime = inserttime
         | 
| 5129 | 
            +
                      @UpdateTime = updatetime
         | 
| 5130 | 
            +
                      @Type = type
         | 
| 5131 | 
            +
                      @RulesNum = rulesnum
         | 
| 5132 | 
            +
                    end
         | 
| 5133 | 
            +
             | 
| 5134 | 
            +
                    def deserialize(params)
         | 
| 5135 | 
            +
                      @Uuid = params['Uuid']
         | 
| 5136 | 
            +
                      @Name = params['Name']
         | 
| 5137 | 
            +
                      @Detail = params['Detail']
         | 
| 5138 | 
            +
                      @IpString = params['IpString']
         | 
| 5139 | 
            +
                      @InsertTime = params['InsertTime']
         | 
| 5140 | 
            +
                      @UpdateTime = params['UpdateTime']
         | 
| 5141 | 
            +
                      @Type = params['Type']
         | 
| 5142 | 
            +
                      @RulesNum = params['RulesNum']
         | 
| 5143 | 
            +
                    end
         | 
| 5144 | 
            +
                  end
         | 
| 5145 | 
            +
             | 
| 5019 5146 | 
             
                  # 未处置事件详情
         | 
| 5020 5147 | 
             
                  class UnHandleEvent < TencentCloud::Common::AbstractModel
         | 
| 5021 5148 | 
             
                    # @param EventTableListStruct: 伪攻击链类型
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: tencentcloud-sdk-cfw
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.211
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Tencent Cloud
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021-11- | 
| 11 | 
            +
            date: 2021-11-26 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: tencentcloud-sdk-common
         |