Class: TencentCloud::Ecm::V20190719::CreateSecurityGroupRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ecm::V20190719::CreateSecurityGroupRequest
- Defined in:
- lib/v20190719/models.rb
Overview
CreateSecurityGroup请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(groupname = nil, groupdescription = nil, tags = nil) ⇒ CreateSecurityGroupRequest
constructor
A new instance of CreateSecurityGroupRequest.
Constructor Details
#initialize(groupname = nil, groupdescription = nil, tags = nil) ⇒ CreateSecurityGroupRequest
Returns a new instance of CreateSecurityGroupRequest.
1829 1830 1831 1832 1833 |
# File 'lib/v20190719/models.rb', line 1829 def initialize(groupname=nil, groupdescription=nil, =nil) @GroupName = groupname @GroupDescription = groupdescription @Tags = end |
Instance Attribute Details
#GroupDescription ⇒ Object
1827 1828 1829 |
# File 'lib/v20190719/models.rb', line 1827 def GroupDescription @GroupDescription end |
#GroupName ⇒ Object
1827 1828 1829 |
# File 'lib/v20190719/models.rb', line 1827 def GroupName @GroupName end |
#Tags ⇒ Object
1827 1828 1829 |
# File 'lib/v20190719/models.rb', line 1827 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 |
# File 'lib/v20190719/models.rb', line 1835 def deserialize(params) @GroupName = params['GroupName'] @GroupDescription = params['GroupDescription'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |