コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the LocalNetworkGateway 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="localNetworkAddressSpace">Local network site address
 /// space.</param>
 /// <param name="gatewayIpAddress">IP address of local network
 /// gateway.</param>
 /// <param name="bgpSettings">Local network gateway's BGP speaker
 /// settings.</param>
 /// <param name="resourceGuid">The resource GUID property of the local
 /// network gateway resource.</param>
 /// <param name="provisioningState">The provisioning state of the local
 /// network gateway resource. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 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;
     CustomInit();
 }
コード例 #2
0
ファイル: VirtualNetwork.cs プロジェクト: QITIE/ADLSTool
 /// <summary>
 /// Initializes a new instance of the VirtualNetwork class.
 /// </summary>
 public VirtualNetwork(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 addressSpace = default(AddressSpace), DhcpOptions dhcpOptions = default(DhcpOptions), IList <Subnet> subnets = default(IList <Subnet>), IList <VirtualNetworkPeering> virtualNetworkPeerings = default(IList <VirtualNetworkPeering>), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     AddressSpace           = addressSpace;
     DhcpOptions            = dhcpOptions;
     Subnets                = subnets;
     VirtualNetworkPeerings = virtualNetworkPeerings;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     Etag = etag;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the P2SVpnGateway 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="provisioningState">The provisioning state of the
 /// resource. Possible values include: 'Succeeded', 'Updating',
 /// 'Deleting', 'Failed'</param>
 /// <param name="vpnGatewayScaleUnit">The scale unit for this p2s vpn
 /// gateway.</param>
 /// <param name="p2SVpnServerConfiguration">The
 /// P2SVpnServerConfiguration to which the p2sVpnGateway is attached
 /// to.</param>
 /// <param name="vpnClientAddressPool">The reference of the address
 /// space resource which represents Address space for P2S
 /// VpnClient.</param>
 /// <param name="vpnClientConnectionHealth">All P2S VPN clients'
 /// connection health status.</param>
 /// <param name="etag">Gets a unique read-only string that changes
 /// whenever the resource is updated.</param>
 public P2SVpnGateway(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), string provisioningState = default(string), int?vpnGatewayScaleUnit = default(int?), SubResource p2SVpnServerConfiguration = default(SubResource), AddressSpace vpnClientAddressPool = default(AddressSpace), VpnClientConnectionHealth vpnClientConnectionHealth = default(VpnClientConnectionHealth), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     VirtualHub                = virtualHub;
     ProvisioningState         = provisioningState;
     VpnGatewayScaleUnit       = vpnGatewayScaleUnit;
     P2SVpnServerConfiguration = p2SVpnServerConfiguration;
     VpnClientAddressPool      = vpnClientAddressPool;
     VpnClientConnectionHealth = vpnClientConnectionHealth;
     Etag = etag;
     CustomInit();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the P2SConnectionConfiguration class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="vpnClientAddressPool">The reference to the address
 /// space resource which represents Address space for P2S
 /// VpnClient.</param>
 /// <param name="routingConfiguration">The Routing Configuration
 /// indicating the associated and propagated route tables on this
 /// connection.</param>
 /// <param name="enableInternetSecurity">Flag indicating whether the
 /// enable internet security flag is turned on for the P2S Connections
 /// or not.</param>
 /// <param name="configurationPolicyGroupAssociations">List of
 /// Configuration Policy Groups that this P2SConnectionConfiguration is
 /// attached to.</param>
 /// <param name="previousConfigurationPolicyGroupAssociations">List of
 /// previous Configuration Policy Groups that this
 /// P2SConnectionConfiguration was attached to.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// P2SConnectionConfiguration resource. Possible values include:
 /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="name">The name of the resource that is unique within a
 /// resource group. This name can be used to access the
 /// resource.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public P2SConnectionConfiguration(string id = default(string), AddressSpace vpnClientAddressPool = default(AddressSpace), RoutingConfiguration routingConfiguration = default(RoutingConfiguration), bool?enableInternetSecurity = default(bool?), IList <SubResource> configurationPolicyGroupAssociations = default(IList <SubResource>), IList <VpnServerConfigurationPolicyGroup> previousConfigurationPolicyGroupAssociations = default(IList <VpnServerConfigurationPolicyGroup>), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     VpnClientAddressPool   = vpnClientAddressPool;
     RoutingConfiguration   = routingConfiguration;
     EnableInternetSecurity = enableInternetSecurity;
     ConfigurationPolicyGroupAssociations         = configurationPolicyGroupAssociations;
     PreviousConfigurationPolicyGroupAssociations = previousConfigurationPolicyGroupAssociations;
     ProvisioningState = provisioningState;
     Name = name;
     Etag = etag;
     CustomInit();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the VpnClientConfiguration class.
 /// </summary>
 /// <param name="vpnClientAddressPool">The reference to the address
 /// space resource which represents Address space for P2S
 /// VpnClient.</param>
 /// <param name="vpnClientRootCertificates">VpnClientRootCertificate
 /// for virtual network gateway.</param>
 /// <param
 /// name="vpnClientRevokedCertificates">VpnClientRevokedCertificate for
 /// Virtual network gateway.</param>
 /// <param name="vpnClientProtocols">VpnClientProtocols for Virtual
 /// network gateway.</param>
 /// <param name="vpnClientIpsecPolicies">VpnClientIpsecPolicies for
 /// virtual network gateway P2S client.</param>
 /// <param name="radiusServerAddress">The radius server address
 /// property of the VirtualNetworkGateway resource for vpn client
 /// connection.</param>
 /// <param name="radiusServerSecret">The radius secret property of the
 /// VirtualNetworkGateway resource for vpn client connection.</param>
 /// <param name="aadTenant">The AADTenant property of the
 /// VirtualNetworkGateway resource for vpn client connection used for
 /// AAD authentication.</param>
 /// <param name="aadAudience">The AADAudience property of the
 /// VirtualNetworkGateway resource for vpn client connection used for
 /// AAD authentication.</param>
 /// <param name="aadIssuer">The AADIssuer property of the
 /// VirtualNetworkGateway resource for vpn client connection used for
 /// AAD authentication.</param>
 public VpnClientConfiguration(AddressSpace vpnClientAddressPool = default(AddressSpace), IList <VpnClientRootCertificate> vpnClientRootCertificates = default(IList <VpnClientRootCertificate>), IList <VpnClientRevokedCertificate> vpnClientRevokedCertificates = default(IList <VpnClientRevokedCertificate>), IList <string> vpnClientProtocols = default(IList <string>), IList <IpsecPolicy> vpnClientIpsecPolicies = default(IList <IpsecPolicy>), string radiusServerAddress = default(string), string radiusServerSecret = default(string), string aadTenant = default(string), string aadAudience = default(string), string aadIssuer = default(string))
 {
     VpnClientAddressPool         = vpnClientAddressPool;
     VpnClientRootCertificates    = vpnClientRootCertificates;
     VpnClientRevokedCertificates = vpnClientRevokedCertificates;
     VpnClientProtocols           = vpnClientProtocols;
     VpnClientIpsecPolicies       = vpnClientIpsecPolicies;
     RadiusServerAddress          = radiusServerAddress;
     RadiusServerSecret           = radiusServerSecret;
     AadTenant   = aadTenant;
     AadAudience = aadAudience;
     AadIssuer   = aadIssuer;
     CustomInit();
 }
コード例 #6
0
ファイル: VpnSite.cs プロジェクト: shahabhijeet/aznetsdk
 /// <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();
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkPeering class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="allowVirtualNetworkAccess">Whether the VMs in the
 /// local virtual network space would be able to access the VMs in
 /// remote virtual network space.</param>
 /// <param name="allowForwardedTraffic">Whether the forwarded traffic
 /// from the VMs in the local virtual network will be
 /// allowed/disallowed in remote virtual network.</param>
 /// <param name="allowGatewayTransit">If gateway links can be used in
 /// remote virtual networking to link to this virtual network.</param>
 /// <param name="useRemoteGateways">If remote gateways can be used on
 /// this virtual network. If the flag is set to true, and
 /// allowGatewayTransit on remote peering is also true, virtual network
 /// will use gateways of remote virtual network for transit. Only one
 /// peering can have this flag set to true. This flag cannot be set if
 /// virtual network already has a gateway.</param>
 /// <param name="remoteVirtualNetwork">The reference to the remote
 /// virtual network. The remote virtual network can be in the same or
 /// different region (preview). See here to register for the preview
 /// and learn more
 /// (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).</param>
 /// <param name="remoteAddressSpace">The reference to the remote
 /// virtual network address space.</param>
 /// <param name="peeringState">The status of the virtual network
 /// peering. Possible values include: 'Initiated', 'Connected',
 /// 'Disconnected'</param>
 /// <param name="provisioningState">The provisioning state of the
 /// virtual network peering resource. Possible values include:
 /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="name">The name of the resource that is unique within a
 /// resource group. This name can be used to access the
 /// resource.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VirtualNetworkPeering(string id = default(string), bool?allowVirtualNetworkAccess = default(bool?), bool?allowForwardedTraffic = default(bool?), bool?allowGatewayTransit = default(bool?), bool?useRemoteGateways = default(bool?), SubResource remoteVirtualNetwork = default(SubResource), AddressSpace remoteAddressSpace = default(AddressSpace), string peeringState = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     AllowVirtualNetworkAccess = allowVirtualNetworkAccess;
     AllowForwardedTraffic     = allowForwardedTraffic;
     AllowGatewayTransit       = allowGatewayTransit;
     UseRemoteGateways         = useRemoteGateways;
     RemoteVirtualNetwork      = remoteVirtualNetwork;
     RemoteAddressSpace        = remoteAddressSpace;
     PeeringState      = peeringState;
     ProvisioningState = provisioningState;
     Name = name;
     Etag = etag;
     CustomInit();
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetwork 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="addressSpace">The AddressSpace that contains an array
 /// of IP address ranges that can be used by subnets.</param>
 /// <param name="dhcpOptions">The dhcpOptions that contains an array of
 /// DNS servers available to VMs deployed in the virtual
 /// network.</param>
 /// <param name="subnets">A list of subnets in a Virtual
 /// Network.</param>
 /// <param name="virtualNetworkPeerings">A list of peerings in a
 /// Virtual Network.</param>
 /// <param name="resourceGuid">The resourceGuid property of the Virtual
 /// Network resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// virtual network resource. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="enableDdosProtection">Indicates if DDoS protection is
 /// enabled for all the protected resources in the virtual network. It
 /// requires a DDoS protection plan associated with the
 /// resource.</param>
 /// <param name="enableVmProtection">Indicates if VM protection is
 /// enabled for all the subnets in the virtual network.</param>
 /// <param name="ddosProtectionPlan">The DDoS protection plan
 /// associated with the virtual network.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VirtualNetwork(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 addressSpace = default(AddressSpace), DhcpOptions dhcpOptions = default(DhcpOptions), IList <Subnet> subnets = default(IList <Subnet>), IList <VirtualNetworkPeering> virtualNetworkPeerings = default(IList <VirtualNetworkPeering>), string resourceGuid = default(string), string provisioningState = default(string), bool?enableDdosProtection = default(bool?), bool?enableVmProtection = default(bool?), SubResource ddosProtectionPlan = default(SubResource), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     AddressSpace           = addressSpace;
     DhcpOptions            = dhcpOptions;
     Subnets                = subnets;
     VirtualNetworkPeerings = virtualNetworkPeerings;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     EnableDdosProtection   = enableDdosProtection;
     EnableVmProtection     = enableVmProtection;
     DdosProtectionPlan     = ddosProtectionPlan;
     Etag = etag;
     CustomInit();
 }
