/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PublicIPAddress != null)
     {
         PublicIPAddress.Validate();
     }
 }
Esempio n. 2
0
 /// <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();
     }
 }
 /// <summary>
 /// Initializes a new instance of the PublicIPAddress 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 public
 /// ip address.</param>
 /// <param name="sku">The public IP address SKU.</param>
 /// <param name="publicIPAllocationMethod">The public IP address
 /// allocation method. Possible values include: 'Static',
 /// 'Dynamic'</param>
 /// <param name="publicIPAddressVersion">The public IP address version.
 /// Possible values include: 'IPv4', 'IPv6'</param>
 /// <param name="ipConfiguration">The IP configuration associated with
 /// the public IP address.</param>
 /// <param name="dnsSettings">The FQDN of the DNS record associated
 /// with the public IP address.</param>
 /// <param name="ddosSettings">The DDoS protection custom policy
 /// associated with the public IP address.</param>
 /// <param name="ipTags">The list of tags associated with the public IP
 /// address.</param>
 /// <param name="ipAddress">The IP address associated with the public
 /// IP address resource.</param>
 /// <param name="publicIPPrefix">The Public IP Prefix this Public IP
 /// Address should be allocated from.</param>
 /// <param name="idleTimeoutInMinutes">The idle timeout of the public
 /// IP address.</param>
 /// <param name="resourceGuid">The resource GUID property of the public
 /// IP address resource.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// public IP address resource. Possible values include: 'Succeeded',
 /// 'Updating', 'Deleting', 'Failed'</param>
 /// <param name="servicePublicIPAddress">The service public IP address
 /// of the public IP address resource.</param>
 /// <param name="natGateway">The NatGateway for the Public IP
 /// address.</param>
 /// <param name="migrationPhase">Migration phase of Public IP Address.
 /// Possible values include: 'None', 'Prepare', 'Commit', 'Abort',
 /// 'Committed'</param>
 /// <param name="linkedPublicIPAddress">The linked public IP address of
 /// the public IP address resource.</param>
 /// <param name="deleteOption">Specify what happens to the public IP
 /// address when the VM using it is deleted. Possible values include:
 /// 'Delete', 'Detach'</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 PublicIPAddress(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), PublicIPAddressSku sku = default(PublicIPAddressSku), string publicIPAllocationMethod = default(string), string publicIPAddressVersion = default(string), IPConfiguration ipConfiguration = default(IPConfiguration), PublicIPAddressDnsSettings dnsSettings = default(PublicIPAddressDnsSettings), DdosSettings ddosSettings = default(DdosSettings), IList <IpTag> ipTags = default(IList <IpTag>), string ipAddress = default(string), SubResource publicIPPrefix = default(SubResource), int?idleTimeoutInMinutes = default(int?), string resourceGuid = default(string), string provisioningState = default(string), PublicIPAddress servicePublicIPAddress = default(PublicIPAddress), NatGateway natGateway = default(NatGateway), string migrationPhase = default(string), PublicIPAddress linkedPublicIPAddress = default(PublicIPAddress), string deleteOption = default(string), string etag = default(string), IList <string> zones = default(IList <string>))
     : base(id, name, type, location, tags)
 {
     ExtendedLocation = extendedLocation;
     Sku = sku;
     PublicIPAllocationMethod = publicIPAllocationMethod;
     PublicIPAddressVersion   = publicIPAddressVersion;
     IpConfiguration          = ipConfiguration;
     DnsSettings            = dnsSettings;
     DdosSettings           = ddosSettings;
     IpTags                 = ipTags;
     IpAddress              = ipAddress;
     PublicIPPrefix         = publicIPPrefix;
     IdleTimeoutInMinutes   = idleTimeoutInMinutes;
     ResourceGuid           = resourceGuid;
     ProvisioningState      = provisioningState;
     ServicePublicIPAddress = servicePublicIPAddress;
     NatGateway             = natGateway;
     MigrationPhase         = migrationPhase;
     LinkedPublicIPAddress  = linkedPublicIPAddress;
     DeleteOption           = deleteOption;
     Etag  = etag;
     Zones = zones;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the IPConfiguration class.
 /// </summary>
 public IPConfiguration(string name = default(string), string etag = default(string), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string))
 {
     Name                      = name;
     Etag                      = etag;
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     Subnet                    = subnet;
     PublicIPAddress           = publicIPAddress;
     ProvisioningState         = provisioningState;
 }
 /// <summary>
 /// Initializes a new instance of the PrivateLinkServiceIpConfiguration
 /// class.
 /// </summary>
 /// <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 of the subnet resource.</param>
 /// <param name="publicIPAddress">The reference of the public IP
 /// resource.</param>
 /// <param name="provisioningState">Gets the provisioning state of the
 /// public IP resource. Possible values are: 'Updating', 'Deleting',
 /// and 'Failed'.</param>
 /// <param name="privateIPAddressVersion">Available from Api-Version
 /// 2016-03-30 onwards, it represents whether the specific
 /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible
 /// values include: 'IPv4', 'IPv6'</param>
 /// <param name="name">The name of private link service ip
 /// configuration.</param>
 public PrivateLinkServiceIpConfiguration(string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string), string privateIPAddressVersion = default(string), string name = default(string))
 {
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     Subnet                  = subnet;
     PublicIPAddress         = publicIPAddress;
     ProvisioningState       = provisioningState;
     PrivateIPAddressVersion = privateIPAddressVersion;
     Name = name;
     CustomInit();
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the NetworkInterfaceIPConfiguration
 /// class.
 /// </summary>
 public NetworkInterfaceIPConfiguration(string name = default(string), string etag = default(string), IList <BackendAddressPool> loadBalancerBackendAddressPools = default(IList <BackendAddressPool>), IList <InboundNatRule> loadBalancerInboundNatRules = default(IList <InboundNatRule>), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string))
 {
     Name = name;
     Etag = etag;
     LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
     LoadBalancerInboundNatRules     = loadBalancerInboundNatRules;
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     Subnet            = subnet;
     PublicIPAddress   = publicIPAddress;
     ProvisioningState = provisioningState;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the HubIpConfiguration 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">Name of the Ip Configuration.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 /// <param name="type">Ipconfiguration type.</param>
 public HubIpConfiguration(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), 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 FrontendIPConfiguration class.
 /// </summary>
 public FrontendIPConfiguration(string name = default(string), string etag = default(string), IList <SubResource> inboundNatRules = default(IList <SubResource>), IList <SubResource> inboundNatPools = default(IList <SubResource>), IList <SubResource> outboundNatRules = default(IList <SubResource>), IList <SubResource> loadBalancingRules = default(IList <SubResource>), string privateIPAddress = default(string), string privateIPAllocationMethod = default(string), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), string provisioningState = default(string))
 {
     Name                      = name;
     Etag                      = etag;
     InboundNatRules           = inboundNatRules;
     InboundNatPools           = inboundNatPools;
     OutboundNatRules          = outboundNatRules;
     LoadBalancingRules        = loadBalancingRules;
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     Subnet                    = subnet;
     PublicIPAddress           = publicIPAddress;
     ProvisioningState         = provisioningState;
 }
