Class: TencentCloud::Postgres::V20170312::PolicyRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Postgres::V20170312::PolicyRule
- Defined in:
- lib/v20170312/models.rb
Overview
安全组规则信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, description = nil) ⇒ PolicyRule
constructor
A new instance of PolicyRule.
Constructor Details
#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, description = nil) ⇒ PolicyRule
Returns a new instance of PolicyRule.
6738 6739 6740 6741 6742 6743 6744 |
# File 'lib/v20170312/models.rb', line 6738 def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, description=nil) @Action = action @CidrIp = cidrip @PortRange = portrange @IpProtocol = ipprotocol @Description = description end |
Instance Attribute Details
#Action ⇒ Object
6736 6737 6738 |
# File 'lib/v20170312/models.rb', line 6736 def Action @Action end |
#CidrIp ⇒ Object
6736 6737 6738 |
# File 'lib/v20170312/models.rb', line 6736 def CidrIp @CidrIp end |
#Description ⇒ Object
6736 6737 6738 |
# File 'lib/v20170312/models.rb', line 6736 def Description @Description end |
#IpProtocol ⇒ Object
6736 6737 6738 |
# File 'lib/v20170312/models.rb', line 6736 def IpProtocol @IpProtocol end |
#PortRange ⇒ Object
6736 6737 6738 |
# File 'lib/v20170312/models.rb', line 6736 def PortRange @PortRange end |
Instance Method Details
#deserialize(params) ⇒ Object
6746 6747 6748 6749 6750 6751 6752 |
# File 'lib/v20170312/models.rb', line 6746 def deserialize(params) @Action = params['Action'] @CidrIp = params['CidrIp'] @PortRange = params['PortRange'] @IpProtocol = params['IpProtocol'] @Description = params['Description'] end |