コード例 #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="enableBgp">Whether BGP is enabled for this virtual
 /// network gateway or not.</param>
 /// <param name="activeActive">ActiveActive flag.</param>
 /// <param name="gatewayDefaultSite">The reference of 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 of the VirtualNetworkGatewaySku
 /// resource which represents the SKU selected for Virtual network
 /// gateway.</param>
 /// <param name="vpnClientConfiguration">The reference of 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 of the address space
 /// resource which represents the custom routes address space specified
 /// by the the customer for virtual network gateway and
 /// VpnClient.</param>
 /// <param name="resourceGuid">The resource GUID property of the
 /// VirtualNetworkGateway resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// VirtualNetworkGateway resource. Possible values are: 'Updating',
 /// 'Deleting', and 'Failed'.</param>
 /// <param name="etag">Gets 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), 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), 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;
     CustomRoutes           = customRoutes;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     Etag = etag;
     CustomInit();
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetwork 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="extendedLocation">The extended location of the virtual
 /// network.</param>
 /// <param name="addressSpace">The AddressSpace that contains an array
 /// of IP address ranges that can be used by subnets.</param>
 /// <param name="dhcpOptions">The dhcpOptions that contains an array of
 /// DNS servers available to VMs deployed in the virtual
 /// network.</param>
 /// <param name="flowTimeoutInMinutes">The FlowTimeout value (in
 /// minutes) for the Virtual Network</param>
 /// <param name="subnets">A list of subnets in a Virtual
 /// Network.</param>
 /// <param name="virtualNetworkPeerings">A list of peerings in a
 /// Virtual Network.</param>
 /// <param name="resourceGuid">The resourceGuid property of the Virtual
 /// Network resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// virtual network resource. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="enableDdosProtection">Indicates if DDoS protection is
 /// enabled for all the protected resources in the virtual network. It
 /// requires a DDoS protection plan associated with the
 /// resource.</param>
 /// <param name="enableVmProtection">Indicates if VM protection is
 /// enabled for all the subnets in the virtual network.</param>
 /// <param name="ddosProtectionPlan">The DDoS protection plan
 /// associated with the virtual network.</param>
 /// <param name="bgpCommunities">Bgp Communities sent over ExpressRoute
 /// with each route corresponding to a prefix in this VNET.</param>
 /// <param name="ipAllocations">Array of IpAllocation which reference
 /// this VNET.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public VirtualNetwork(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ExtendedLocation extendedLocation = default(ExtendedLocation), AddressSpace addressSpace = default(AddressSpace), DhcpOptions dhcpOptions = default(DhcpOptions), int?flowTimeoutInMinutes = default(int?), IList <Subnet> subnets = default(IList <Subnet>), IList <VirtualNetworkPeering> virtualNetworkPeerings = default(IList <VirtualNetworkPeering>), string resourceGuid = default(string), string provisioningState = default(string), bool?enableDdosProtection = default(bool?), bool?enableVmProtection = default(bool?), SubResource ddosProtectionPlan = default(SubResource), VirtualNetworkBgpCommunities bgpCommunities = default(VirtualNetworkBgpCommunities), IList <SubResource> ipAllocations = default(IList <SubResource>), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     ExtendedLocation     = extendedLocation;
     AddressSpace         = addressSpace;
     DhcpOptions          = dhcpOptions;
     FlowTimeoutInMinutes = flowTimeoutInMinutes;
     Subnets = subnets;
     VirtualNetworkPeerings = virtualNetworkPeerings;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     EnableDdosProtection   = enableDdosProtection;
     EnableVmProtection     = enableVmProtection;
     DdosProtectionPlan     = ddosProtectionPlan;
     BgpCommunities         = bgpCommunities;
     IpAllocations          = ipAllocations;
     Etag = etag;
     CustomInit();
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkPeering class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="allowVirtualNetworkAccess">Whether the VMs in the
 /// local virtual network space would be able to access the VMs in
 /// remote virtual network space.</param>
 /// <param name="allowForwardedTraffic">Whether the forwarded traffic
 /// from the VMs in the local virtual network will be
 /// allowed/disallowed in remote virtual network.</param>
 /// <param name="allowGatewayTransit">If gateway links can be used in
 /// remote virtual networking to link to this virtual network.</param>
 /// <param name="useRemoteGateways">If remote gateways can be used on
 /// this virtual network. If the flag is set to true, and
 /// allowGatewayTransit on remote peering is also true, virtual network
 /// will use gateways of remote virtual network for transit. Only one
 /// peering can have this flag set to true. This flag cannot be set if
 /// virtual network already has a gateway.</param>
 /// <param name="remoteVirtualNetwork">The reference to the remote
 /// virtual network. The remote virtual network can be in the same or
 /// different region (preview). See here to register for the preview
 /// and learn more
 /// (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).</param>
 /// <param name="remoteAddressSpace">The reference to the address space
 /// peered with the remote virtual network.</param>
 /// <param name="remoteVirtualNetworkAddressSpace">The reference to the
 /// current address space of the remote virtual network.</param>
 /// <param name="remoteBgpCommunities">The reference to the remote
 /// virtual network's Bgp Communities.</param>
 /// <param name="peeringState">The status of the virtual network
 /// peering. Possible values include: 'Initiated', 'Connected',
 /// 'Disconnected'</param>
 /// <param name="peeringSyncLevel">The peering sync status of the
 /// virtual network peering. Possible values include: 'FullyInSync',
 /// 'RemoteNotInSync', 'LocalNotInSync',
 /// 'LocalAndRemoteNotInSync'</param>
 /// <param name="provisioningState">The provisioning state of the
 /// virtual network peering resource. Possible values include:
 /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="doNotVerifyRemoteGateways">If we need to verify the
 /// provisioning state of the remote gateway.</param>
 /// <param name="resourceGuid">The resourceGuid property of the Virtual
 /// Network peering resource.</param>
 /// <param name="name">The name of the resource that is unique within a
 /// resource group. This name can be used to access the
 /// resource.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 /// <param name="type">Resource type.</param>
 public VirtualNetworkPeering(string id = default(string), bool?allowVirtualNetworkAccess = default(bool?), bool?allowForwardedTraffic = default(bool?), bool?allowGatewayTransit = default(bool?), bool?useRemoteGateways = default(bool?), SubResource remoteVirtualNetwork = default(SubResource), AddressSpace remoteAddressSpace = default(AddressSpace), AddressSpace remoteVirtualNetworkAddressSpace = default(AddressSpace), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), string peeringState = default(string), string peeringSyncLevel = default(string), string provisioningState = default(string), bool?doNotVerifyRemoteGateways = default(bool?), string resourceGuid = default(string), string name = default(string), string etag = default(string), string type = default(string))
     : base(id)
 {
     AllowVirtualNetworkAccess        = allowVirtualNetworkAccess;
     AllowForwardedTraffic            = allowForwardedTraffic;
     AllowGatewayTransit              = allowGatewayTransit;
     UseRemoteGateways                = useRemoteGateways;
     RemoteVirtualNetwork             = remoteVirtualNetwork;
     RemoteAddressSpace               = remoteAddressSpace;
     RemoteVirtualNetworkAddressSpace = remoteVirtualNetworkAddressSpace;
     RemoteBgpCommunities             = remoteBgpCommunities;
     PeeringState              = peeringState;
     PeeringSyncLevel          = peeringSyncLevel;
     ProvisioningState         = provisioningState;
     DoNotVerifyRemoteGateways = doNotVerifyRemoteGateways;
     ResourceGuid              = resourceGuid;
     Name = name;
     Etag = etag;
     Type = type;
     CustomInit();
 }
