Class: TencentCloud::Emr::V20190103::BootstrapAction

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

Overview

引导脚本

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path = nil, whenrun = nil, args = nil) ⇒ BootstrapAction

Returns a new instance of BootstrapAction.



601
602
603
604
605
# File 'lib/v20190103/models.rb', line 601

def initialize(path=nil, whenrun=nil, args=nil)
  @Path = path
  @WhenRun = whenrun
  @Args = args
end

Instance Attribute Details

#ArgsObject

resourceAfter 表示在机器资源申请成功后执行。 clusterBefore 表示在集群初始化前执行。 clusterAfter 表示在集群初始化后执行。

Parameters:

  • Path:

    脚本位置,支持cos上的文件,且只支持https协议。

  • WhenRun:

    执行时间。

  • Args:

    脚本参数



599
600
601
# File 'lib/v20190103/models.rb', line 599

def Args
  @Args
end

#PathObject

resourceAfter 表示在机器资源申请成功后执行。 clusterBefore 表示在集群初始化前执行。 clusterAfter 表示在集群初始化后执行。

Parameters:

  • Path:

    脚本位置,支持cos上的文件,且只支持https协议。

  • WhenRun:

    执行时间。

  • Args:

    脚本参数



599
600
601
# File 'lib/v20190103/models.rb', line 599

def Path
  @Path
end

#WhenRunObject

resourceAfter 表示在机器资源申请成功后执行。 clusterBefore 表示在集群初始化前执行。 clusterAfter 表示在集群初始化后执行。

Parameters:

  • Path:

    脚本位置,支持cos上的文件,且只支持https协议。

  • WhenRun:

    执行时间。

  • Args:

    脚本参数



599
600
601
# File 'lib/v20190103/models.rb', line 599

def WhenRun
  @WhenRun
end

Instance Method Details

#deserialize(params) ⇒ Object



607
608
609
610
611
# File 'lib/v20190103/models.rb', line 607

def deserialize(params)
  @Path = params['Path']
  @WhenRun = params['WhenRun']
  @Args = params['Args']
end