~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/arm/network/models.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package network
 
2
 
 
3
// Copyright (c) Microsoft and contributors.  All rights reserved.
 
4
//
 
5
// Licensed under the Apache License, Version 2.0 (the "License");
 
6
// you may not use this file except in compliance with the License.
 
7
// You may obtain a copy of the License at
 
8
// http://www.apache.org/licenses/LICENSE-2.0
 
9
//
 
10
// Unless required by applicable law or agreed to in writing, software
 
11
// distributed under the License is distributed on an "AS IS" BASIS,
 
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
//
 
14
// See the License for the specific language governing permissions and
 
15
// limitations under the License.
 
16
//
 
17
// Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
 
18
// Changes may cause incorrect behavior and will be lost if the code is
 
19
// regenerated.
 
20
 
 
21
import (
 
22
        "github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
 
23
        "github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest/to"
 
24
        "net/http"
 
25
)
 
26
 
 
27
// ApplicationGatewayCookieBasedAffinity enumerates the values for application
 
28
// gateway cookie based affinity.
 
29
type ApplicationGatewayCookieBasedAffinity string
 
30
 
 
31
const (
 
32
        // Disabled specifies the disabled state for application gateway cookie
 
33
        // based affinity.
 
34
        Disabled ApplicationGatewayCookieBasedAffinity = "Disabled"
 
35
        // Enabled specifies the enabled state for application gateway cookie
 
36
        // based affinity.
 
37
        Enabled ApplicationGatewayCookieBasedAffinity = "Enabled"
 
38
)
 
39
 
 
40
// ApplicationGatewayOperationalState enumerates the values for application
 
41
// gateway operational state.
 
42
type ApplicationGatewayOperationalState string
 
43
 
 
44
const (
 
45
        // Running specifies the running state for application gateway operational
 
46
        // state.
 
47
        Running ApplicationGatewayOperationalState = "Running"
 
48
        // Starting specifies the starting state for application gateway
 
49
        // operational state.
 
50
        Starting ApplicationGatewayOperationalState = "Starting"
 
51
        // Stopped specifies the stopped state for application gateway operational
 
52
        // state.
 
53
        Stopped ApplicationGatewayOperationalState = "Stopped"
 
54
        // Stopping specifies the stopping state for application gateway
 
55
        // operational state.
 
56
        Stopping ApplicationGatewayOperationalState = "Stopping"
 
57
)
 
58
 
 
59
// ApplicationGatewayProtocol enumerates the values for application gateway
 
60
// protocol.
 
61
type ApplicationGatewayProtocol string
 
62
 
 
63
const (
 
64
        // HTTP specifies the http state for application gateway protocol.
 
65
        HTTP ApplicationGatewayProtocol = "Http"
 
66
        // HTTPS specifies the https state for application gateway protocol.
 
67
        HTTPS ApplicationGatewayProtocol = "Https"
 
68
)
 
69
 
 
70
// ApplicationGatewayRequestRoutingRuleType enumerates the values for
 
71
// application gateway request routing rule type.
 
72
type ApplicationGatewayRequestRoutingRuleType string
 
73
 
 
74
const (
 
75
        // Basic specifies the basic state for application gateway request routing
 
76
        // rule type.
 
77
        Basic ApplicationGatewayRequestRoutingRuleType = "Basic"
 
78
)
 
79
 
 
80
// ApplicationGatewaySkuName enumerates the values for application gateway sku
 
81
// name.
 
82
type ApplicationGatewaySkuName string
 
83
 
 
84
const (
 
85
        // StandardLarge specifies the standard large state for application
 
86
        // gateway sku name.
 
87
        StandardLarge ApplicationGatewaySkuName = "Standard_Large"
 
88
        // StandardMedium specifies the standard medium state for application
 
89
        // gateway sku name.
 
90
        StandardMedium ApplicationGatewaySkuName = "Standard_Medium"
 
91
        // StandardSmall specifies the standard small state for application
 
92
        // gateway sku name.
 
93
        StandardSmall ApplicationGatewaySkuName = "Standard_Small"
 
94
)
 
95
 
 
96
// ApplicationGatewayTier enumerates the values for application gateway tier.
 
97
type ApplicationGatewayTier string
 
98
 
 
99
const (
 
100
        // Standard specifies the standard state for application gateway tier.
 
101
        Standard ApplicationGatewayTier = "Standard"
 
102
)
 
103
 
 
104
// AuthorizationUseStatus enumerates the values for authorization use status.
 
105
type AuthorizationUseStatus string
 
106
 
 
107
const (
 
108
        // Available specifies the available state for authorization use status.
 
109
        Available AuthorizationUseStatus = "Available"
 
110
        // InUse specifies the in use state for authorization use status.
 
111
        InUse AuthorizationUseStatus = "InUse"
 
112
)
 
113
 
 
114
// ExpressRouteCircuitPeeringAdvertisedPublicPrefixState enumerates the values
 
115
// for express route circuit peering advertised public prefix state.
 
116
type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string
 
117
 
 
118
const (
 
119
        // Configured specifies the configured state for express route circuit
 
120
        // peering advertised public prefix state.
 
121
        Configured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured"
 
122
        // Configuring specifies the configuring state for express route circuit
 
123
        // peering advertised public prefix state.
 
124
        Configuring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring"
 
125
        // NotConfigured specifies the not configured state for express route
 
126
        // circuit peering advertised public prefix state.
 
127
        NotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured"
 
128
        // ValidationNeeded specifies the validation needed state for express
 
129
        // route circuit peering advertised public prefix state.
 
130
        ValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded"
 
131
)
 
132
 
 
133
// ExpressRouteCircuitPeeringState enumerates the values for express route
 
134
// circuit peering state.
 
135
type ExpressRouteCircuitPeeringState string
 
136
 
 
137
const (
 
138
        // ExpressRouteCircuitPeeringStateDisabled specifies the express route
 
139
        // circuit peering state disabled state for express route circuit peering
 
140
        // state.
 
141
        ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled"
 
142
        // ExpressRouteCircuitPeeringStateEnabled specifies the express route
 
143
        // circuit peering state enabled state for express route circuit peering
 
144
        // state.
 
145
        ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled"
 
146
)
 
147
 
 
148
// ExpressRouteCircuitPeeringType enumerates the values for express route
 
149
// circuit peering type.
 
150
type ExpressRouteCircuitPeeringType string
 
151
 
 
152
const (
 
153
        // AzurePrivatePeering specifies the azure private peering state for
 
154
        // express route circuit peering type.
 
155
        AzurePrivatePeering ExpressRouteCircuitPeeringType = "AzurePrivatePeering"
 
156
        // AzurePublicPeering specifies the azure public peering state for express
 
157
        // route circuit peering type.
 
158
        AzurePublicPeering ExpressRouteCircuitPeeringType = "AzurePublicPeering"
 
159
        // MicrosoftPeering specifies the microsoft peering state for express
 
160
        // route circuit peering type.
 
161
        MicrosoftPeering ExpressRouteCircuitPeeringType = "MicrosoftPeering"
 
162
)
 
163
 
 
164
// ExpressRouteCircuitSkuFamily enumerates the values for express route
 
165
// circuit sku family.
 
166
type ExpressRouteCircuitSkuFamily string
 
167
 
 
168
const (
 
169
        // MeteredData specifies the metered data state for express route circuit
 
170
        // sku family.
 
171
        MeteredData ExpressRouteCircuitSkuFamily = "MeteredData"
 
172
        // UnlimitedData specifies the unlimited data state for express route
 
173
        // circuit sku family.
 
174
        UnlimitedData ExpressRouteCircuitSkuFamily = "UnlimitedData"
 
175
)
 
176
 
 
177
// ExpressRouteCircuitSkuTier enumerates the values for express route circuit
 
178
// sku tier.
 
179
type ExpressRouteCircuitSkuTier string
 
180
 
 
181
const (
 
182
        // ExpressRouteCircuitSkuTierPremium specifies the express route circuit
 
183
        // sku tier premium state for express route circuit sku tier.
 
184
        ExpressRouteCircuitSkuTierPremium ExpressRouteCircuitSkuTier = "Premium"
 
185
        // ExpressRouteCircuitSkuTierStandard specifies the express route circuit
 
186
        // sku tier standard state for express route circuit sku tier.
 
187
        ExpressRouteCircuitSkuTierStandard ExpressRouteCircuitSkuTier = "Standard"
 
188
)
 
189
 
 
190
// IPAllocationMethod enumerates the values for ip allocation method.
 
191
type IPAllocationMethod string
 
192
 
 
193
const (
 
194
        // Dynamic specifies the dynamic state for ip allocation method.
 
195
        Dynamic IPAllocationMethod = "Dynamic"
 
196
        // Static specifies the static state for ip allocation method.
 
197
        Static IPAllocationMethod = "Static"
 
198
)
 
199
 
 
200
// LoadDistribution enumerates the values for load distribution.
 
201
type LoadDistribution string
 
202
 
 
203
const (
 
204
        // Default specifies the default state for load distribution.
 
205
        Default LoadDistribution = "Default"
 
206
        // SourceIP specifies the source ip state for load distribution.
 
207
        SourceIP LoadDistribution = "SourceIP"
 
208
        // SourceIPProtocol specifies the source ip protocol state for load
 
209
        // distribution.
 
210
        SourceIPProtocol LoadDistribution = "SourceIPProtocol"
 
211
)
 
212
 
 
213
// OperationStatus enumerates the values for operation status.
 
214
type OperationStatus string
 
215
 
 
216
const (
 
217
        // Failed specifies the failed state for operation status.
 
218
        Failed OperationStatus = "Failed"
 
219
        // InProgress specifies the in progress state for operation status.
 
220
        InProgress OperationStatus = "InProgress"
 
221
        // Succeeded specifies the succeeded state for operation status.
 
222
        Succeeded OperationStatus = "Succeeded"
 
223
)
 
224
 
 
225
// ProbeProtocol enumerates the values for probe protocol.
 
226
type ProbeProtocol string
 
227
 
 
228
const (
 
229
        // ProbeProtocolHTTP specifies the probe protocol http state for probe
 
230
        // protocol.
 
231
        ProbeProtocolHTTP ProbeProtocol = "Http"
 
232
        // ProbeProtocolTCP specifies the probe protocol tcp state for probe
 
233
        // protocol.
 
234
        ProbeProtocolTCP ProbeProtocol = "Tcp"
 
235
)
 
236
 
 
237
// RouteNextHopType enumerates the values for route next hop type.
 
238
type RouteNextHopType string
 
239
 
 
240
const (
 
241
        // RouteNextHopTypeInternet specifies the route next hop type internet
 
242
        // state for route next hop type.
 
243
        RouteNextHopTypeInternet RouteNextHopType = "Internet"
 
244
        // RouteNextHopTypeNone specifies the route next hop type none state for
 
245
        // route next hop type.
 
246
        RouteNextHopTypeNone RouteNextHopType = "None"
 
247
        // RouteNextHopTypeVirtualAppliance specifies the route next hop type
 
248
        // virtual appliance state for route next hop type.
 
249
        RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance"
 
250
        // RouteNextHopTypeVirtualNetworkGateway specifies the route next hop type
 
251
        // virtual network gateway state for route next hop type.
 
252
        RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway"
 
253
        // RouteNextHopTypeVnetLocal specifies the route next hop type vnet local
 
254
        // state for route next hop type.
 
255
        RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal"
 
256
)
 
