示例#1
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
 /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and
 /// 'Failed'.</param>
 /// <param name="enableDdosProtection">Indicates if DDoS protection is
 /// enabled for all the protected resources in a Virtual
 /// Network.</param>
 /// <param name="enableVmProtection">Indicates if Vm protection is
 /// enabled for all the subnets in a Virtual Network.</param>
 /// <param name="etag">Gets 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?), 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;
     Etag = etag;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the VirtualNetworkPeering class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="allowVirtualNetworkAccess">Whether the VMs in the
 /// linked virtual network space would be able to access all the VMs in
 /// local Virtual network space.</param>
 /// <param name="allowForwardedTraffic">Whether the forwarded traffic
 /// from the VMs in the remote virtual network will be
 /// allowed/disallowed.</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 of 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 of the remote
 /// virtual network address space.</param>
 /// <param name="peeringState">The status of the virtual network
 /// peering. Possible values are 'Initiated', 'Connected', and
 /// 'Disconnected'. Possible values include: 'Initiated', 'Connected',
 /// 'Disconnected'</param>
 /// <param name="provisioningState">The provisioning state of the
 /// 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>
 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();
 }
示例#3
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
 /// LocalNetworkGateway resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// LocalNetworkGateway resource. Possible values are: 'Updating',
 /// 'Deleting', and '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();
 }