Class: Azure::Network::Mgmt::V2018_08_01::Models::VirtualHub

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

Overview

VirtualHub Resource.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #location, #name, #tags, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#address_prefixString

Returns Address-prefix for this VirtualHub.

Returns:

  • (String)

    Address-prefix for this VirtualHub.


33
34
35
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 33

def address_prefix
  @address_prefix
end

#etagString

the resource is updated.

Returns:

  • (String)

    Gets a unique read-only string that changes whenever


45
46
47
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 45

def etag
  @etag
end

#express_route_gatewaySubResource

VirtualHub

Returns:

  • (SubResource)

    The expressRouteGateway associated with this


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

def express_route_gateway
  @express_route_gateway
end

#p2svpn_gatewaySubResource

Returns The P2SVpnGateway associated with this VirtualHub.

Returns:

  • (SubResource)

    The P2SVpnGateway associated with this VirtualHub


22
23
24
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 22

def p2svpn_gateway
  @p2svpn_gateway
end

#provisioning_stateProvisioningState

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

Returns:


41
42
43
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 41

def provisioning_state
  @provisioning_state
end

#route_tableVirtualHubRouteTable

virtual hub.

Returns:


37
38
39
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 37

def route_table
  @route_table
end

#virtual_network_connectionsArray<HubVirtualNetworkConnection>

connections with this VirtualHub.

Returns:


30
31
32
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 30

def virtual_network_connections
  @virtual_network_connections
end

#virtual_wanSubResource

Returns The VirtualWAN to which the VirtualHub belongs.

Returns:

  • (SubResource)

    The VirtualWAN to which the VirtualHub belongs


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

def virtual_wan
  @virtual_wan
end

#vpn_gatewaySubResource

Returns The VpnGateway associated with this VirtualHub.

Returns:

  • (SubResource)

    The VpnGateway associated with this VirtualHub


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

def vpn_gateway
  @vpn_gateway
end

Class Method Details

.mapperObject

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


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
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
192
193
194
195
196
197
198
199
200
201
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_hub.rb', line 52

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualHub',
    type: {
      name: 'Composite',
      class_name: 'VirtualHub',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        virtual_wan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualWan',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        vpn_gateway: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.vpnGateway',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        p2svpn_gateway: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.p2SVpnGateway',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        express_route_gateway: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.expressRouteGateway',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        virtual_network_connections: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualNetworkConnections',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HubVirtualNetworkConnectionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HubVirtualNetworkConnection'
                }
            }
          }
        },
        address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.addressPrefix',
          type: {
            name: 'String'
          }
        },
        route_table: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.routeTable',
          type: {
            name: 'Composite',
            class_name: 'VirtualHubRouteTable'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end