257
 
 
258
// SecurityRuleAccess enumerates the values for security rule access.
 
259
type SecurityRuleAccess string
 
260
 
 
261
const (
 
262
        // Allow specifies the allow state for security rule access.
 
263
        Allow SecurityRuleAccess = "Allow"
 
264
        // Deny specifies the deny state for security rule access.
 
265
        Deny SecurityRuleAccess = "Deny"
 
266
)
 
267
 
 
268
// SecurityRuleDirection enumerates the values for security rule direction.
 
269
type SecurityRuleDirection string
 
270
 
 
271
const (
 
272
        // Inbound specifies the inbound state for security rule direction.
 
273
        Inbound SecurityRuleDirection = "Inbound"
 
274
        // Outbound specifies the outbound state for security rule direction.
 
275
        Outbound SecurityRuleDirection = "Outbound"
 
276
)
 
277
 
 
278
// SecurityRuleProtocol enumerates the values for security rule protocol.
 
279
type SecurityRuleProtocol string
 
280
 
 
281
const (
 
282
        // Asterisk specifies the asterisk state for security rule protocol.
 
283
        Asterisk SecurityRuleProtocol = "*"
 
284
        // TCP specifies the tcp state for security rule protocol.
 
285
        TCP SecurityRuleProtocol = "Tcp"
 
286
        // UDP specifies the udp state for security rule protocol.
 
287
        UDP SecurityRuleProtocol = "Udp"
 
288
)
 
289
 
 
290
// ServiceProviderProvisioningState enumerates the values for service provider
 
291
// provisioning state.
 
292
type ServiceProviderProvisioningState string
 
293
 
 
294
const (
 
295
        // Deprovisioning specifies the deprovisioning state for service provider
 
296
        // provisioning state.
 
297
        Deprovisioning ServiceProviderProvisioningState = "Deprovisioning"
 
298
        // NotProvisioned specifies the not provisioned state for service provider
 
299
        // provisioning state.
 
300
        NotProvisioned ServiceProviderProvisioningState = "NotProvisioned"
 
301
        // Provisioned specifies the provisioned state for service provider
 
302
        // provisioning state.
 
303
        Provisioned ServiceProviderProvisioningState = "Provisioned"
 
304
        // Provisioning specifies the provisioning state for service provider
 
305
        // provisioning state.
 
306
        Provisioning ServiceProviderProvisioningState = "Provisioning"
 
307
)
 
308
 
 
309
// TransportProtocol enumerates the values for transport protocol.
 
310
type TransportProtocol string
 
311
 
 
312
const (
 
313
        // TransportProtocolTCP specifies the transport protocol tcp state for
 
314
        // transport protocol.
 
315
        TransportProtocolTCP TransportProtocol = "Tcp"
 
316
        // TransportProtocolUDP specifies the transport protocol udp state for
 
317
        // transport protocol.
 
318
        TransportProtocolUDP TransportProtocol = "Udp"
 
319
)
 
320
 
 
321
// UsageUnit enumerates the values for usage unit.
 
322
type UsageUnit string
 
323
 
 
324
const (
 
325
        // Count specifies the count state for usage unit.
 
326
        Count UsageUnit = "Count"
 
327
)
 
328
 
 
329
// VirtualNetworkGatewayConnectionStatus enumerates the values for virtual
 
330
// network gateway connection status.
 
331
type VirtualNetworkGatewayConnectionStatus string
 
332
 
 
333
const (
 
334
        // Connected specifies the connected state for virtual network gateway
 
335
        // connection status.
 
336
        Connected VirtualNetworkGatewayConnectionStatus = "Connected"
 
337
        // Connecting specifies the connecting state for virtual network gateway
 
338
        // connection status.
 
339
        Connecting VirtualNetworkGatewayConnectionStatus = "Connecting"
 
340
        // NotConnected specifies the not connected state for virtual network
 
341
        // gateway connection status.
 
342
        NotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected"
 
343
        // Unknown specifies the unknown state for virtual network gateway
 
344
        // connection status.
 
345
        Unknown VirtualNetworkGatewayConnectionStatus = "Unknown"
 
346
)
 
347
 
 
348
// VirtualNetworkGatewayConnectionType enumerates the values for virtual
 
349
// network gateway connection type.
 
350
type VirtualNetworkGatewayConnectionType string
 
351
 
 
352
const (
 
353
        // ExpressRoute specifies the express route state for virtual network
 
354
        // gateway connection type.
 
355
        ExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute"
 
356
        // IPsec specifies the i psec state for virtual network gateway connection
 
357
        // type.
 
358
        IPsec VirtualNetworkGatewayConnectionType = "IPsec"
 
359
        // Vnet2Vnet specifies the vnet 2 vnet state for virtual network gateway
 
360
        // connection type.
 
361
        Vnet2Vnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet"
 
362
        // VPNClient specifies the vpn client state for virtual network gateway
 
363
        // connection type.
 
364
        VPNClient VirtualNetworkGatewayConnectionType = "VPNClient"
 
365
)
 
366
 
 
367
// VirtualNetworkGatewayType enumerates the values for virtual network gateway
 
368
// type.
 
369
type VirtualNetworkGatewayType string
 
370
 
 
371
const (
 
372
        // VirtualNetworkGatewayTypeExpressRoute specifies the virtual network
 
373
        // gateway type express route state for virtual network gateway type.
 
374
        VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute"
 
375
        // VirtualNetworkGatewayTypeVpn specifies the virtual network gateway type
 
376
        // vpn state for virtual network gateway type.
 
377
        VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn"
 
378
)
 
379
 
 
380
// VpnType enumerates the values for vpn type.
 
381
type VpnType string
 
382
 
 
383
const (
 
384
        // PolicyBased specifies the policy based state for vpn type.
 
385
        PolicyBased VpnType = "PolicyBased"
 
386
        // RouteBased specifies the route based state for vpn type.
 
387
        RouteBased VpnType = "RouteBased"
 
388
)
 
389
 
 
390
// AddressSpace is addressSpace contains an array of IP address ranges that
 
391
// can be used by subnets
 
392
type AddressSpace struct {
 
393
        AddressPrefixes *[]string `json:"addressPrefixes,omitempty"`
 
394
}
 
395
 
 
396
// ApplicationGateway is applicationGateways resource
 
397
type ApplicationGateway struct {
 
398
        autorest.Response `json:"-"`
 
399
        ID                *string                             `json:"id,omitempty"`
 
400
        Name              *string                             `json:"name,omitempty"`
 
401
        Type              *string                             `json:"type,omitempty"`
 
402
        Location          *string                             `json:"location,omitempty"`
 
403
        Tags              *map[string]*string                 `json:"tags,omitempty"`
 
404
        Properties        *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"`
 
405
        Etag              *string                             `json:"etag,omitempty"`
 
406
}
 
407
 
 
408
// ApplicationGatewayBackendAddress is backend Address of application gateway
 
409
type ApplicationGatewayBackendAddress struct {
 
410
        Fqdn      *string `json:"fqdn,omitempty"`
 
411
        IPAddress *string `json:"ipAddress,omitempty"`
 
412
}
 
413
 
 
414
// ApplicationGatewayBackendAddressPool is backend Address Pool of application
 
415
// gateway
 
416
type ApplicationGatewayBackendAddressPool struct {
 
417
        ID         *string                                               `json:"id,omitempty"`
 
418
        Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"`
 
419
        Name       *string                                               `json:"name,omitempty"`
 
420
        Etag       *string                                               `json:"etag,omitempty"`
 
421
}
 
422
 
 
423
// ApplicationGatewayBackendAddressPoolPropertiesFormat is properties of
 
424
// Backend Address Pool of application gateway
 
425
type ApplicationGatewayBackendAddressPoolPropertiesFormat struct {
 
426
        BackendIPConfigurations *[]SubResource                      `json:"backendIPConfigurations,omitempty"`
 
427
        BackendAddresses        *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"`
 
428
        ProvisioningState       *string                             `json:"provisioningState,omitempty"`
 
429
}
 
430
 
 
431
// ApplicationGatewayBackendHTTPSettings is backend address pool settings of
 
432
// application gateway
 
433
type ApplicationGatewayBackendHTTPSettings struct {
 
434
        ID         *string                                                `json:"id,omitempty"`
 
435
        Properties *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"`
 
436
        Name       *string                                                `json:"name,omitempty"`
 
437
        Etag       *string                                                `json:"etag,omitempty"`
 
438
}
 
439
 
 
440
// ApplicationGatewayBackendHTTPSettingsPropertiesFormat is properties of
 
441
// Backend address pool settings of application gateway
 
442
type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct {
 
443
        Port                *int                                  `json:"port,omitempty"`
 
444
        Protocol            ApplicationGatewayProtocol            `json:"protocol,omitempty"`
 
445
        CookieBasedAffinity ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"`
 
446
        ProvisioningState   *string                               `json:"provisioningState,omitempty"`
 
447
}
 
448
 
 
449
// ApplicationGatewayFrontendIPConfiguration is frontend IP configuration of
 
450
// application gateway
 
451
type ApplicationGatewayFrontendIPConfiguration struct {
 
452
        ID         *string                                                    `json:"id,omitempty"`
 
453
        Properties *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"`
 
454
        Name       *string                                                    `json:"name,omitempty"`
 
455
        Etag       *string                                                    `json:"etag,omitempty"`
 
456
}
 
457
 
 
458
// ApplicationGatewayFrontendIPConfigurationPropertiesFormat is properties of
 
459
// Frontend IP configuration of application gateway
 
460
type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct {
 
461
        PrivateIPAddress          *string            `json:"privateIPAddress,omitempty"`
 
462
        PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"`
 
463
        Subnet                    *SubResource       `json:"subnet,omitempty"`
 
464
        PublicIPAddress           *SubResource       `json:"publicIPAddress,omitempty"`
 
465
        ProvisioningState         *string            `json:"provisioningState,omitempty"`
 
466
}
 
467
 
 
468
// ApplicationGatewayFrontendPort is frontend Port of application gateway
 
469
type ApplicationGatewayFrontendPort struct {
 
470
        ID         *string                                         `json:"id,omitempty"`
 
471
        Properties *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"`
 
472
        Name       *string                                         `json:"name,omitempty"`
 
473
        Etag       *string                                         `json:"etag,omitempty"`
 
474
}
 
475
 
 
476
// ApplicationGatewayFrontendPortPropertiesFormat is properties of Frontend
 
477
// Port of application gateway
 
