class TencentCloud::Emr::V20190103::CreateInstanceRequest
CreateInstance请求参数结构体
def deserialize(params)
def deserialize(params) @ProductId = params['ProductId'] unless params['VPCSettings'].nil? @VPCSettings = VPCSettings.new @VPCSettings.deserialize(params['VPCSettings']) end @Software = params['Software'] unless params['ResourceSpec'].nil? @ResourceSpec = NewResourceSpec.new @ResourceSpec.deserialize(params['ResourceSpec']) end @SupportHA = params['SupportHA'] @InstanceName = params['InstanceName'] @PayMode = params['PayMode'] unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @TimeSpan = params['TimeSpan'] @TimeUnit = params['TimeUnit'] unless params['LoginSettings'].nil? @LoginSettings = LoginSettings.new @LoginSettings.deserialize(params['LoginSettings']) end unless params['COSSettings'].nil? @COSSettings = COSSettings.new @COSSettings.deserialize(params['COSSettings']) end @SgId = params['SgId'] unless params['PreExecutedFileSettings'].nil? @PreExecutedFileSettings = [] params['PreExecutedFileSettings'].each do |i| preexecutefilesettings_tmp = PreExecuteFileSettings.new preexecutefilesettings_tmp.deserialize(i) @PreExecutedFileSettings << preexecutefilesettings_tmp end end @AutoRenew = params['AutoRenew'] @ClientToken = params['ClientToken'] @NeedMasterWan = params['NeedMasterWan'] @RemoteLoginAtCreate = params['RemoteLoginAtCreate'] @CheckSecurity = params['CheckSecurity'] @ExtendFsField = params['ExtendFsField'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @DisasterRecoverGroupIds = params['DisasterRecoverGroupIds'] @CbsEncrypt = params['CbsEncrypt'] @MetaType = params['MetaType'] @UnifyMetaInstanceId = params['UnifyMetaInstanceId'] unless params['MetaDBInfo'].nil? @MetaDBInfo = CustomMetaInfo.new @MetaDBInfo.deserialize(params['MetaDBInfo']) end @ApplicationRole = params['ApplicationRole'] @SceneName = params['SceneName'] end
def initialize(productid=nil, vpcsettings=nil, software=nil, resourcespec=nil, supportha=nil, instancename=nil, paymode=nil, placement=nil, timespan=nil, timeunit=nil, loginsettings=nil, cossettings=nil, sgid=nil, preexecutedfilesettings=nil, autorenew=nil, clienttoken=nil, needmasterwan=nil, remoteloginatcreate=nil, checksecurity=nil, extendfsfield=nil, tags=nil, disasterrecovergroupids=nil, cbsencrypt=nil, metatype=nil, unifymetainstanceid=nil, metadbinfo=nil, applicationrole=nil, scenename=nil)
def initialize(productid=nil, vpcsettings=nil, software=nil, resourcespec=nil, supportha=nil, instancename=nil, paymode=nil, placement=nil, timespan=nil, timeunit=nil, loginsettings=nil, cossettings=nil, sgid=nil, preexecutedfilesettings=nil, autorenew=nil, clienttoken=nil, needmasterwan=nil, remoteloginatcreate=nil, checksecurity=nil, extendfsfield=nil, tags=nil, disasterrecovergroupids=nil, cbsencrypt=nil, metatype=nil, unifymetainstanceid=nil, metadbinfo=nil, applicationrole=nil, scenename=nil) @ProductId = productid @VPCSettings = vpcsettings @Software = software @ResourceSpec = resourcespec @SupportHA = supportha @InstanceName = instancename @PayMode = paymode @Placement = placement @TimeSpan = timespan @TimeUnit = timeunit @LoginSettings = loginsettings @COSSettings = cossettings @SgId = sgid @PreExecutedFileSettings = preexecutedfilesettings @AutoRenew = autorenew @ClientToken = clienttoken @NeedMasterWan = needmasterwan @RemoteLoginAtCreate = remoteloginatcreate @CheckSecurity = checksecurity @ExtendFsField = extendfsfield @Tags = tags @DisasterRecoverGroupIds = disasterrecovergroupids @CbsEncrypt = cbsencrypt @MetaType = metatype @UnifyMetaInstanceId = unifymetainstanceid @MetaDBInfo = metadbinfo @ApplicationRole = applicationrole @SceneName = scenename end