class Azure::Network::Mgmt::V2016_03_30::Models::SecurityRule
Network
security rule
Attributes
@return [SecurityRuleAccess] Gets or sets network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny'
@return [String] Gets or sets a description for this rule. Restricted to 140 chars.
@return [String] Gets or sets destination address prefix. CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
@return [String] Gets or sets Destination Port or Range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
@return [SecurityRuleDirection] Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values include: 'Inbound', 'Outbound'
@return [String] A unique read-only string that changes whenever the resource is updated
@return [String] Gets name of the resource that is unique within a resource group. This name can be used to access the resource
@return [Integer] Gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
@return [SecurityRuleProtocol] Gets or sets Network
protocol this rule applies to. Can be Tcp, Udp or All(*). Possible values include: 'Tcp', 'Udp', '*'
@return [String] Gets or sets Provisioning state of the PublicIP resource Updating/Deleting/Failed
@return [String] Gets or sets source address prefix. CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
@return [String] Gets or sets Source Port or Range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
Public Class Methods
Mapper for SecurityRule
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2016-03-30/generated/azure_mgmt_network/models/security_rule.rb, line 80 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SecurityRule', type: { name: 'Composite', class_name: 'SecurityRule', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, description: { client_side_validation: true, required: false, serialized_name: 'properties.description', type: { name: 'String' } }, protocol: { client_side_validation: true, required: true, serialized_name: 'properties.protocol', type: { name: 'String' } }, source_port_range: { client_side_validation: true, required: false, serialized_name: 'properties.sourcePortRange', type: { name: 'String' } }, destination_port_range: { client_side_validation: true, required: false, serialized_name: 'properties.destinationPortRange', type: { name: 'String' } }, source_address_prefix: { client_side_validation: true, required: true, serialized_name: 'properties.sourceAddressPrefix', type: { name: 'String' } }, destination_address_prefix: { client_side_validation: true, required: true, serialized_name: 'properties.destinationAddressPrefix', type: { name: 'String' } }, access: { client_side_validation: true, required: true, serialized_name: 'properties.access', type: { name: 'String' } }, priority: { client_side_validation: true, required: false, serialized_name: 'properties.priority', type: { name: 'Number' } }, direction: { client_side_validation: true, required: true, serialized_name: 'properties.direction', type: { name: 'String' } }, provisioning_state: { client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, etag: { client_side_validation: true, required: false, serialized_name: 'etag', type: { name: 'String' } } } } } end