478
type ApplicationGatewayFrontendPortPropertiesFormat struct {
 
479
        Port              *int    `json:"port,omitempty"`
 
480
        ProvisioningState *string `json:"provisioningState,omitempty"`
 
481
}
 
482
 
 
483
// ApplicationGatewayHTTPListener is http listener of application gateway
 
484
type ApplicationGatewayHTTPListener struct {
 
485
        ID         *string                                         `json:"id,omitempty"`
 
486
        Properties *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"`
 
487
        Name       *string                                         `json:"name,omitempty"`
 
488
        Etag       *string                                         `json:"etag,omitempty"`
 
489
}
 
490
 
 
491
// ApplicationGatewayHTTPListenerPropertiesFormat is properties of Http
 
492
// listener of application gateway
 
493
type ApplicationGatewayHTTPListenerPropertiesFormat struct {
 
494
        FrontendIPConfiguration *SubResource               `json:"frontendIPConfiguration,omitempty"`
 
495
        FrontendPort            *SubResource               `json:"frontendPort,omitempty"`
 
496
        Protocol                ApplicationGatewayProtocol `json:"protocol,omitempty"`
 
497
        SslCertificate          *SubResource               `json:"sslCertificate,omitempty"`
 
498
        ProvisioningState       *string                    `json:"provisioningState,omitempty"`
 
499
}
 
500
 
 
501
// ApplicationGatewayIPConfiguration is iP configuration of application gateway
 
502
type ApplicationGatewayIPConfiguration struct {
 
503
        ID         *string                                            `json:"id,omitempty"`
 
504
        Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"`
 
505
        Name       *string                                            `json:"name,omitempty"`
 
506
        Etag       *string                                            `json:"etag,omitempty"`
 
507
}
 
508
 
 
509
// ApplicationGatewayIPConfigurationPropertiesFormat is properties of IP
 
510
// configuration of application gateway
 
511
type ApplicationGatewayIPConfigurationPropertiesFormat struct {
 
512
        Subnet            *SubResource `json:"subnet,omitempty"`
 
513
        ProvisioningState *string      `json:"provisioningState,omitempty"`
 
514
}
 
515
 
 
516
// ApplicationGatewayListResult is response for ListLoadBalancers Api service
 
517
// call
 
518
type ApplicationGatewayListResult struct {
 
519
        autorest.Response `json:"-"`
 
520
        Value             *[]ApplicationGateway `json:"value,omitempty"`
 
521
        NextLink          *string               `json:"nextLink,omitempty"`
 
522
}
 
523
 
 
524
// ApplicationGatewayListResultPreparer prepares a request to retrieve the next set of results. It returns
 
525
// nil if no more results exist.
 
526
func (client ApplicationGatewayListResult) ApplicationGatewayListResultPreparer() (*http.Request, error) {
 
527
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
528
                return nil, nil
 
529
        }
 
530
        return autorest.Prepare(&http.Request{},
 
531
                autorest.AsJSON(),
 
532
                autorest.AsGet(),
 
533
                autorest.WithBaseURL(to.String(client.NextLink)))
 
534
}
 
535
 
 
536
// ApplicationGatewayPropertiesFormat is properties of Application Gateway
 
537
type ApplicationGatewayPropertiesFormat struct {
 
538
        Sku                           *ApplicationGatewaySku                       `json:"sku,omitempty"`
 
539
        OperationalState              ApplicationGatewayOperationalState           `json:"operationalState,omitempty"`
 
540
        GatewayIPConfigurations       *[]ApplicationGatewayIPConfiguration         `json:"gatewayIPConfigurations,omitempty"`
 
541
        SslCertificates               *[]ApplicationGatewaySslCertificate          `json:"sslCertificates,omitempty"`
 
542
        FrontendIPConfigurations      *[]ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"`
 
543
        FrontendPorts                 *[]ApplicationGatewayFrontendPort            `json:"frontendPorts,omitempty"`
 
544
        BackendAddressPools           *[]ApplicationGatewayBackendAddressPool      `json:"backendAddressPools,omitempty"`
 
545
        BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHTTPSettings     `json:"backendHttpSettingsCollection,omitempty"`
 
546
        HTTPListeners                 *[]ApplicationGatewayHTTPListener            `json:"httpListeners,omitempty"`
 
547
        RequestRoutingRules           *[]ApplicationGatewayRequestRoutingRule      `json:"requestRoutingRules,omitempty"`
 
548
        ResourceGUID                  *string                                      `json:"resourceGuid,omitempty"`
 
549
        ProvisioningState             *string                                      `json:"provisioningState,omitempty"`
 
550
}
 
551
 
 
552
// ApplicationGatewayRequestRoutingRule is request routing rule of application
 
553
// gateway
 
554
type ApplicationGatewayRequestRoutingRule struct {
 
555
        ID         *string                                               `json:"id,omitempty"`
 
556
        Properties *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"`
 
557
        Name       *string                                               `json:"name,omitempty"`
 
558
        Etag       *string                                               `json:"etag,omitempty"`
 
559
}
 
560
 
 
561
// ApplicationGatewayRequestRoutingRulePropertiesFormat is properties of
 
562
// Request routing rule of application gateway
 
563
type ApplicationGatewayRequestRoutingRulePropertiesFormat struct {
 
564
        RuleType            ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"`
 
565
        BackendAddressPool  *SubResource                             `json:"backendAddressPool,omitempty"`
 
566
        BackendHTTPSettings *SubResource                             `json:"backendHttpSettings,omitempty"`
 
567
        HTTPListener        *SubResource                             `json:"httpListener,omitempty"`
 
568
        ProvisioningState   *string                                  `json:"provisioningState,omitempty"`
 
569
}
 
570
 
 
571
// ApplicationGatewaySku is sKU of application gateway
 
572
type ApplicationGatewaySku struct {
 
573
        Name     ApplicationGatewaySkuName `json:"name,omitempty"`
 
574
        Tier     ApplicationGatewayTier    `json:"tier,omitempty"`
 
575
        Capacity *int                      `json:"capacity,omitempty"`
 
576
}
 
577
 
 
578
// ApplicationGatewaySslCertificate is sSL certificates of application gateway
 
579
type ApplicationGatewaySslCertificate struct {
 
580
        ID         *string                                           `json:"id,omitempty"`
 
581
        Properties *ApplicationGatewaySslCertificatePropertiesFormat `json:"properties,omitempty"`
 
582
        Name       *string                                           `json:"name,omitempty"`
 
583
        Etag       *string                                           `json:"etag,omitempty"`
 
584
}
 
585
 
 
586
// ApplicationGatewaySslCertificatePropertiesFormat is properties of SSL
 
587
// certificates of application gateway
 
588
type ApplicationGatewaySslCertificatePropertiesFormat struct {
 
589
        Data              *string `json:"data,omitempty"`
 
590
        Password          *string `json:"password,omitempty"`
 
591
        PublicCertData    *string `json:"publicCertData,omitempty"`
 
592
        ProvisioningState *string `json:"provisioningState,omitempty"`
 
593
}
 
594
 
 
595
// AuthorizationListResult is response for ListAuthorizations Api service
 
596
// callRetrieves all authorizations that belongs to an ExpressRouteCircuit
 
597
type AuthorizationListResult struct {
 
598
        autorest.Response `json:"-"`
 
599
        Value             *[]ExpressRouteCircuitAuthorization `json:"value,omitempty"`
 
600
        NextLink          *string                             `json:"nextLink,omitempty"`
 
601
}
 
602
 
 
603
// AuthorizationListResultPreparer prepares a request to retrieve the next set of results. It returns
 
604
// nil if no more results exist.
 
605
func (client AuthorizationListResult) AuthorizationListResultPreparer() (*http.Request, error) {
 
606
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
607
                return nil, nil
 
608
        }
 
609
        return autorest.Prepare(&http.Request{},
 
610
                autorest.AsJSON(),
 
611
                autorest.AsGet(),
 
612
                autorest.WithBaseURL(to.String(client.NextLink)))
 
613
}
 
614
 
 
615
// AuthorizationPropertiesFormat is
 
616
type AuthorizationPropertiesFormat struct {
 
617
        AuthorizationKey       *string                `json:"authorizationKey,omitempty"`
 
618
        AuthorizationUseStatus AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"`
 
619
        ProvisioningState      *string                `json:"provisioningState,omitempty"`
 
620
}
 
621
 
 
622
// AzureAsyncOperationResult is the response body contains the status of the
 
623
// specified asynchronous operation, indicating whether it has succeeded, is
 
624
// inprogress, or has failed. Note that this status is distinct from the HTTP
 
625
// status code returned for the Get Operation Status operation itself. If the
 
626
// asynchronous operation succeeded, the response body includes the HTTP
 
627
// status code for the successful request. If the asynchronous operation
 
628
// failed, the response body includes the HTTP status code for the failed
 
629
// request and error information regarding the failure.
 
630
type AzureAsyncOperationResult struct {
 
631
        Status OperationStatus `json:"status,omitempty"`
 
632
        Error  *Error          `json:"error,omitempty"`
 
633
}
 
634
 
 
635
// BackendAddressPool is pool of backend IP addresseses
 
636
type BackendAddressPool struct {
 
637
        ID         *string                             `json:"id,omitempty"`
 
638
        Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"`
 
639
        Name       *string                             `json:"name,omitempty"`
 
640
        Etag       *string                             `json:"etag,omitempty"`
 
641
}
 
642
 
 
643
// BackendAddressPoolPropertiesFormat is properties of BackendAddressPool
 
644
type BackendAddressPoolPropertiesFormat struct {
 
645
        BackendIPConfigurations *[]SubResource `json:"backendIPConfigurations,omitempty"`
 
646
        LoadBalancingRules      *[]SubResource `json:"loadBalancingRules,omitempty"`
 
647
        OutboundNatRule         *SubResource   `json:"outboundNatRule,omitempty"`
 
648
        ProvisioningState       *string        `json:"provisioningState,omitempty"`
 
649
}
 
650
 
 
651
// ConnectionResetSharedKey is
 
652
type ConnectionResetSharedKey struct {
 
653
        autorest.Response `json:"-"`
 
654
        KeyLength         *int32 `json:"keyLength,omitempty"`
 
655
}
 
656
 
 
657
// ConnectionSharedKey is response for GetConnectionSharedKey Api servive call
 
658
type ConnectionSharedKey struct {
 
659
        autorest.Response `json:"-"`
 
660
        Value             *string `json:"value,omitempty"`
 
661
}
 
662
 
 
663
// DhcpOptions is dHCPOptions contains an array of DNS servers available to
 
664
// VMs deployed in the virtual networkStandard DHCP option for a subnet
 
665
// overrides VNET DHCP options.
 
666
type DhcpOptions struct {
 
667
        DNSServers *[]string `json:"dnsServers,omitempty"`
 
668
}
 
669
 
 
670
// DNSNameAvailabilityResult is response for CheckDnsNameAvailability Api
 
671
// servive call
 
672
type DNSNameAvailabilityResult struct {
 
673
        autorest.Response `json:"-"`
 
674
        Available         *bool `json:"available,omitempty"`
 
675
}
 
