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.



838
839
840
841
842
843
844
845
# File 'lib/v20170312/models.rb', line 838

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:



836
837
838
# File 'lib/v20170312/models.rb', line 836

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:



836
837
838
# File 'lib/v20170312/models.rb', line 836

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:



836
837
838
# File 'lib/v20170312/models.rb', line 836

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:



836
837
838
# File 'lib/v20170312/models.rb', line 836

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:



836
837
838
# File 'lib/v20170312/models.rb', line 836

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:



836
837
838
# File 'lib/v20170312/models.rb', line 836

def Encoding
  @Encoding
end

Instance Method Details

#deserialize(params) ⇒ Object



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

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