POST | /optimizer/project-info |
---|
import Foundation
import ServiceStack
public class CommonOptimizerProjectInfoRequest : CommonOptimizerPortalRequestBase
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class CommonOptimizerPortalRequestBase : Codable
{
public var projectId:String
public var isBatchSimulation:Bool
public var force:Bool
public var disableEBSSpot:Bool
public var isServerless:Bool
public var apiActionId:String
public var nodeId:Int
public var parallelProject:Int
public var parallelYears:Int
public var ensureExlusive:Int
required public init(){}
}
Swift CommonOptimizerProjectInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /optimizer/project-info HTTP/1.1
Host: dev-optimization.power.dev
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
projectId: 00000000000000000000000000000000,
isBatchSimulation: False,
force: False,
disableEBSSpot: False,
isServerless: False,
apiActionId: 00000000000000000000000000000000,
nodeId: 0,
parallelProject: 0,
parallelYears: 0,
ensureExlusive: 0
}