Class: TencentCloud::Tcaplusdb::V20190823::CreateClusterRequest

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

Overview

CreateCluster请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(idltype = nil, clustername = nil, vpcid = nil, subnetid = nil, password = nil, resourcetags = nil, ipv6enable = nil, serverlist = nil, proxylist = nil, clustertype = nil, authtype = nil) ⇒ CreateClusterRequest

Returns a new instance of CreateClusterRequest.



708
709
710
711
712
713
714
715
716
717
718
719
720
# File 'lib/v20190823/models.rb', line 708

def initialize(idltype=nil, clustername=nil, vpcid=nil, subnetid=nil, password=nil, resourcetags=nil, ipv6enable=nil, serverlist=nil, proxylist=nil, clustertype=nil, authtype=nil)
  @IdlType = idltype
  @ClusterName = clustername
  @VpcId = vpcid
  @SubnetId = subnetid
  @Password = password
  @ResourceTags = resourcetags
  @Ipv6Enable = ipv6enable
  @ServerList = serverlist
  @ProxyList = proxylist
  @ClusterType = clustertype
  @AuthType = authtype
end

Instance Attribute Details

#AuthTypeObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def AuthType
  @AuthType
end

#ClusterNameObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def ClusterName
  @ClusterName
end

#ClusterTypeObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def ClusterType
  @ClusterType
end

#IdlTypeObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def IdlType
  @IdlType
end

#Ipv6EnableObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def Ipv6Enable
  @Ipv6Enable
end

#PasswordObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def Password
  @Password
end

#ProxyListObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def ProxyList
  @ProxyList
end

#ResourceTagsObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def ResourceTags
  @ResourceTags
end

#ServerListObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def ServerList
  @ServerList
end

#SubnetIdObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def SubnetId
  @SubnetId
end

#VpcIdObject

Parameters:

  • IdlType:

    集群数据描述语言类型,如:‘PROTO`,`TDR`或`MIX`

  • ClusterName:

    集群名称,可使用中文或英文字符,最大长度32个字符

  • VpcId:

    集群所绑定的私有网络实例ID,形如:vpc-f49l6u0z

  • SubnetId:

    集群所绑定的子网实例ID,形如:subnet-pxir56ns

  • Password:

    集群访问密码,必须是a-zA-Z0-9的字符,且必须包含数字和大小写字母

  • ResourceTags:

    集群标签列表

  • Ipv6Enable:

    集群是否开启IPv6功能

  • ServerList:

    独占集群占用的svr机器

  • ProxyList:

    独占集群占用的proxy机器

  • ClusterType:

    集群类型1共享2独占

  • AuthType:

    密码认证类型,0 静态认证, 1 签名认证



706
707
708
# File 'lib/v20190823/models.rb', line 706

def VpcId
  @VpcId
end

Instance Method Details

#deserialize(params) ⇒ Object



722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
# File 'lib/v20190823/models.rb', line 722

def deserialize(params)
  @IdlType = params['IdlType']
  @ClusterName = params['ClusterName']
  @VpcId = params['VpcId']
  @SubnetId = params['SubnetId']
  @Password = params['Password']
  unless params['ResourceTags'].nil?
    @ResourceTags = []
    params['ResourceTags'].each do |i|
      taginfounit_tmp = TagInfoUnit.new
      taginfounit_tmp.deserialize(i)
      @ResourceTags << taginfounit_tmp
    end
  end
  @Ipv6Enable = params['Ipv6Enable']
  unless params['ServerList'].nil?
    @ServerList = []
    params['ServerList'].each do |i|
      machineinfo_tmp = MachineInfo.new
      machineinfo_tmp.deserialize(i)
      @ServerList << machineinfo_tmp
    end
  end
  unless params['ProxyList'].nil?
    @ProxyList = []
    params['ProxyList'].each do |i|
      machineinfo_tmp = MachineInfo.new
      machineinfo_tmp.deserialize(i)
      @ProxyList << machineinfo_tmp
    end
  end
  @ClusterType = params['ClusterType']
  @AuthType = params['AuthType']
end