/// <summary>
        /// Returns true if objects are equal
        /// </summary>
        public bool Equals(FlavorExtraSpec input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.Ecsperformancetype == input.Ecsperformancetype ||
                     (this.Ecsperformancetype != null &&
                      this.Ecsperformancetype.Equals(input.Ecsperformancetype))
                     ) &&
                 (
                     this.ResourceType == input.ResourceType ||
                     (this.ResourceType != null &&
                      this.ResourceType.Equals(input.ResourceType))
                 ) &&
                 (
                     this.QuotalocalDisk == input.QuotalocalDisk ||
                     (this.QuotalocalDisk != null &&
                      this.QuotalocalDisk.Equals(input.QuotalocalDisk))
                 ) &&
                 (
                     this.QuotanvmeSsd == input.QuotanvmeSsd ||
                     (this.QuotanvmeSsd != null &&
                      this.QuotanvmeSsd.Equals(input.QuotanvmeSsd))
                 ) &&
                 (
                     this.Ecsgeneration == input.Ecsgeneration ||
                     (this.Ecsgeneration != null &&
                      this.Ecsgeneration.Equals(input.Ecsgeneration))
                 ) &&
                 (
                     this.EcsvirtualizationEnvTypes == input.EcsvirtualizationEnvTypes ||
                     (this.EcsvirtualizationEnvTypes != null &&
                      this.EcsvirtualizationEnvTypes.Equals(input.EcsvirtualizationEnvTypes))
                 ) &&
                 (
                     this.PciPassthroughenableGpu == input.PciPassthroughenableGpu ||
                     (this.PciPassthroughenableGpu != null &&
                      this.PciPassthroughenableGpu.Equals(input.PciPassthroughenableGpu))
                 ) &&
                 (
                     this.PciPassthroughgpuSpecs == input.PciPassthroughgpuSpecs ||
                     (this.PciPassthroughgpuSpecs != null &&
                      this.PciPassthroughgpuSpecs.Equals(input.PciPassthroughgpuSpecs))
                 ) &&
                 (
                     this.PciPassthroughalias == input.PciPassthroughalias ||
                     (this.PciPassthroughalias != null &&
                      this.PciPassthroughalias.Equals(input.PciPassthroughalias))
                 ) &&
                 (
                     this.Condoperationstatus == input.Condoperationstatus ||
                     (this.Condoperationstatus != null &&
                      this.Condoperationstatus.Equals(input.Condoperationstatus))
                 ) &&
                 (
                     this.Condoperationaz == input.Condoperationaz ||
                     (this.Condoperationaz != null &&
                      this.Condoperationaz.Equals(input.Condoperationaz))
                 ) &&
                 (
                     this.QuotamaxRate == input.QuotamaxRate ||
                     (this.QuotamaxRate != null &&
                      this.QuotamaxRate.Equals(input.QuotamaxRate))
                 ) &&
                 (
                     this.QuotaminRate == input.QuotaminRate ||
                     (this.QuotaminRate != null &&
                      this.QuotaminRate.Equals(input.QuotaminRate))
                 ) &&
                 (
                     this.QuotamaxPps == input.QuotamaxPps ||
                     (this.QuotamaxPps != null &&
                      this.QuotamaxPps.Equals(input.QuotamaxPps))
                 ) &&
                 (
                     this.Condoperationcharge == input.Condoperationcharge ||
                     (this.Condoperationcharge != null &&
                      this.Condoperationcharge.Equals(input.Condoperationcharge))
                 ));
        }
