Class: TencentCloud::Cvm::V20170312::CreateHpcClusterRequest

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

Overview

CreateHpcCluster请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(zone = nil, name = nil, remark = nil, hpcclustertype = nil, hpcclusterbusinessid = nil, tagspecification = nil) ⇒ CreateHpcClusterRequest

Returns a new instance of CreateHpcClusterRequest.



878
879
880
881
882
883
884
885
# File 'lib/v20170312/models.rb', line 878

def initialize(zone=nil, name=nil, remark=nil, hpcclustertype=nil, hpcclusterbusinessid=nil, tagspecification=nil)
  @Zone = zone
  @Name = name
  @Remark = remark
  @HpcClusterType = hpcclustertype
  @HpcClusterBusinessId = hpcclusterbusinessid
  @TagSpecification = tagspecification
end

Instance Attribute Details

#HpcClusterBusinessIdObject

Parameters:



876
877
878
# File 'lib/v20170312/models.rb', line 876

def HpcClusterBusinessId
  @HpcClusterBusinessId
end

#HpcClusterTypeObject

Parameters:



876
877
878
# File 'lib/v20170312/models.rb', line 876

def HpcClusterType
  @HpcClusterType
end

#NameObject

Parameters:



876
877
878
# File 'lib/v20170312/models.rb', line 876

def Name
  @Name
end

#RemarkObject

Parameters:



876
877
878
# File 'lib/v20170312/models.rb', line 876

def Remark
  @Remark
end

#TagSpecificationObject

Parameters:



876
877
878
# File 'lib/v20170312/models.rb', line 876

def TagSpecification
  @TagSpecification
end

#ZoneObject

Parameters:



876
877
878
# File 'lib/v20170312/models.rb', line 876

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
# File 'lib/v20170312/models.rb', line 887

def deserialize(params)
  @Zone = params['Zone']
  @Name = params['Name']
  @Remark = params['Remark']
  @HpcClusterType = params['HpcClusterType']
  @HpcClusterBusinessId = params['HpcClusterBusinessId']
  unless params['TagSpecification'].nil?
    @TagSpecification = []
    params['TagSpecification'].each do |i|
      tagspecification_tmp = TagSpecification.new
      tagspecification_tmp.deserialize(i)
      @TagSpecification << tagspecification_tmp
    end
  end
end