コード例 #12
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="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="virtualNetworkExtendedLocationResourceId">MAS FIJI
 /// customer vnet resource id. VirtualNetworkGateway of type local
 /// gateway is associated with the customer vnet.</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?), 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 virtualNetworkExtendedLocationResourceId = default(string), 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;
     GatewayDefaultSite     = gatewayDefaultSite;
     Sku = sku;
     VpnClientConfiguration                   = vpnClientConfiguration;
     BgpSettings                              = bgpSettings;
     CustomRoutes                             = customRoutes;
     ResourceGuid                             = resourceGuid;
     ProvisioningState                        = provisioningState;
     EnableDnsForwarding                      = enableDnsForwarding;
     InboundDnsForwardingEndpoint             = inboundDnsForwardingEndpoint;
     VirtualNetworkExtendedLocationResourceId = virtualNetworkExtendedLocationResourceId;
     ExtendedLocation                         = extendedLocation;
     Etag = etag;
     CustomInit();
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of the VpnClientConfiguration class.
 /// </summary>
 public VpnClientConfiguration(AddressSpace vpnClientAddressPool = default(AddressSpace), IList <VpnClientRootCertificate> vpnClientRootCertificates = default(IList <VpnClientRootCertificate>), IList <VpnClientRevokedCertificate> vpnClientRevokedCertificates = default(IList <VpnClientRevokedCertificate>))
 {
     VpnClientAddressPool         = vpnClientAddressPool;
     VpnClientRootCertificates    = vpnClientRootCertificates;
     VpnClientRevokedCertificates = vpnClientRevokedCertificates;
 }