Class: TencentCloud::Postgres::V20170312::CreateDatabaseRequest

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

Overview

CreateDatabase请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dbinstanceid = nil, databasename = nil, databaseowner = nil, encoding = nil, collate = nil, ctype = nil) ⇒ CreateDatabaseRequest

Returns a new instance of CreateDatabaseRequest.



882
883
884
885
886
887
888
889
# File 'lib/v20170312/models.rb', line 882

def initialize(dbinstanceid=nil, databasename=nil, databaseowner=nil, encoding=nil, collate=nil, ctype=nil)
  @DBInstanceId = dbinstanceid
  @DatabaseName = databasename
  @DatabaseOwner = databaseowner
  @Encoding = encoding
  @Collate = collate
  @Ctype = ctype
end

Instance Attribute Details

#CollateObject

名称规范:由字母(a-z, A-Z)、数字(0-9)、下划线(_)组成,以字母或(_)开头,最多63个字符。不能使用系统保留关键字,不能为postgres。支持的常用字符集包括:UTF8、LATIN1、LATIN2、WIN1250、WIN1251、WIN1252、KOI8R、EUC_JP、EUC_KR 默认值:UTF8

Parameters:



880
881
882
# File 'lib/v20170312/models.rb', line 880

def Collate
  @Collate
end

#CtypeObject

名称规范:由字母(a-z, A-Z)、数字(0-9)、下划线(_)组成,以字母或(_)开头,最多63个字符。不能使用系统保留关键字,不能为postgres。支持的常用字符集包括:UTF8、LATIN1、LATIN2、WIN1250、WIN1251、WIN1252、KOI8R、EUC_JP、EUC_KR 默认值:UTF8

Parameters:



880
881
882
# File 'lib/v20170312/models.rb', line 880

def Ctype
  @Ctype
end

#DatabaseNameObject

名称规范:由字母(a-z, A-Z)、数字(0-9)、下划线(_)组成,以字母或(_)开头,最多63个字符。不能使用系统保留关键字,不能为postgres。支持的常用字符集包括:UTF8、LATIN1、LATIN2、WIN1250、WIN1251、WIN1252、KOI8R、EUC_JP、EUC_KR 默认值:UTF8

Parameters:



880
881
882
# File 'lib/v20170312/models.rb', line 880

def DatabaseName
  @DatabaseName
end

#DatabaseOwnerObject

名称规范:由字母(a-z, A-Z)、数字(0-9)、下划线(_)组成,以字母或(_)开头,最多63个字符。不能使用系统保留关键字,不能为postgres。支持的常用字符集包括:UTF8、LATIN1、LATIN2、WIN1250、WIN1251、WIN1252、KOI8R、EUC_JP、EUC_KR 默认值:UTF8

Parameters:



880
881
882
# File 'lib/v20170312/models.rb', line 880

def DatabaseOwner
  @DatabaseOwner
end

#DBInstanceIdObject

名称规范:由字母(a-z, A-Z)、数字(0-9)、下划线(_)组成,以字母或(_)开头,最多63个字符。不能使用系统保留关键字,不能为postgres。支持的常用字符集包括:UTF8、LATIN1、LATIN2、WIN1250、WIN1251、WIN1252、KOI8R、EUC_JP、EUC_KR 默认值:UTF8

Parameters:



880
881
882
# File 'lib/v20170312/models.rb', line 880

def DBInstanceId
  @DBInstanceId
end

#EncodingObject

名称规范:由字母(a-z, A-Z)、数字(0-9)、下划线(_)组成,以字母或(_)开头,最多63个字符。不能使用系统保留关键字,不能为postgres。支持的常用字符集包括:UTF8、LATIN1、LATIN2、WIN1250、WIN1251、WIN1252、KOI8R、EUC_JP、EUC_KR 默认值:UTF8

Parameters:



880
881
882
# File 'lib/v20170312/models.rb', line 880

def Encoding
  @Encoding
end

Instance Method Details

#deserialize(params) ⇒ Object



891
892
893
894
895
896
897
898
# File 'lib/v20170312/models.rb', line 891

def deserialize(params)
  @DBInstanceId = params['DBInstanceId']
  @DatabaseName = params['DatabaseName']
  @DatabaseOwner = params['DatabaseOwner']
  @Encoding = params['Encoding']
  @Collate = params['Collate']
  @Ctype = params['Ctype']
end