676
 
 
677
// Error is
 
678
type Error struct {
 
679
        Code       *string         `json:"code,omitempty"`
 
680
        Message    *string         `json:"message,omitempty"`
 
681
        Target     *string         `json:"target,omitempty"`
 
682
        Details    *[]ErrorDetails `json:"details,omitempty"`
 
683
        InnerError *string         `json:"innerError,omitempty"`
 
684
}
 
685
 
 
686
// ErrorDetails is
 
687
type ErrorDetails struct {
 
688
        Code    *string `json:"code,omitempty"`
 
689
        Target  *string `json:"target,omitempty"`
 
690
        Message *string `json:"message,omitempty"`
 
691
}
 
692
 
 
693
// ExpressRouteCircuit is expressRouteCircuit resource
 
694
type ExpressRouteCircuit struct {
 
695
        autorest.Response `json:"-"`
 
696
        ID                *string                              `json:"id,omitempty"`
 
697
        Name              *string                              `json:"name,omitempty"`
 
698
        Type              *string                              `json:"type,omitempty"`
 
699
        Location          *string                              `json:"location,omitempty"`
 
700
        Tags              *map[string]*string                  `json:"tags,omitempty"`
 
701
        Sku               *ExpressRouteCircuitSku              `json:"sku,omitempty"`
 
702
        Properties        *ExpressRouteCircuitPropertiesFormat `json:"properties,omitempty"`
 
703
        Etag              *string                              `json:"etag,omitempty"`
 
704
}
 
705
 
 
706
// ExpressRouteCircuitArpTable is the arp table associated with the
 
707
// ExpressRouteCircuit
 
708
type ExpressRouteCircuitArpTable struct {
 
709
        IPAddress  *string `json:"ipAddress,omitempty"`
 
710
        MacAddress *string `json:"macAddress,omitempty"`
 
711
}
 
712
 
 
713
// ExpressRouteCircuitAuthorization is authorization in a ExpressRouteCircuit
 
714
// resource
 
715
type ExpressRouteCircuitAuthorization struct {
 
716
        autorest.Response `json:"-"`
 
717
        ID                *string                        `json:"id,omitempty"`
 
718
        Properties        *AuthorizationPropertiesFormat `json:"properties,omitempty"`
 
719
        Name              *string                        `json:"name,omitempty"`
 
720
        Etag              *string                        `json:"etag,omitempty"`
 
721
}
 
722
 
 
723
// ExpressRouteCircuitListResult is response for ListExpressRouteCircuit Api
 
724
// service call
 
725
type ExpressRouteCircuitListResult struct {
 
726
        autorest.Response `json:"-"`
 
727
        Value             *[]ExpressRouteCircuit `json:"value,omitempty"`
 
728
        NextLink          *string                `json:"nextLink,omitempty"`
 
729
}
 
730
 
 
731
// ExpressRouteCircuitListResultPreparer prepares a request to retrieve the next set of results. It returns
 
732
// nil if no more results exist.
 
733
func (client ExpressRouteCircuitListResult) ExpressRouteCircuitListResultPreparer() (*http.Request, error) {
 
734
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
735
                return nil, nil
 
736
        }
 
737
        return autorest.Prepare(&http.Request{},
 
738
                autorest.AsJSON(),
 
739
                autorest.AsGet(),
 
740
                autorest.WithBaseURL(to.String(client.NextLink)))
 
741
}
 
742
 
 
743
// ExpressRouteCircuitPeering is peering in a ExpressRouteCircuit resource
 
744
type ExpressRouteCircuitPeering struct {
 
745
        autorest.Response `json:"-"`
 
746
        ID                *string                                     `json:"id,omitempty"`
 
747
        Properties        *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"`
 
748
        Name              *string                                     `json:"name,omitempty"`
 
749
        Etag              *string                                     `json:"etag,omitempty"`
 
750
}
 
751
 
 
752
// ExpressRouteCircuitPeeringConfig is specfies the peering config
 
753
type ExpressRouteCircuitPeeringConfig struct {
 
754
        AdvertisedPublicPrefixes      *[]string                                             `json:"advertisedPublicPrefixes,omitempty"`
 
755
        AdvertisedPublicPrefixesState ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"`
 
756
        CustomerASN                   *int                                                  `json:"customerASN,omitempty"`
 
757
        RoutingRegistryName           *string                                               `json:"routingRegistryName,omitempty"`
 
758
}
 
759
 
 
760
// ExpressRouteCircuitPeeringListResult is response for ListPeering Api
 
761
// service callRetrieves all Peerings that belongs to an ExpressRouteCircuit
 
762
type ExpressRouteCircuitPeeringListResult struct {
 
763
        autorest.Response `json:"-"`
 
764
        Value             *[]ExpressRouteCircuitPeering `json:"value,omitempty"`
 
765
        NextLink          *string                       `json:"nextLink,omitempty"`
 
766
}
 
767
 
 
768
// ExpressRouteCircuitPeeringListResultPreparer prepares a request to retrieve the next set of results. It returns
 
769
// nil if no more results exist.
 
770
func (client ExpressRouteCircuitPeeringListResult) ExpressRouteCircuitPeeringListResultPreparer() (*http.Request, error) {
 
771
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
772
                return nil, nil
 
773
        }
 
774
        return autorest.Prepare(&http.Request{},
 
775
                autorest.AsJSON(),
 
776
                autorest.AsGet(),
 
777
                autorest.WithBaseURL(to.String(client.NextLink)))
 
778
}
 
779
 
 
780
// ExpressRouteCircuitPeeringPropertiesFormat is
 
781
type ExpressRouteCircuitPeeringPropertiesFormat struct {
 
782
        PeeringType                ExpressRouteCircuitPeeringType    `json:"peeringType,omitempty"`
 
783
        State                      ExpressRouteCircuitPeeringState   `json:"state,omitempty"`
 
784
        AzureASN                   *int                              `json:"azureASN,omitempty"`
 
785
        PeerASN                    *int                              `json:"peerASN,omitempty"`
 
786
        PrimaryPeerAddressPrefix   *string                           `json:"primaryPeerAddressPrefix,omitempty"`
 
787
        SecondaryPeerAddressPrefix *string                           `json:"secondaryPeerAddressPrefix,omitempty"`
 
788
        PrimaryAzurePort           *string                           `json:"primaryAzurePort,omitempty"`
 
789
        SecondaryAzurePort         *string                           `json:"secondaryAzurePort,omitempty"`
 
790
        SharedKey                  *string                           `json:"sharedKey,omitempty"`
 
791
        VlanID                     *int                              `json:"vlanId,omitempty"`
 
792
        MicrosoftPeeringConfig     *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"`
 
793
        Stats                      *ExpressRouteCircuitStats         `json:"stats,omitempty"`
 
794
        ProvisioningState          *string                           `json:"provisioningState,omitempty"`
 
795
}
 
796
 
 
797
// ExpressRouteCircuitPropertiesFormat is properties of ExpressRouteCircuit
 
798
type ExpressRouteCircuitPropertiesFormat struct {
 
799
        CircuitProvisioningState         *string                                       `json:"circuitProvisioningState,omitempty"`
 
800
        ServiceProviderProvisioningState ServiceProviderProvisioningState              `json:"serviceProviderProvisioningState,omitempty"`
 
801
        Authorizations                   *[]ExpressRouteCircuitAuthorization           `json:"authorizations,omitempty"`
 
802
        Peerings                         *[]ExpressRouteCircuitPeering                 `json:"peerings,omitempty"`
 
803
        ServiceKey                       *string                                       `json:"serviceKey,omitempty"`
 
804
        ServiceProviderNotes             *string                                       `json:"serviceProviderNotes,omitempty"`
 
805
        ServiceProviderProperties        *ExpressRouteCircuitServiceProviderProperties `json:"serviceProviderProperties,omitempty"`
 
806
        ProvisioningState                *string                                       `json:"provisioningState,omitempty"`
 
807
}
 
808
 
 
809
// ExpressRouteCircuitRoutesTable is the routes table associated with the
 
810
// ExpressRouteCircuit
 
811
type ExpressRouteCircuitRoutesTable struct {
 
812
        AddressPrefix *string          `json:"addressPrefix,omitempty"`
 
813
        NextHopType   RouteNextHopType `json:"nextHopType,omitempty"`
 
814
        NextHopIP     *string          `json:"nextHopIP,omitempty"`
 
815
        AsPath        *string          `json:"asPath,omitempty"`
 
816
}
 
817
 
 
818
// ExpressRouteCircuitsArpTableListResult is response for ListArpTable
 
819
// associated with the Express Route Circuits Api
 
820
type ExpressRouteCircuitsArpTableListResult struct {
 
821
        autorest.Response `json:"-"`
 
822
        Value             *[]ExpressRouteCircuitArpTable `json:"value,omitempty"`
 
823
        NextLink          *string                        `json:"nextLink,omitempty"`
 
824
}
 
825
 
 
826
// ExpressRouteCircuitsArpTableListResultPreparer prepares a request to retrieve the next set of results. It returns
 
827
// nil if no more results exist.
 
828
func (client ExpressRouteCircuitsArpTableListResult) ExpressRouteCircuitsArpTableListResultPreparer() (*http.Request, error) {
 
829
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
830
                return nil, nil
 
831
        }
 
832
        return autorest.Prepare(&http.Request{},
 
833
                autorest.AsJSON(),
 
834
                autorest.AsGet(),
 
835
                autorest.WithBaseURL(to.String(client.NextLink)))
 
836
}
 
837
 
 
838
// ExpressRouteCircuitServiceProviderProperties is contains
 
839
// ServiceProviderProperties in an ExpressRouteCircuit
 
840
type ExpressRouteCircuitServiceProviderProperties struct {
 
841
        ServiceProviderName *string `json:"serviceProviderName,omitempty"`
 
842
        PeeringLocation     *string `json:"peeringLocation,omitempty"`
 
843
        BandwidthInMbps     *int    `json:"bandwidthInMbps,omitempty"`
 
844
}
 
845
 
 
846
// ExpressRouteCircuitSku is contains sku in an ExpressRouteCircuit
 
847
type ExpressRouteCircuitSku struct {
 
848
        Name   *string                      `json:"name,omitempty"`
 
849
        Tier   ExpressRouteCircuitSkuTier   `json:"tier,omitempty"`
 
850
        Family ExpressRouteCircuitSkuFamily `json:"family,omitempty"`
 
851
}
 
852
 
 
853
// ExpressRouteCircuitsRoutesTableListResult is response for ListRoutesTable
 
854
// associated with the Express Route Circuits Api
 
855
type ExpressRouteCircuitsRoutesTableListResult struct {
 
856
        autorest.Response `json:"-"`
 
857
        Value             *[]ExpressRouteCircuitRoutesTable `json:"value,omitempty"`
 
858
        NextLink          *string                           `json:"nextLink,omitempty"`
 
859
}
 
860
 
 
861
// ExpressRouteCircuitsRoutesTableListResultPreparer prepares a request to retrieve the next set of results. It returns
 
