Class: TencentCloud::Postgres::V20170312::UpgradeDBInstanceMajorVersionRequest

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

Overview

UpgradeDBInstanceMajorVersion请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dbinstanceid = nil, targetdbkernelversion = nil, upgradecheck = nil, backupbeforeupgrade = nil, statisticsrefreshoption = nil, extensionupgradeoption = nil, upgradetimeoption = nil, upgradetimebegin = nil, upgradetimeend = nil) ⇒ UpgradeDBInstanceMajorVersionRequest



7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
# File 'lib/v20170312/models.rb', line 7726

def initialize(dbinstanceid=nil, targetdbkernelversion=nil, upgradecheck=nil, backupbeforeupgrade=nil, statisticsrefreshoption=nil, extensionupgradeoption=nil, upgradetimeoption=nil, upgradetimebegin=nil, upgradetimeend=nil)
  @DBInstanceId = dbinstanceid
  @TargetDBKernelVersion = targetdbkernelversion
  @UpgradeCheck = upgradecheck
  @BackupBeforeUpgrade = backupbeforeupgrade
  @StatisticsRefreshOption = statisticsrefreshoption
  @ExtensionUpgradeOption = extensionupgradeoption
  @UpgradeTimeOption = upgradetimeoption
  @UpgradeTimeBegin = upgradetimebegin
  @UpgradeTimeEnd = upgradetimeend
end

Instance Attribute Details

#BackupBeforeUpgradeObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def BackupBeforeUpgrade
  @BackupBeforeUpgrade
end

#DBInstanceIdObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def DBInstanceId
  @DBInstanceId
end

#ExtensionUpgradeOptionObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def ExtensionUpgradeOption
  @ExtensionUpgradeOption
end

#StatisticsRefreshOptionObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def StatisticsRefreshOption
  @StatisticsRefreshOption
end

#TargetDBKernelVersionObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def TargetDBKernelVersion
  @TargetDBKernelVersion
end

#UpgradeCheckObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def UpgradeCheck
  @UpgradeCheck
end

#UpgradeTimeBeginObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def UpgradeTimeBegin
  @UpgradeTimeBegin
end

#UpgradeTimeEndObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def UpgradeTimeEnd
  @UpgradeTimeEnd
end

#UpgradeTimeOptionObject

0:不需要收集统计信息;1:实例恢复写之前收集统计信息;3:实例恢复写之后收集统计信息。UpgradeCheck为True时,此参数无效。0:不需要自动升级插件;1:恢复写之前升级插件;2:恢复写之后升级插件。UpgradeCheck为True时,此参数无效。0:自动执行,不需要指定时间窗;1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;2:在实例运维时间窗内执行。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。UpgradeCheck为True时,此参数无效。



7724
7725
7726
# File 'lib/v20170312/models.rb', line 7724

def UpgradeTimeOption
  @UpgradeTimeOption
end

Instance Method Details

#deserialize(params) ⇒ Object



7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
# File 'lib/v20170312/models.rb', line 7738

def deserialize(params)
  @DBInstanceId = params['DBInstanceId']
  @TargetDBKernelVersion = params['TargetDBKernelVersion']
  @UpgradeCheck = params['UpgradeCheck']
  @BackupBeforeUpgrade = params['BackupBeforeUpgrade']
  @StatisticsRefreshOption = params['StatisticsRefreshOption']
  @ExtensionUpgradeOption = params['ExtensionUpgradeOption']
  @UpgradeTimeOption = params['UpgradeTimeOption']
  @UpgradeTimeBegin = params['UpgradeTimeBegin']
  @UpgradeTimeEnd = params['UpgradeTimeEnd']
end