Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/StorageServiceProperties.cs @ 7546

Last change on this file since 7546 was 7546, checked in by spimming, 12 years ago

#1680: model classes for storage service operations added

File size: 1.6 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3
4namespace HeuristicLab.Clients.Hive.CloudManager.Model {
5  public class StorageServiceProperties : Item {
6    public string Description { get; set; }
7    public string AffinityGroup { get; set; }
8    public string Location { get; set; }
9    public string Label { get; set; }
10
11    public StorageServiceProperties() {
12
13    }
14
15    public StorageServiceProperties(StorageServiceProperties original, Cloner cloner) {
16      this.Description = original.Description;
17      this.AffinityGroup = original.AffinityGroup;
18      this.Location = original.Location;
19      this.Label = original.Label;
20    }
21
22    public override string ToString() {
23      return string.Format("StorageServiceProperties: Desc={0}, AffinityGroup={1}, Location={0}, Label={1}", Description, AffinityGroup, Location, Label);
24    }
25
26    public override IDeepCloneable Clone(Cloner cloner) {
27      return new StorageServiceProperties(this, cloner);
28    }
29  }
30
31  public class StorageServiceKeys : Item {
32    public string Primary { get; set; }
33    public string Secondary { get; set; }
34
35    public StorageServiceKeys() {
36
37    }
38
39    public StorageServiceKeys(StorageServiceKeys original, Cloner cloner) {
40      this.Primary = original.Primary;
41      this.Secondary = original.Secondary;
42    }
43
44    public override string ToString() {
45      return string.Format("StorageServiceKeys: Primary={0}, Secondary={1}", Primary, Secondary);
46    }
47
48    public override IDeepCloneable Clone(Cloner cloner) {
49      return new StorageServiceKeys(this, cloner);
50    }
51  }
52}
Note: See TracBrowser for help on using the repository browser.