infrawrench-sdk 1.57.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/infrawrench-sdk.gemspec +4 -4
- data/lib/infrawrench/client.rb +13 -6
- data/lib/infrawrench/sdk.rb +2 -2
- data/lib/infrawrench/transport.rb +2 -2
- data/lib/infrawrench/version.rb +3 -3
- data/lib/infrawrench-sdk.rb +2 -2
- data/sig/infrawrench/sdk.rbs +50 -11
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f2aaa8ec40402e14481ecf164ad3b726f3272d70147edee5fe7424c3b24f81d
|
|
4
|
+
data.tar.gz: ac8b606bbc89540e3623a46218b64bb14f84175c962321b7ec2e969d4064d500
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b792405dc4c76badabd8fd21e04286271332bcb222a0e38656c9324bd05f869ceadf61581650f8a5b3312ab5f61c63a81787716a21aee46d3110c3ca92d9a71f
|
|
7
|
+
data.tar.gz: ee1738f77ca46c0e5fee8a98064a845dbe19949b22e22b5b4f986bdf8e3fde3c4ace6bee5919d2278d04b1cb53f87b5155097f6649fa6d3af1acd094da4137f4
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# infrawrench-sdk
|
|
2
2
|
|
|
3
|
-
Generated Ruby client for the Infrawrench API (API version `1.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `1.58.0`).
|
|
4
4
|
|
|
5
5
|
**Do not edit this gem by hand** — it is regenerated from `openapi.json` and is
|
|
6
6
|
not checked into the repository. Run
|
|
@@ -41,7 +41,7 @@ Every method takes an optional trailing `request_options:` hash (`:headers`,
|
|
|
41
41
|
Responses are the plain `Hash`/`Array` that `JSON.parse` returns, with String
|
|
42
42
|
keys spelled exactly as the wire spells them. There are no model classes — see
|
|
43
43
|
[`sig/infrawrench/sdk.rbs`](./sig/infrawrench/sdk.rbs) for the shape of every one of the
|
|
44
|
-
|
|
44
|
+
841 schemas, as RBS type aliases that steep and TypeProf can read.
|
|
45
45
|
|
|
46
46
|
Non-2xx responses raise `Infrawrench::ApiError`, which carries `#status`,
|
|
47
47
|
the parsed `#body`, and the machine-readable `#code` when the API sends one —
|
data/infrawrench-sdk.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -17,8 +17,8 @@ require_relative "lib/infrawrench/version"
|
|
|
17
17
|
Gem::Specification.new do |spec|
|
|
18
18
|
spec.name = "infrawrench-sdk"
|
|
19
19
|
spec.version = Infrawrench::VERSION
|
|
20
|
-
spec.summary = "Generated Ruby client for the Infrawrench API (v1.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v1.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v1.58.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.58.0). Covers the published API surface only — operations marked x-internal in the spec are not generated. No runtime dependencies."
|
|
22
22
|
spec.authors = ["Infrawrench LLC", "Astrid Gealer"]
|
|
23
23
|
spec.email = ["astrid@infrawrench.com"]
|
|
24
24
|
spec.homepage = "https://infrawrench.com/docs/team-and-billing/client-sdks"
|
data/lib/infrawrench/client.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -6287,9 +6287,12 @@ module Infrawrench
|
|
|
6287
6287
|
# Run a cost report
|
|
6288
6288
|
#
|
|
6289
6289
|
# Executes the report's saved config and returns the series, along with the
|
|
6290
|
-
# inclusive window a relative preset resolved to.
|
|
6291
|
-
# *is* the query, so a caller never has to reassemble its config to
|
|
6292
|
-
# numbers.
|
|
6290
|
+
# inclusive window a relative preset resolved to. The body is optional: the
|
|
6291
|
+
# report *is* the query, so a caller never has to reassemble its config to
|
|
6292
|
+
# get the numbers. It may carry one-off display overrides (`measure`,
|
|
6293
|
+
# `usageUnit`, `binning`, `cumulative`) that apply to this run only and are
|
|
6294
|
+
# never saved; switching a run to `usage` or `count` drops the saved
|
|
6295
|
+
# forecast, scenario and billing rules, which only apply to money.
|
|
6293
6296
|
#
|
|
6294
6297
|
# _Requires permission: `costs:read`._
|
|
6295
6298
|
#
|
|
@@ -6302,15 +6305,17 @@ module Infrawrench
|
|
|
6302
6305
|
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6303
6306
|
# constructed with.
|
|
6304
6307
|
# @param id [String]
|
|
6308
|
+
# @param body [Hash, nil] Request body, shaped as `CostReportRunOverrides`.
|
|
6305
6309
|
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6306
6310
|
# @return [Hash] Parsed JSON, shaped as `CostReportRunResult` — see
|
|
6307
6311
|
# `sig/infrawrench/sdk.rbs`.
|
|
6308
6312
|
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6309
|
-
def run(id:, org_id: nil, request_options: nil)
|
|
6313
|
+
def run(id:, org_id: nil, body: nil, request_options: nil)
|
|
6310
6314
|
@transport.request(
|
|
6311
6315
|
http_method: "POST",
|
|
6312
6316
|
path: "/api/org/{orgId}/cost-reports/{id}/run",
|
|
6313
6317
|
path_params: { "orgId" => org_id, "id" => id },
|
|
6318
|
+
body: body,
|
|
6314
6319
|
request_options: request_options
|
|
6315
6320
|
)
|
|
6316
6321
|
end
|
|
@@ -6884,6 +6889,8 @@ module Infrawrench
|
|
|
6884
6889
|
# usage budget's unit); dimension=tag requires tagKey. `charge_type` answers
|
|
6885
6890
|
# from the fixed set of charge types rather than from the stored data, so
|
|
6886
6891
|
# the picker is populated before any provider has reported one.
|
|
6892
|
+
# `usage-units` lists the usage units present in the cost data, most common
|
|
6893
|
+
# first, for the `usage` measure's unit picker.
|
|
6887
6894
|
#
|
|
6888
6895
|
# _Requires permission: `costs:read`._
|
|
6889
6896
|
#
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/lib/infrawrench/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
# Kept in its own file so the gemspec can read the version without loading the
|
|
16
16
|
# client — a gemspec that pulls in net/http is a gemspec that can fail to parse.
|
|
17
17
|
module Infrawrench
|
|
18
|
-
VERSION = "1.
|
|
18
|
+
VERSION = "1.58.0"
|
|
19
19
|
end
|
data/lib/infrawrench-sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v1.
|
|
3
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
4
4
|
# https://github.com/Infrawrench/Infrawrench
|
|
5
5
|
#
|
|
6
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
data/sig/infrawrench/sdk.rbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# infrawrench-sdk v1.
|
|
1
|
+
# infrawrench-sdk v1.58.0 | MIT | Copyright (c) 2026 Infrawrench LLC
|
|
2
2
|
# https://github.com/Infrawrench/Infrawrench
|
|
3
3
|
#
|
|
4
|
-
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.58.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1811,6 +1811,7 @@ module Infrawrench
|
|
|
1811
1811
|
"chargeTypes" => bool,
|
|
1812
1812
|
"amortization" => bool,
|
|
1813
1813
|
"estimated" => bool,
|
|
1814
|
+
"granularity" => "daily" | "hourly",
|
|
1814
1815
|
"costLastPolledAt" => String | nil,
|
|
1815
1816
|
"costBackfilledAt" => String | nil,
|
|
1816
1817
|
"costPollFailureCount" => Integer,
|
|
@@ -1987,6 +1988,16 @@ module Infrawrench
|
|
|
1987
1988
|
# Spec schema: `CostBasis`.
|
|
1988
1989
|
type cost_basis = "cash" | "amortized"
|
|
1989
1990
|
|
|
1991
|
+
# Time bucket of the x axis. Weeks start on Monday and quarters on the first
|
|
1992
|
+
# of January, April, July and October (UTC). `cumulative` is the older
|
|
1993
|
+
# spelling of daily bins with `cumulative: true`, kept so stored configs and
|
|
1994
|
+
# existing clients keep working. `hourly` is refused with a 400 while no
|
|
1995
|
+
# connected account stores hourly cost rows: every provider's spend is
|
|
1996
|
+
# collected per UTC day today (see `granularity` on /costs/status).
|
|
1997
|
+
#
|
|
1998
|
+
# Spec schema: `CostBinning`.
|
|
1999
|
+
type cost_binning = "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "cumulative"
|
|
2000
|
+
|
|
1990
2001
|
# Spec schema: `CostCanvas`.
|
|
1991
2002
|
type cost_canvas = {
|
|
1992
2003
|
"id" => String,
|
|
@@ -2400,8 +2411,8 @@ module Infrawrench
|
|
|
2400
2411
|
# Spec schema: `CostGraphConfig`.
|
|
2401
2412
|
type cost_graph_config = {
|
|
2402
2413
|
"version" => Numeric,
|
|
2403
|
-
"chartType" => "stacked_bar" | "multi_bar" | "line" | "area" | "pie",
|
|
2404
|
-
"binning" =>
|
|
2414
|
+
"chartType" => "stacked_bar" | "multi_bar" | "line" | "area" | "pie" | "donut" | "table",
|
|
2415
|
+
"binning" => cost_binning,
|
|
2405
2416
|
"dateRange" => cost_date_range,
|
|
2406
2417
|
"groupBy" => "none"
|
|
2407
2418
|
| "provider"
|
|
@@ -2419,9 +2430,24 @@ module Infrawrench
|
|
|
2419
2430
|
?"comparePreviousPeriod" => bool,
|
|
2420
2431
|
?"showForecast" => bool,
|
|
2421
2432
|
?"scenarioModelId" => String,
|
|
2422
|
-
?"costBasis" => "cash" | "amortized"
|
|
2433
|
+
?"costBasis" => "cash" | "amortized",
|
|
2434
|
+
?"measure" => cost_measure,
|
|
2435
|
+
?"usageUnit" => String,
|
|
2436
|
+
?"cumulative" => bool
|
|
2423
2437
|
}
|
|
2424
2438
|
|
|
2439
|
+
# What the Y axis sums. `cost` (the default) is money per currency. `usage`
|
|
2440
|
+
# sums the usage quantity providers report beside the money and requires
|
|
2441
|
+
# `usageUnit`, because quantities in different units cannot be added. `count`
|
|
2442
|
+
# is how many distinct values of the `groupBy` dimension had nonzero cost in
|
|
2443
|
+
# each bin (how many services were billed each day) and requires a `groupBy`;
|
|
2444
|
+
# its range total is a distinct count, not a sum of the bins. `usage` and
|
|
2445
|
+
# `count` cannot carry a forecast, a scenario or billing rules (a 400),
|
|
2446
|
+
# `count` cannot be cumulative, and a display currency is ignored for both.
|
|
2447
|
+
#
|
|
2448
|
+
# Spec schema: `CostMeasure`.
|
|
2449
|
+
type cost_measure = "cost" | "usage" | "count"
|
|
2450
|
+
|
|
2425
2451
|
# Spec schema: `CostPushRequest`.
|
|
2426
2452
|
type cost_push_request = { "source" => String, "rows" => Array[pushed_cost_row] }
|
|
2427
2453
|
|
|
@@ -2432,7 +2458,7 @@ module Infrawrench
|
|
|
2432
2458
|
type cost_query_request = {
|
|
2433
2459
|
"from" => String,
|
|
2434
2460
|
"to" => String,
|
|
2435
|
-
"binning" =>
|
|
2461
|
+
"binning" => cost_binning,
|
|
2436
2462
|
"groupBy" => "none"
|
|
2437
2463
|
| "provider"
|
|
2438
2464
|
| "account"
|
|
@@ -2452,7 +2478,10 @@ module Infrawrench
|
|
|
2452
2478
|
?"scenarioModelId" => String,
|
|
2453
2479
|
?"costBasis" => cost_basis,
|
|
2454
2480
|
?"chargeTypes" => Array[cost_charge_type],
|
|
2455
|
-
?"adjusted" => bool
|
|
2481
|
+
?"adjusted" => bool,
|
|
2482
|
+
?"measure" => cost_measure,
|
|
2483
|
+
?"usageUnit" => String,
|
|
2484
|
+
?"cumulative" => bool
|
|
2456
2485
|
}
|
|
2457
2486
|
|
|
2458
2487
|
# Spec schema: `CostQueryResponse`.
|
|
@@ -2464,7 +2493,9 @@ module Infrawrench
|
|
|
2464
2493
|
"currencies" => Array[String],
|
|
2465
2494
|
"totals" => Hash[String, Numeric],
|
|
2466
2495
|
?"previousTotals" => Hash[String, Numeric],
|
|
2467
|
-
?"adjustment" => cost_adjustment_summary
|
|
2496
|
+
?"adjustment" => cost_adjustment_summary,
|
|
2497
|
+
?"measure" => "usage" | "count",
|
|
2498
|
+
?"usageUnit" => String
|
|
2468
2499
|
}
|
|
2469
2500
|
|
|
2470
2501
|
# Spec schema: `CostQuerySeries`.
|
|
@@ -2526,6 +2557,14 @@ module Infrawrench
|
|
|
2526
2557
|
# Spec schema: `CostReportPlacement`.
|
|
2527
2558
|
type cost_report_placement = { "widgetId" => String, "dashboardId" => String, "dashboardName" => String }
|
|
2528
2559
|
|
|
2560
|
+
# Spec schema: `CostReportRunOverrides`.
|
|
2561
|
+
type cost_report_run_overrides = {
|
|
2562
|
+
?"measure" => cost_measure,
|
|
2563
|
+
?"usageUnit" => String,
|
|
2564
|
+
?"binning" => cost_binning,
|
|
2565
|
+
?"cumulative" => bool
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2529
2568
|
# Spec schema: `CostReportRunResult`.
|
|
2530
2569
|
type cost_report_run_result = {
|
|
2531
2570
|
"reportId" => String,
|
|
@@ -8607,7 +8646,7 @@ module Infrawrench
|
|
|
8607
8646
|
type unit_cost_query_request = {
|
|
8608
8647
|
"from" => String,
|
|
8609
8648
|
"to" => String,
|
|
8610
|
-
"binning" => "daily" | "weekly" | "monthly" | "cumulative",
|
|
8649
|
+
"binning" => "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "cumulative",
|
|
8611
8650
|
?"mode" => "unit_cost" | "margin",
|
|
8612
8651
|
?"filters" => Array[business_metric_scope_term],
|
|
8613
8652
|
?"query" => String,
|
|
@@ -8628,7 +8667,7 @@ module Infrawrench
|
|
|
8628
8667
|
"currency" => String | nil
|
|
8629
8668
|
},
|
|
8630
8669
|
"mode" => "unit_cost" | "margin",
|
|
8631
|
-
"binning" => "daily" | "weekly" | "monthly" | "cumulative",
|
|
8670
|
+
"binning" => "hourly" | "daily" | "weekly" | "monthly" | "quarterly" | "cumulative",
|
|
8632
8671
|
"series" => Array[unit_cost_series],
|
|
8633
8672
|
?"conversion" => {
|
|
8634
8673
|
"displayCurrency" => String,
|
|
@@ -9298,7 +9337,7 @@ module Infrawrench
|
|
|
9298
9337
|
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_report
|
|
9299
9338
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[cost_report]
|
|
9300
9339
|
def pdf: (id: String, ?org_id: String?, ?tz: String?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
9301
|
-
def run: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_report_run_result
|
|
9340
|
+
def run: (id: String, ?org_id: String?, ?body: cost_report_run_overrides?, ?request_options: Hash[Symbol, untyped]?) -> cost_report_run_result
|
|
9302
9341
|
def update: (id: String, body: cost_report_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_report
|
|
9303
9342
|
end
|
|
9304
9343
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: infrawrench-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.58.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Infrawrench LLC
|
|
@@ -11,7 +11,7 @@ bindir: bin
|
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 2026-10-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v1.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v1.58.0). Covers the published
|
|
15
15
|
API surface only — operations marked x-internal in the spec are not generated. No
|
|
16
16
|
runtime dependencies.
|
|
17
17
|
email:
|
|
@@ -58,5 +58,5 @@ requirements: []
|
|
|
58
58
|
rubygems_version: 3.5.22
|
|
59
59
|
signing_key:
|
|
60
60
|
specification_version: 4
|
|
61
|
-
summary: Generated Ruby client for the Infrawrench API (v1.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v1.58.0).
|
|
62
62
|
test_files: []
|