Class: TencentCloud::Cfw::V20190904::CreateSecurityGroupRulesRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::CreateSecurityGroupRulesRequest
- Defined in:
- lib/v20190904/models.rb
Overview
CreateSecurityGroupRules请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(data = nil, direction = nil, type = nil, enable = nil) ⇒ CreateSecurityGroupRulesRequest
constructor
A new instance of CreateSecurityGroupRulesRequest.
Constructor Details
#initialize(data = nil, direction = nil, type = nil, enable = nil) ⇒ CreateSecurityGroupRulesRequest
Returns a new instance of CreateSecurityGroupRulesRequest.
1931 1932 1933 1934 1935 1936 |
# File 'lib/v20190904/models.rb', line 1931 def initialize(data=nil, direction=nil, type=nil, enable=nil) @Data = data @Direction = direction @Type = type @Enable = enable end |
Instance Attribute Details
#Data ⇒ Object
1929 1930 1931 |
# File 'lib/v20190904/models.rb', line 1929 def Data @Data end |
#Direction ⇒ Object
1929 1930 1931 |
# File 'lib/v20190904/models.rb', line 1929 def Direction @Direction end |
#Enable ⇒ Object
1929 1930 1931 |
# File 'lib/v20190904/models.rb', line 1929 def Enable @Enable end |
#Type ⇒ Object
1929 1930 1931 |
# File 'lib/v20190904/models.rb', line 1929 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 |
# File 'lib/v20190904/models.rb', line 1938 def deserialize(params) unless params['Data'].nil? @Data = [] params['Data'].each do |i| securitygrouplistdata_tmp = SecurityGroupListData.new securitygrouplistdata_tmp.deserialize(i) @Data << securitygrouplistdata_tmp end end @Direction = params['Direction'] @Type = params['Type'] @Enable = params['Enable'] end |