Class: Azure::Batch::Mgmt::V2018_12_01::Models::NetworkSecurityGroupRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb

Overview

A network security group rule to apply to an inbound endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#accessNetworkSecurityGroupRuleAccess

taken for a specified IP address, subnet range or tag. Possible values include: ‘Allow’, ‘Deny’

Returns:



28
29
30
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb', line 28

def access
  @access
end

#priorityInteger

must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or duplicate values are provided the request fails with HTTP status code 400.

Returns:

  • (Integer)

    The priority for this rule. Priorities within a pool



23
24
25
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb', line 23

def priority
  @priority
end

#source_address_prefixString

rule. Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.

Returns:

  • (String)

    The source address prefix or tag to match for the



35
36
37
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb', line 35

def source_address_prefix
  @source_address_prefix
end

Class Method Details

.mapperObject

Mapper for NetworkSecurityGroupRule class as Ruby Hash. This will be used for serialization/deserialization.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NetworkSecurityGroupRule',
    type: {
      name: 'Composite',
      class_name: 'NetworkSecurityGroupRule',
      model_properties: {
        priority: {
          client_side_validation: true,
          required: true,
          serialized_name: 'priority',
          type: {
            name: 'Number'
          }
        },
        access: {
          client_side_validation: true,
          required: true,
          serialized_name: 'access',
          type: {
            name: 'Enum',
            module: 'NetworkSecurityGroupRuleAccess'
          }
        },
        source_address_prefix: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sourceAddressPrefix',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end