Пример #1
0
 public UpdateServiceMeta(string description  = "", string role           = null, LogConfig logConfig = null,
                          bool internetAccess = true, VpcConfig vpcConfig = null, NasConfig nasConfig = null)
 {
     this.Description    = description;
     this.Role           = role;
     this.LogConfig      = logConfig;
     this.VpcConfig      = vpcConfig;
     this.NasConfig      = nasConfig;
     this.InternetAccess = internetAccess;
 }
Пример #2
0
 public override bool Equals(object obj)
 {
     //Check for null and compare run-time types.
     if ((obj == null) || !this.GetType().Equals(obj.GetType()))
     {
         return(false);
     }
     else
     {
         NasConfig p = (NasConfig)obj;
         return((UserId == p.UserId) && (GroupId == p.GroupId) &&
                (Enumerable.SequenceEqual(MountPoints, p.MountPoints)));
     }
 }
Пример #3
0
 public CreateServiceMeta(string serviceName, string description = "", string role = null, LogConfig logConfig = null,
                          bool internetAccess = true, VpcConfig vpcConfig          = null, NasConfig nasConfig = null)
     : base(description, role, logConfig, internetAccess, vpcConfig, nasConfig)
 {
     this.ServiceName = serviceName;
 }