Пример #2
0
        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        public bool Equals(FlavorExtraSpec input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     this.Ecsperformancetype == input.Ecsperformancetype ||
                     (this.Ecsperformancetype != null &&
                      this.Ecsperformancetype.Equals(input.Ecsperformancetype))
                     ) &&
                 (
                     this.HwnumaNodes == input.HwnumaNodes ||
                     (this.HwnumaNodes != null &&
                      this.HwnumaNodes.Equals(input.HwnumaNodes))
                 ) &&
                 (
                     this.ResourceType == input.ResourceType ||
                     (this.ResourceType != null &&
                      this.ResourceType.Equals(input.ResourceType))
                 ) &&
                 (
                     this.HpetSupport == input.HpetSupport ||
                     (this.HpetSupport != null &&
                      this.HpetSupport.Equals(input.HpetSupport))
                 ) &&
                 (
                     this.InstanceVnictype == input.InstanceVnictype ||
                     (this.InstanceVnictype != null &&
                      this.InstanceVnictype.Equals(input.InstanceVnictype))
                 ) &&
                 (
                     this.InstanceVnicinstanceBandwidth == input.InstanceVnicinstanceBandwidth ||
                     (this.InstanceVnicinstanceBandwidth != null &&
                      this.InstanceVnicinstanceBandwidth.Equals(input.InstanceVnicinstanceBandwidth))
                 ) &&
                 (
                     this.InstanceVnicmaxCount == input.InstanceVnicmaxCount ||
                     (this.InstanceVnicmaxCount != null &&
                      this.InstanceVnicmaxCount.Equals(input.InstanceVnicmaxCount))
                 ) &&
                 (
                     this.QuotalocalDisk == input.QuotalocalDisk ||
                     (this.QuotalocalDisk != null &&
                      this.QuotalocalDisk.Equals(input.QuotalocalDisk))
                 ) &&
                 (
                     this.QuotanvmeSsd == input.QuotanvmeSsd ||
                     (this.QuotanvmeSsd != null &&
                      this.QuotanvmeSsd.Equals(input.QuotanvmeSsd))
                 ) &&
                 (
                     this.ExtraSpeciopersistentGrant == input.ExtraSpeciopersistentGrant ||
                     (this.ExtraSpeciopersistentGrant != null &&
                      this.ExtraSpeciopersistentGrant.Equals(input.ExtraSpeciopersistentGrant))
                 ) &&
                 (
                     this.Ecsgeneration == input.Ecsgeneration ||
                     (this.Ecsgeneration != null &&
                      this.Ecsgeneration.Equals(input.Ecsgeneration))
                 ) &&
                 (
                     this.EcsvirtualizationEnvTypes == input.EcsvirtualizationEnvTypes ||
                     (this.EcsvirtualizationEnvTypes != null &&
                      this.EcsvirtualizationEnvTypes.Equals(input.EcsvirtualizationEnvTypes))
                 ) &&
                 (
                     this.PciPassthroughenableGpu == input.PciPassthroughenableGpu ||
                     (this.PciPassthroughenableGpu != null &&
                      this.PciPassthroughenableGpu.Equals(input.PciPassthroughenableGpu))
                 ) &&
                 (
                     this.PciPassthroughgpuSpecs == input.PciPassthroughgpuSpecs ||
                     (this.PciPassthroughgpuSpecs != null &&
                      this.PciPassthroughgpuSpecs.Equals(input.PciPassthroughgpuSpecs))
                 ) &&
                 (
                     this.PciPassthroughalias == input.PciPassthroughalias ||
                     (this.PciPassthroughalias != null &&
                      this.PciPassthroughalias.Equals(input.PciPassthroughalias))
                 ) &&
                 (
                     this.Condoperationstatus == input.Condoperationstatus ||
                     (this.Condoperationstatus != null &&
                      this.Condoperationstatus.Equals(input.Condoperationstatus))
                 ) &&
                 (
                     this.Condoperationaz == input.Condoperationaz ||
                     (this.Condoperationaz != null &&
                      this.Condoperationaz.Equals(input.Condoperationaz))
                 ) &&
                 (
                     this.QuotamaxRate == input.QuotamaxRate ||
                     (this.QuotamaxRate != null &&
                      this.QuotamaxRate.Equals(input.QuotamaxRate))
                 ) &&
                 (
                     this.QuotaminRate == input.QuotaminRate ||
                     (this.QuotaminRate != null &&
                      this.QuotaminRate.Equals(input.QuotaminRate))
                 ) &&
                 (
                     this.QuotamaxPps == input.QuotamaxPps ||
                     (this.QuotamaxPps != null &&
                      this.QuotamaxPps.Equals(input.QuotamaxPps))
                 ) &&
                 (
                     this.Condoperationcharge == input.Condoperationcharge ||
                     (this.Condoperationcharge != null &&
                      this.Condoperationcharge.Equals(input.Condoperationcharge))
                 ) &&
                 (
                     this.Condoperationchargestop == input.Condoperationchargestop ||
                     (this.Condoperationchargestop != null &&
                      this.Condoperationchargestop.Equals(input.Condoperationchargestop))
                 ) &&
                 (
                     this.Condspotoperationaz == input.Condspotoperationaz ||
                     (this.Condspotoperationaz != null &&
                      this.Condspotoperationaz.Equals(input.Condspotoperationaz))
                 ) &&
                 (
                     this.Condoperationroles == input.Condoperationroles ||
                     (this.Condoperationroles != null &&
                      this.Condoperationroles.Equals(input.Condoperationroles))
                 ) &&
                 (
                     this.Condspotoperationstatus == input.Condspotoperationstatus ||
                     (this.Condspotoperationstatus != null &&
                      this.Condspotoperationstatus.Equals(input.Condspotoperationstatus))
                 ) &&
                 (
                     this.Condnetwork == input.Condnetwork ||
                     (this.Condnetwork != null &&
                      this.Condnetwork.Equals(input.Condnetwork))
                 ) &&
                 (
                     this.Condstorage == input.Condstorage ||
                     (this.Condstorage != null &&
                      this.Condstorage.Equals(input.Condstorage))
                 ) &&
                 (
                     this.CondcomputeliveResizable == input.CondcomputeliveResizable ||
                     (this.CondcomputeliveResizable != null &&
                      this.CondcomputeliveResizable.Equals(input.CondcomputeliveResizable))
                 ) &&
                 (
                     this.Condcompute == input.Condcompute ||
                     (this.Condcompute != null &&
                      this.Condcompute.Equals(input.Condcompute))
                 ) &&
                 (
                     this.Infogpuname == input.Infogpuname ||
                     (this.Infogpuname != null &&
                      this.Infogpuname.Equals(input.Infogpuname))
                 ) &&
                 (
                     this.Infocpuname == input.Infocpuname ||
                     (this.Infocpuname != null &&
                      this.Infocpuname.Equals(input.Infocpuname))
                 ) &&
                 (
                     this.Quotagpu == input.Quotagpu ||
                     (this.Quotagpu != null &&
                      this.Quotagpu.Equals(input.Quotagpu))
                 ));
        }