Class: Azure::Network::Mgmt::V2020_07_01::Models::InboundSecurityRules

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules.rb

Overview

Properties of the Inbound Security Rules resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#destination_port_rangeInteger

specific ports.

Returns:

  • (Integer)

    NVA port ranges to be opened up. One needs to provide



25
26
27
# File 'lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules.rb', line 25

def destination_port_range
  @destination_port_range
end

#protocolInboundSecurityRulesProtocol

TCP or UDP. Possible values include: ‘TCP’, ‘UDP’

Returns:



17
18
19
# File 'lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules.rb', line 17

def protocol
  @protocol
end

#source_address_prefixString

ranges are allowed.

Returns:

  • (String)

    The CIDR or source IP range. Only /30, /31 and /32 Ip



21
22
23
# File 'lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules.rb', line 21

def source_address_prefix
  @source_address_prefix
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
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
# File 'lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'InboundSecurityRules',
    type: {
      name: 'Composite',
      class_name: 'InboundSecurityRules',
      model_properties: {
        protocol: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protocol',
          type: {
            name: 'String'
          }
        },
        source_address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceAddressPrefix',
          type: {
            name: 'String'
          }
        },
        destination_port_range: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationPortRange',
          constraints: {
            InclusiveMaximum: 65535,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end