Class: TencentCloud::As::V20180419::ModifyLifecycleHookRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::As::V20180419::ModifyLifecycleHookRequest
- Defined in:
- lib/v20180419/models.rb
Overview
ModifyLifecycleHook请求参数结构体
Instance Attribute Summary collapse
-
#DefaultResult ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#HeartbeatTimeout ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#LifecycleCommand ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#LifecycleHookId ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#LifecycleHookName ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#LifecycleTransition ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#LifecycleTransitionType ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#NotificationMetadata ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
-
#NotificationTarget ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩 * INSTANCE_TERMINATING: 缩容生命周期挂钩 * CONTINUE: 默认值,表示继续执行扩缩容活动 * ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(lifecyclehookid = nil, lifecyclehookname = nil, lifecycletransition = nil, defaultresult = nil, heartbeattimeout = nil, notificationmetadata = nil, lifecycletransitiontype = nil, notificationtarget = nil, lifecyclecommand = nil) ⇒ ModifyLifecycleHookRequest
constructor
A new instance of ModifyLifecycleHookRequest.
Constructor Details
#initialize(lifecyclehookid = nil, lifecyclehookname = nil, lifecycletransition = nil, defaultresult = nil, heartbeattimeout = nil, notificationmetadata = nil, lifecycletransitiontype = nil, notificationtarget = nil, lifecyclecommand = nil) ⇒ ModifyLifecycleHookRequest
Returns a new instance of ModifyLifecycleHookRequest.
4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 |
# File 'lib/v20180419/models.rb', line 4373 def initialize(lifecyclehookid=nil, lifecyclehookname=nil, lifecycletransition=nil, defaultresult=nil, heartbeattimeout=nil, =nil, lifecycletransitiontype=nil, notificationtarget=nil, lifecyclecommand=nil) @LifecycleHookId = lifecyclehookid @LifecycleHookName = lifecyclehookname @LifecycleTransition = lifecycletransition @DefaultResult = defaultresult @HeartbeatTimeout = heartbeattimeout @NotificationMetadata = @LifecycleTransitionType = lifecycletransitiontype @NotificationTarget = notificationtarget @LifecycleCommand = lifecyclecommand end |
Instance Attribute Details
#DefaultResult ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def DefaultResult @DefaultResult end |
#HeartbeatTimeout ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def HeartbeatTimeout @HeartbeatTimeout end |
#LifecycleCommand ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def LifecycleCommand @LifecycleCommand end |
#LifecycleHookId ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def LifecycleHookId @LifecycleHookId end |
#LifecycleHookName ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def LifecycleHookName @LifecycleHookName end |
#LifecycleTransition ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def LifecycleTransition @LifecycleTransition end |
#LifecycleTransitionType ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def LifecycleTransitionType @LifecycleTransitionType end |
#NotificationMetadata ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def NotificationMetadata @NotificationMetadata end |
#NotificationTarget ⇒ Object
- INSTANCE_LAUNCHING: 扩容生命周期挂钩
- INSTANCE_TERMINATING: 缩容生命周期挂钩
- CONTINUE: 默认值,表示继续执行扩缩容活动
- ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
4371 4372 4373 |
# File 'lib/v20180419/models.rb', line 4371 def NotificationTarget @NotificationTarget end |
Instance Method Details
#deserialize(params) ⇒ Object
4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 |
# File 'lib/v20180419/models.rb', line 4385 def deserialize(params) @LifecycleHookId = params['LifecycleHookId'] @LifecycleHookName = params['LifecycleHookName'] @LifecycleTransition = params['LifecycleTransition'] @DefaultResult = params['DefaultResult'] @HeartbeatTimeout = params['HeartbeatTimeout'] @NotificationMetadata = params['NotificationMetadata'] @LifecycleTransitionType = params['LifecycleTransitionType'] unless params['NotificationTarget'].nil? @NotificationTarget = NotificationTarget.new @NotificationTarget.deserialize(params['NotificationTarget']) end unless params['LifecycleCommand'].nil? @LifecycleCommand = LifecycleCommand.new @LifecycleCommand.deserialize(params['LifecycleCommand']) end end |