tencentcloud-sdk-iotvideo 3.0.961 → 3.0.962
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/v20211125/client.rb +48 -0
 - data/lib/v20211125/models.rb +112 -0
 - 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: c4c032a48811dba7d11c5ff213f14843ac297d4f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 5a7e44494d922c9f0b7efffbfbe62a8fcec1ceeb
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 0b4b5986fb0ce9d499adef63280221106262223b15b2bd044dc578c661f6d4c4be77d8c940274f69e2ab6c1e7d3c55e1ce4f5f1463060b4025457312f5fdd45e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d34a163e0abe2ea8d5cc8900268566f2a2f25782d951498e1ee3303a0f141cb7bb82e1e710385ee3355d0348dcaadc36e59b55ecd446fd157c6dd4a8ce6ef1b1
         
     | 
    
        data/lib/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            3.0.962
         
     | 
    
        data/lib/v20211125/client.rb
    CHANGED
    
    | 
         @@ -389,6 +389,30 @@ module TencentCloud 
     | 
|
| 
       389 
389 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       390 
390 
     | 
    
         
             
                    end
         
     | 
| 
       391 
391 
     | 
    
         | 
| 
      
 392 
     | 
    
         
            +
                    # 创建设备通道
         
     | 
| 
      
 393 
     | 
    
         
            +
             
     | 
| 
      
 394 
     | 
    
         
            +
                    # @param request: Request instance for CreateDeviceChannel.
         
     | 
| 
      
 395 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::iotvideo::V20211125::CreateDeviceChannelRequest`
         
     | 
| 
      
 396 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::iotvideo::V20211125::CreateDeviceChannelResponse`
         
     | 
| 
      
 397 
     | 
    
         
            +
                    def CreateDeviceChannel(request)
         
     | 
| 
      
 398 
     | 
    
         
            +
                      body = send_request('CreateDeviceChannel', request.serialize)
         
     | 
| 
      
 399 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 400 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 401 
     | 
    
         
            +
                        model = CreateDeviceChannelResponse.new
         
     | 
| 
      
 402 
     | 
    
         
            +
                        model.deserialize(response['Response'])
         
     | 
| 
      
 403 
     | 
    
         
            +
                        model
         
     | 
| 
      
 404 
     | 
    
         
            +
                      else
         
     | 
| 
      
 405 
     | 
    
         
            +
                        code = response['Response']['Error']['Code']
         
     | 
| 
      
 406 
     | 
    
         
            +
                        message = response['Response']['Error']['Message']
         
     | 
| 
      
 407 
     | 
    
         
            +
                        reqid = response['Response']['RequestId']
         
     | 
| 
      
 408 
     | 
    
         
            +
                        raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
         
     | 
| 
      
 409 
     | 
    
         
            +
                      end
         
     | 
| 
      
 410 
     | 
    
         
            +
                    rescue TencentCloud::Common::TencentCloudSDKException => e
         
     | 
| 
      
 411 
     | 
    
         
            +
                      raise e
         
     | 
| 
      
 412 
     | 
    
         
            +
                    rescue StandardError => e
         
     | 
| 
      
 413 
     | 
    
         
            +
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
      
 414 
     | 
    
         
            +
                    end
         
     | 
| 
      
 415 
     | 
    
         
            +
             
     | 
| 
       392 
416 
     | 
    
         
             
                    # 创建转发规则
         
     | 
| 
       393 
417 
     | 
    
         | 
| 
       394 
418 
     | 
    
         
             
                    # @param request: Request instance for CreateForwardRule.
         
     | 
| 
         @@ -413,6 +437,30 @@ module TencentCloud 
     | 
|
| 
       413 
437 
     | 
    
         
             
                      raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
         
     | 
| 
       414 
438 
     | 
    
         
             
                    end
         
     | 
| 
       415 
439 
     | 
    
         | 
| 
      
 440 
     | 
    
         
            +
                    # 开通免费云存服务
         
     | 
| 
      
 441 
     | 
    
         
            +
             
     | 
| 
      
 442 
     | 
    
         
            +
                    # @param request: Request instance for CreateFreeCloudStorage.
         
     | 
| 
      
 443 
     | 
    
         
            +
                    # @type request: :class:`Tencentcloud::iotvideo::V20211125::CreateFreeCloudStorageRequest`
         
     | 
