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.
4911 4912 4913 |
# File 'lib/infrawrench/client.rb', line 4911 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
4932 4933 4934 4935 4936 4937 4938 4939 |
# File 'lib/infrawrench/client.rb', line 4932 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
4955 4956 4957 4958 4959 4960 4961 4962 |
# File 'lib/infrawrench/client.rb', line 4955 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 |