Class: TencentCloud::Bm::V20180423::RegionInfo

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

Overview

地域信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region = nil, regionid = nil, regiondescription = nil, zoneinfoset = nil) ⇒ RegionInfo

Returns a new instance of RegionInfo.



3394
3395
3396
3397
3398
3399
# File 'lib/v20180423/models.rb', line 3394

def initialize(region=nil, regionid=nil, regiondescription=nil, zoneinfoset=nil)
  @Region = region
  @RegionId = regionid
  @RegionDescription = regiondescription
  @ZoneInfoSet = zoneinfoset
end

Instance Attribute Details

#RegionObject

Parameters:

  • Region:

    地域ID

  • RegionId:

    地域整型ID

  • RegionDescription:

    地域描述

  • ZoneInfoSet:

    该地域下的可用区信息



3392
3393
3394
# File 'lib/v20180423/models.rb', line 3392

def Region
  @Region
end

#RegionDescriptionObject

Parameters:

  • Region:

    地域ID

  • RegionId:

    地域整型ID

  • RegionDescription:

    地域描述

  • ZoneInfoSet:

    该地域下的可用区信息



3392
3393
3394
# File 'lib/v20180423/models.rb', line 3392

def RegionDescription
  @RegionDescription
end

#RegionIdObject

Parameters:

  • Region:

    地域ID

  • RegionId:

    地域整型ID

  • RegionDescription:

    地域描述

  • ZoneInfoSet:

    该地域下的可用区信息



3392
3393
3394
# File 'lib/v20180423/models.rb', line 3392

def RegionId
  @RegionId
end

#ZoneInfoSetObject

Parameters:

  • Region:

    地域ID

  • RegionId:

    地域整型ID

  • RegionDescription:

    地域描述

  • ZoneInfoSet:

    该地域下的可用区信息



3392
3393
3394
# File 'lib/v20180423/models.rb', line 3392

def ZoneInfoSet
  @ZoneInfoSet
end

Instance Method Details

#deserialize(params) ⇒ Object



3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
# File 'lib/v20180423/models.rb', line 3401

def deserialize(params)
  @Region = params['Region']
  @RegionId = params['RegionId']
  @RegionDescription = params['RegionDescription']
  unless params['ZoneInfoSet'].nil?
    @ZoneInfoSet = []
    params['ZoneInfoSet'].each do |i|
      zoneinfo_tmp = ZoneInfo.new
      zoneinfo_tmp.deserialize(i)
      @ZoneInfoSet << zoneinfo_tmp
    end
  end
end