| 
      
 444 
     | 
    
         
            +
                    # @rtype: :class:`Tencentcloud::iotvideo::V20211125::CreateFreeCloudStorageResponse`
         
     | 
| 
      
 445 
     | 
    
         
            +
                    def CreateFreeCloudStorage(request)
         
     | 
| 
      
 446 
     | 
    
         
            +
                      body = send_request('CreateFreeCloudStorage', request.serialize)
         
     | 
| 
      
 447 
     | 
    
         
            +
                      response = JSON.parse(body)
         
     | 
| 
      
 448 
     | 
    
         
            +
                      if response['Response'].key?('Error') == false
         
     | 
| 
      
 449 
     | 
    
         
            +
                        model = CreateFreeCloudStorageResponse.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 
     | 
    
         
            +
             
     | 
| 
       416 
464 
     | 
    
         
             
                    # 创建产品
         
     | 
| 
       417 
465 
     | 
    
         | 
| 
       418 
466 
     | 
    
         
             
                    # @param request: Request instance for CreateProduct.
         
     | 
    
        data/lib/v20211125/models.rb
    CHANGED
    
    | 
         @@ -1111,6 +1111,46 @@ module TencentCloud 
     | 
|
| 
       1111 
1111 
     | 
    
         
             
                    end
         
     | 
| 
       1112 
1112 
     | 
    
         
             
                  end
         
     | 
| 
       1113 
1113 
     | 
    
         | 
| 
      
 1114 
     | 
    
         
            +
                  # CreateDeviceChannel请求参数结构体
         
     | 
| 
      
 1115 
     | 
    
         
            +
                  class CreateDeviceChannelRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 1116 
     | 
    
         
            +
                    # @param ProductId: 产品ID
         
     | 
| 
      
 1117 
     | 
    
         
            +
                    # @type ProductId: String
         
     | 
| 
      
 1118 
     | 
    
         
            +
                    # @param DeviceName: 设备名称
         
     | 
| 
      
 1119 
     | 
    
         
            +
                    # @type DeviceName: String
         
     | 
| 
      
 1120 
     | 
    
         
            +
                    # @param ChannelId: 通道ID
         
     | 
| 
      
 1121 
     | 
    
         
            +
                    # @type ChannelId: Integer
         
     | 
| 
      
 1122 
     | 
    
         
            +
             
     | 
| 
      
 1123 
     | 
    
         
            +
                    attr_accessor :ProductId, :DeviceName, :ChannelId
         
     | 
| 
      
 1124 
     | 
    
         
            +
             
     | 
| 
      
 1125 
     | 
    
         
            +
                    def initialize(productid=nil, devicename=nil, channelid=nil)
         
     | 
| 
      
 1126 
     | 
    
         
            +
                      @ProductId = productid
         
     | 
| 
      
 1127 
     | 
    
         
            +
                      @DeviceName = devicename
         
     | 
| 
      
 1128 
     | 
    
         
            +
                      @ChannelId = channelid
         
     | 
| 
      
 1129 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1130 
     | 
    
         
            +
             
     | 
| 
      
 1131 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 1132 
     | 
    
         
            +
                      @ProductId = params['ProductId']
         
     | 
| 
      
 1133 
     | 
    
         
            +
                      @DeviceName = params['DeviceName']
         
     | 
| 
      
 1134 
     | 
    
         
            +
                      @ChannelId = params['ChannelId']
         
     | 
| 
      
 1135 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1136 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1137 
     | 
    
         
            +
             
     | 
| 
      
 1138 
     | 
    
         
            +
                  # CreateDeviceChannel返回参数结构体
         
     | 
| 
      
 1139 
     | 
    
         
            +
                  class CreateDeviceChannelResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 1140 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 1141 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 1142 
     | 
    
         
            +
             
     | 
| 
      
 1143 
     | 
    
         
            +
                    attr_accessor :RequestId
         
     | 
| 
      
 1144 
     | 
    
         
            +
             
     | 
| 
      
 1145 
     | 
    
         
            +
                    def initialize(requestid=nil)
         
     | 
| 
      
 1146 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 1147 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1148 
     | 
    
         
            +
             
     | 
| 
      
 1149 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 1150 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 1151 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1152 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1153 
     | 
    
         
            +
             
     | 
| 
       1114 
