private PSVirtualNetwork CreateVirtualNetwork() { var vnet = new PSVirtualNetwork { Name = Name, ResourceGroupName = ResourceGroupName, Location = Location, AddressSpace = new PSAddressSpace { AddressPrefixes = AddressPrefix?.ToList() } }; if (DnsServer != null) { vnet.DhcpOptions = new PSDhcpOptions { DnsServers = DnsServer?.ToList() }; } vnet.Subnets = this.Subnet?.ToList(); vnet.EnableDdosProtection = EnableDdosProtection; if (!string.IsNullOrEmpty(DdosProtectionPlanId)) { vnet.DdosProtectionPlan = new PSResourceId { Id = DdosProtectionPlanId }; } if (!string.IsNullOrWhiteSpace(BgpCommunity)) { vnet.BgpCommunities = new PSVirtualNetworkBgpCommunities { VirtualNetworkCommunity = this.BgpCommunity }; } // Map to the sdk object var vnetModel = NetworkResourceManagerProfile.Mapper.Map <MNM.VirtualNetwork>(vnet); vnetModel.Tags = TagsConversionHelper.CreateTagDictionary(Tag, validate: true); if (this.IpAllocation != null) { foreach (var ipAllocation in this.IpAllocation) { var ipAllocationReference = new MNM.SubResource(ipAllocation.Id); vnetModel.IpAllocations.Add(ipAllocationReference); } } // Execute the Create VirtualNetwork call VirtualNetworkClient.CreateOrUpdate(ResourceGroupName, Name, vnetModel); var getVirtualNetwork = GetVirtualNetwork(ResourceGroupName, Name); return(getVirtualNetwork); }
public override void Execute() { base.Execute(); if (ParameterSetName.Contains(CortexParameterSetNames.ByVirtualHubObject)) { this.ResourceGroupName = this.VirtualHub.ResourceGroupName; this.VirtualHubName = this.VirtualHub.Name; } else if (ParameterSetName.Contains(CortexParameterSetNames.ByVirtualHubResourceId)) { var parsedResourceId = new ResourceIdentifier(this.VirtualHubId); this.ResourceGroupName = parsedResourceId.ResourceGroupName; this.VirtualHubName = parsedResourceId.ResourceName; } if (this.IsVirtualHubBgpConnectionPresent(this.ResourceGroupName, this.VirtualHubName, this.Name)) { throw new PSArgumentException(string.Format(Properties.Resources.ChildResourceAlreadyPresentInResourceGroup, this.Name, this.ResourceGroupName, this.VirtualHubName)); } MNM.SubResource hubVnetConnection = null; if (ParameterSetName.Contains(CortexParameterSetNames.ByHubVirtualNetworkConnectionObject)) { hubVnetConnection = new MNM.SubResource(this.VirtualHubVnetConnection.Id); } else if (ParameterSetName.Contains(CortexParameterSetNames.ByHubVirtualNetworkConnectionResourceId)) { hubVnetConnection = new MNM.SubResource(this.VirtualHubVnetConnectionId); } var bgpConnectionToCreate = new MNM.BgpConnection { Name = this.Name, PeerAsn = this.PeerAsn, PeerIp = this.PeerIp, HubVirtualNetworkConnection = hubVnetConnection }; this.ConfirmAction( Properties.Resources.CreatingResourceMessage, this.Name, () => { WriteVerbose(string.Format(Properties.Resources.CreatingLongRunningOperationMessage, this.ResourceGroupName, this.Name)); WriteObject(this.CreateOrUpdateVirtualHubBgpConnection(this.ResourceGroupName, this.VirtualHubName, this.Name, bgpConnectionToCreate)); }); }
private MNM.SubResource GetHubVnetConnection() { MNM.SubResource hubVnetConnection = null; if (ParameterSetName.Contains(CortexParameterSetNames.ByHubVirtualNetworkConnectionObject)) { hubVnetConnection = new MNM.SubResource(this.VirtualHubVnetConnection.Id); } else if (ParameterSetName.Contains(CortexParameterSetNames.ByHubVirtualNetworkConnectionResourceId)) { hubVnetConnection = new MNM.SubResource(this.VirtualHubVnetConnectionId); } else if (ParameterSetName.Contains(CortexParameterSetNames.ByHubBgpConnectionObject)) { hubVnetConnection = new MNM.SubResource(this.InputObject.HubVirtualNetworkConnection.Id); } return(hubVnetConnection); }
/// <summary> /// Initializes a new instance of the NetworkInterface 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 network /// interface.</param> /// <param name="virtualMachine">The reference to a virtual /// machine.</param> /// <param name="networkSecurityGroup">The reference to the /// NetworkSecurityGroup resource.</param> /// <param name="privateEndpoint">A reference to the private endpoint /// to which the network interface is linked.</param> /// <param name="ipConfigurations">A list of IPConfigurations of the /// network interface.</param> /// <param name="tapConfigurations">A list of TapConfigurations of the /// network interface.</param> /// <param name="dnsSettings">The DNS settings in network /// interface.</param> /// <param name="macAddress">The MAC address of the network /// interface.</param> /// <param name="primary">Whether this is a primary network interface /// on a virtual machine.</param> /// <param name="vnetEncryptionSupported">Whether the virtual machine /// this nic is attached to supports encryption.</param> /// <param name="enableAcceleratedNetworking">If the network interface /// is accelerated networking enabled.</param> /// <param name="enableIPForwarding">Indicates whether IP forwarding is /// enabled on this network interface.</param> /// <param name="hostedWorkloads">A list of references to linked /// BareMetal resources.</param> /// <param name="dscpConfiguration">A reference to the dscp /// configuration to which the network interface is linked.</param> /// <param name="resourceGuid">The resource GUID property of the /// network interface resource.</param> /// <param name="provisioningState">The provisioning state of the /// network interface resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed'</param> /// <param name="workloadType">WorkloadType of the NetworkInterface for /// BareMetal resources</param> /// <param name="nicType">Type of Network Interface resource. Possible /// values include: 'Standard', 'Elastic'</param> /// <param name="privateLinkService">Privatelinkservice of the network /// interface resource.</param> /// <param name="migrationPhase">Migration phase of Network Interface /// resource. Possible values include: 'None', 'Prepare', 'Commit', /// 'Abort', 'Committed'</param> /// <param name="auxiliaryMode">Auxiliary mode of Network Interface /// resource. Possible values include: 'None', 'MaxConnections', /// 'Floating'</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> public NetworkInterface(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), SubResource virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList <NetworkInterfaceIPConfiguration> ipConfigurations = default(IList <NetworkInterfaceIPConfiguration>), IList <NetworkInterfaceTapConfiguration> tapConfigurations = default(IList <NetworkInterfaceTapConfiguration>), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool?primary = default(bool?), bool?vnetEncryptionSupported = default(bool?), bool?enableAcceleratedNetworking = default(bool?), bool?enableIPForwarding = default(bool?), IList <string> hostedWorkloads = default(IList <string>), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string workloadType = default(string), string nicType = default(string), PrivateLinkService privateLinkService = default(PrivateLinkService), string migrationPhase = default(string), string auxiliaryMode = default(string), string etag = default(string)) : base(id, name, type, location, tags) { ExtendedLocation = extendedLocation; VirtualMachine = virtualMachine; NetworkSecurityGroup = networkSecurityGroup; PrivateEndpoint = privateEndpoint; IpConfigurations = ipConfigurations; TapConfigurations = tapConfigurations; DnsSettings = dnsSettings; MacAddress = macAddress; Primary = primary; VnetEncryptionSupported = vnetEncryptionSupported; EnableAcceleratedNetworking = enableAcceleratedNetworking; EnableIPForwarding = enableIPForwarding; HostedWorkloads = hostedWorkloads; DscpConfiguration = dscpConfiguration; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; WorkloadType = workloadType; NicType = nicType; PrivateLinkService = privateLinkService; MigrationPhase = migrationPhase; AuxiliaryMode = auxiliaryMode; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// ApplicationGatewayBackendHttpSettings class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="port">The destination port on the backend.</param> /// <param name="protocol">The protocol used to communicate with the /// backend. Possible values include: 'Http', 'Https'</param> /// <param name="cookieBasedAffinity">Cookie based affinity. Possible /// values include: 'Enabled', 'Disabled'</param> /// <param name="requestTimeout">Request timeout in seconds. /// Application Gateway will fail the request if response is not /// received within RequestTimeout. Acceptable values are from 1 second /// to 86400 seconds.</param> /// <param name="probe">Probe resource of an application /// gateway.</param> /// <param name="authenticationCertificates">Array of references to /// application gateway authentication certificates.</param> /// <param name="trustedRootCertificates">Array of references to /// application gateway trusted root certificates.</param> /// <param name="connectionDraining">Connection draining of the backend /// http settings resource.</param> /// <param name="hostName">Host header to be sent to the backend /// servers.</param> /// <param name="pickHostNameFromBackendAddress">Whether to pick host /// header should be picked from the host name of the backend server. /// Default value is false.</param> /// <param name="affinityCookieName">Cookie name to use for the /// affinity cookie.</param> /// <param name="probeEnabled">Whether the probe is enabled. Default /// value is false.</param> /// <param name="path">Path which should be used as a prefix for all /// HTTP requests. Null means no path will be prefixed. Default value /// is null.</param> /// <param name="provisioningState">The provisioning state of the /// backend HTTP settings resource. Possible values include: /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param> /// <param name="name">Name of the backend http settings that is unique /// within an Application Gateway.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> /// <param name="type">Type of the resource.</param> public ApplicationGatewayBackendHttpSettings(string id = default(string), int?port = default(int?), string protocol = default(string), string cookieBasedAffinity = default(string), int?requestTimeout = default(int?), SubResource probe = default(SubResource), IList <SubResource> authenticationCertificates = default(IList <SubResource>), IList <SubResource> trustedRootCertificates = default(IList <SubResource>), ApplicationGatewayConnectionDraining connectionDraining = default(ApplicationGatewayConnectionDraining), string hostName = default(string), bool?pickHostNameFromBackendAddress = default(bool?), string affinityCookieName = default(string), bool?probeEnabled = default(bool?), string path = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { Port = port; Protocol = protocol; CookieBasedAffinity = cookieBasedAffinity; RequestTimeout = requestTimeout; Probe = probe; AuthenticationCertificates = authenticationCertificates; TrustedRootCertificates = trustedRootCertificates; ConnectionDraining = connectionDraining; HostName = hostName; PickHostNameFromBackendAddress = pickHostNameFromBackendAddress; AffinityCookieName = affinityCookieName; ProbeEnabled = probeEnabled; Path = path; ProvisioningState = provisioningState; Name = name; Etag = etag; Type = type; 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="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 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 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 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(); }
/// <summary> /// Initializes a new instance of the ExpressRouteCircuitPeering class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="peeringType">The peering type. Possible values /// include: 'AzurePublicPeering', 'AzurePrivatePeering', /// 'MicrosoftPeering'</param> /// <param name="state">The peering state. Possible values include: /// 'Disabled', 'Enabled'</param> /// <param name="azureASN">The Azure ASN.</param> /// <param name="peerASN">The peer ASN.</param> /// <param name="primaryPeerAddressPrefix">The primary address /// prefix.</param> /// <param name="secondaryPeerAddressPrefix">The secondary address /// prefix.</param> /// <param name="primaryAzurePort">The primary port.</param> /// <param name="secondaryAzurePort">The secondary port.</param> /// <param name="sharedKey">The shared key.</param> /// <param name="vlanId">The VLAN ID.</param> /// <param name="microsoftPeeringConfig">The Microsoft peering /// configuration.</param> /// <param name="stats">Gets peering stats.</param> /// <param name="provisioningState">Gets the provisioning state of the /// public IP resource. Possible values are: 'Updating', 'Deleting', /// and 'Failed'.</param> /// <param name="gatewayManagerEtag">The GatewayManager Etag.</param> /// <param name="lastModifiedBy">Gets whether the provider or the /// customer last modified the peering.</param> /// <param name="routeFilter">The reference of the RouteFilter /// resource.</param> /// <param name="ipv6PeeringConfig">The IPv6 peering /// configuration.</param> /// <param name="expressRouteConnection">The ExpressRoute /// connection.</param> /// <param name="connections">The list of circuit connections /// associated with Azure Private Peering for this circuit.</param> /// <param name="peeredConnections">The list of peered circuit /// connections associated with Azure Private Peering for this /// circuit.</param> /// <param name="name">Gets 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">Type of the resource.</param> public ExpressRouteCircuitPeering(string id = default(string), string peeringType = default(string), string state = default(string), int?azureASN = default(int?), long?peerASN = default(long?), string primaryPeerAddressPrefix = default(string), string secondaryPeerAddressPrefix = default(string), string primaryAzurePort = default(string), string secondaryAzurePort = default(string), string sharedKey = default(string), int?vlanId = default(int?), ExpressRouteCircuitPeeringConfig microsoftPeeringConfig = default(ExpressRouteCircuitPeeringConfig), ExpressRouteCircuitStats stats = default(ExpressRouteCircuitStats), string provisioningState = default(string), string gatewayManagerEtag = default(string), string lastModifiedBy = default(string), SubResource routeFilter = default(SubResource), Ipv6ExpressRouteCircuitPeeringConfig ipv6PeeringConfig = default(Ipv6ExpressRouteCircuitPeeringConfig), ExpressRouteConnectionId expressRouteConnection = default(ExpressRouteConnectionId), IList <ExpressRouteCircuitConnection> connections = default(IList <ExpressRouteCircuitConnection>), IList <PeerExpressRouteCircuitConnection> peeredConnections = default(IList <PeerExpressRouteCircuitConnection>), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { PeeringType = peeringType; State = state; AzureASN = azureASN; PeerASN = peerASN; PrimaryPeerAddressPrefix = primaryPeerAddressPrefix; SecondaryPeerAddressPrefix = secondaryPeerAddressPrefix; PrimaryAzurePort = primaryAzurePort; SecondaryAzurePort = secondaryAzurePort; SharedKey = sharedKey; VlanId = vlanId; MicrosoftPeeringConfig = microsoftPeeringConfig; Stats = stats; ProvisioningState = provisioningState; GatewayManagerEtag = gatewayManagerEtag; LastModifiedBy = lastModifiedBy; RouteFilter = routeFilter; Ipv6PeeringConfig = ipv6PeeringConfig; ExpressRouteConnection = expressRouteConnection; Connections = connections; PeeredConnections = peeredConnections; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the NetworkInterface 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="virtualMachine">The reference to a virtual /// machine.</param> /// <param name="networkSecurityGroup">The reference to the /// NetworkSecurityGroup resource.</param> /// <param name="privateEndpoint">A reference to the private endpoint /// to which the network interface is linked.</param> /// <param name="ipConfigurations">A list of IPConfigurations of the /// network interface.</param> /// <param name="tapConfigurations">A list of TapConfigurations of the /// network interface.</param> /// <param name="dnsSettings">The DNS settings in network /// interface.</param> /// <param name="macAddress">The MAC address of the network /// interface.</param> /// <param name="primary">Whether this is a primary network interface /// on a virtual machine.</param> /// <param name="enableAcceleratedNetworking">If the network interface /// is accelerated networking enabled.</param> /// <param name="enableIPForwarding">Indicates whether IP forwarding is /// enabled on this network interface.</param> /// <param name="hostedWorkloads">A list of references to linked /// BareMetal resources.</param> /// <param name="dscpConfiguration">A reference to the dscp /// configuration to which the network interface is linked.</param> /// <param name="resourceGuid">The resource GUID property of the /// network interface resource.</param> /// <param name="provisioningState">The provisioning state of the /// network interface 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 NetworkInterface(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 virtualMachine = default(SubResource), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), IList <NetworkInterfaceIPConfiguration> ipConfigurations = default(IList <NetworkInterfaceIPConfiguration>), IList <NetworkInterfaceTapConfiguration> tapConfigurations = default(IList <NetworkInterfaceTapConfiguration>), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool?primary = default(bool?), bool?enableAcceleratedNetworking = default(bool?), bool?enableIPForwarding = default(bool?), IList <string> hostedWorkloads = default(IList <string>), SubResource dscpConfiguration = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { VirtualMachine = virtualMachine; NetworkSecurityGroup = networkSecurityGroup; PrivateEndpoint = privateEndpoint; IpConfigurations = ipConfigurations; TapConfigurations = tapConfigurations; DnsSettings = dnsSettings; MacAddress = macAddress; Primary = primary; EnableAcceleratedNetworking = enableAcceleratedNetworking; EnableIPForwarding = enableIPForwarding; HostedWorkloads = hostedWorkloads; DscpConfiguration = dscpConfiguration; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the ExpressRouteCircuitConnection /// class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="expressRouteCircuitPeering">Reference to Express Route /// Circuit Private Peering Resource of the circuit initiating /// connection.</param> /// <param name="peerExpressRouteCircuitPeering">Reference to Express /// Route Circuit Private Peering Resource of the peered /// circuit.</param> /// <param name="addressPrefix">/29 IP address space to carve out /// Customer addresses for tunnels.</param> /// <param name="authorizationKey">The authorization key.</param> /// <param name="circuitConnectionStatus">Express Route Circuit /// connection state. Possible values include: 'Connected', /// 'Connecting', 'Disconnected'</param> /// <param name="provisioningState">The provisioning state of the /// express route circuit connection 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> /// <param name="type">Type of the resource.</param> public ExpressRouteCircuitConnection(string id = default(string), SubResource expressRouteCircuitPeering = default(SubResource), SubResource peerExpressRouteCircuitPeering = default(SubResource), string addressPrefix = default(string), string authorizationKey = default(string), string circuitConnectionStatus = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { ExpressRouteCircuitPeering = expressRouteCircuitPeering; PeerExpressRouteCircuitPeering = peerExpressRouteCircuitPeering; AddressPrefix = addressPrefix; AuthorizationKey = authorizationKey; CircuitConnectionStatus = circuitConnectionStatus; ProvisioningState = provisioningState; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the TopologyParameters class. /// </summary> /// <param name="targetResourceGroupName">The name of the target /// resource group to perform topology on.</param> /// <param name="targetVirtualNetwork">The reference to the Virtual /// Network resource.</param> /// <param name="targetSubnet">The reference to the Subnet /// resource.</param> public TopologyParameters(string targetResourceGroupName = default(string), SubResource targetVirtualNetwork = default(SubResource), SubResource targetSubnet = default(SubResource)) { TargetResourceGroupName = targetResourceGroupName; TargetVirtualNetwork = targetVirtualNetwork; TargetSubnet = targetSubnet; CustomInit(); }
/// <summary> /// Initializes a new instance of the PublicIPPrefix 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="sku">The public IP prefix SKU.</param> /// <param name="publicIPAddressVersion">The public IP address version. /// Possible values include: 'IPv4', 'IPv6'</param> /// <param name="ipTags">The list of tags associated with the public IP /// prefix.</param> /// <param name="prefixLength">The Length of the Public IP /// Prefix.</param> /// <param name="ipPrefix">The allocated Prefix.</param> /// <param name="publicIPAddresses">The list of all referenced /// PublicIPAddresses.</param> /// <param name="loadBalancerFrontendIpConfiguration">The reference to /// load balancer frontend IP configuration associated with the public /// IP prefix.</param> /// <param name="customIPPrefix">The customIpPrefix that this prefix is /// associated with.</param> /// <param name="resourceGuid">The resource GUID property of the public /// IP prefix resource.</param> /// <param name="provisioningState">The provisioning state of the /// public IP prefix 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> /// <param name="zones">A list of availability zones denoting the IP /// allocated for the resource needs to come from.</param> public PublicIPPrefix(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), PublicIPPrefixSku sku = default(PublicIPPrefixSku), string publicIPAddressVersion = default(string), IList <IpTag> ipTags = default(IList <IpTag>), int?prefixLength = default(int?), string ipPrefix = default(string), IList <ReferencedPublicIpAddress> publicIPAddresses = default(IList <ReferencedPublicIpAddress>), SubResource loadBalancerFrontendIpConfiguration = default(SubResource), SubResource customIPPrefix = default(SubResource), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string), IList <string> zones = default(IList <string>)) : base(id, name, type, location, tags) { Sku = sku; PublicIPAddressVersion = publicIPAddressVersion; IpTags = ipTags; PrefixLength = prefixLength; IpPrefix = ipPrefix; PublicIPAddresses = publicIPAddresses; LoadBalancerFrontendIpConfiguration = loadBalancerFrontendIpConfiguration; CustomIPPrefix = customIPPrefix; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; Etag = etag; Zones = zones; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// ApplicationGatewayLoadDistributionTarget class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="weightPerServer">Weight per server. Range between 1 /// and 100.</param> /// <param name="backendAddressPool">Backend address pool resource of /// the application gateway.</param> /// <param name="name">Name of the load distribution policy that is /// unique within an Application Gateway.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> /// <param name="type">Type of the resource.</param> public ApplicationGatewayLoadDistributionTarget(string id = default(string), int?weightPerServer = default(int?), SubResource backendAddressPool = default(SubResource), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { WeightPerServer = weightPerServer; BackendAddressPool = backendAddressPool; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the ApplicationGateway 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="sku">SKU of the application gateway resource.</param> /// <param name="sslPolicy">SSL policy of the application gateway /// resource.</param> /// <param name="operationalState">Operational state of the application /// gateway resource. Possible values include: 'Stopped', 'Starting', /// 'Running', 'Stopping'</param> /// <param name="gatewayIPConfigurations">Subnets of the application /// gateway resource. For default limits, see [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="authenticationCertificates">Authentication /// certificates of the application gateway resource. For default /// limits, see [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="trustedRootCertificates">Trusted Root certificates of /// the application gateway resource. For default limits, see /// [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="sslCertificates">SSL certificates of the application /// gateway resource. For default limits, see [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="frontendIPConfigurations">Frontend IP addresses of the /// application gateway resource. For default limits, see [Application /// Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="frontendPorts">Frontend ports of the application /// gateway resource. For default limits, see [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="probes">Probes of the application gateway /// resource.</param> /// <param name="backendAddressPools">Backend address pool of the /// application gateway resource. For default limits, see [Application /// Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="backendHttpSettingsCollection">Backend http settings /// of the application gateway resource. For default limits, see /// [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="httpListeners">Http listeners of the application /// gateway resource. For default limits, see [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="urlPathMaps">URL path map of the application gateway /// resource. For default limits, see [Application Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="requestRoutingRules">Request routing rules of the /// application gateway resource.</param> /// <param name="rewriteRuleSets">Rewrite rules for the application /// gateway resource.</param> /// <param name="redirectConfigurations">Redirect configurations of the /// application gateway resource. For default limits, see [Application /// Gateway /// limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).</param> /// <param name="webApplicationFirewallConfiguration">Web application /// firewall configuration.</param> /// <param name="firewallPolicy">Reference to the FirewallPolicy /// resource.</param> /// <param name="enableHttp2">Whether HTTP2 is enabled on the /// application gateway resource.</param> /// <param name="enableFips">Whether FIPS is enabled on the application /// gateway resource.</param> /// <param name="autoscaleConfiguration">Autoscale /// Configuration.</param> /// <param name="privateLinkConfigurations">PrivateLink configurations /// on application gateway.</param> /// <param name="privateEndpointConnections">Private Endpoint /// connections on application gateway.</param> /// <param name="resourceGuid">The resource GUID property of the /// application gateway resource.</param> /// <param name="provisioningState">The provisioning state of the /// application gateway resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed'</param> /// <param name="customErrorConfigurations">Custom error configurations /// of the application gateway resource.</param> /// <param name="forceFirewallPolicyAssociation">If true, associates a /// firewall policy with an application gateway regardless whether the /// policy differs from the WAF Config.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> /// <param name="zones">A list of availability zones denoting where the /// resource needs to come from.</param> /// <param name="identity">The identity of the application gateway, if /// configured.</param> public ApplicationGateway(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ApplicationGatewaySku sku = default(ApplicationGatewaySku), ApplicationGatewaySslPolicy sslPolicy = default(ApplicationGatewaySslPolicy), string operationalState = default(string), IList <ApplicationGatewayIPConfiguration> gatewayIPConfigurations = default(IList <ApplicationGatewayIPConfiguration>), IList <ApplicationGatewayAuthenticationCertificate> authenticationCertificates = default(IList <ApplicationGatewayAuthenticationCertificate>), IList <ApplicationGatewayTrustedRootCertificate> trustedRootCertificates = default(IList <ApplicationGatewayTrustedRootCertificate>), IList <ApplicationGatewaySslCertificate> sslCertificates = default(IList <ApplicationGatewaySslCertificate>), IList <ApplicationGatewayFrontendIPConfiguration> frontendIPConfigurations = default(IList <ApplicationGatewayFrontendIPConfiguration>), IList <ApplicationGatewayFrontendPort> frontendPorts = default(IList <ApplicationGatewayFrontendPort>), IList <ApplicationGatewayProbe> probes = default(IList <ApplicationGatewayProbe>), IList <ApplicationGatewayBackendAddressPool> backendAddressPools = default(IList <ApplicationGatewayBackendAddressPool>), IList <ApplicationGatewayBackendHttpSettings> backendHttpSettingsCollection = default(IList <ApplicationGatewayBackendHttpSettings>), IList <ApplicationGatewayHttpListener> httpListeners = default(IList <ApplicationGatewayHttpListener>), IList <ApplicationGatewayUrlPathMap> urlPathMaps = default(IList <ApplicationGatewayUrlPathMap>), IList <ApplicationGatewayRequestRoutingRule> requestRoutingRules = default(IList <ApplicationGatewayRequestRoutingRule>), IList <ApplicationGatewayRewriteRuleSet> rewriteRuleSets = default(IList <ApplicationGatewayRewriteRuleSet>), IList <ApplicationGatewayRedirectConfiguration> redirectConfigurations = default(IList <ApplicationGatewayRedirectConfiguration>), ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration = default(ApplicationGatewayWebApplicationFirewallConfiguration), SubResource firewallPolicy = default(SubResource), bool?enableHttp2 = default(bool?), bool?enableFips = default(bool?), ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration = default(ApplicationGatewayAutoscaleConfiguration), IList <ApplicationGatewayPrivateLinkConfiguration> privateLinkConfigurations = default(IList <ApplicationGatewayPrivateLinkConfiguration>), IList <ApplicationGatewayPrivateEndpointConnection> privateEndpointConnections = default(IList <ApplicationGatewayPrivateEndpointConnection>), string resourceGuid = default(string), string provisioningState = default(string), IList <ApplicationGatewayCustomError> customErrorConfigurations = default(IList <ApplicationGatewayCustomError>), bool?forceFirewallPolicyAssociation = default(bool?), string etag = default(string), IList <string> zones = default(IList <string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity)) : base(id, name, type, location, tags) { Sku = sku; SslPolicy = sslPolicy; OperationalState = operationalState; GatewayIPConfigurations = gatewayIPConfigurations; AuthenticationCertificates = authenticationCertificates; TrustedRootCertificates = trustedRootCertificates; SslCertificates = sslCertificates; FrontendIPConfigurations = frontendIPConfigurations; FrontendPorts = frontendPorts; Probes = probes; BackendAddressPools = backendAddressPools; BackendHttpSettingsCollection = backendHttpSettingsCollection; HttpListeners = httpListeners; UrlPathMaps = urlPathMaps; RequestRoutingRules = requestRoutingRules; RewriteRuleSets = rewriteRuleSets; RedirectConfigurations = redirectConfigurations; WebApplicationFirewallConfiguration = webApplicationFirewallConfiguration; FirewallPolicy = firewallPolicy; EnableHttp2 = enableHttp2; EnableFips = enableFips; AutoscaleConfiguration = autoscaleConfiguration; PrivateLinkConfigurations = privateLinkConfigurations; PrivateEndpointConnections = privateEndpointConnections; ResourceGuid = resourceGuid; ProvisioningState = provisioningState; CustomErrorConfigurations = customErrorConfigurations; ForceFirewallPolicyAssociation = forceFirewallPolicyAssociation; Etag = etag; Zones = zones; Identity = identity; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// ApplicationGatewayFrontendIPConfiguration class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="privateIPAddress">PrivateIPAddress of the network /// interface IP Configuration.</param> /// <param name="privateIPAllocationMethod">The private IP address /// allocation method. Possible values include: 'Static', /// 'Dynamic'</param> /// <param name="subnet">Reference of the subnet resource.</param> /// <param name="publicIPAddress">Reference of the PublicIP /// resource.</param> /// <param name="provisioningState">The provisioning state of the /// frontend IP configuration resource. Possible values include: /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param> /// <param name="name">Name of the frontend IP configuration that is /// unique within an Application Gateway.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> /// <param name="type">Type of the resource.</param> public ApplicationGatewayFrontendIPConfiguration(string id = default(string), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), SubResource subnet = default(SubResource), SubResource publicIPAddress = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { PrivateIPAddress = privateIPAddress; PrivateIPAllocationMethod = privateIPAllocationMethod; Subnet = subnet; PublicIPAddress = publicIPAddress; ProvisioningState = provisioningState; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the NetworkVirtualAppliance 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="nvaSku">Network Virtual Appliance SKU.</param> /// <param /// name="bootStrapConfigurationBlobs">BootStrapConfigurationBlobs /// storage URLs.</param> /// <param name="virtualHub">The Virtual Hub where Network Virtual /// Appliance is being deployed.</param> /// <param /// name="cloudInitConfigurationBlobs">CloudInitConfigurationBlob /// storage URLs.</param> /// <param name="cloudInitConfiguration">CloudInitConfiguration string /// in plain text.</param> /// <param name="virtualApplianceAsn">VirtualAppliance ASN.</param> /// <param name="virtualApplianceNics">List of Virtual Appliance /// Network Interfaces.</param> /// <param name="virtualApplianceSites">List of references to /// VirtualApplianceSite.</param> /// <param name="provisioningState">The provisioning state of the /// resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed'</param> /// <param name="identity">The service principal that has read access /// to cloud-init and config blob.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> public NetworkVirtualAppliance(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), VirtualApplianceSkuProperties nvaSku = default(VirtualApplianceSkuProperties), IList <string> bootStrapConfigurationBlobs = default(IList <string>), SubResource virtualHub = default(SubResource), IList <string> cloudInitConfigurationBlobs = default(IList <string>), string cloudInitConfiguration = default(string), long?virtualApplianceAsn = default(long?), IList <VirtualApplianceNicProperties> virtualApplianceNics = default(IList <VirtualApplianceNicProperties>), IList <SubResource> virtualApplianceSites = default(IList <SubResource>), string provisioningState = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string etag = default(string)) : base(id, name, type, location, tags) { NvaSku = nvaSku; BootStrapConfigurationBlobs = bootStrapConfigurationBlobs; VirtualHub = virtualHub; CloudInitConfigurationBlobs = cloudInitConfigurationBlobs; CloudInitConfiguration = cloudInitConfiguration; VirtualApplianceAsn = virtualApplianceAsn; VirtualApplianceNics = virtualApplianceNics; VirtualApplianceSites = virtualApplianceSites; ProvisioningState = provisioningState; Identity = identity; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the InboundNatPool class. /// </summary> /// <param name="protocol">The reference to the transport protocol used /// by the inbound NAT pool. Possible values include: 'Udp', 'Tcp', /// 'All'</param> /// <param name="frontendPortRangeStart">The first port number in the /// range of external ports that will be used to provide Inbound Nat to /// NICs associated with a load balancer. Acceptable values range /// between 1 and 65534.</param> /// <param name="frontendPortRangeEnd">The last port number in the /// range of external ports that will be used to provide Inbound Nat to /// NICs associated with a load balancer. Acceptable values range /// between 1 and 65535.</param> /// <param name="backendPort">The port used for internal connections on /// the endpoint. Acceptable values are between 1 and 65535.</param> /// <param name="id">Resource ID.</param> /// <param name="frontendIPConfiguration">A reference to frontend IP /// addresses.</param> /// <param name="idleTimeoutInMinutes">The timeout for the TCP idle /// connection. The value can be set between 4 and 30 minutes. The /// default value is 4 minutes. This element is only used when the /// protocol is set to TCP.</param> /// <param name="enableFloatingIP">Configures a virtual machine's /// endpoint for the floating IP capability required to configure a SQL /// AlwaysOn Availability Group. This setting is required when using /// the SQL AlwaysOn Availability Groups in SQL server. This setting /// can't be changed after you create the endpoint.</param> /// <param name="enableTcpReset">Receive bidirectional TCP Reset on TCP /// flow idle timeout or unexpected connection termination. This /// element is only used when the protocol is set to TCP.</param> /// <param name="provisioningState">The provisioning state of the /// inbound NAT pool resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed'</param> /// <param name="name">The name of the resource that is unique within /// the set of inbound NAT pools used by the load balancer. 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">Type of the resource.</param> public InboundNatPool(string protocol, int frontendPortRangeStart, int frontendPortRangeEnd, int backendPort, string id = default(string), SubResource frontendIPConfiguration = default(SubResource), int?idleTimeoutInMinutes = default(int?), bool?enableFloatingIP = default(bool?), bool?enableTcpReset = default(bool?), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { FrontendIPConfiguration = frontendIPConfiguration; Protocol = protocol; FrontendPortRangeStart = frontendPortRangeStart; FrontendPortRangeEnd = frontendPortRangeEnd; BackendPort = backendPort; IdleTimeoutInMinutes = idleTimeoutInMinutes; EnableFloatingIP = enableFloatingIP; EnableTcpReset = enableTcpReset; ProvisioningState = provisioningState; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <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 VPN /// site resource. Possible values include: 'Succeeded', 'Updating', /// 'Deleting', 'Failed'</param> /// <param name="isSecuritySite">IsSecuritySite flag.</param> /// <param name="vpnSiteLinks">List of all vpn site links.</param> /// <param name="etag">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?), IList <VpnSiteLink> vpnSiteLinks = default(IList <VpnSiteLink>), 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; VpnSiteLinks = vpnSiteLinks; 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 /// 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: 'FullySynced', /// 'RemoteUnsynced', 'LocalUnsynced', 'LocalAndRemoteUnsynced'</param> /// <param name="syncRemoteAddressSpace">Provided when user wants to /// sync the peering with address space on the remote virtual network /// after the address space is updated.</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), AddressSpace remoteVirtualNetworkAddressSpace = default(AddressSpace), VirtualNetworkBgpCommunities remoteBgpCommunities = default(VirtualNetworkBgpCommunities), string peeringState = default(string), string peeringSyncLevel = default(string), bool?syncRemoteAddressSpace = default(bool?), 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; RemoteVirtualNetworkAddressSpace = remoteVirtualNetworkAddressSpace; RemoteBgpCommunities = remoteBgpCommunities; PeeringState = peeringState; PeeringSyncLevel = peeringSyncLevel; SyncRemoteAddressSpace = syncRemoteAddressSpace; ProvisioningState = provisioningState; Name = name; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the ExpressRouteCircuit 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="sku">The SKU.</param> /// <param name="allowClassicOperations">Allow classic /// operations.</param> /// <param name="circuitProvisioningState">The CircuitProvisioningState /// state of the resource.</param> /// <param name="serviceProviderProvisioningState">The /// ServiceProviderProvisioningState state of the resource. Possible /// values include: 'NotProvisioned', 'Provisioning', 'Provisioned', /// 'Deprovisioning'</param> /// <param name="authorizations">The list of authorizations.</param> /// <param name="peerings">The list of peerings.</param> /// <param name="serviceKey">The ServiceKey.</param> /// <param name="serviceProviderNotes">The /// ServiceProviderNotes.</param> /// <param name="serviceProviderProperties">The /// ServiceProviderProperties.</param> /// <param name="expressRoutePort">The reference to the /// ExpressRoutePort resource when the circuit is provisioned on an /// ExpressRoutePort resource.</param> /// <param name="bandwidthInGbps">The bandwidth of the circuit when the /// circuit is provisioned on an ExpressRoutePort resource.</param> /// <param name="stag">The identifier of the circuit traffic. Outer tag /// for QinQ encapsulation.</param> /// <param name="provisioningState">The provisioning state of the /// express route circuit resource. Possible values include: /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param> /// <param name="gatewayManagerEtag">The GatewayManager Etag.</param> /// <param name="globalReachEnabled">Flag denoting Global reach /// status.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> public ExpressRouteCircuit(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ExpressRouteCircuitSku sku = default(ExpressRouteCircuitSku), bool?allowClassicOperations = default(bool?), string circuitProvisioningState = default(string), string serviceProviderProvisioningState = default(string), IList <ExpressRouteCircuitAuthorization> authorizations = default(IList <ExpressRouteCircuitAuthorization>), IList <ExpressRouteCircuitPeering> peerings = default(IList <ExpressRouteCircuitPeering>), string serviceKey = default(string), string serviceProviderNotes = default(string), ExpressRouteCircuitServiceProviderProperties serviceProviderProperties = default(ExpressRouteCircuitServiceProviderProperties), SubResource expressRoutePort = default(SubResource), double?bandwidthInGbps = default(double?), int?stag = default(int?), string provisioningState = default(string), string gatewayManagerEtag = default(string), bool?globalReachEnabled = default(bool?), string etag = default(string)) : base(id, name, type, location, tags) { Sku = sku; AllowClassicOperations = allowClassicOperations; CircuitProvisioningState = circuitProvisioningState; ServiceProviderProvisioningState = serviceProviderProvisioningState; Authorizations = authorizations; Peerings = peerings; ServiceKey = serviceKey; ServiceProviderNotes = serviceProviderNotes; ServiceProviderProperties = serviceProviderProperties; ExpressRoutePort = expressRoutePort; BandwidthInGbps = bandwidthInGbps; Stag = stag; ProvisioningState = provisioningState; GatewayManagerEtag = gatewayManagerEtag; GlobalReachEnabled = globalReachEnabled; Etag = etag; CustomInit(); }
/// <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; }
/// <summary> /// Initializes a new instance of the PeerExpressRouteCircuitConnection /// class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="expressRouteCircuitPeering">Reference to Express Route /// Circuit Private Peering Resource of the circuit.</param> /// <param name="peerExpressRouteCircuitPeering">Reference to Express /// Route Circuit Private Peering Resource of the peered /// circuit.</param> /// <param name="addressPrefix">/29 IP address space to carve out /// Customer addresses for tunnels.</param> /// <param name="circuitConnectionStatus">Express Route Circuit /// Connection State. Possible values are: 'Connected' and /// 'Disconnected'. Possible values include: 'Connected', 'Connecting', /// 'Disconnected'</param> /// <param name="connectionName">The name of the express route circuit /// connection resource.</param> /// <param name="authResourceGuid">The resource guid of the /// authorization used for the express route circuit /// connection.</param> /// <param name="provisioningState">Provisioning state of the peer /// express route circuit connection resource. Possible values are: /// 'Succeeded', 'Updating', 'Deleting', and 'Failed'.</param> /// <param name="name">Gets 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 PeerExpressRouteCircuitConnection(string id = default(string), SubResource expressRouteCircuitPeering = default(SubResource), SubResource peerExpressRouteCircuitPeering = default(SubResource), string addressPrefix = default(string), string circuitConnectionStatus = default(string), string connectionName = default(string), string authResourceGuid = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { ExpressRouteCircuitPeering = expressRouteCircuitPeering; PeerExpressRouteCircuitPeering = peerExpressRouteCircuitPeering; AddressPrefix = addressPrefix; CircuitConnectionStatus = circuitConnectionStatus; ConnectionName = connectionName; AuthResourceGuid = authResourceGuid; ProvisioningState = provisioningState; Name = name; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the Subnet class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="addressPrefix">The address prefix for the /// subnet.</param> /// <param name="addressPrefixes">List of address prefixes for the /// subnet.</param> /// <param name="networkSecurityGroup">The reference of the /// NetworkSecurityGroup resource.</param> /// <param name="routeTable">The reference of the RouteTable /// resource.</param> /// <param name="natGateway">Nat gateway associated with this /// subnet.</param> /// <param name="serviceEndpoints">An array of service /// endpoints.</param> /// <param name="serviceEndpointPolicies">An array of service endpoint /// policies.</param> /// <param name="privateEndpoints">An array of references to private /// endpoints </param> /// <param name="ipConfigurations">Gets an array of references to the /// network interface IP configurations using subnet.</param> /// <param name="ipConfigurationProfiles">Array of IP configuration /// profiles which reference this subnet.</param> /// <param name="resourceNavigationLinks">Gets an array of references /// to the external resources using subnet.</param> /// <param name="serviceAssociationLinks">Gets an array of references /// to services injecting into this subnet.</param> /// <param name="delegations">Gets an array of references to the /// delegations on the subnet.</param> /// <param name="purpose">A read-only string identifying the intention /// of use for this subnet based on delegations and other user-defined /// properties.</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 Subnet(string id = default(string), string addressPrefix = default(string), IList <string> addressPrefixes = default(IList <string>), NetworkSecurityGroup networkSecurityGroup = default(NetworkSecurityGroup), RouteTable routeTable = default(RouteTable), SubResource natGateway = default(SubResource), IList <ServiceEndpointPropertiesFormat> serviceEndpoints = default(IList <ServiceEndpointPropertiesFormat>), IList <ServiceEndpointPolicy> serviceEndpointPolicies = default(IList <ServiceEndpointPolicy>), IList <PrivateEndpoint> privateEndpoints = default(IList <PrivateEndpoint>), IList <IPConfiguration> ipConfigurations = default(IList <IPConfiguration>), IList <IPConfigurationProfile> ipConfigurationProfiles = default(IList <IPConfigurationProfile>), IList <ResourceNavigationLink> resourceNavigationLinks = default(IList <ResourceNavigationLink>), IList <ServiceAssociationLink> serviceAssociationLinks = default(IList <ServiceAssociationLink>), IList <Delegation> delegations = default(IList <Delegation>), string purpose = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { AddressPrefix = addressPrefix; AddressPrefixes = addressPrefixes; NetworkSecurityGroup = networkSecurityGroup; RouteTable = routeTable; NatGateway = natGateway; ServiceEndpoints = serviceEndpoints; ServiceEndpointPolicies = serviceEndpointPolicies; PrivateEndpoints = privateEndpoints; IpConfigurations = ipConfigurations; IpConfigurationProfiles = ipConfigurationProfiles; ResourceNavigationLinks = resourceNavigationLinks; ServiceAssociationLinks = serviceAssociationLinks; Delegations = delegations; Purpose = purpose; ProvisioningState = provisioningState; Name = name; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the FirewallPolicy 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="ruleGroups">List of references to /// FirewallPolicyRuleGroups.</param> /// <param name="provisioningState">The provisioning state of the /// firewall policy resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed'</param> /// <param name="basePolicy">The parent firewall policy from which /// rules are inherited.</param> /// <param name="firewalls">List of references to Azure Firewalls that /// this Firewall Policy is associated with.</param> /// <param name="childPolicies">List of references to Child Firewall /// Policies.</param> /// <param name="threatIntelMode">The operation mode for Threat /// Intelligence. Possible values include: 'Alert', 'Deny', /// 'Off'</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> public FirewallPolicy(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 <SubResource> ruleGroups = default(IList <SubResource>), string provisioningState = default(string), SubResource basePolicy = default(SubResource), IList <SubResource> firewalls = default(IList <SubResource>), IList <SubResource> childPolicies = default(IList <SubResource>), string threatIntelMode = default(string), string etag = default(string)) : base(id, name, type, location, tags) { RuleGroups = ruleGroups; ProvisioningState = provisioningState; BasePolicy = basePolicy; Firewalls = firewalls; ChildPolicies = childPolicies; ThreatIntelMode = threatIntelMode; Etag = etag; CustomInit(); }
/// <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="encryption">Indicates if encryption is enabled on /// virtual network and if VM without encryption is allowed in /// encrypted 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), VirtualNetworkEncryption encryption = default(VirtualNetworkEncryption), 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; Encryption = encryption; IpAllocations = ipAllocations; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the BackendAddressPool class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="location">The location of the backend address /// pool.</param> /// <param name="tunnelInterfaces">An array of gateway load balancer /// tunnel interfaces.</param> /// <param name="loadBalancerBackendAddresses">An array of backend /// addresses.</param> /// <param name="backendIPConfigurations">An array of references to IP /// addresses defined in network interfaces.</param> /// <param name="loadBalancingRules">An array of references to load /// balancing rules that use this backend address pool.</param> /// <param name="outboundRule">A reference to an outbound rule that /// uses this backend address pool.</param> /// <param name="outboundRules">An array of references to outbound /// rules that use this backend address pool.</param> /// <param name="inboundNatRules">An array of references to inbound NAT /// rules that use this backend address pool.</param> /// <param name="provisioningState">The provisioning state of the /// backend address pool resource. Possible values include: /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param> /// <param name="drainPeriodInSeconds">Amount of seconds Load Balancer /// waits for before sending RESET to client and backend /// address.</param> /// <param name="name">The name of the resource that is unique within /// the set of backend address pools used by the load balancer. 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">Type of the resource.</param> public BackendAddressPool(string id = default(string), string location = default(string), IList <GatewayLoadBalancerTunnelInterface> tunnelInterfaces = default(IList <GatewayLoadBalancerTunnelInterface>), IList <LoadBalancerBackendAddress> loadBalancerBackendAddresses = default(IList <LoadBalancerBackendAddress>), IList <NetworkInterfaceIPConfiguration> backendIPConfigurations = default(IList <NetworkInterfaceIPConfiguration>), IList <SubResource> loadBalancingRules = default(IList <SubResource>), SubResource outboundRule = default(SubResource), IList <SubResource> outboundRules = default(IList <SubResource>), IList <SubResource> inboundNatRules = default(IList <SubResource>), string provisioningState = default(string), int?drainPeriodInSeconds = default(int?), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { Location = location; TunnelInterfaces = tunnelInterfaces; LoadBalancerBackendAddresses = loadBalancerBackendAddresses; BackendIPConfigurations = backendIPConfigurations; LoadBalancingRules = loadBalancingRules; OutboundRule = outboundRule; OutboundRules = outboundRules; InboundNatRules = inboundNatRules; ProvisioningState = provisioningState; DrainPeriodInSeconds = drainPeriodInSeconds; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the ApplicationGatewayOnDemandProbe /// class. /// </summary> /// <param name="protocol">The protocol used for the probe. Possible /// values include: 'Http', 'Https'</param> /// <param name="host">Host name to send the probe to.</param> /// <param name="path">Relative path of probe. Valid path starts from /// '/'. Probe is sent to /// <Protocol>://<host>:<port><path>.</param> /// <param name="timeout">The probe timeout in seconds. Probe marked as /// failed if valid response is not received with this timeout period. /// Acceptable values are from 1 second to 86400 seconds.</param> /// <param name="pickHostNameFromBackendHttpSettings">Whether the host /// header should be picked from the backend http settings. Default /// value is false.</param> /// <param name="match">Criterion for classifying a healthy probe /// response.</param> /// <param name="backendAddressPool">Reference to backend pool of /// application gateway to which probe request will be sent.</param> /// <param name="backendHttpSettings">Reference to backend http setting /// of application gateway to be used for test probe.</param> public ApplicationGatewayOnDemandProbe(string protocol = default(string), string host = default(string), string path = default(string), int?timeout = default(int?), bool?pickHostNameFromBackendHttpSettings = default(bool?), ApplicationGatewayProbeHealthResponseMatch match = default(ApplicationGatewayProbeHealthResponseMatch), SubResource backendAddressPool = default(SubResource), SubResource backendHttpSettings = default(SubResource)) { Protocol = protocol; Host = host; Path = path; Timeout = timeout; PickHostNameFromBackendHttpSettings = pickHostNameFromBackendHttpSettings; Match = match; BackendAddressPool = backendAddressPool; BackendHttpSettings = backendHttpSettings; CustomInit(); }
/// <summary> /// Initializes a new instance of the BackendAddressPool class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="backendIPConfigurations">An array of references to IP /// addresses defined in network interfaces.</param> /// <param name="loadBalancingRules">An array of references to load /// balancing rules that use this backend address pool.</param> /// <param name="outboundRule">A reference to an outbound rule that /// uses this backend address pool.</param> /// <param name="outboundRules">An array of references to outbound /// rules that use this backend address pool.</param> /// <param name="provisioningState">The provisioning state of the /// backend address pool resource. Possible values include: /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param> /// <param name="name">The name of the resource that is unique within /// the set of backend address pools used by the load balancer. 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">Type of the resource.</param> public BackendAddressPool(string id = default(string), IList <NetworkInterfaceIPConfiguration> backendIPConfigurations = default(IList <NetworkInterfaceIPConfiguration>), IList <SubResource> loadBalancingRules = default(IList <SubResource>), SubResource outboundRule = default(SubResource), IList <SubResource> outboundRules = default(IList <SubResource>), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string)) : base(id) { BackendIPConfigurations = backendIPConfigurations; LoadBalancingRules = loadBalancingRules; OutboundRule = outboundRule; OutboundRules = outboundRules; ProvisioningState = provisioningState; Name = name; Etag = etag; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the VirtualRouter 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="virtualRouterAsn">VirtualRouter ASN.</param> /// <param name="virtualRouterIps">VirtualRouter IPs.</param> /// <param name="hostedSubnet">The Subnet on which VirtualRouter is /// hosted.</param> /// <param name="hostedGateway">The Gateway on which VirtualRouter is /// hosted.</param> /// <param name="peerings">List of references to /// VirtualRouterPeerings.</param> /// <param name="provisioningState">The provisioning state of the /// 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 VirtualRouter(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), long?virtualRouterAsn = default(long?), IList <string> virtualRouterIps = default(IList <string>), SubResource hostedSubnet = default(SubResource), SubResource hostedGateway = default(SubResource), IList <SubResource> peerings = default(IList <SubResource>), string provisioningState = default(string), string etag = default(string)) : base(id, name, type, location, tags) { VirtualRouterAsn = virtualRouterAsn; VirtualRouterIps = virtualRouterIps; HostedSubnet = hostedSubnet; HostedGateway = hostedGateway; Peerings = peerings; ProvisioningState = provisioningState; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the VirtualHub 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 VirtualHub /// belongs.</param> /// <param name="vpnGateway">The VpnGateway associated with this /// VirtualHub.</param> /// <param name="p2SVpnGateway">The P2SVpnGateway associated with this /// VirtualHub.</param> /// <param name="expressRouteGateway">The expressRouteGateway /// associated with this VirtualHub.</param> /// <param name="azureFirewall">The azureFirewall associated with this /// VirtualHub.</param> /// <param name="virtualNetworkConnections">List of all vnet /// connections with this VirtualHub.</param> /// <param name="addressPrefix">Address-prefix for this /// VirtualHub.</param> /// <param name="routeTable">The routeTable associated with this /// virtual hub.</param> /// <param name="provisioningState">The provisioning state of the /// virtual hub resource. Possible values include: 'Succeeded', /// 'Updating', 'Deleting', 'Failed'</param> /// <param name="securityProviderName">The Security Provider /// name.</param> /// <param name="virtualHubRouteTableV2s">List of all virtual hub route /// table v2s associated with this VirtualHub.</param> /// <param name="sku">The sku of this VirtualHub.</param> /// <param name="etag">A unique read-only string that changes whenever /// the resource is updated.</param> public VirtualHub(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), SubResource vpnGateway = default(SubResource), SubResource p2SVpnGateway = default(SubResource), SubResource expressRouteGateway = default(SubResource), SubResource azureFirewall = default(SubResource), IList <HubVirtualNetworkConnection> virtualNetworkConnections = default(IList <HubVirtualNetworkConnection>), string addressPrefix = default(string), VirtualHubRouteTable routeTable = default(VirtualHubRouteTable), string provisioningState = default(string), string securityProviderName = default(string), IList <VirtualHubRouteTableV2> virtualHubRouteTableV2s = default(IList <VirtualHubRouteTableV2>), string sku = default(string), string etag = default(string)) : base(id, name, type, location, tags) { VirtualWan = virtualWan; VpnGateway = vpnGateway; P2SVpnGateway = p2SVpnGateway; ExpressRouteGateway = expressRouteGateway; AzureFirewall = azureFirewall; VirtualNetworkConnections = virtualNetworkConnections; AddressPrefix = addressPrefix; RouteTable = routeTable; ProvisioningState = provisioningState; SecurityProviderName = securityProviderName; VirtualHubRouteTableV2s = virtualHubRouteTableV2s; Sku = sku; Etag = etag; CustomInit(); }