Class: TencentCloud::Dbbrain::V20210527::CreateUserAutonomyProfileRequest

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

Overview

CreateUserAutonomyProfile请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profiletype = nil, instanceid = nil, product = nil, profileinfo = nil) ⇒ CreateUserAutonomyProfileRequest

Returns a new instance of CreateUserAutonomyProfileRequest.



1413
1414
1415
1416
1417
1418
# File 'lib/v20210527/models.rb', line 1413

def initialize(profiletype=nil, instanceid=nil, product=nil, profileinfo=nil)
  @ProfileType = profiletype
  @InstanceId = instanceid
  @Product = product
  @ProfileInfo = profileinfo
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • ProfileType:

    配置类型,为需要配置的功能枚举值,目前包含以下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)

  • InstanceId:

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

  • Product:

    服务产品类型,支持值包括: “redis” - 云数据库 Redis。

  • ProfileInfo:

    自治功能相关配置,标准JSON字符串格式。



1411
1412
1413
# File 'lib/v20210527/models.rb', line 1411

def InstanceId
  @InstanceId
end

#ProductObject

Parameters:

  • ProfileType:

    配置类型,为需要配置的功能枚举值,目前包含以下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)

  • InstanceId:

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

  • Product:

    服务产品类型,支持值包括: “redis” - 云数据库 Redis。

  • ProfileInfo:

    自治功能相关配置,标准JSON字符串格式。



1411
1412
1413
# File 'lib/v20210527/models.rb', line 1411

def Product
  @Product
end

#ProfileInfoObject

Parameters:

  • ProfileType:

    配置类型,为需要配置的功能枚举值,目前包含以下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)

  • InstanceId:

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

  • Product:

    服务产品类型,支持值包括: “redis” - 云数据库 Redis。

  • ProfileInfo:

    自治功能相关配置,标准JSON字符串格式。



1411
1412
1413
# File 'lib/v20210527/models.rb', line 1411

def ProfileInfo
  @ProfileInfo
end

#ProfileTypeObject

Parameters:

  • ProfileType:

    配置类型,为需要配置的功能枚举值,目前包含以下枚举值:AutonomyGlobal(自治功能全局配置)、RedisAutoScaleUp(Redis自治扩容配置)

  • InstanceId:

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

  • Product:

    服务产品类型,支持值包括: “redis” - 云数据库 Redis。

  • ProfileInfo:

    自治功能相关配置,标准JSON字符串格式。



1411
1412
1413
# File 'lib/v20210527/models.rb', line 1411

def ProfileType
  @ProfileType
end

Instance Method Details

#deserialize(params) ⇒ Object



1420
1421
1422
1423
1424
1425
# File 'lib/v20210527/models.rb', line 1420

def deserialize(params)
  @ProfileType = params['ProfileType']
  @InstanceId = params['InstanceId']
  @Product = params['Product']
  @ProfileInfo = params['ProfileInfo']
end