Class: TencentCloud::Emr::V20190103::ServiceBasicRestartInfo

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

Overview

操作的服务范围

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(servicename = nil, componentinfolist = nil) ⇒ ServiceBasicRestartInfo

Returns a new instance of ServiceBasicRestartInfo.



13157
13158
13159
13160
# File 'lib/v20190103/models.rb', line 13157

def initialize(servicename=nil, componentinfolist=nil)
  @ServiceName = servicename
  @ComponentInfoList = componentinfolist
end

Instance Attribute Details

#ComponentInfoListObject

Parameters:

  • ServiceName:

    服务名,必填,如HDFS

  • ComponentInfoList:

    如果没传,则表示所有进程



13155
13156
13157
# File 'lib/v20190103/models.rb', line 13155

def ComponentInfoList
  @ComponentInfoList
end

#ServiceNameObject

Parameters:

  • ServiceName:

    服务名,必填,如HDFS

  • ComponentInfoList:

    如果没传,则表示所有进程



13155
13156
13157
# File 'lib/v20190103/models.rb', line 13155

def ServiceName
  @ServiceName
end

Instance Method Details

#deserialize(params) ⇒ Object



13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
# File 'lib/v20190103/models.rb', line 13162

def deserialize(params)
  @ServiceName = params['ServiceName']
  unless params['ComponentInfoList'].nil?
    @ComponentInfoList = []
    params['ComponentInfoList'].each do |i|
      componentbasicrestartinfo_tmp = ComponentBasicRestartInfo.new
      componentbasicrestartinfo_tmp.deserialize(i)
      @ComponentInfoList << componentbasicrestartinfo_tmp
    end
  end
end