Class: Infrawrench::CostScenariosGetNamespace
- Inherits:
-
Object
- Object
- Infrawrench::CostScenariosGetNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.cost_scenarios.get
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List scenario models.
-
#get_org_org_id_cost_scenarios_id(id:, org_id: nil, request_options: nil) ⇒ Hash
Get a scenario model.
-
#initialize(transport) ⇒ CostScenariosGetNamespace
constructor
private
A new instance of CostScenariosGetNamespace.
Constructor Details
#initialize(transport) ⇒ CostScenariosGetNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CostScenariosGetNamespace.
4656 4657 4658 |
# File 'lib/infrawrench/client.rb', line 4656 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List scenario models
Named, reusable sets of adjustments an organization overlays on a cost
forecast — the known future cost a trend fit cannot see. Pass an id as
POST /costs/query's scenarioModelId (alongside forecast: true) to
get the adjusted projection back beside the unadjusted one, never
instead of it.
Requires permission: costs:read.
GET /api/org/orgId/cost-scenarios
4677 4678 4679 4680 4681 4682 4683 4684 |
# File 'lib/infrawrench/client.rb', line 4677 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/cost-scenarios", path_params: { "orgId" => org_id }, request_options: ) end |
#get_org_org_id_cost_scenarios_id(id:, org_id: nil, request_options: nil) ⇒ Hash
Get a scenario model
Requires permission: costs:read.
GET /api/org/orgId/cost-scenarios/id
Raises on 404: Not found
4700 4701 4702 4703 4704 4705 4706 4707 |
# File 'lib/infrawrench/client.rb', line 4700 def get_org_org_id_cost_scenarios_id(id:, org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/cost-scenarios/{id}", path_params: { "orgId" => org_id, "id" => id }, request_options: ) end |