1154 
     | 
    
         
             
                  # CreateForwardRule请求参数结构体
         
     | 
| 
       1115 
1155 
     | 
    
         
             
                  class CreateForwardRuleRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
       1116 
1156 
     | 
    
         
             
                    # @param ProductID: 产品ID
         
     | 
| 
         @@ -1227,6 +1267,78 @@ module TencentCloud 
     | 
|
| 
       1227 
1267 
     | 
    
         
             
                    end
         
     | 
| 
       1228 
1268 
     | 
    
         
             
                  end
         
     | 
| 
       1229 
1269 
     | 
    
         | 
| 
      
 1270 
     | 
    
         
            +
                  # CreateFreeCloudStorage请求参数结构体
         
     | 
| 
      
 1271 
     | 
    
         
            +
                  class CreateFreeCloudStorageRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 1272 
     | 
    
         
            +
                    # @param ProductId: 产品ID
         
     | 
| 
      
 1273 
     | 
    
         
            +
                    # @type ProductId: String
         
     | 
| 
      
 1274 
     | 
    
         
            +
                    # @param DeviceName: 设备名称
         
     | 
| 
      
 1275 
     | 
    
         
            +
                    # @type DeviceName: String
         
     | 
| 
      
 1276 
     | 
    
         
            +
                    # @param PackageId: 云存套餐ID:
         
     | 
| 
      
 1277 
     | 
    
         
            +
                    # lye1w3d:低功耗事件3天周套餐。
         
     | 
| 
      
 1278 
     | 
    
         
            +
                    # ye1w3d:事件3天周套餐
         
     | 
| 
      
 1279 
     | 
    
         
            +
                    # @type PackageId: String
         
     | 
| 
      
 1280 
     | 
    
         
            +
                    # @param Override: 如果当前设备已开启云存套餐,Override=1会使用新套餐覆盖原有套餐。不传此参数则默认为0。
         
     | 
| 
      
 1281 
     | 
    
         
            +
                    # @type Override: Integer
         
     | 
| 
      
 1282 
     | 
    
         
            +
                    # @param PackageQueue: 套餐列表顺序:PackageQueue=front会立即使用新购买的套餐,新购套餐结束后,列表中下一个未过期的套餐继续生效;PackageQueue=end会等设备当前所有已购买套餐过期后才会生效新购套餐。与Override参数不能同时使用。
         
     | 
| 
      
 1283 
     | 
    
         
            +
                    # @type PackageQueue: String
         
     | 
| 
      
 1284 
     | 
    
         
            +
                    # @param OrderId: 订单id
         
     | 
| 
      
 1285 
     | 
    
         
            +
                    # @type OrderId: String
         
     | 
| 
      
 1286 
     | 
    
         
            +
                    # @param ChannelId: 通道ID
         
     | 
| 
      
 1287 
     | 
    
         
            +
                    # @type ChannelId: Integer
         
     | 
| 
      
 1288 
     | 
    
         
            +
                    # @param StorageRegion: 云存视频存储区域,国内默认为ap-guangzhou。海外默认为东南亚ap-singapore,可选美东na-ashburn、欧洲eu-frankfurt。
         
     | 
| 
      
 1289 
     | 
    
         
            +
                    # @type StorageRegion: String
         
     | 
| 
      
 1290 
     | 
    
         
            +
             
     | 
| 
      
 1291 
     | 
    
         
            +
                    attr_accessor :ProductId, :DeviceName, :PackageId, :Override, :PackageQueue, :OrderId, :ChannelId, :StorageRegion
         
     | 
| 
      
 1292 
     | 
    
         
            +
             
     | 
| 
      
 1293 
     | 
    
         
            +
                    def initialize(productid=nil, devicename=nil, packageid=nil, override=nil, packagequeue=nil, orderid=nil, channelid=nil, storageregion=nil)
         
     | 
| 
      
 1294 
     | 
    
         
            +
                      @ProductId = productid
         
     | 
| 
      
 1295 
     | 
    
         
            +
                      @DeviceName = devicename
         
     | 
| 
      
 1296 
     | 
    
         
            +
                      @PackageId = packageid
         
     | 
| 
      
 1297 
     | 
    
         
            +
                      @Override = override
         
     | 
| 
      
 1298 
     | 
    
         
            +
                      @PackageQueue = packagequeue
         
     | 
