Class: TencentCloud::Cynosdb::V20190107::PolicyRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cynosdb::V20190107::PolicyRule
- Defined in:
- lib/v20190107/models.rb
Overview
安全组规则
Instance Attribute Summary collapse
- #Action ⇒ Object
- #AddressModule ⇒ Object
- #CidrIp ⇒ Object
- #Desc ⇒ Object
- #Id ⇒ Object
- #IpProtocol ⇒ Object
- #PortRange ⇒ Object
- #ServiceModule ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, servicemodule = nil, addressmodule = nil, id = nil, desc = nil) ⇒ PolicyRule
constructor
A new instance of PolicyRule.
Constructor Details
#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, servicemodule = nil, addressmodule = nil, id = nil, desc = nil) ⇒ PolicyRule
Returns a new instance of PolicyRule.
12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 |
# File 'lib/v20190107/models.rb', line 12444 def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, servicemodule=nil, addressmodule=nil, id=nil, desc=nil) @Action = action @CidrIp = cidrip @PortRange = portrange @IpProtocol = ipprotocol @ServiceModule = servicemodule @AddressModule = addressmodule @Id = id @Desc = desc end |
Instance Attribute Details
#Action ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def Action @Action end |
#AddressModule ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def AddressModule @AddressModule end |
#CidrIp ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def CidrIp @CidrIp end |
#Desc ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def Desc @Desc end |
#Id ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def Id @Id end |
#IpProtocol ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def IpProtocol @IpProtocol end |
#PortRange ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def PortRange @PortRange end |
#ServiceModule ⇒ Object
12442 12443 12444 |
# File 'lib/v20190107/models.rb', line 12442 def ServiceModule @ServiceModule end |
Instance Method Details
#deserialize(params) ⇒ Object
12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 |
# File 'lib/v20190107/models.rb', line 12455 def deserialize(params) @Action = params['Action'] @CidrIp = params['CidrIp'] @PortRange = params['PortRange'] @IpProtocol = params['IpProtocol'] @ServiceModule = params['ServiceModule'] @AddressModule = params['AddressModule'] @Id = params['Id'] @Desc = params['Desc'] end |