/// <summary>
 /// Initializes a new instance of the LoadBalancingRule class.
 /// </summary>
 /// <param name="protocol">Possible values include: 'Udp', 'Tcp',
 /// 'All'</param>
 /// <param name="frontendPort">The port for the external endpoint. Port
 /// numbers for each rule must be unique within the Load Balancer.
 /// Acceptable values are between 0 and 65534. Note that value 0
 /// enables "Any Port"</param>
 /// <param name="id">Resource ID.</param>
 /// <param name="frontendIPConfiguration">A reference to frontend IP
 /// addresses.</param>
 /// <param name="backendAddressPool">A reference to a pool of DIPs.
 /// Inbound traffic is randomly load balanced across IPs in the backend
 /// IPs.</param>
 /// <param name="probe">The reference of the load balancer probe used
 /// by the load balancing rule.</param>
 /// <param name="loadDistribution">The load distribution policy for
 /// this rule. Possible values are 'Default', 'SourceIP', and
 /// 'SourceIPProtocol'. Possible values include: 'Default', 'SourceIP',
 /// 'SourceIPProtocol'</param>
 /// <param name="backendPort">The port used for internal connections on
 /// the endpoint. Acceptable values are between 0 and 65535. Note that
 /// value 0 enables "Any Port"</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="disableOutboundSnat">Configures SNAT for the VMs in
 /// the backend pool to use the publicIP address specified in the
 /// frontend of the load balancing rule.</param>
 /// <param name="provisioningState">Gets the provisioning state of the
 /// PublicIP resource. Possible values are: 'Updating', 'Deleting', and
 /// '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 LoadBalancingRule(string protocol, int frontendPort, string id = default(string), SubResource frontendIPConfiguration = default(SubResource), SubResource backendAddressPool = default(SubResource), SubResource probe = default(SubResource), string loadDistribution = default(string), int?backendPort = default(int?), int?idleTimeoutInMinutes = default(int?), bool?enableFloatingIP = default(bool?), bool?disableOutboundSnat = default(bool?), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     FrontendIPConfiguration = frontendIPConfiguration;
     BackendAddressPool      = backendAddressPool;
     Probe                = probe;
     Protocol             = protocol;
     LoadDistribution     = loadDistribution;
     FrontendPort         = frontendPort;
     BackendPort          = backendPort;
     IdleTimeoutInMinutes = idleTimeoutInMinutes;
     EnableFloatingIP     = enableFloatingIP;
     DisableOutboundSnat  = disableOutboundSnat;
     ProvisioningState    = provisioningState;
     Name = name;
     Etag = etag;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the BackendAddressPool class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="backendIPConfigurations">Gets collection of references
 /// to IP addresses defined in network interfaces.</param>
 /// <param name="loadBalancingRules">Gets load balancing rules that use
 /// this backend address pool.</param>
 /// <param name="outboundNatRule">Gets outbound rules that use this
 /// backend address pool.</param>
 /// <param name="provisioningState">Get provisioning state of the
 /// public IP resource. Possible values are: '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 BackendAddressPool(string id = default(string), IList <NetworkInterfaceIPConfiguration> backendIPConfigurations = default(IList <NetworkInterfaceIPConfiguration>), IList <SubResource> loadBalancingRules = default(IList <SubResource>), SubResource outboundNatRule = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     BackendIPConfigurations = backendIPConfigurations;
     LoadBalancingRules      = loadBalancingRules;
     OutboundNatRule         = outboundNatRule;
     ProvisioningState       = provisioningState;
     Name = name;
     Etag = etag;
     CustomInit();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the
 /// ApplicationGatewayRedirectConfiguration class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="redirectType">Supported http redirection types -
 /// Permanent, Temporary, Found, SeeOther. Possible values include:
 /// 'Permanent', 'Found', 'SeeOther', 'Temporary'</param>
 /// <param name="targetListener">Reference to a listener to redirect
 /// the request to.</param>
 /// <param name="targetUrl">Url to redirect the request to.</param>
 /// <param name="includePath">Include path in the redirected
 /// url.</param>
 /// <param name="includeQueryString">Include query string in the
 /// redirected url.</param>
 /// <param name="requestRoutingRules">Request routing specifying
 /// redirect configuration.</param>
 /// <param name="urlPathMaps">Url path maps specifying default redirect
 /// configuration.</param>
 /// <param name="pathRules">Path rules specifying redirect
 /// configuration.</param>
 /// <param name="name">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 ApplicationGatewayRedirectConfiguration(string id = default(string), string redirectType = default(string), SubResource targetListener = default(SubResource), string targetUrl = default(string), bool?includePath = default(bool?), bool?includeQueryString = default(bool?), IList <SubResource> requestRoutingRules = default(IList <SubResource>), IList <SubResource> urlPathMaps = default(IList <SubResource>), IList <SubResource> pathRules = default(IList <SubResource>), string name = default(string), string etag = default(string), string type = default(string))
     : base(id)
 {
     RedirectType        = redirectType;
     TargetListener      = targetListener;
     TargetUrl           = targetUrl;
     IncludePath         = includePath;
     IncludeQueryString  = includeQueryString;
     RequestRoutingRules = requestRoutingRules;
     UrlPathMaps         = urlPathMaps;
     PathRules           = pathRules;
     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 of a virtual
 /// machine.</param>
 /// <param name="networkSecurityGroup">The reference of the
 /// NetworkSecurityGroup resource.</param>
 /// <param name="ipConfigurations">A list of IPConfigurations 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">Gets 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="resourceGuid">The resource GUID property of the
 /// network interface resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// public IP 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 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), IList <NetworkInterfaceIPConfiguration> ipConfigurations = default(IList <NetworkInterfaceIPConfiguration>), NetworkInterfaceDnsSettings dnsSettings = default(NetworkInterfaceDnsSettings), string macAddress = default(string), bool?primary = default(bool?), bool?enableAcceleratedNetworking = default(bool?), bool?enableIPForwarding = default(bool?), string resourceGuid = default(string), string provisioningState = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     VirtualMachine       = virtualMachine;
     NetworkSecurityGroup = networkSecurityGroup;
     IpConfigurations     = ipConfigurations;
     DnsSettings          = dnsSettings;
     MacAddress           = macAddress;
     Primary = primary;
     EnableAcceleratedNetworking = enableAcceleratedNetworking;
     EnableIPForwarding          = enableIPForwarding;
     ResourceGuid      = resourceGuid;
     ProvisioningState = provisioningState;
     Etag = etag;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ApplicationGatewayPathRule class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="paths">Path rules of URL path map.</param>
 /// <param name="backendAddressPool">Backend address pool resource of
 /// URL path map path rule.</param>
 /// <param name="backendHttpSettings">Backend http settings resource of
 /// URL path map path rule.</param>
 /// <param name="redirectConfiguration">Redirect configuration resource
 /// of URL path map path rule.</param>
 /// <param name="provisioningState">Path rule of URL path map resource.
 /// Possible values are: 'Updating', 'Deleting', and 'Failed'.</param>
 /// <param name="name">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 ApplicationGatewayPathRule(string id = default(string), IList <string> paths = default(IList <string>), SubResource backendAddressPool = default(SubResource), SubResource backendHttpSettings = default(SubResource), SubResource redirectConfiguration = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string))
     : base(id)
 {
     Paths = paths;
     BackendAddressPool    = backendAddressPool;
     BackendHttpSettings   = backendHttpSettings;
     RedirectConfiguration = redirectConfiguration;
     ProvisioningState     = provisioningState;
     Name = name;
     Etag = etag;
     Type = type;
     CustomInit();
 }