862
// nil if no more results exist.
 
863
func (client ExpressRouteCircuitsRoutesTableListResult) ExpressRouteCircuitsRoutesTableListResultPreparer() (*http.Request, error) {
 
864
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
865
                return nil, nil
 
866
        }
 
867
        return autorest.Prepare(&http.Request{},
 
868
                autorest.AsJSON(),
 
869
                autorest.AsGet(),
 
870
                autorest.WithBaseURL(to.String(client.NextLink)))
 
871
}
 
872
 
 
873
// ExpressRouteCircuitsStatsListResult is response for ListStats from Express
 
874
// Route Circuits Api service call
 
875
type ExpressRouteCircuitsStatsListResult struct {
 
876
        autorest.Response `json:"-"`
 
877
        Value             *[]ExpressRouteCircuitStats `json:"value,omitempty"`
 
878
        NextLink          *string                     `json:"nextLink,omitempty"`
 
879
}
 
880
 
 
881
// ExpressRouteCircuitsStatsListResultPreparer prepares a request to retrieve the next set of results. It returns
 
882
// nil if no more results exist.
 
883
func (client ExpressRouteCircuitsStatsListResult) ExpressRouteCircuitsStatsListResultPreparer() (*http.Request, error) {
 
884
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
885
                return nil, nil
 
886
        }
 
887
        return autorest.Prepare(&http.Request{},
 
888
                autorest.AsJSON(),
 
889
                autorest.AsGet(),
 
890
                autorest.WithBaseURL(to.String(client.NextLink)))
 
891
}
 
892
 
 
893
// ExpressRouteCircuitStats is contains Stats associated with the peering
 
894
type ExpressRouteCircuitStats struct {
 
895
        BytesIn  *int `json:"bytesIn,omitempty"`
 
896
        BytesOut *int `json:"bytesOut,omitempty"`
 
897
}
 
898
 
 
899
// ExpressRouteServiceProvider is expressRouteResourceProvider object
 
900
type ExpressRouteServiceProvider struct {
 
901
        ID         *string                                      `json:"id,omitempty"`
 
902
        Name       *string                                      `json:"name,omitempty"`
 
903
        Type       *string                                      `json:"type,omitempty"`
 
904
        Properties *ExpressRouteServiceProviderPropertiesFormat `json:"properties,omitempty"`
 
905
}
 
906
 
 
907
// ExpressRouteServiceProviderBandwidthsOffered is contains Bandwidths offered
 
908
// in ExpressRouteServiceProviders
 
909
type ExpressRouteServiceProviderBandwidthsOffered struct {
 
910
        OfferName   *string `json:"offerName,omitempty"`
 
911
        ValueInMbps *int    `json:"valueInMbps,omitempty"`
 
912
}
 
913
 
 
914
// ExpressRouteServiceProviderListResult is response for
 
915
// ListExpressRouteServiceProvider Api service call
 
916
type ExpressRouteServiceProviderListResult struct {
 
917
        autorest.Response `json:"-"`
 
918
        Value             *[]ExpressRouteServiceProvider `json:"value,omitempty"`
 
919
        NextLink          *string                        `json:"nextLink,omitempty"`
 
920
}
 
921
 
 
922
// ExpressRouteServiceProviderListResultPreparer prepares a request to retrieve the next set of results. It returns
 
923
// nil if no more results exist.
 
924
func (client ExpressRouteServiceProviderListResult) ExpressRouteServiceProviderListResultPreparer() (*http.Request, error) {
 
925
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
926
                return nil, nil
 
927
        }
 
928
        return autorest.Prepare(&http.Request{},
 
929
                autorest.AsJSON(),
 
930
                autorest.AsGet(),
 
931
                autorest.WithBaseURL(to.String(client.NextLink)))
 
932
}
 
933
 
 
934
// ExpressRouteServiceProviderPropertiesFormat is properties of
 
935
// ExpressRouteServiceProvider
 
936
type ExpressRouteServiceProviderPropertiesFormat struct {
 
937
        PeeringLocations  *[]string                                       `json:"peeringLocations,omitempty"`
 
938
        BandwidthsOffered *[]ExpressRouteServiceProviderBandwidthsOffered `json:"bandwidthsOffered,omitempty"`
 
939
        ProvisioningState *string                                         `json:"provisioningState,omitempty"`
 
940
}
 
941
 
 
942
// FrontendIPConfiguration is frontend IP address of the load balancer
 
943
type FrontendIPConfiguration struct {
 
944
        ID         *string                                  `json:"id,omitempty"`
 
945
        Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"`
 
946
        Name       *string                                  `json:"name,omitempty"`
 
947
        Etag       *string                                  `json:"etag,omitempty"`
 
948
}
 
949
 
 
950
// FrontendIPConfigurationPropertiesFormat is properties of Frontend IP
 
951
// Configuration of the load balancer
 
952
type FrontendIPConfigurationPropertiesFormat struct {
 
953
        PrivateIPAddress          *string            `json:"privateIPAddress,omitempty"`
 
954
        PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"`
 
955
        Subnet                    *SubResource       `json:"subnet,omitempty"`
 
956
        PublicIPAddress           *SubResource       `json:"publicIPAddress,omitempty"`
 
957
        InboundNatRules           *[]SubResource     `json:"inboundNatRules,omitempty"`
 
958
        InboundNatPools           *[]SubResource     `json:"inboundNatPools,omitempty"`
 
959
        OutboundNatRules          *[]SubResource     `json:"outboundNatRules,omitempty"`
 
960
        LoadBalancingRules        *[]SubResource     `json:"loadBalancingRules,omitempty"`
 
961
        ProvisioningState         *string            `json:"provisioningState,omitempty"`
 
962
}
 
963
 
 
964
// InboundNatPool is inbound NAT pool of the loadbalancer
 
965
type InboundNatPool struct {
 
966
        ID         *string                         `json:"id,omitempty"`
 
967
        Properties *InboundNatPoolPropertiesFormat `json:"properties,omitempty"`
 
968
        Name       *string                         `json:"name,omitempty"`
 
969
        Etag       *string                         `json:"etag,omitempty"`
 
970
}
 
971
 
 
972
// InboundNatPoolPropertiesFormat is properties of Inbound NAT pool
 
973
type InboundNatPoolPropertiesFormat struct {
 
974
        FrontendIPConfiguration *SubResource      `json:"frontendIPConfiguration,omitempty"`
 
975
        Protocol                TransportProtocol `json:"protocol,omitempty"`
 
976
        FrontendPortRangeStart  *int              `json:"frontendPortRangeStart,omitempty"`
 
977
        FrontendPortRangeEnd    *int              `json:"frontendPortRangeEnd,omitempty"`
 
978
        BackendPort             *int              `json:"backendPort,omitempty"`
 
979
        ProvisioningState       *string           `json:"provisioningState,omitempty"`
 
980
}
 
981
 
 
982
// InboundNatRule is inbound NAT rule of the loadbalancer
 
983
type InboundNatRule struct {
 
984
        ID         *string                         `json:"id,omitempty"`
 
985
        Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"`
 
986
        Name       *string                         `json:"name,omitempty"`
 
987
        Etag       *string                         `json:"etag,omitempty"`
 
988
}
 
989
 
 
990
// InboundNatRulePropertiesFormat is properties of Inbound NAT rule
 
991
type InboundNatRulePropertiesFormat struct {
 
992
        FrontendIPConfiguration *SubResource      `json:"frontendIPConfiguration,omitempty"`
 
993
        BackendIPConfiguration  *SubResource      `json:"backendIPConfiguration,omitempty"`
 
994
        Protocol                TransportProtocol `json:"protocol,omitempty"`
 
995
        FrontendPort            *int              `json:"frontendPort,omitempty"`
 
996
        BackendPort             *int              `json:"backendPort,omitempty"`
 
997
        IdleTimeoutInMinutes    *int              `json:"idleTimeoutInMinutes,omitempty"`
 
998
        EnableFloatingIP        *bool             `json:"enableFloatingIP,omitempty"`
 
999
        ProvisioningState       *string           `json:"provisioningState,omitempty"`
 
1000
}
 
1001
 
 
1002
// Interface is a NetworkInterface in a resource group
 
1003
type Interface struct {
 
1004
        autorest.Response `json:"-"`
 
1005
        ID                *string                    `json:"id,omitempty"`
 
1006
        Name              *string                    `json:"name,omitempty"`
 
1007
        Type              *string                    `json:"type,omitempty"`
 
1008
        Location          *string                    `json:"location,omitempty"`
 
1009
        Tags              *map[string]*string        `json:"tags,omitempty"`
 
1010
        Properties        *InterfacePropertiesFormat `json:"properties,omitempty"`
 
1011
        Etag              *string                    `json:"etag,omitempty"`
 
1012
}
 
1013
 
 
1014
// InterfaceDNSSettings is dns Settings of a network interface
 
1015
type InterfaceDNSSettings struct {
 
1016
        DNSServers           *[]string `json:"dnsServers,omitempty"`
 
1017
        AppliedDNSServers    *[]string `json:"appliedDnsServers,omitempty"`
 
1018
        InternalDNSNameLabel *string   `json:"internalDnsNameLabel,omitempty"`
 
1019
        InternalFqdn         *string   `json:"internalFqdn,omitempty"`
 
1020
}
 
1021
 
 
1022
// InterfaceIPConfiguration is iPConfiguration in a NetworkInterface
 
1023
type InterfaceIPConfiguration struct {
 
1024
        ID         *string                                   `json:"id,omitempty"`
 
1025
        Properties *InterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"`
 
1026
        Name       *string                                   `json:"name,omitempty"`
 
1027
        Etag       *string                                   `json:"etag,omitempty"`
 
1028
}
 
1029
 
 
1030
// InterfaceIPConfigurationPropertiesFormat is properties of IPConfiguration
 
1031
type InterfaceIPConfigurationPropertiesFormat struct {
 
1032
        PrivateIPAddress                *string            `json:"privateIPAddress,omitempty"`
 
1033
        PrivateIPAllocationMethod       IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"`
 
1034
        Subnet                          *SubResource       `json:"subnet,omitempty"`
 
1035
        PublicIPAddress                 *SubResource       `json:"publicIPAddress,omitempty"`
 
1036
        LoadBalancerBackendAddressPools *[]SubResource     `json:"loadBalancerBackendAddressPools,omitempty"`
 
1037
        LoadBalancerInboundNatRules     *[]SubResource     `json:"loadBalancerInboundNatRules,omitempty"`
 
1038
        ProvisioningState               *string            `json:"provisioningState,omitempty"`
 
1039
}
 
1040
 
 
1041
// InterfaceListResult is response for ListNetworkInterface Api service call
 
1042
type InterfaceListResult struct {
 
1043
        autorest.Response `json:"-"`
 
1044
        Value             *[]Interface `json:"value,omitempty"`
 
1045
        NextLink          *string      `json:"nextLink,omitempty"`
 
1046
}
 
1047
 
 
1048
// InterfaceListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1049
// nil if no more results exist.
 
