Class: TencentCloud::Ecm::V20190719::ImportCustomImageRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecm::V20190719::ImportCustomImageRequest
- Defined in:
- lib/v20190719/models.rb
Overview
ImportCustomImage请求参数结构体
Instance Attribute Summary collapse
- #Architecture ⇒ Object
- #ImageDescription ⇒ Object
- #ImageName ⇒ Object
- #ImageUrls ⇒ Object
- #InitFlag ⇒ Object
- #OsType ⇒ Object
- #OsVersion ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imagename = nil, architecture = nil, ostype = nil, osversion = nil, imagedescription = nil, initflag = nil, imageurls = nil) ⇒ ImportCustomImageRequest
constructor
A new instance of ImportCustomImageRequest.
Constructor Details
#initialize(imagename = nil, architecture = nil, ostype = nil, osversion = nil, imagedescription = nil, initflag = nil, imageurls = nil) ⇒ ImportCustomImageRequest
Returns a new instance of ImportCustomImageRequest.
5955 5956 5957 5958 5959 5960 5961 5962 5963 |
# File 'lib/v20190719/models.rb', line 5955 def initialize(imagename=nil, architecture=nil, ostype=nil, osversion=nil, imagedescription=nil, initflag=nil, imageurls=nil) @ImageName = imagename @Architecture = architecture @OsType = ostype @OsVersion = osversion @ImageDescription = imagedescription @InitFlag = initflag @ImageUrls = imageurls end |
Instance Attribute Details
#Architecture ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def Architecture @Architecture end |
#ImageDescription ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def ImageDescription @ImageDescription end |
#ImageName ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def ImageName @ImageName end |
#ImageUrls ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def ImageUrls @ImageUrls end |
#InitFlag ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def InitFlag @InitFlag end |
#OsType ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def OsType @OsType end |
#OsVersion ⇒ Object
5953 5954 5955 |
# File 'lib/v20190719/models.rb', line 5953 def OsVersion @OsVersion end |
Instance Method Details
#deserialize(params) ⇒ Object
5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 |
# File 'lib/v20190719/models.rb', line 5965 def deserialize(params) @ImageName = params['ImageName'] @Architecture = params['Architecture'] @OsType = params['OsType'] @OsVersion = params['OsVersion'] @ImageDescription = params['ImageDescription'] @InitFlag = params['InitFlag'] unless params['ImageUrls'].nil? @ImageUrls = [] params['ImageUrls'].each do |i| imageurl_tmp = ImageUrl.new imageurl_tmp.deserialize(i) @ImageUrls << imageurl_tmp end end end |