Class: Azure::Network::Mgmt::V2018_06_01::Models::VpnConnection

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

Overview

VpnConnection Resource.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

Class Method Summary collapse

Instance Attribute Details

#connection_bandwidth_in_mbpsInteger

Returns Expected bandwidth in MBPS.

Returns:

  • (Integer)

    Expected bandwidth in MBPS.


32
33
34
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 32

def connection_bandwidth_in_mbps
  @connection_bandwidth_in_mbps
end

#connection_statusVpnConnectionStatus

include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'

Returns:


23
24
25
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 23

def connection_status
  @connection_status
end

#egress_bytes_transferredInteger

Returns Egress bytes transferred.

Returns:

  • (Integer)

    Egress bytes transferred.


29
30
31
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 29

def egress_bytes_transferred
  @egress_bytes_transferred
end

#enable_bgpBoolean

Returns EnableBgp flag.

Returns:

  • (Boolean)

    EnableBgp flag


38
39
40
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 38

def enable_bgp
  @enable_bgp
end

#etagString

the resource is updated.

Returns:

  • (String)

    Gets a unique read-only string that changes whenever


54
55
56
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 54

def etag
  @etag
end

#ingress_bytes_transferredInteger

Returns Ingress bytes transferred.

Returns:

  • (Integer)

    Ingress bytes transferred.


26
27
28
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 26

def ingress_bytes_transferred
  @ingress_bytes_transferred
end

#ipsec_policiesArray<IpsecPolicy>

this connection.

Returns:

  • (Array<IpsecPolicy>)

    The IPSec Policies to be considered by


42
43
44
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 42

def ipsec_policies
  @ipsec_policies
end

#nameString

resource group. This name can be used to access the resource.

Returns:

  • (String)

    The name of the resource that is unique within a


50
51
52
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 50

def name
  @name
end

#provisioning_stateProvisioningState

Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

Returns:


46
47
48
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 46

def provisioning_state
  @provisioning_state
end

#remote_vpn_siteSubResource

Returns Id of the connected vpn site.

Returns:


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

def remote_vpn_site
  @remote_vpn_site
end

#routing_weightInteger

Returns routing weight for vpn connection.

Returns:

  • (Integer)

    routing weight for vpn connection.


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

def routing_weight
  @routing_weight
end

#shared_keyString

Returns SharedKey for the vpn connection.

Returns:

  • (String)

    SharedKey for the vpn connection.


35
36
37
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 35

def shared_key
  @shared_key
end

Class Method Details

.mapperObject

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


61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/2018-06-01/generated/azure_mgmt_network/models/vpn_connection.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VpnConnection',
    type: {
      name: 'Composite',
      class_name: 'VpnConnection',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        remote_vpn_site: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.remoteVpnSite',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        routing_weight: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.routingWeight',
          type: {
            name: 'Number'
          }
        },
        connection_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.connectionStatus',
          type: {
            name: 'String'
          }
        },
        ingress_bytes_transferred: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.ingressBytesTransferred',
          type: {
            name: 'Number'
          }
        },
        egress_bytes_transferred: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.egressBytesTransferred',
          type: {
            name: 'Number'
          }
        },
        connection_bandwidth_in_mbps: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.connectionBandwidthInMbps',
          type: {
            name: 'Number'
          }
        },
        shared_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sharedKey',
          type: {
            name: 'String'
          }
        },
        enable_bgp: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enableBgp',
          type: {
            name: 'Boolean'
          }
        },
        ipsec_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ipsecPolicies',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IpsecPolicyElementType',
                type: {
                  name: 'Composite',
                  class_name: 'IpsecPolicy'
                }
            }
          }
        },
        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,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end