1050
func (client InterfaceListResult) InterfaceListResultPreparer() (*http.Request, error) {
 
1051
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1052
                return nil, nil
 
1053
        }
 
1054
        return autorest.Prepare(&http.Request{},
 
1055
                autorest.AsJSON(),
 
1056
                autorest.AsGet(),
 
1057
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1058
}
 
1059
 
 
1060
// InterfacePropertiesFormat is networkInterface properties.
 
1061
type InterfacePropertiesFormat struct {
 
1062
        VirtualMachine       *SubResource                `json:"virtualMachine,omitempty"`
 
1063
        NetworkSecurityGroup *SubResource                `json:"networkSecurityGroup,omitempty"`
 
1064
        IPConfigurations     *[]InterfaceIPConfiguration `json:"ipConfigurations,omitempty"`
 
1065
        DNSSettings          *InterfaceDNSSettings       `json:"dnsSettings,omitempty"`
 
1066
        MacAddress           *string                     `json:"macAddress,omitempty"`
 
1067
        Primary              *bool                       `json:"primary,omitempty"`
 
1068
        EnableIPForwarding   *bool                       `json:"enableIPForwarding,omitempty"`
 
1069
        ResourceGUID         *string                     `json:"resourceGuid,omitempty"`
 
1070
        ProvisioningState    *string                     `json:"provisioningState,omitempty"`
 
1071
}
 
1072
 
 
1073
// LoadBalancer is loadBalancer resource
 
1074
type LoadBalancer struct {
 
1075
        autorest.Response `json:"-"`
 
1076
        ID                *string                       `json:"id,omitempty"`
 
1077
        Name              *string                       `json:"name,omitempty"`
 
1078
        Type              *string                       `json:"type,omitempty"`
 
1079
        Location          *string                       `json:"location,omitempty"`
 
1080
        Tags              *map[string]*string           `json:"tags,omitempty"`
 
1081
        Properties        *LoadBalancerPropertiesFormat `json:"properties,omitempty"`
 
1082
        Etag              *string                       `json:"etag,omitempty"`
 
1083
}
 
1084
 
 
1085
// LoadBalancerListResult is response for ListLoadBalancers Api service call
 
1086
type LoadBalancerListResult struct {
 
1087
        autorest.Response `json:"-"`
 
1088
        Value             *[]LoadBalancer `json:"value,omitempty"`
 
1089
        NextLink          *string         `json:"nextLink,omitempty"`
 
1090
}
 
1091
 
 
1092
// LoadBalancerListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1093
// nil if no more results exist.
 
1094
func (client LoadBalancerListResult) LoadBalancerListResultPreparer() (*http.Request, error) {
 
1095
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1096
                return nil, nil
 
1097
        }
 
1098
        return autorest.Prepare(&http.Request{},
 
1099
                autorest.AsJSON(),
 
1100
                autorest.AsGet(),
 
1101
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1102
}
 
1103
 
 
1104
// LoadBalancerPropertiesFormat is properties of Load Balancer
 
1105
type LoadBalancerPropertiesFormat struct {
 
1106
        FrontendIPConfigurations *[]FrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"`
 
1107
        BackendAddressPools      *[]BackendAddressPool      `json:"backendAddressPools,omitempty"`
 
1108
        LoadBalancingRules       *[]LoadBalancingRule       `json:"loadBalancingRules,omitempty"`
 
1109
        Probes                   *[]Probe                   `json:"probes,omitempty"`
 
1110
        InboundNatRules          *[]InboundNatRule          `json:"inboundNatRules,omitempty"`
 
1111
        InboundNatPools          *[]InboundNatPool          `json:"inboundNatPools,omitempty"`
 
1112
        OutboundNatRules         *[]OutboundNatRule         `json:"outboundNatRules,omitempty"`
 
1113
        ResourceGUID             *string                    `json:"resourceGuid,omitempty"`
 
1114
        ProvisioningState        *string                    `json:"provisioningState,omitempty"`
 
1115
}
 
1116
 
 
1117
// LoadBalancingRule is rules of the load balancer
 
1118
type LoadBalancingRule struct {
 
1119
        ID         *string                            `json:"id,omitempty"`
 
1120
        Properties *LoadBalancingRulePropertiesFormat `json:"properties,omitempty"`
 
1121
        Name       *string                            `json:"name,omitempty"`
 
1122
        Etag       *string                            `json:"etag,omitempty"`
 
1123
}
 
1124
 
 
1125
// LoadBalancingRulePropertiesFormat is properties of the load balancer
 
1126
type LoadBalancingRulePropertiesFormat struct {
 
1127
        FrontendIPConfiguration *SubResource      `json:"frontendIPConfiguration,omitempty"`
 
1128
        BackendAddressPool      *SubResource      `json:"backendAddressPool,omitempty"`
 
1129
        Probe                   *SubResource      `json:"probe,omitempty"`
 
1130
        Protocol                TransportProtocol `json:"protocol,omitempty"`
 
1131
        LoadDistribution        LoadDistribution  `json:"loadDistribution,omitempty"`
 
1132
        FrontendPort            *int              `json:"frontendPort,omitempty"`
 
1133
        BackendPort             *int              `json:"backendPort,omitempty"`
 
1134
        IdleTimeoutInMinutes    *int              `json:"idleTimeoutInMinutes,omitempty"`
 
1135
        EnableFloatingIP        *bool             `json:"enableFloatingIP,omitempty"`
 
1136
        ProvisioningState       *string           `json:"provisioningState,omitempty"`
 
1137
}
 
1138
 
 
1139
// LocalNetworkGateway is a common class for general resource information
 
1140
type LocalNetworkGateway struct {
 
1141
        autorest.Response `json:"-"`
 
1142
        ID                *string                              `json:"id,omitempty"`
 
1143
        Name              *string                              `json:"name,omitempty"`
 
1144
        Type              *string                              `json:"type,omitempty"`
 
1145
        Location          *string                              `json:"location,omitempty"`
 
1146
        Tags              *map[string]*string                  `json:"tags,omitempty"`
 
1147
        Properties        *LocalNetworkGatewayPropertiesFormat `json:"properties,omitempty"`
 
1148
        Etag              *string                              `json:"etag,omitempty"`
 
1149
}
 
1150
 
 
1151
// LocalNetworkGatewayListResult is response for ListLocalNetworkGateways Api
 
1152
// service call
 
1153
type LocalNetworkGatewayListResult struct {
 
1154
        autorest.Response `json:"-"`
 
1155
        Value             *[]LocalNetworkGateway `json:"value,omitempty"`
 
1156
        NextLink          *string                `json:"nextLink,omitempty"`
 
1157
}
 
1158
 
 
1159
// LocalNetworkGatewayListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1160
// nil if no more results exist.
 
1161
func (client LocalNetworkGatewayListResult) LocalNetworkGatewayListResultPreparer() (*http.Request, error) {
 
1162
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1163
                return nil, nil
 
1164
        }
 
1165
        return autorest.Prepare(&http.Request{},
 
1166
                autorest.AsJSON(),
 
1167
                autorest.AsGet(),
 
1168
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1169
}
 
1170
 
 
1171
// LocalNetworkGatewayPropertiesFormat is localNetworkGateway properties
 
1172
type LocalNetworkGatewayPropertiesFormat struct {
 
1173
        LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"`
 
1174
        GatewayIPAddress         *string       `json:"gatewayIpAddress,omitempty"`
 
1175
        ResourceGUID             *string       `json:"resourceGuid,omitempty"`
 
1176
        ProvisioningState        *string       `json:"provisioningState,omitempty"`
 
1177
}
 
1178
 
 
1179
// OutboundNatRule is outbound NAT pool of the loadbalancer
 
1180
type OutboundNatRule struct {
 
1181
        ID         *string                          `json:"id,omitempty"`
 
1182
        Properties *OutboundNatRulePropertiesFormat `json:"properties,omitempty"`
 
1183
        Name       *string                          `json:"name,omitempty"`
 
1184
        Etag       *string                          `json:"etag,omitempty"`
 
1185
}
 
1186
 
 
1187
// OutboundNatRulePropertiesFormat is outbound NAT pool of the loadbalancer
 
1188
type OutboundNatRulePropertiesFormat struct {
 
1189
        AllocatedOutboundPorts   *int           `json:"allocatedOutboundPorts,omitempty"`
 
1190
        FrontendIPConfigurations *[]SubResource `json:"frontendIPConfigurations,omitempty"`
 
1191
        BackendAddressPool       *SubResource   `json:"backendAddressPool,omitempty"`
 
1192
        ProvisioningState        *string        `json:"provisioningState,omitempty"`
 
1193
}
 
1194
 
 
1195
// Probe is load balancer Probe
 
1196
type Probe struct {
 
1197
        ID         *string                `json:"id,omitempty"`
 
1198
        Properties *ProbePropertiesFormat `json:"properties,omitempty"`
 
1199
        Name       *string                `json:"name,omitempty"`
 
1200
        Etag       *string                `json:"etag,omitempty"`
 
1201
}
 
1202
 
 
1203
// ProbePropertiesFormat is
 
1204
type ProbePropertiesFormat struct {
 
1205
        LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"`
 
1206
        Protocol           ProbeProtocol  `json:"protocol,omitempty"`
 
1207
        Port               *int           `json:"port,omitempty"`
 
1208
        IntervalInSeconds  *int           `json:"intervalInSeconds,omitempty"`
 
1209
        NumberOfProbes     *int           `json:"numberOfProbes,omitempty"`
 
1210
        RequestPath        *string        `json:"requestPath,omitempty"`
 
1211
        ProvisioningState  *string        `json:"provisioningState,omitempty"`
 
1212
}
 
1213
 
 
1214
// PublicIPAddress is publicIPAddress resource
 
1215
type PublicIPAddress struct {
 
1216
        autorest.Response `json:"-"`
 
1217
        ID                *string                          `json:"id,omitempty"`
 
1218
        Name              *string                          `json:"name,omitempty"`
 
1219
        Type              *string                          `json:"type,omitempty"`
 
1220
        Location          *string                          `json:"location,omitempty"`
 
1221
        Tags              *map[string]*string              `json:"tags,omitempty"`
 
1222
        Properties        *PublicIPAddressPropertiesFormat `json:"properties,omitempty"`
 
1223
        Etag              *string                          `json:"etag,omitempty"`
 
1224
}
 
1225
 
 
1226
// PublicIPAddressDNSSettings is contains FQDN of the DNS record associated
 
1227
// with the public IP address
 
1228
type PublicIPAddressDNSSettings struct {
 
1229
        DomainNameLabel *string `json:"domainNameLabel,omitempty"`
 
1230
        Fqdn            *string `json:"fqdn,omitempty"`
 
1231
        ReverseFqdn     *string `json:"reverseFqdn,omitempty"`
 
1232
}
 
1233
 
 
1234
// PublicIPAddressListResult is response for ListPublicIpAddresses Api service
 
1235
// call
 
