Class: TencentCloud::Tcaplusdb::V20190823::CreateTableGroupRequest

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

Overview

CreateTableGroup请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, tablegroupname = nil, tablegroupid = nil, resourcetags = nil) ⇒ CreateTableGroupRequest

Returns a new instance of CreateTableGroupRequest.



849
850
851
852
853
854
# File 'lib/v20190823/models.rb', line 849

def initialize(clusterid=nil, tablegroupname=nil, tablegroupid=nil, resourcetags=nil)
  @ClusterId = clusterid
  @TableGroupName = tablegroupname
  @TableGroupId = tablegroupid
  @ResourceTags = resourcetags
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    表格组所属集群ID

  • TableGroupName:

    表格组名称,可以采用中文、英文或数字字符,最大长度32个字符

  • TableGroupId:

    表格组ID,可以由用户指定,但在同一个集群内不能重复,如果不指定则采用自增的模式

  • ResourceTags:

    表格组标签列表



847
848
849
# File 'lib/v20190823/models.rb', line 847

def ClusterId
  @ClusterId
end

#ResourceTagsObject

Parameters:

  • ClusterId:

    表格组所属集群ID

  • TableGroupName:

    表格组名称,可以采用中文、英文或数字字符,最大长度32个字符

  • TableGroupId:

    表格组ID,可以由用户指定,但在同一个集群内不能重复,如果不指定则采用自增的模式

  • ResourceTags:

    表格组标签列表



847
848
849
# File 'lib/v20190823/models.rb', line 847

def ResourceTags
  @ResourceTags
end

#TableGroupIdObject

Parameters:

  • ClusterId:

    表格组所属集群ID

  • TableGroupName:

    表格组名称,可以采用中文、英文或数字字符,最大长度32个字符

  • TableGroupId:

    表格组ID,可以由用户指定,但在同一个集群内不能重复,如果不指定则采用自增的模式

  • ResourceTags:

    表格组标签列表



847
848
849
# File 'lib/v20190823/models.rb', line 847

def TableGroupId
  @TableGroupId
end

#TableGroupNameObject

Parameters:

  • ClusterId:

    表格组所属集群ID

  • TableGroupName:

    表格组名称,可以采用中文、英文或数字字符,最大长度32个字符

  • TableGroupId:

    表格组ID,可以由用户指定,但在同一个集群内不能重复,如果不指定则采用自增的模式

  • ResourceTags:

    表格组标签列表



847
848
849
# File 'lib/v20190823/models.rb', line 847

def TableGroupName
  @TableGroupName
end

Instance Method Details

#deserialize(params) ⇒ Object



856
857
858
859
860
861
862
863
864
865
866
867
868
# File 'lib/v20190823/models.rb', line 856

def deserialize(params)
  @ClusterId = params['ClusterId']
  @TableGroupName = params['TableGroupName']
  @TableGroupId = params['TableGroupId']
  unless params['ResourceTags'].nil?
    @ResourceTags = []
    params['ResourceTags'].each do |i|
      taginfounit_tmp = TagInfoUnit.new
      taginfounit_tmp.deserialize(i)
      @ResourceTags << taginfounit_tmp
    end
  end
end