Class: TencentCloud::Dbbrain::V20210527::CreateSqlFilterRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210527/models.rb

Overview

CreateSqlFilter请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, sqltype = nil, filterkey = nil, maxconcurrency = nil, duration = nil, sessiontoken = nil, product = nil) ⇒ CreateSqlFilterRequest

Returns a new instance of CreateSqlFilterRequest.



1359
1360
1361
1362
1363
1364
1365
1366
1367
# File 'lib/v20210527/models.rb', line 1359

def initialize(instanceid=nil, sqltype=nil, filterkey=nil, maxconcurrency=nil, duration=nil, sessiontoken=nil, product=nil)
  @InstanceId = instanceid
  @SqlType = sqltype
  @FilterKey = filterkey
  @MaxConcurrency = maxconcurrency
  @Duration = duration
  @SessionToken = sessiontoken
  @Product = product
end

Instance Attribute Details

#DurationObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def Duration
  @Duration
end

#FilterKeyObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def FilterKey
  @FilterKey
end

#InstanceIdObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def InstanceId
  @InstanceId
end

#MaxConcurrencyObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def MaxConcurrency
  @MaxConcurrency
end

#ProductObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def Product
  @Product
end

#SessionTokenObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def SessionToken
  @SessionToken
end

#SqlTypeObject

其中:SELECT - 查询UPDATE - 更新DELETE - 删除INSERT - 插入REPLACE - 替换

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDiagDBInstances](cloud.tencent.com/document/api/1130/57798) 接口获取。

  • SqlType:

    SQL语句的类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。

  • FilterKey:

    关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。

  • MaxConcurrency:

    最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。

  • Duration:

    限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。

  • SessionToken:

    通过 [VerifyUserAccount](cloud.tencent.com/document/product/1130/72828) 获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。

  • Product:

    服务产品类型,支持值:“mysql” - 云数据库 MySQL;“cynosdb” - 云数据库 TDSQL-C for MySQL,默认为“mysql”。



1357
1358
1359
# File 'lib/v20210527/models.rb', line 1357

def SqlType
  @SqlType
end

Instance Method Details

#deserialize(params) ⇒ Object



1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'lib/v20210527/models.rb', line 1369

def deserialize(params)
  @InstanceId = params['InstanceId']
  @SqlType = params['SqlType']
  @FilterKey = params['FilterKey']
  @MaxConcurrency = params['MaxConcurrency']
  @Duration = params['Duration']
  @SessionToken = params['SessionToken']
  @Product = params['Product']
end