| 
      
 1299 
     | 
    
         
            +
                      @OrderId = orderid
         
     | 
| 
      
 1300 
     | 
    
         
            +
                      @ChannelId = channelid
         
     | 
| 
      
 1301 
     | 
    
         
            +
                      @StorageRegion = storageregion
         
     | 
| 
      
 1302 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1303 
     | 
    
         
            +
             
     | 
| 
      
 1304 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 1305 
     | 
    
         
            +
                      @ProductId = params['ProductId']
         
     | 
| 
      
 1306 
     | 
    
         
            +
                      @DeviceName = params['DeviceName']
         
     | 
| 
      
 1307 
     | 
    
         
            +
                      @PackageId = params['PackageId']
         
     | 
| 
      
 1308 
     | 
    
         
            +
                      @Override = params['Override']
         
     | 
| 
      
 1309 
     | 
    
         
            +
                      @PackageQueue = params['PackageQueue']
         
     | 
| 
      
 1310 
     | 
    
         
            +
                      @OrderId = params['OrderId']
         
     | 
| 
      
 1311 
     | 
    
         
            +
                      @ChannelId = params['ChannelId']
         
     | 
| 
      
 1312 
     | 
    
         
            +
                      @StorageRegion = params['StorageRegion']
         
     | 
| 
      
 1313 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1314 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1315 
     | 
    
         
            +
             
     | 
| 
      
 1316 
     | 
    
         
            +
                  # CreateFreeCloudStorage返回参数结构体
         
     | 
| 
      
 1317 
     | 
    
         
            +
                  class CreateFreeCloudStorageResponse < TencentCloud::Common::AbstractModel
         
     | 
| 
      
 1318 
     | 
    
         
            +
                    # @param Price: 订单金额,单位为分
         
     | 
| 
      
 1319 
     | 
    
         
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         
     | 
| 
      
 1320 
     | 
    
         
            +
                    # @type Price: Integer
         
     | 
| 
      
 1321 
     | 
    
         
            +
                    # @param Amount: 支付金额,单位为分
         
     | 
| 
      
 1322 
     | 
    
         
            +
                    # 注意:此字段可能返回 null,表示取不到有效值。
         
     | 
| 
      
 1323 
     | 
    
         
            +
                    # @type Amount: Integer
         
     | 
| 
      
 1324 
     | 
    
         
            +
                    # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
         
     | 
| 
      
 1325 
     | 
    
         
            +
                    # @type RequestId: String
         
     | 
| 
      
 1326 
     | 
    
         
            +
             
     | 
| 
      
 1327 
     | 
    
         
            +
                    attr_accessor :Price, :Amount, :RequestId
         
     | 
| 
      
 1328 
     | 
    
         
            +
             
     | 
| 
      
 1329 
     | 
    
         
            +
                    def initialize(price=nil, amount=nil, requestid=nil)
         
     | 
| 
      
 1330 
     | 
    
         
            +
                      @Price = price
         
     | 
| 
      
 1331 
     | 
    
         
            +
                      @Amount = amount
         
     | 
| 
      
 1332 
     | 
    
         
            +
                      @RequestId = requestid
         
     | 
| 
      
 1333 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1334 
     | 
    
         
            +
             
     | 
| 
      
 1335 
     | 
    
         
            +
                    def deserialize(params)
         
     | 
| 
      
 1336 
     | 
    
         
            +
                      @Price = params['Price']
         
     | 
| 
      
 1337 
     | 
    
         
            +
                      @Amount = params['Amount']
         
     | 
| 
      
 1338 
     | 
    
         
            +
                      @RequestId = params['RequestId']
         
     | 
| 
      
 1339 
     | 
    
         
            +
                    end
         
     | 
| 
      
 1340 
     | 
    
         
            +
                  end
         
     | 
| 
      
 1341 
     | 
    
         
            +
             
     | 
| 
       1230 
1342 
     | 
    
         
             
                  # CreateProduct请求参数结构体
         
     | 
| 
       1231 
1343 
     | 
    
         
             
                  class CreateProductRequest < TencentCloud::Common::AbstractModel
         
     | 
| 
       1232 
1344 
     | 
    
         
             
                    # @param ProductName: 产品名称
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: tencentcloud-sdk-iotvideo
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.0.962
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Tencent Cloud
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024-12- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-12-16 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: tencentcloud-sdk-common
         
     |