コード例 #1
0
        /// <summary>
        /// Returns true if GenericResources instances are equal
        /// </summary>
        /// <param name="input">Instance of GenericResources to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(GenericResources input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Task" /> class.
 /// </summary>
 /// <param name="iD">The ID of the task..</param>
 /// <param name="version">version.</param>
 /// <param name="createdAt">createdAt.</param>
 /// <param name="updatedAt">updatedAt.</param>
 /// <param name="name">Name of the task..</param>
 /// <param name="labels">User-defined key/value metadata..</param>
 /// <param name="spec">spec.</param>
 /// <param name="serviceID">The ID of the service this task is part of..</param>
 /// <param name="slot">slot.</param>
 /// <param name="nodeID">The ID of the node that this task is on..</param>
 /// <param name="assignedGenericResources">assignedGenericResources.</param>
 /// <param name="status">status.</param>
 /// <param name="desiredState">desiredState.</param>
 public Task(string iD = default(string), ObjectVersion version = default(ObjectVersion), string createdAt = default(string), string updatedAt = default(string), string name = default(string), Dictionary <string, string> labels = default(Dictionary <string, string>), TaskSpec spec = default(TaskSpec), string serviceID = default(string), int?slot = default(int?), string nodeID = default(string), GenericResources assignedGenericResources = default(GenericResources), TaskStatus status = default(TaskStatus), TaskState?desiredState = default(TaskState?))
 {
     this.ID        = iD;
     this.Version   = version;
     this.CreatedAt = createdAt;
     this.UpdatedAt = updatedAt;
     this.Name      = name;
     this.Labels    = labels;
     this.Spec      = spec;
     this.ServiceID = serviceID;
     this.Slot      = slot;
     this.NodeID    = nodeID;
     this.AssignedGenericResources = assignedGenericResources;
     this.Status       = status;
     this.DesiredState = desiredState;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceObject" /> class.
 /// </summary>
 /// <param name="nanoCPUs">nanoCPUs.</param>
 /// <param name="memoryBytes">memoryBytes.</param>
 /// <param name="genericResources">genericResources.</param>
 public ResourceObject(long?nanoCPUs = default(long?), long?memoryBytes = default(long?), GenericResources genericResources = default(GenericResources))
 {
     this.NanoCPUs         = nanoCPUs;
     this.MemoryBytes      = memoryBytes;
     this.GenericResources = genericResources;
 }