Class: TencentCloud::Cvm::V20170312::Placement
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::Placement
- Defined in:
- lib/v20170312/models.rb
Overview
描述了实例的抽象位置,包括其所在的可用区,所属的项目,宿主机(仅专用宿主机产品可用),母机IP等
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(zone = nil, projectid = nil, hostids = nil, hostid = nil) ⇒ Placement
constructor
A new instance of Placement.
Constructor Details
#initialize(zone = nil, projectid = nil, hostids = nil, hostid = nil) ⇒ Placement
Returns a new instance of Placement.
7091 7092 7093 7094 7095 7096 |
# File 'lib/v20170312/models.rb', line 7091 def initialize(zone=nil, projectid=nil, hostids=nil, hostid=nil) @Zone = zone @ProjectId = projectid @HostIds = hostids @HostId = hostid end |
Instance Attribute Details
#HostId ⇒ Object
7089 7090 7091 |
# File 'lib/v20170312/models.rb', line 7089 def HostId @HostId end |
#HostIds ⇒ Object
7089 7090 7091 |
# File 'lib/v20170312/models.rb', line 7089 def HostIds @HostIds end |
#ProjectId ⇒ Object
7089 7090 7091 |
# File 'lib/v20170312/models.rb', line 7089 def ProjectId @ProjectId end |
#Zone ⇒ Object
7089 7090 7091 |
# File 'lib/v20170312/models.rb', line 7089 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
7098 7099 7100 7101 7102 7103 |
# File 'lib/v20170312/models.rb', line 7098 def deserialize(params) @Zone = params['Zone'] @ProjectId = params['ProjectId'] @HostIds = params['HostIds'] @HostId = params['HostId'] end |