Class: TencentCloud::Ecm::V20190719::CreateSecurityGroupRequest

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

Overview

CreateSecurityGroup请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags=nil)
  @GroupName = groupname
  @GroupDescription = groupdescription
  @Tags = tags
end

Instance Attribute Details

#GroupDescriptionObject

Parameters:

  • GroupName:

    安全组名称,可任意命名,但不得超过60个字符。

  • GroupDescription:

    安全组备注,最多100个字符。

  • Tags:

    指定绑定的标签列表,例如:[“city”, “Value”: “shanghai”]



1827
1828
1829
# File 'lib/v20190719/models.rb', line 1827

def GroupDescription
  @GroupDescription
end

#GroupNameObject

Parameters:

  • GroupName:

    安全组名称,可任意命名,但不得超过60个字符。

  • GroupDescription:

    安全组备注,最多100个字符。

  • Tags:

    指定绑定的标签列表,例如:[“city”, “Value”: “shanghai”]



1827
1828
1829
# File 'lib/v20190719/models.rb', line 1827

def GroupName
  @GroupName
end

#TagsObject

Parameters:

  • GroupName:

    安全组名称,可任意命名,但不得超过60个字符。

  • GroupDescription:

    安全组备注,最多100个字符。

  • Tags:

    指定绑定的标签列表,例如:[“city”, “Value”: “shanghai”]



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