///GENMHASH:F792F6C8C594AA68FA7A0FCA92F55B55:C92566E1FEC54840C1B1CFEBC8066D9A
 public PublicIPSkuType Sku()
 {
     if (this.Inner.Sku == null || this.Inner.Sku.Name == null)
     {
         return(null);
     }
     return(PublicIPSkuType.Parse(this.Inner.Sku.Name));
 }
Пример #2
0
        protected override ICreatable <IPublicIPAddress> ToCreatableIntern(IAzure azure)
        {
            var withRegion = azure.PublicIPAddresses.Define(DeriveName("pip"));
            var withGroup  = withRegion.WithRegion(this.Region);
            var withCreate = SetResourceGroupAndTags(withGroup);

            if (this.LeafDomainLabel != null)
            {
                withCreate.WithLeafDomainLabel(this.LeafDomainLabel);
            }
            if (this.EnableStaticIpAddress != null && this.EnableStaticIpAddress.Value)
            {
                withCreate.WithStaticIP();
            }
            if (this.ReverseFqdn != null)
            {
                withCreate.WithReverseFqdn(this.ReverseFqdn);
            }
            if (this.IdleTimeoutInMinutes != null)
            {
                withCreate.WithIdleTimeoutInMinutes(this.IdleTimeoutInMinutes.Value);
            }
            if (this.Sku != null)
            {
                withCreate.WithSku(PublicIPSkuType.Parse(this.Sku));
            }
            if (this.AvailabiltiyZones != null)
            {
                foreach (var zone in this.AvailabiltiyZones)
                {
                    withCreate.WithAvailabilityZone(AvailabilityZoneId.Parse(zone));
                }
            }
            SetTags(withCreate);
            return(withCreate);
        }