Power.Dev Optimization Services

<back to all web services

CommonOptimizerProjectInfoRequest

The following routes are available for this service:
POST/optimizer/project-info
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CommonOptimizerPortalRequestBase:
    project_id: Optional[str] = None
    is_batch_simulation: bool = False
    force: bool = False
    disable_e_b_s_spot: bool = False
    is_serverless: bool = False
    api_action_id: Optional[str] = None
    node_id: int = 0
    parallel_project: int = 0
    parallel_years: int = 0
    ensure_exlusive: int = 0


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CommonOptimizerProjectInfoRequest(CommonOptimizerPortalRequestBase):
    pass

Python CommonOptimizerProjectInfoRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"projectId":"00000000000000000000000000000000","isBatchSimulation":false,"force":false,"disableEBSSpot":false,"isServerless":false,"apiActionId":"00000000000000000000000000000000","nodeId":0,"parallelProject":0,"parallelYears":0,"ensureExlusive":0}