Skip to content

Commit

Permalink
Adding public initilization
Browse files Browse the repository at this point in the history
  • Loading branch information
RockfordWei committed Aug 1, 2017
1 parent 3b8c520 commit d10e8c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
/Buil*
/.buil*
/Packages
/*.xcodeproj
Expand Down
5 changes: 5 additions & 0 deletions Sources/Aliyun.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public class AcsCredential: PerfectLib.JSONConvertible, CustomStringConvertible,
public var id = ""
public var key = ""
public var secret = ""
public init() { }
public static func ==(lhs: AcsCredential, rhs: AcsCredential) -> Bool {
return lhs.id == rhs.id && lhs.key == rhs.key && lhs.secret == rhs.secret
}
Expand Down Expand Up @@ -129,6 +130,7 @@ public class AcsKeyPair: PerfectLib.JSONConvertible, CustomStringConvertible, Eq
public var name = ""
public var fingerPrint = ""
public var key = ""
public init() { }

public static func == (lhs: AcsKeyPair, rhs: AcsKeyPair) -> Bool {
return lhs.name == rhs.name && lhs.fingerPrint == rhs.fingerPrint && lhs.key == rhs.key
Expand Down Expand Up @@ -161,6 +163,7 @@ public class SecurityGroup: PerfectLib.JSONConvertible, CustomStringConvertible,
public var remark = ""
public var availableInstanceAmount = 0
public var vpcId = ""
public init() { }
public static func == (lhs: SecurityGroup, rhs: SecurityGroup) -> Bool {
return lhs.id == rhs.id
}
Expand Down Expand Up @@ -198,6 +201,7 @@ public class InstanceType: PerfectLib.JSONConvertible, CustomStringConvertible,
public var cpu = 0
public var memory = 0
public var typeFamily = ""
public init() { }

public static func == (lhs: InstanceType, rhs: InstanceType) -> Bool {
return lhs.id == rhs.id
Expand Down Expand Up @@ -264,6 +268,7 @@ public class Instance: PerfectLib.JSONConvertible, CustomStringConvertible, Equa
public var ioOptimized = false
public var expiration = ""
public var keyPairName = ""
public init() { }

static public func == (l:Instance, r: Instance) -> Bool {
return l.id == r.id
Expand Down

0 comments on commit d10e8c5

Please sign in to comment.