Class: TencentCloud::Emr::V20190103::SLInstance
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Emr::V20190103::SLInstance
- Defined in:
- lib/v20190103/models.rb
Overview
Serverless Instance
Instance Attribute Summary collapse
- #AutoRenewFlag ⇒ Object
- #ClusterId ⇒ Object
- #CreateTime ⇒ Object
- #DeployRole ⇒ Object
- #DiskSize ⇒ Object
- #DiskType ⇒ Object
- #ExpireTime ⇒ Object
- #InstanceId ⇒ Object
- #InstanceName ⇒ Object
- #IsolateTime ⇒ Object
- #NodeNum ⇒ Object
- #NodeType ⇒ Object
- #PayMode ⇒ Object
- #RegionId ⇒ Object
- #Status ⇒ Object
- #Tags ⇒ Object
- #Zone ⇒ Object
- #ZoneSettings ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, clusterid = nil, instancename = nil, regionid = nil, zone = nil, paymode = nil, disktype = nil, disksize = nil, nodetype = nil, nodenum = nil, expiretime = nil, isolatetime = nil, createtime = nil, autorenewflag = nil, status = nil, zonesettings = nil, tags = nil, deployrole = nil) ⇒ SLInstance
constructor
A new instance of SLInstance.
Constructor Details
#initialize(instanceid = nil, clusterid = nil, instancename = nil, regionid = nil, zone = nil, paymode = nil, disktype = nil, disksize = nil, nodetype = nil, nodenum = nil, expiretime = nil, isolatetime = nil, createtime = nil, autorenewflag = nil, status = nil, zonesettings = nil, tags = nil, deployrole = nil) ⇒ SLInstance
Returns a new instance of SLInstance.
12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 |
# File 'lib/v20190103/models.rb', line 12427 def initialize(instanceid=nil, clusterid=nil, instancename=nil, regionid=nil, zone=nil, paymode=nil, disktype=nil, disksize=nil, nodetype=nil, nodenum=nil, expiretime=nil, isolatetime=nil, createtime=nil, autorenewflag=nil, status=nil, zonesettings=nil, =nil, deployrole=nil) @InstanceId = instanceid @ClusterId = clusterid @InstanceName = instancename @RegionId = regionid @Zone = zone @PayMode = paymode @DiskType = disktype @DiskSize = disksize @NodeType = nodetype @NodeNum = nodenum @ExpireTime = expiretime @IsolateTime = isolatetime @CreateTime = createtime @AutoRenewFlag = autorenewflag @Status = status @ZoneSettings = zonesettings @Tags = @DeployRole = deployrole end |
Instance Attribute Details
#AutoRenewFlag ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def AutoRenewFlag @AutoRenewFlag end |
#ClusterId ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def ClusterId @ClusterId end |
#CreateTime ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def CreateTime @CreateTime end |
#DeployRole ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def DeployRole @DeployRole end |
#DiskSize ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def DiskSize @DiskSize end |
#DiskType ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def DiskType @DiskType end |
#ExpireTime ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def ExpireTime @ExpireTime end |
#InstanceId ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def InstanceId @InstanceId end |
#InstanceName ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def InstanceName @InstanceName end |
#IsolateTime ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def IsolateTime @IsolateTime end |
#NodeNum ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def NodeNum @NodeNum end |
#NodeType ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def NodeType @NodeType end |
#PayMode ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def PayMode @PayMode end |
#RegionId ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def RegionId @RegionId end |
#Status ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def Status @Status end |
#Tags ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def Tags @Tags end |
#Zone ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def Zone @Zone end |
#ZoneSettings ⇒ Object
12425 12426 12427 |
# File 'lib/v20190103/models.rb', line 12425 def ZoneSettings @ZoneSettings end |
Instance Method Details
#deserialize(params) ⇒ Object
12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 |
# File 'lib/v20190103/models.rb', line 12448 def deserialize(params) @InstanceId = params['InstanceId'] @ClusterId = params['ClusterId'] @InstanceName = params['InstanceName'] @RegionId = params['RegionId'] @Zone = params['Zone'] @PayMode = params['PayMode'] @DiskType = params['DiskType'] @DiskSize = params['DiskSize'] @NodeType = params['NodeType'] @NodeNum = params['NodeNum'] @ExpireTime = params['ExpireTime'] @IsolateTime = params['IsolateTime'] @CreateTime = params['CreateTime'] @AutoRenewFlag = params['AutoRenewFlag'] @Status = params['Status'] unless params['ZoneSettings'].nil? @ZoneSettings = [] params['ZoneSettings'].each do |i| zonesetting_tmp = ZoneSetting.new zonesetting_tmp.deserialize(i) @ZoneSettings << zonesetting_tmp end end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @DeployRole = params['DeployRole'] end |