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.
4602 4603 4604 |
# File 'lib/infrawrench/client.rb', line 4602 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
4623 4624 4625 4626 4627 4628 4629 4630 |
# File 'lib/infrawrench/client.rb', line 4623 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
4646 4647 4648 4649 4650 4651 4652 4653 |
# File 'lib/infrawrench/client.rb', line 4646 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 |