Class: Azure::Network::Mgmt::V2018_06_01::Models::Policies

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01/generated/azure_mgmt_network/models/policies.rb

Overview

Policies for vpn gateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allow_branch_to_branch_trafficBoolean

Returns True if branch to branch traffic is allowed.

Returns:

  • (Boolean)

    True if branch to branch traffic is allowed.


16
17
18
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/policies.rb', line 16

def allow_branch_to_branch_traffic
  @allow_branch_to_branch_traffic
end

#allow_vnet_to_vnet_trafficBoolean

Returns True if Vnet to Vnet traffic is allowed.

Returns:

  • (Boolean)

    True if Vnet to Vnet traffic is allowed.


19
20
21
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/policies.rb', line 19

def allow_vnet_to_vnet_traffic
  @allow_vnet_to_vnet_traffic
end

Class Method Details

.mapperObject

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


26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/policies.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Policies',
    type: {
      name: 'Composite',
      class_name: 'Policies',
      model_properties: {
        allow_branch_to_branch_traffic: {
          client_side_validation: true,
          required: false,
          serialized_name: 'allowBranchToBranchTraffic',
          type: {
            name: 'Boolean'
          }
        },
        allow_vnet_to_vnet_traffic: {
          client_side_validation: true,
          required: false,
          serialized_name: 'allowVnetToVnetTraffic',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end