Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            NamespaceSku rhs = (NamespaceSku)obj;

            if (!(obj is NamespaceSku))
            {
                return(false);
            }
            else if (ReferenceEquals(obj, this))
            {
                return(true);
            }
            else if (this.sku == null)
            {
                return(rhs.sku == null);
            }
            else
            {
                if (rhs.sku.Name != null && !rhs.sku.Name.Equals(this.sku.Name))
                {
                    return(false);
                }

                if (rhs.sku.Tier != null && !rhs.sku.Tier.Equals(this.sku.Tier))
                {
                    return(false);
                }

                if (rhs.sku.Capacity != this.sku.Capacity)
                {
                    return(false);
                }
                return(true);
            }
        }
Exemplo n.º 2
0
        public bool Equals(NamespaceSku value)
        {
            if (value == null)
            {
                return(null == this.sku);
            }
            else
            {
                if (value.Name != null && !value.Name.Equals(this.sku.Name))
                {
                    return(false);
                }

                if (value.Tier != null && !value.Tier.Equals(this.sku.Tier))
                {
                    return(false);
                }

                if (value.Capacity != this.sku.Capacity)
                {
                    return(false);
                }
                return(true);
            }
        }
Exemplo n.º 3
0
 ///GENMHASH:ED658C324B78DF3F287B5EF364C1FB7E:E3B8199E67E4B270AA8358E7C5767AA5
 public ServiceBusNamespaceImpl WithSku(NamespaceSku namespaceSku)
 {
     this.Inner.Sku = new Sku
     {
         Name     = namespaceSku.Name.ToString(),
         Tier     = namespaceSku.Tier.ToString(),
         Capacity = namespaceSku.Capacity
     };
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Specifies the namespace sku.
 /// </summary>
 /// <param name="namespaceSku">The sku.</param>
 /// <return>Next stage of the Service Bus namespace definition.</return>
 Microsoft.Azure.Management.ServiceBus.Fluent.ServiceBusNamespace.Definition.IWithCreate Microsoft.Azure.Management.ServiceBus.Fluent.ServiceBusNamespace.Definition.IWithSku.WithSku(NamespaceSku namespaceSku)
 {
     return(this.WithSku(namespaceSku));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Specifies the namespace sku.
 /// </summary>
 /// <param name="namespaceSku">The sku.</param>
 /// <return>Next stage of the Service Bus namespace update.</return>
 Microsoft.Azure.Management.ServiceBus.Fluent.ServiceBusNamespace.Update.IUpdate Microsoft.Azure.Management.ServiceBus.Fluent.ServiceBusNamespace.Update.IWithSku.WithSku(NamespaceSku namespaceSku)
 {
     return(this.WithSku(namespaceSku));
 }