/// <summary>
 /// Initializes a new instance of the LocalNetworkGateway class.
 /// </summary>
 public LocalNetworkGateway(string etag = default(string), AddressSpace localNetworkAddressSpace = default(AddressSpace), string gatewayIpAddress = default(string), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string))
 {
     Etag = etag;
     LocalNetworkAddressSpace = localNetworkAddressSpace;
     GatewayIpAddress         = gatewayIpAddress;
     BgpSettings       = bgpSettings;
     ResourceGuid      = resourceGuid;
     ProvisioningState = provisioningState;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the LocalNetworkGateway class.
 /// </summary>
 public LocalNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), AddressSpace localNetworkAddressSpace = default(AddressSpace), string gatewayIpAddress = default(string), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     LocalNetworkAddressSpace = localNetworkAddressSpace;
     GatewayIpAddress         = gatewayIpAddress;
     BgpSettings       = bgpSettings;
     ResourceGuid      = resourceGuid;
     ProvisioningState = provisioningState;
     Etag = etag;
 }
Esempio n. 3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (BgpSettings != null)
     {
         BgpSettings.Validate();
     }
     if (ExtendedLocation != null)
     {
         ExtendedLocation.Validate();
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the VpnGateway class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="virtualHub">The VirtualHub to which the gateway
 /// belongs.</param>
 /// <param name="connections">List of all vpn connections to the
 /// gateway.</param>
 /// <param name="bgpSettings">Local network gateway's BGP speaker
 /// settings.</param>
 /// <param name="provisioningState">The provisioning state of the VPN
 /// gateway resource. Possible values include: 'Succeeded', 'Updating',
 /// 'Deleting', 'Failed'</param>
 /// <param name="vpnGatewayScaleUnit">The scale unit for this vpn
 /// gateway.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VpnGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SubResource virtualHub = default(SubResource), IList <VpnConnection> connections = default(IList <VpnConnection>), BgpSettings bgpSettings = default(BgpSettings), string provisioningState = default(string), int?vpnGatewayScaleUnit = default(int?), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     VirtualHub          = virtualHub;
     Connections         = connections;
     BgpSettings         = bgpSettings;
     ProvisioningState   = provisioningState;
     VpnGatewayScaleUnit = vpnGatewayScaleUnit;
     Etag = etag;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the VpnGateway class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="virtualHub">The VirtualHub to which the gateway
 /// belongs.</param>
 /// <param name="connections">List of all vpn connections to the
 /// gateway.</param>
 /// <param name="bgpSettings">Local network gateway's BGP speaker
 /// settings.</param>
 /// <param name="provisioningState">The provisioning state of the VPN
 /// gateway resource. Possible values include: 'Succeeded', 'Updating',
 /// 'Deleting', 'Failed'</param>
 /// <param name="vpnGatewayScaleUnit">The scale unit for this vpn
 /// gateway.</param>
 /// <param name="ipConfigurations">List of all IPs configured on the
 /// gateway.</param>
 /// <param name="isRoutingPreferenceInternet">Enable Routing Preference
 /// property for the Public IP Interface of the VpnGateway.</param>
 /// <param name="natRules">List of all the nat Rules associated with
 /// the gateway.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VpnGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SubResource virtualHub = default(SubResource), IList <VpnConnection> connections = default(IList <VpnConnection>), BgpSettings bgpSettings = default(BgpSettings), string provisioningState = default(string), int?vpnGatewayScaleUnit = default(int?), IList <VpnGatewayIpConfiguration> ipConfigurations = default(IList <VpnGatewayIpConfiguration>), bool?isRoutingPreferenceInternet = default(bool?), IList <VpnGatewayNatRule> natRules = default(IList <VpnGatewayNatRule>), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     VirtualHub                  = virtualHub;
     Connections                 = connections;
     BgpSettings                 = bgpSettings;
     ProvisioningState           = provisioningState;
     VpnGatewayScaleUnit         = vpnGatewayScaleUnit;
     IpConfigurations            = ipConfigurations;
     IsRoutingPreferenceInternet = isRoutingPreferenceInternet;
     NatRules = natRules;
     Etag     = etag;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkGateway class.
 /// </summary>
 public VirtualNetworkGateway(string etag = default(string), IList <VirtualNetworkGatewayIPConfiguration> ipConfigurations = default(IList <VirtualNetworkGatewayIPConfiguration>), string gatewayType = default(string), string vpnType = default(string), bool?enableBgp = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string))
 {
     IpConfigurations   = ipConfigurations;
     GatewayType        = gatewayType;
     VpnType            = vpnType;
     EnableBgp          = enableBgp;
     GatewayDefaultSite = gatewayDefaultSite;
     Sku = sku;
     VpnClientConfiguration = vpnClientConfiguration;
     BgpSettings            = bgpSettings;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     Etag = etag;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the VpnSite class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="virtualWan">The VirtualWAN to which the vpnSite
 /// belongs</param>
 /// <param name="deviceProperties">The device properties</param>
 /// <param name="ipAddress">The ip-address for the vpn-site.</param>
 /// <param name="siteKey">The key for vpn-site that can be used for
 /// connections.</param>
 /// <param name="addressSpace">The AddressSpace that contains an array
 /// of IP address ranges.</param>
 /// <param name="bgpProperties">The set of bgp properties.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// resource. Possible values include: 'Succeeded', 'Updating',
 /// 'Deleting', 'Failed'</param>
 /// <param name="isSecuritySite">IsSecuritySite flag</param>
 /// <param name="etag">Gets a unique read-only string that changes
 /// whenever the resource is updated.</param>
 public VpnSite(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SubResource virtualWan = default(SubResource), DeviceProperties deviceProperties = default(DeviceProperties), string ipAddress = default(string), string siteKey = default(string), AddressSpace addressSpace = default(AddressSpace), BgpSettings bgpProperties = default(BgpSettings), string provisioningState = default(string), bool?isSecuritySite = default(bool?), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     VirtualWan        = virtualWan;
     DeviceProperties  = deviceProperties;
     IpAddress         = ipAddress;
     SiteKey           = siteKey;
     AddressSpace      = addressSpace;
     BgpProperties     = bgpProperties;
     ProvisioningState = provisioningState;
     IsSecuritySite    = isSecuritySite;
     Etag = etag;
     CustomInit();
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkGateway class.
 /// </summary>
 public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), IList <VirtualNetworkGatewayIPConfiguration> ipConfigurations = default(IList <VirtualNetworkGatewayIPConfiguration>), string gatewayType = default(string), string vpnType = default(string), bool?enableBgp = default(bool?), bool?activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     IpConfigurations   = ipConfigurations;
     GatewayType        = gatewayType;
     VpnType            = vpnType;
     EnableBgp          = enableBgp;
     ActiveActive       = activeActive;
     GatewayDefaultSite = gatewayDefaultSite;
     Sku = sku;
     VpnClientConfiguration = vpnClientConfiguration;
     BgpSettings            = bgpSettings;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     Etag = etag;
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkGateway class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="ipConfigurations">IP configurations for virtual
 /// network gateway.</param>
 /// <param name="gatewayType">The type of this virtual network gateway.
 /// Possible values include: 'Vpn', 'ExpressRoute'</param>
 /// <param name="vpnType">The type of this virtual network gateway.
 /// Possible values include: 'PolicyBased', 'RouteBased'</param>
 /// <param name="vpnGatewayGeneration">The generation for this
 /// VirtualNetworkGateway. Must be None if gatewayType is not VPN.
 /// Possible values include: 'None', 'Generation1',
 /// 'Generation2'</param>
 /// <param name="enableBgp">Whether BGP is enabled for this virtual
 /// network gateway or not.</param>
 /// <param name="activeActive">ActiveActive flag.</param>
 /// <param name="gatewayDefaultSite">The reference to the
 /// LocalNetworkGateway resource which represents local network site
 /// having default routes. Assign Null value in case of removing
 /// existing default site setting.</param>
 /// <param name="sku">The reference to the VirtualNetworkGatewaySku
 /// resource which represents the SKU selected for Virtual network
 /// gateway.</param>
 /// <param name="vpnClientConfiguration">The reference to the
 /// VpnClientConfiguration resource which represents the P2S VpnClient
 /// configurations.</param>
 /// <param name="bgpSettings">Virtual network gateway's BGP speaker
 /// settings.</param>
 /// <param name="customRoutes">The reference to the address space
 /// resource which represents the custom routes address space specified
 /// by the customer for virtual network gateway and VpnClient.</param>
 /// <param name="resourceGuid">The resource GUID property of the
 /// virtual network gateway resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// virtual network gateway resource. Possible values include:
 /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="enableDnsForwarding">Whether dns forwarding is enabled
 /// or not.</param>
 /// <param name="inboundDnsForwardingEndpoint">The IP address allocated
 /// by the gateway to which dns requests can be sent.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), IList <VirtualNetworkGatewayIPConfiguration> ipConfigurations = default(IList <VirtualNetworkGatewayIPConfiguration>), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool?enableBgp = default(bool?), bool?activeActive = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), bool?enableDnsForwarding = default(bool?), string inboundDnsForwardingEndpoint = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     IpConfigurations     = ipConfigurations;
     GatewayType          = gatewayType;
     VpnType              = vpnType;
     VpnGatewayGeneration = vpnGatewayGeneration;
     EnableBgp            = enableBgp;
     ActiveActive         = activeActive;
     GatewayDefaultSite   = gatewayDefaultSite;
     Sku = sku;
     VpnClientConfiguration       = vpnClientConfiguration;
     BgpSettings                  = bgpSettings;
     CustomRoutes                 = customRoutes;
     ResourceGuid                 = resourceGuid;
     ProvisioningState            = provisioningState;
     EnableDnsForwarding          = enableDnsForwarding;
     InboundDnsForwardingEndpoint = inboundDnsForwardingEndpoint;
     Etag = etag;
     CustomInit();
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkGateway class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="ipConfigurations">IP configurations for virtual
 /// network gateway.</param>
 /// <param name="gatewayType">The type of this virtual network gateway.
 /// Possible values include: 'Vpn', 'ExpressRoute',
 /// 'LocalGateway'</param>
 /// <param name="vpnType">The type of this virtual network gateway.
 /// Possible values include: 'PolicyBased', 'RouteBased'</param>
 /// <param name="vpnGatewayGeneration">The generation for this
 /// VirtualNetworkGateway. Must be None if gatewayType is not VPN.
 /// Possible values include: 'None', 'Generation1',
 /// 'Generation2'</param>
 /// <param name="enableBgp">Whether BGP is enabled for this virtual
 /// network gateway or not.</param>
 /// <param name="enablePrivateIpAddress">Whether private IP needs to be
 /// enabled on this gateway for connections or not.</param>
 /// <param name="activeActive">ActiveActive flag.</param>
 /// <param
 /// name="disableIPSecReplayProtection">disableIPSecReplayProtection
 /// flag.</param>
 /// <param name="gatewayDefaultSite">The reference to the
 /// LocalNetworkGateway resource which represents local network site
 /// having default routes. Assign Null value in case of removing
 /// existing default site setting.</param>
 /// <param name="sku">The reference to the VirtualNetworkGatewaySku
 /// resource which represents the SKU selected for Virtual network
 /// gateway.</param>
 /// <param name="vpnClientConfiguration">The reference to the
 /// VpnClientConfiguration resource which represents the P2S VpnClient
 /// configurations.</param>
 /// <param name="bgpSettings">Virtual network gateway's BGP speaker
 /// settings.</param>
 /// <param name="customRoutes">The reference to the address space
 /// resource which represents the custom routes address space specified
 /// by the customer for virtual network gateway and VpnClient.</param>
 /// <param name="resourceGuid">The resource GUID property of the
 /// virtual network gateway resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// virtual network gateway resource. Possible values include:
 /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="enableDnsForwarding">Whether dns forwarding is enabled
 /// or not.</param>
 /// <param name="inboundDnsForwardingEndpoint">The IP address allocated
 /// by the gateway to which dns requests can be sent.</param>
 /// <param name="vNetExtendedLocationResourceId">Customer vnet resource
 /// id. VirtualNetworkGateway of type local gateway is associated with
 /// the customer vnet.</param>
 /// <param name="natRules">NatRules for virtual network
 /// gateway.</param>
 /// <param
 /// name="enableBgpRouteTranslationForNat">EnableBgpRouteTranslationForNat
 /// flag.</param>
 /// <param name="extendedLocation">The extended location of type local
 /// virtual network gateway.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VirtualNetworkGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), IList <VirtualNetworkGatewayIPConfiguration> ipConfigurations = default(IList <VirtualNetworkGatewayIPConfiguration>), string gatewayType = default(string), string vpnType = default(string), string vpnGatewayGeneration = default(string), bool?enableBgp = default(bool?), bool?enablePrivateIpAddress = default(bool?), bool?activeActive = default(bool?), bool?disableIPSecReplayProtection = default(bool?), SubResource gatewayDefaultSite = default(SubResource), VirtualNetworkGatewaySku sku = default(VirtualNetworkGatewaySku), VpnClientConfiguration vpnClientConfiguration = default(VpnClientConfiguration), BgpSettings bgpSettings = default(BgpSettings), AddressSpace customRoutes = default(AddressSpace), string resourceGuid = default(string), string provisioningState = default(string), bool?enableDnsForwarding = default(bool?), string inboundDnsForwardingEndpoint = default(string), string vNetExtendedLocationResourceId = default(string), IList <VirtualNetworkGatewayNatRule> natRules = default(IList <VirtualNetworkGatewayNatRule>), bool?enableBgpRouteTranslationForNat = default(bool?), ExtendedLocation extendedLocation = default(ExtendedLocation), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     IpConfigurations             = ipConfigurations;
     GatewayType                  = gatewayType;
     VpnType                      = vpnType;
     VpnGatewayGeneration         = vpnGatewayGeneration;
     EnableBgp                    = enableBgp;
     EnablePrivateIpAddress       = enablePrivateIpAddress;
     ActiveActive                 = activeActive;
     DisableIPSecReplayProtection = disableIPSecReplayProtection;
     GatewayDefaultSite           = gatewayDefaultSite;
     Sku = sku;
     VpnClientConfiguration         = vpnClientConfiguration;
     BgpSettings                    = bgpSettings;
     CustomRoutes                   = customRoutes;
     ResourceGuid                   = resourceGuid;
     ProvisioningState              = provisioningState;
     EnableDnsForwarding            = enableDnsForwarding;
     InboundDnsForwardingEndpoint   = inboundDnsForwardingEndpoint;
     VNetExtendedLocationResourceId = vNetExtendedLocationResourceId;
     NatRules = natRules;
     EnableBgpRouteTranslationForNat = enableBgpRouteTranslationForNat;
     ExtendedLocation = extendedLocation;
     Etag             = etag;
     CustomInit();
 }