1236
type PublicIPAddressListResult struct {
 
1237
        autorest.Response `json:"-"`
 
1238
        Value             *[]PublicIPAddress `json:"value,omitempty"`
 
1239
        NextLink          *string            `json:"nextLink,omitempty"`
 
1240
}
 
1241
 
 
1242
// PublicIPAddressListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1243
// nil if no more results exist.
 
1244
func (client PublicIPAddressListResult) PublicIPAddressListResultPreparer() (*http.Request, error) {
 
1245
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1246
                return nil, nil
 
1247
        }
 
1248
        return autorest.Prepare(&http.Request{},
 
1249
                autorest.AsJSON(),
 
1250
                autorest.AsGet(),
 
1251
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1252
}
 
1253
 
 
1254
// PublicIPAddressPropertiesFormat is publicIpAddress properties
 
1255
type PublicIPAddressPropertiesFormat struct {
 
1256
        PublicIPAllocationMethod IPAllocationMethod          `json:"publicIPAllocationMethod,omitempty"`
 
1257
        IPConfiguration          *SubResource                `json:"ipConfiguration,omitempty"`
 
1258
        DNSSettings              *PublicIPAddressDNSSettings `json:"dnsSettings,omitempty"`
 
1259
        IPAddress                *string                     `json:"ipAddress,omitempty"`
 
1260
        IdleTimeoutInMinutes     *int                        `json:"idleTimeoutInMinutes,omitempty"`
 
1261
        ResourceGUID             *string                     `json:"resourceGuid,omitempty"`
 
1262
        ProvisioningState        *string                     `json:"provisioningState,omitempty"`
 
1263
}
 
1264
 
 
1265
// Resource is
 
1266
type Resource struct {
 
1267
        ID       *string             `json:"id,omitempty"`
 
1268
        Name     *string             `json:"name,omitempty"`
 
1269
        Type     *string             `json:"type,omitempty"`
 
1270
        Location *string             `json:"location,omitempty"`
 
1271
        Tags     *map[string]*string `json:"tags,omitempty"`
 
1272
}
 
1273
 
 
1274
// Route is route resource
 
1275
type Route struct {
 
1276
        autorest.Response `json:"-"`
 
1277
        ID                *string                `json:"id,omitempty"`
 
1278
        Properties        *RoutePropertiesFormat `json:"properties,omitempty"`
 
1279
        Name              *string                `json:"name,omitempty"`
 
1280
        Etag              *string                `json:"etag,omitempty"`
 
1281
}
 
1282
 
 
1283
// RouteListResult is response for ListRoute Api servive call
 
1284
type RouteListResult struct {
 
1285
        autorest.Response `json:"-"`
 
1286
        Value             *[]Route `json:"value,omitempty"`
 
1287
        NextLink          *string  `json:"nextLink,omitempty"`
 
1288
}
 
1289
 
 
1290
// RouteListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1291
// nil if no more results exist.
 
1292
func (client RouteListResult) RouteListResultPreparer() (*http.Request, error) {
 
1293
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1294
                return nil, nil
 
1295
        }
 
1296
        return autorest.Prepare(&http.Request{},
 
1297
                autorest.AsJSON(),
 
1298
                autorest.AsGet(),
 
1299
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1300
}
 
1301
 
 
1302
// RoutePropertiesFormat is route resource
 
1303
type RoutePropertiesFormat struct {
 
1304
        AddressPrefix     *string          `json:"addressPrefix,omitempty"`
 
1305
        NextHopType       RouteNextHopType `json:"nextHopType,omitempty"`
 
1306
        NextHopIPAddress  *string          `json:"nextHopIpAddress,omitempty"`
 
1307
        ProvisioningState *string          `json:"provisioningState,omitempty"`
 
1308
}
 
1309
 
 
1310
// RouteTable is routeTable resource
 
1311
type RouteTable struct {
 
1312
        autorest.Response `json:"-"`
 
1313
        ID                *string                     `json:"id,omitempty"`
 
1314
        Name              *string                     `json:"name,omitempty"`
 
1315
        Type              *string                     `json:"type,omitempty"`
 
1316
        Location          *string                     `json:"location,omitempty"`
 
1317
        Tags              *map[string]*string         `json:"tags,omitempty"`
 
1318
        Properties        *RouteTablePropertiesFormat `json:"properties,omitempty"`
 
1319
        Etag              *string                     `json:"etag,omitempty"`
 
1320
}
 
1321
 
 
1322
// RouteTableListResult is response for ListRouteTable Api servive call
 
1323
type RouteTableListResult struct {
 
1324
        autorest.Response `json:"-"`
 
1325
        Value             *[]RouteTable `json:"value,omitempty"`
 
1326
        NextLink          *string       `json:"nextLink,omitempty"`
 
1327
}
 
1328
 
 
1329
// RouteTableListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1330
// nil if no more results exist.
 
1331
func (client RouteTableListResult) RouteTableListResultPreparer() (*http.Request, error) {
 
1332
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1333
                return nil, nil
 
1334
        }
 
1335
        return autorest.Prepare(&http.Request{},
 
1336
                autorest.AsJSON(),
 
1337
                autorest.AsGet(),
 
1338
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1339
}
 
1340
 
 
1341
// RouteTablePropertiesFormat is route Table resource
 
1342
type RouteTablePropertiesFormat struct {
 
1343
        Routes            *[]Route       `json:"routes,omitempty"`
 
1344
        Subnets           *[]SubResource `json:"subnets,omitempty"`
 
1345
        ProvisioningState *string        `json:"provisioningState,omitempty"`
 
1346
}
 
1347
 
 
1348
// SecurityGroup is networkSecurityGroup resource
 
1349
type SecurityGroup struct {
 
1350
        autorest.Response `json:"-"`
 
1351
        ID                *string                        `json:"id,omitempty"`
 
1352
        Name              *string                        `json:"name,omitempty"`
 
1353
        Type              *string                        `json:"type,omitempty"`
 
1354
        Location          *string                        `json:"location,omitempty"`
 
1355
        Tags              *map[string]*string            `json:"tags,omitempty"`
 
1356
        Properties        *SecurityGroupPropertiesFormat `json:"properties,omitempty"`
 
1357
        Etag              *string                        `json:"etag,omitempty"`
 
1358
}
 
1359
 
 
1360
// SecurityGroupListResult is response for ListNetworkSecurityGroups Api
 
1361
// servive call
 
1362
type SecurityGroupListResult struct {
 
1363
        autorest.Response `json:"-"`
 
1364
        Value             *[]SecurityGroup `json:"value,omitempty"`
 
1365
        NextLink          *string          `json:"nextLink,omitempty"`
 
1366
}
 
1367
 
 
1368
// SecurityGroupListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1369
// nil if no more results exist.
 
1370
func (client SecurityGroupListResult) SecurityGroupListResultPreparer() (*http.Request, error) {
 
1371
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1372
                return nil, nil
 
1373
        }
 
1374
        return autorest.Prepare(&http.Request{},
 
1375
                autorest.AsJSON(),
 
1376
                autorest.AsGet(),
 
1377
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1378
}
 
1379
 
 
1380
// SecurityGroupPropertiesFormat is network Security Group resource
 
1381
type SecurityGroupPropertiesFormat struct {
 
1382
        SecurityRules        *[]SecurityRule `json:"securityRules,omitempty"`
 
1383
        DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"`
 
1384
        NetworkInterfaces    *[]SubResource  `json:"networkInterfaces,omitempty"`
 
1385
        Subnets              *[]SubResource  `json:"subnets,omitempty"`
 
1386
        ResourceGUID         *string         `json:"resourceGuid,omitempty"`
 
1387
        ProvisioningState    *string         `json:"provisioningState,omitempty"`
 
1388
}
 
1389
 
 
1390
// SecurityRule is network security rule
 
1391
type SecurityRule struct {
 
1392
        autorest.Response `json:"-"`
 
1393
        ID                *string                       `json:"id,omitempty"`
 
1394
        Properties        *SecurityRulePropertiesFormat `json:"properties,omitempty"`
 
1395
        Name              *string                       `json:"name,omitempty"`
 
1396
        Etag              *string                       `json:"etag,omitempty"`
 
1397
}
 
1398
 
 
1399
// SecurityRuleListResult is response for ListSecurityRule Api service
 
1400
// callRetrieves all security rules that belongs to a network security group
 
1401
type SecurityRuleListResult struct {
 
1402
        autorest.Response `json:"-"`
 
1403
        Value             *[]SecurityRule `json:"value,omitempty"`
 
1404
        NextLink          *string         `json:"nextLink,omitempty"`
 
1405
}
 
1406
 
 
1407
// SecurityRuleListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1408
// nil if no more results exist.
 
1409
func (client SecurityRuleListResult) SecurityRuleListResultPreparer() (*http.Request, error) {
 
1410
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1411
                return nil, nil
 
1412
        }
 
1413
        return autorest.Prepare(&http.Request{},
 
1414
                autorest.AsJSON(),
 
1415
                autorest.AsGet(),
 
1416
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1417
}
 
1418
 
 
1419
// SecurityRulePropertiesFormat is
 
1420
type SecurityRulePropertiesFormat struct {
 
1421
        Description              *string               `json:"description,omitempty"`
 
1422
        Protocol                 SecurityRuleProtocol  `json:"protocol,omitempty"`
 
1423
        SourcePortRange          *string               `json:"sourcePortRange,omitempty"`
 
1424
        DestinationPortRange     *string               `json:"destinationPortRange,omitempty"`
 
1425
        SourceAddressPrefix      *string               `json:"sourceAddressPrefix,omitempty"`
 
1426
        DestinationAddressPrefix *string               `json:"destinationAddressPrefix,omitempty"`
 
1427
        Access                   SecurityRuleAccess    `json:"access,omitempty"`
 
1428
        Priority                 *int                  `json:"priority,omitempty"`
 
1429
        Direction                SecurityRuleDirection `json:"direction,omitempty"`
 
1430
        ProvisioningState        *string               `json:"provisioningState,omitempty"`
 
1431
}
 
1432
 
 
1433
// Subnet is subnet in a VirtualNework resource
 
1434
type Subnet struct {
 
1435
        autorest.Response `json:"-"`
 
1436
        ID                *string                 `json:"id,omitempty"`
 
1437
        Properties        *SubnetPropertiesFormat `json:"properties,omitempty"`
 
1438
        Name              *string                 `json:"name,omitempty"`
 
1439
        Etag              *string                 `json:"etag,omitempty"`
 
1440
}
 
1441
 
 
1442
// SubnetListResult is response for ListSubnets Api service callRetrieves all
 
1443
// subnet that belongs to a virtual network
 
1444
type SubnetListResult struct {
 
1445
        autorest.Response `json:"-"`
 
1446
        Value             *[]Subnet `json:"value,omitempty"`
 
1447
        NextLink          *string   `json:"nextLink,omitempty"`
 
1448
}
 
1449
 
 
1450
// SubnetListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1451
// nil if no more results exist.
 