Esempio n. 9
0
 /// <summary>
 /// Initializes a new instance of the NetworkInterfaceIPConfiguration
 /// class.
 /// </summary>
 public NetworkInterfaceIPConfiguration(string id = default(string), 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), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     ApplicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
     LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
     LoadBalancerInboundNatRules = loadBalancerInboundNatRules;
     PrivateIPAddress = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     PrivateIPAddressVersion = privateIPAddressVersion;
     Subnet = subnet;
     Primary = primary;
     PublicIPAddress = publicIPAddress;
     ProvisioningState = provisioningState;
     Name = name;
     Etag = etag;
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the FrontendIPConfiguration class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="inboundNatRules">Read only. Inbound rules URIs that
 /// use this frontend IP.</param>
 /// <param name="inboundNatPools">Read only. Inbound pools URIs that
 /// use this frontend IP.</param>
 /// <param name="outboundRules">Read only. Outbound rules URIs that use
 /// this frontend IP.</param>
 /// <param name="loadBalancingRules">Gets load balancing rules URIs
 /// 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="subnet">The reference of the subnet resource.</param>
 /// <param name="publicIPAddress">The reference of the Public IP
 /// resource.</param>
 /// <param name="publicIPPrefix">The reference of the Public IP Prefix
 /// resource.</param>
 /// <param name="provisioningState">Gets the provisioning state of the
 /// public IP 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>
 /// <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), Subnet subnet = default(Subnet), PublicIPAddress publicIPAddress = default(PublicIPAddress), SubResource publicIPPrefix = default(SubResource), string provisioningState = default(string), string name = default(string), string etag = default(string), IList <string> zones = default(IList <string>))
     : base(id)
 {
     InboundNatRules           = inboundNatRules;
     InboundNatPools           = inboundNatPools;
     OutboundRules             = outboundRules;
     LoadBalancingRules        = loadBalancingRules;
     PrivateIPAddress          = privateIPAddress;
     PrivateIPAllocationMethod = privateIPAllocationMethod;
     Subnet            = subnet;
     PublicIPAddress   = publicIPAddress;
     PublicIPPrefix    = publicIPPrefix;
     ProvisioningState = provisioningState;
     Name  = name;
     Etag  = etag;
     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
 /// of ApplicationGatewayBackendAddressPool resource.</param>
 /// <param name="loadBalancerBackendAddressPools">The reference of
 /// 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();
 }