/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PublicIPAddress != null)
     {
         PublicIPAddress.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (VirtualNetworkTaps != null)
     {
         foreach (var element in VirtualNetworkTaps)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (LoadBalancerInboundNatRules != null)
     {
         foreach (var element1 in LoadBalancerInboundNatRules)
         {
             if (element1 != null)
             {
                 element1.Validate();
             }
         }
     }
     if (PublicIPAddress != null)
     {
         PublicIPAddress.Validate();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the IPConfiguration class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="privateIPAddress">The private IP address of the IP
 /// configuration.</param>
 /// <param name="privateIPAllocationMethod">The private IP address
 /// allocation method. Possible values include: 'Static',
 /// 'Dynamic'</param>
 /// <param name="subnet">The reference to the subnet resource.</param>
 /// <param name="publicIPAddress">The reference to the public IP
 /// resource.</param>
 /// <param name="provisioningState">The provisioning state of the IP
 /// configuration 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 IPConfiguration(string id = default(string), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     Subnet            = subnet;
     PublicIPAddress   = publicIPAddress;
     ProvisioningState = provisioningState;
     Name = name;
     Etag = etag;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the FrontendIPConfiguration class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="inboundNatRules">An array of references to inbound
 /// rules that use this frontend IP.</param>
 /// <param name="inboundNatPools">An array of references to inbound
 /// pools that use this frontend IP.</param>
 /// <param name="outboundRules">An array of references to outbound
 /// rules that use this frontend IP.</param>
 /// <param name="loadBalancingRules">An array of references to load
 /// balancing rules that use this frontend IP.</param>
 /// <param name="privateIPAddress">The private IP address of the IP
 /// configuration.</param>
 /// <param name="privateIPAllocationMethod">The Private IP allocation
 /// method. Possible values include: 'Static', 'Dynamic'</param>
 /// <param name="privateIPAddressVersion">Whether the specific
 /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible
 /// values include: 'IPv4', 'IPv6'</param>
 /// <param name="subnet">The reference to the subnet resource.</param>
 /// <param name="publicIPAddress">The reference to the Public IP
 /// resource.</param>
 /// <param name="publicIPPrefix">The reference to the Public IP Prefix
 /// 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">The name of the resource that is unique within
 /// the set of frontend IP configurations 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>
 /// <param name="zones">A list of availability zones denoting the IP
 /// allocated for the resource needs to come from.</param>
 public FrontendIPConfiguration(string id = default(string), IList <SubResource> inboundNatRules = default(IList <SubResource>), IList <SubResource> inboundNatPools = default(IList <SubResource>), IList <SubResource> outboundRules = default(IList <SubResource>), IList <SubResource> loadBalancingRules = default(IList <SubResource>), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), string privateIPAddressVersion = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), SubResource publicIPPrefix = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), string type = default(string), IList <string> zones = default(IList <string>))
     : base(id)
 {
     InboundNatRules           = inboundNatRules;
     InboundNatPools           = inboundNatPools;
     OutboundRules             = outboundRules;
     LoadBalancingRules        = loadBalancingRules;
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     PrivateIPAddressVersion   = privateIPAddressVersion;
     Subnet            = subnet;
     PublicIPAddress   = publicIPAddress;
     PublicIPPrefix    = publicIPPrefix;
     ProvisioningState = provisioningState;
     Name  = name;
     Etag  = etag;
     Type  = type;
     Zones = zones;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the NetworkInterfaceIPConfiguration
 /// class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="virtualNetworkTaps">The reference to Virtual Network
 /// Taps.</param>
 /// <param name="applicationGatewayBackendAddressPools">The reference
 /// to ApplicationGatewayBackendAddressPool resource.</param>
 /// <param name="loadBalancerBackendAddressPools">The reference to
 /// LoadBalancerBackendAddressPool resource.</param>
 /// <param name="loadBalancerInboundNatRules">A list of references of
 /// LoadBalancerInboundNatRules.</param>
 /// <param name="privateIPAddress">Private IP address of the IP
 /// configuration.</param>
 /// <param name="privateIPAllocationMethod">The private IP address
 /// allocation method. Possible values include: 'Static',
 /// 'Dynamic'</param>
 /// <param name="privateIPAddressVersion">Whether the specific IP
 /// configuration is IPv4 or IPv6. Default is IPv4. Possible values
 /// include: 'IPv4', 'IPv6'</param>
 /// <param name="subnet">Subnet bound to the IP configuration.</param>
 /// <param name="primary">Whether this is a primary customer address on
 /// the network interface.</param>
 /// <param name="publicIPAddress">Public IP address bound to the IP
 /// configuration.</param>
 /// <param name="applicationSecurityGroups">Application security groups
 /// in which the IP configuration is included.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// network interface IP configuration. Possible values include:
 /// 'Succeeded', 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="privateLinkConnectionProperties">PrivateLinkConnection
 /// properties for the network interface.</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 NetworkInterfaceIPConfiguration(string id = default(string), IList <VirtualNetworkTap> virtualNetworkTaps = default(IList <VirtualNetworkTap>), IList <ApplicationGatewayBackendAddressPool> applicationGatewayBackendAddressPools = default(IList <ApplicationGatewayBackendAddressPool>), IList <BackendAddressPool> loadBalancerBackendAddressPools = default(IList <BackendAddressPool>), IList <InboundNatRule> loadBalancerInboundNatRules = default(IList <InboundNatRule>), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), string privateIPAddressVersion = default(string), Subnet subnet = default(Subnet), bool?primary = default(bool?), PublicIPAddress publicIPAddress = default(PublicIPAddress), IList <ApplicationSecurityGroup> applicationSecurityGroups = default(IList <ApplicationSecurityGroup>), string provisioningState = default(string), NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties privateLinkConnectionProperties = default(NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties), string name = default(string), string etag = default(string))
     : base(id)
 {
     VirtualNetworkTaps = virtualNetworkTaps;
     ApplicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
     LoadBalancerBackendAddressPools       = loadBalancerBackendAddressPools;
     LoadBalancerInboundNatRules           = loadBalancerInboundNatRules;
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     PrivateIPAddressVersion   = privateIPAddressVersion;
     Subnet                          = subnet;
     Primary                         = primary;
     PublicIPAddress                 = publicIPAddress;
     ApplicationSecurityGroups       = applicationSecurityGroups;
     ProvisioningState               = provisioningState;
     PrivateLinkConnectionProperties = privateLinkConnectionProperties;
     Name = name;
     Etag = etag;
     CustomInit();
 }