1452
func (client SubnetListResult) SubnetListResultPreparer() (*http.Request, error) {
 
1453
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1454
                return nil, nil
 
1455
        }
 
1456
        return autorest.Prepare(&http.Request{},
 
1457
                autorest.AsJSON(),
 
1458
                autorest.AsGet(),
 
1459
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1460
}
 
1461
 
 
1462
// SubnetPropertiesFormat is
 
1463
type SubnetPropertiesFormat struct {
 
1464
        AddressPrefix        *string        `json:"addressPrefix,omitempty"`
 
1465
        NetworkSecurityGroup *SubResource   `json:"networkSecurityGroup,omitempty"`
 
1466
        RouteTable           *SubResource   `json:"routeTable,omitempty"`
 
1467
        IPConfigurations     *[]SubResource `json:"ipConfigurations,omitempty"`
 
1468
        ProvisioningState    *string        `json:"provisioningState,omitempty"`
 
1469
}
 
1470
 
 
1471
// SubResource is
 
1472
type SubResource struct {
 
1473
        ID *string `json:"id,omitempty"`
 
1474
}
 
1475
 
 
1476
// Usage is describes Network Resource Usage.
 
1477
type Usage struct {
 
1478
        Unit         UsageUnit  `json:"unit,omitempty"`
 
1479
        CurrentValue *int       `json:"currentValue,omitempty"`
 
1480
        Limit        *int32     `json:"limit,omitempty"`
 
1481
        Name         *UsageName `json:"name,omitempty"`
 
1482
}
 
1483
 
 
1484
// UsageName is the Usage Names.
 
1485
type UsageName struct {
 
1486
        Value          *string `json:"value,omitempty"`
 
1487
        LocalizedValue *string `json:"localizedValue,omitempty"`
 
1488
}
 
1489
 
 
1490
// UsagesListResult is the List Usages operation response.
 
1491
type UsagesListResult struct {
 
1492
        autorest.Response `json:"-"`
 
1493
        Value             *[]Usage `json:"value,omitempty"`
 
1494
}
 
1495
 
 
1496
// VirtualNetwork is virtual Network resource
 
1497
type VirtualNetwork struct {
 
1498
        autorest.Response `json:"-"`
 
1499
        ID                *string                         `json:"id,omitempty"`
 
1500
        Name              *string                         `json:"name,omitempty"`
 
1501
        Type              *string                         `json:"type,omitempty"`
 
1502
        Location          *string                         `json:"location,omitempty"`
 
1503
        Tags              *map[string]*string             `json:"tags,omitempty"`
 
1504
        Properties        *VirtualNetworkPropertiesFormat `json:"properties,omitempty"`
 
1505
        Etag              *string                         `json:"etag,omitempty"`
 
1506
}
 
1507
 
 
1508
// VirtualNetworkGateway is a common class for general resource information
 
1509
type VirtualNetworkGateway struct {
 
1510
        autorest.Response `json:"-"`
 
1511
        ID                *string                                `json:"id,omitempty"`
 
1512
        Name              *string                                `json:"name,omitempty"`
 
1513
        Type              *string                                `json:"type,omitempty"`
 
1514
        Location          *string                                `json:"location,omitempty"`
 
1515
        Tags              *map[string]*string                    `json:"tags,omitempty"`
 
1516
        Properties        *VirtualNetworkGatewayPropertiesFormat `json:"properties,omitempty"`
 
1517
        Etag              *string                                `json:"etag,omitempty"`
 
1518
}
 
1519
 
 
1520
// VirtualNetworkGatewayConnection is a common class for general resource
 
1521
// information
 
1522
type VirtualNetworkGatewayConnection struct {
 
1523
        autorest.Response `json:"-"`
 
1524
        ID                *string                                          `json:"id,omitempty"`
 
1525
        Name              *string                                          `json:"name,omitempty"`
 
1526
        Type              *string                                          `json:"type,omitempty"`
 
1527
        Location          *string                                          `json:"location,omitempty"`
 
1528
        Tags              *map[string]*string                              `json:"tags,omitempty"`
 
1529
        Properties        *VirtualNetworkGatewayConnectionPropertiesFormat `json:"properties,omitempty"`
 
1530
        Etag              *string                                          `json:"etag,omitempty"`
 
1531
}
 
1532
 
 
1533
// VirtualNetworkGatewayConnectionListResult is response for
 
1534
// ListVirtualNetworkGatewayConnections Api service call
 
1535
type VirtualNetworkGatewayConnectionListResult struct {
 
1536
        autorest.Response `json:"-"`
 
1537
        Value             *[]VirtualNetworkGatewayConnection `json:"value,omitempty"`
 
1538
        NextLink          *string                            `json:"nextLink,omitempty"`
 
1539
}
 
1540
 
 
1541
// VirtualNetworkGatewayConnectionListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1542
// nil if no more results exist.
 
1543
func (client VirtualNetworkGatewayConnectionListResult) VirtualNetworkGatewayConnectionListResultPreparer() (*http.Request, error) {
 
1544
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1545
                return nil, nil
 
1546
        }
 
1547
        return autorest.Prepare(&http.Request{},
 
1548
                autorest.AsJSON(),
 
1549
                autorest.AsGet(),
 
1550
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1551
}
 
1552
 
 
1553
// VirtualNetworkGatewayConnectionPropertiesFormat is
 
1554
// virtualNeworkGatewayConnection properties
 
1555
type VirtualNetworkGatewayConnectionPropertiesFormat struct {
 
1556
        VirtualNetworkGateway1  *VirtualNetworkGateway                `json:"virtualNetworkGateway1,omitempty"`
 
1557
        VirtualNetworkGateway2  *VirtualNetworkGateway                `json:"virtualNetworkGateway2,omitempty"`
 
1558
        LocalNetworkGateway2    *LocalNetworkGateway                  `json:"localNetworkGateway2,omitempty"`
 
1559
        ConnectionType          VirtualNetworkGatewayConnectionType   `json:"connectionType,omitempty"`
 
1560
        RoutingWeight           *int                                  `json:"routingWeight,omitempty"`
 
1561
        SharedKey               *string                               `json:"sharedKey,omitempty"`
 
1562
        ConnectionStatus        VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"`
 
1563
        EgressBytesTransferred  *int32                                `json:"egressBytesTransferred,omitempty"`
 
1564
        IngressBytesTransferred *int32                                `json:"ingressBytesTransferred,omitempty"`
 
1565
        Peer                    *SubResource                          `json:"peer,omitempty"`
 
1566
        ResourceGUID            *string                               `json:"resourceGuid,omitempty"`
 
1567
        ProvisioningState       *string                               `json:"provisioningState,omitempty"`
 
1568
}
 
1569
 
 
1570
// VirtualNetworkGatewayIPConfiguration is ipConfiguration for Virtual network
 
1571
// gateway
 
1572
type VirtualNetworkGatewayIPConfiguration struct {
 
1573
        ID         *string                                               `json:"id,omitempty"`
 
1574
        Properties *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"`
 
1575
        Name       *string                                               `json:"name,omitempty"`
 
1576
        Etag       *string                                               `json:"etag,omitempty"`
 
1577
}
 
1578
 
 
1579
// VirtualNetworkGatewayIPConfigurationPropertiesFormat is properties of
 
1580
// VirtualNetworkGatewayIPConfiguration
 
1581
type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct {
 
1582
        PrivateIPAddress          *string            `json:"privateIPAddress,omitempty"`
 
1583
        PrivateIPAllocationMethod IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"`
 
1584
        Subnet                    *SubResource       `json:"subnet,omitempty"`
 
1585
        PublicIPAddress           *SubResource       `json:"publicIPAddress,omitempty"`
 
1586
        ProvisioningState         *string            `json:"provisioningState,omitempty"`
 
1587
}
 
1588
 
 
1589
// VirtualNetworkGatewayListResult is response for ListVirtualNetworkGateways
 
1590
// Api service call
 
1591
type VirtualNetworkGatewayListResult struct {
 
1592
        autorest.Response `json:"-"`
 
1593
        Value             *[]VirtualNetworkGateway `json:"value,omitempty"`
 
1594
        NextLink          *string                  `json:"nextLink,omitempty"`
 
1595
}
 
1596
 
 
1597
// VirtualNetworkGatewayListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1598
// nil if no more results exist.
 
1599
func (client VirtualNetworkGatewayListResult) VirtualNetworkGatewayListResultPreparer() (*http.Request, error) {
 
1600
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1601
                return nil, nil
 
1602
        }
 
1603
        return autorest.Prepare(&http.Request{},
 
1604
                autorest.AsJSON(),
 
1605
                autorest.AsGet(),
 
1606
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1607
}
 
1608
 
 
1609
// VirtualNetworkGatewayPropertiesFormat is virtualNeworkGateay properties
 
1610
type VirtualNetworkGatewayPropertiesFormat struct {
 
1611
        IPConfigurations   *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"`
 
1612
        GatewayType        VirtualNetworkGatewayType               `json:"gatewayType,omitempty"`
 
1613
        VpnType            VpnType                                 `json:"vpnType,omitempty"`
 
1614
        EnableBgp          *bool                                   `json:"enableBgp,omitempty"`
 
1615
        GatewayDefaultSite *SubResource                            `json:"gatewayDefaultSite,omitempty"`
 
1616
        ResourceGUID       *string                                 `json:"resourceGuid,omitempty"`
 
1617
        ProvisioningState  *string                                 `json:"provisioningState,omitempty"`
 
1618
}
 
1619
 
 
1620
// VirtualNetworkListResult is response for ListVirtualNetworks Api servive
 
1621
// call
 
1622
type VirtualNetworkListResult struct {
 
1623
        autorest.Response `json:"-"`
 
1624
        Value             *[]VirtualNetwork `json:"value,omitempty"`
 
1625
        NextLink          *string           `json:"nextLink,omitempty"`
 
1626
}
 
1627
 
 
1628
// VirtualNetworkListResultPreparer prepares a request to retrieve the next set of results. It returns
 
1629
// nil if no more results exist.
 
1630
func (client VirtualNetworkListResult) VirtualNetworkListResultPreparer() (*http.Request, error) {
 
1631
        if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
 
1632
                return nil, nil
 
1633
        }
 
1634
        return autorest.Prepare(&http.Request{},
 
1635
                autorest.AsJSON(),
 
1636
                autorest.AsGet(),
 
1637
                autorest.WithBaseURL(to.String(client.NextLink)))
 
1638
}
 
1639
 
 
1640
// VirtualNetworkPropertiesFormat is
 
1641
type VirtualNetworkPropertiesFormat struct {
 
1642
        AddressSpace      *AddressSpace `json:"addressSpace,omitempty"`
 
1643
        DhcpOptions       *DhcpOptions  `json:"dhcpOptions,omitempty"`
 
1644
        Subnets           *[]Subnet     `json:"subnets,omitempty"`
 
1645
        ResourceGUID      *string       `json:"resourceGuid,omitempty"`
 
1646
        ProvisioningState *string       `json:"provisioningState,omitempty"`
 
1647
}