Esempio n. 1
0
        public override int GetHashCode()
        {
            int hashCode = -1765897747;

            if (CatalogObjectIds != null)
            {
                hashCode += CatalogObjectIds.GetHashCode();
            }

            if (LocationIds != null)
            {
                hashCode += LocationIds.GetHashCode();
            }

            if (UpdatedAfter != null)
            {
                hashCode += UpdatedAfter.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            if (States != null)
            {
                hashCode += States.GetHashCode();
            }

            return(hashCode);
        }
Esempio n. 2
0
        /// <summary />
        protected override IDictionary <string, object> BuildQueryString()
        {
            var queryString = base.BuildQueryString();

            queryString["changes-since"] = UpdatedAfter?.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ");
            queryString["image"]         = ImageId;
            queryString["flavor"]        = FlavorId;
            queryString["name"]          = Name;
            queryString["status"]        = Status;
            queryString["metadata"]      = Metadata;

            return(queryString);
        }
        /// <summary />
        protected override IDictionary <string, object> BuildQueryString()
        {
            var queryString = base.BuildQueryString();

            queryString["changes-since"] = UpdatedAfter?.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ");
            queryString["server"]        = ServerId;
            queryString["name"]          = Name;
            queryString["minDisk"]       = MininumDiskSize;
            queryString["minRam"]        = MininumMemorySize;
            queryString["type"]          = Type;

            return(queryString);
        }
Esempio n. 4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is BatchRetrieveInventoryCountsRequest other &&
                   ((CatalogObjectIds == null && other.CatalogObjectIds == null) || (CatalogObjectIds?.Equals(other.CatalogObjectIds) == true)) &&
                   ((LocationIds == null && other.LocationIds == null) || (LocationIds?.Equals(other.LocationIds) == true)) &&
                   ((UpdatedAfter == null && other.UpdatedAfter == null) || (UpdatedAfter?.Equals(other.UpdatedAfter) == true)) &&
                   ((Cursor == null && other.Cursor == null) || (Cursor?.Equals(other.Cursor) == true)) &&
                   ((States == null && other.States == null) || (States?.Equals(other.States) == true)));
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hashCode = 870378021;

            if (CatalogObjectIds != null)
            {
                hashCode += CatalogObjectIds.GetHashCode();
            }

            if (LocationIds != null)
            {
                hashCode += LocationIds.GetHashCode();
            }

            if (Types != null)
            {
                hashCode += Types.GetHashCode();
            }

            if (States != null)
            {
                hashCode += States.GetHashCode();
            }

            if (UpdatedAfter != null)
            {
                hashCode += UpdatedAfter.GetHashCode();
            }

            if (UpdatedBefore != null)
            {
                hashCode += UpdatedBefore.GetHashCode();
            }

            if (Cursor != null)
            {
                hashCode += Cursor.GetHashCode();
            }

            return(hashCode);
        }