infrawrench-sdk 1.56.0 → 1.57.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 +9 -8
- 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 +77 -9
- 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: fc2d8358586c5a9a7c2377bf754a59ce738b29ebb2d98addd4a447d6de6158b9
|
|
4
|
+
data.tar.gz: 5111a97d76595cc9ecca3b86c0ce30107d6dc0b8f78d4afde485eaa9fc2130ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 528e83b6dda5845775556617c3c63595a60274bc184889158ff10fb2ebf07d0a14438f21ea97098b7b566c47b078c352be786f48161271c2c16caf13c81c6476
|
|
7
|
+
data.tar.gz: 07e3cd8fa1a5fca5eca1bf5318b09181286ea3e5e2d63212ffa4bae050251d091f6f71c702a398ac7b7604cac9f7936bcf2f02251426a2d5f0903aecbcc565d2
|
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.57.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
|
+
838 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.57.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.57.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.57.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.57.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.57.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.57.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -3112,7 +3112,7 @@ module Infrawrench
|
|
|
3112
3112
|
)
|
|
3113
3113
|
end
|
|
3114
3114
|
|
|
3115
|
-
# Get a budget with current-
|
|
3115
|
+
# Get a budget with current-period status
|
|
3116
3116
|
#
|
|
3117
3117
|
# GET /api/org/{orgId}/budgets/{id}
|
|
3118
3118
|
#
|
|
@@ -3122,7 +3122,7 @@ module Infrawrench
|
|
|
3122
3122
|
# constructed with.
|
|
3123
3123
|
# @param id [String]
|
|
3124
3124
|
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
3125
|
-
# @return [Hash] Parsed JSON, shaped as `
|
|
3125
|
+
# @return [Hash] Parsed JSON, shaped as `BudgetWithStatus` — see `sig/infrawrench/sdk.rbs`.
|
|
3126
3126
|
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
3127
3127
|
def get(id:, org_id: nil, request_options: nil)
|
|
3128
3128
|
@transport.request(
|
|
@@ -3133,7 +3133,7 @@ module Infrawrench
|
|
|
3133
3133
|
)
|
|
3134
3134
|
end
|
|
3135
3135
|
|
|
3136
|
-
# List budgets with current-
|
|
3136
|
+
# List budgets with current-period actuals and forecasts
|
|
3137
3137
|
#
|
|
3138
3138
|
# GET /api/org/{orgId}/budgets
|
|
3139
3139
|
#
|
|
@@ -6880,9 +6880,10 @@ module Infrawrench
|
|
|
6880
6880
|
# List distinct values for a cost dimension
|
|
6881
6881
|
#
|
|
6882
6882
|
# Feeds the filter and group-by pickers. Pass dimension=tag-keys for tag
|
|
6883
|
-
# keys
|
|
6884
|
-
#
|
|
6885
|
-
#
|
|
6883
|
+
# keys, or dimension=usage-units for the usage units providers report (a
|
|
6884
|
+
# usage budget's unit); dimension=tag requires tagKey. `charge_type` answers
|
|
6885
|
+
# from the fixed set of charge types rather than from the stored data, so
|
|
6886
|
+
# the picker is populated before any provider has reported one.
|
|
6886
6887
|
#
|
|
6887
6888
|
# _Requires permission: `costs:read`._
|
|
6888
6889
|
#
|
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.57.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.57.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.57.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.57.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.57.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.57.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.57.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.57.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.57.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.57.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.57.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1074,7 +1074,11 @@ module Infrawrench
|
|
|
1074
1074
|
"thresholdPercent" => Integer,
|
|
1075
1075
|
"actualAmountCents" => Integer,
|
|
1076
1076
|
"forecastAmountCents" => Integer | nil,
|
|
1077
|
-
"triggeredAt" => String
|
|
1077
|
+
"triggeredAt" => String,
|
|
1078
|
+
"periodStart" => String | nil,
|
|
1079
|
+
"periodEnd" => String | nil,
|
|
1080
|
+
"actualUsage" => Numeric | nil,
|
|
1081
|
+
"forecastUsage" => Numeric | nil
|
|
1078
1082
|
}
|
|
1079
1083
|
|
|
1080
1084
|
# The basis `actualCents` and `forecastCents` were measured on.
|
|
@@ -1097,6 +1101,12 @@ module Infrawrench
|
|
|
1097
1101
|
?"tagKey" => String
|
|
1098
1102
|
}
|
|
1099
1103
|
|
|
1104
|
+
# Spec schema: `BudgetExplicitPeriods`.
|
|
1105
|
+
type budget_explicit_periods = {
|
|
1106
|
+
"kind" => "explicit",
|
|
1107
|
+
"periods" => Array[{ "start" => String, "end" => String, ?"amountCents" => Integer, ?"usageAmount" => Numeric }]
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1100
1110
|
# Spec schema: `BudgetFull`.
|
|
1101
1111
|
type budget_full = {
|
|
1102
1112
|
"id" => String,
|
|
@@ -1113,20 +1123,65 @@ module Infrawrench
|
|
|
1113
1123
|
"createdByUserId" => String | nil,
|
|
1114
1124
|
"deletedAt" => String | nil,
|
|
1115
1125
|
"createdAt" => String,
|
|
1116
|
-
"updatedAt" => String
|
|
1126
|
+
"updatedAt" => String,
|
|
1127
|
+
"measure" => budget_measure,
|
|
1128
|
+
"usageUnit" => String | nil,
|
|
1129
|
+
"usageAmount" => Numeric | nil,
|
|
1130
|
+
"period" => budget_period,
|
|
1131
|
+
"parentBudgetId" => String | nil
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
# Spec schema: `BudgetHierarchyWarning`.
|
|
1135
|
+
type budget_hierarchy_warning = {
|
|
1136
|
+
"kind" => "allocation" | "actual" | "forecast",
|
|
1137
|
+
"childTotal" => Numeric,
|
|
1138
|
+
"parentLimit" => Numeric
|
|
1117
1139
|
}
|
|
1118
1140
|
|
|
1119
1141
|
# Spec schema: `BudgetInput`.
|
|
1120
1142
|
type budget_input = {
|
|
1121
1143
|
"name" => String,
|
|
1122
|
-
"amountCents" => Integer,
|
|
1144
|
+
?"amountCents" => Integer,
|
|
1123
1145
|
?"currency" => String,
|
|
1124
1146
|
?"filters" => Array[budget_cost_filter],
|
|
1125
1147
|
?"savedFilterId" => String,
|
|
1126
1148
|
?"scenarioModelId" => String,
|
|
1127
1149
|
"thresholds" => Array[budget_threshold],
|
|
1128
1150
|
?"costBasis" => budget_cost_basis & untyped,
|
|
1129
|
-
?"useAdjustedSpend" => bool
|
|
1151
|
+
?"useAdjustedSpend" => bool,
|
|
1152
|
+
?"measure" => budget_measure,
|
|
1153
|
+
?"usageUnit" => String,
|
|
1154
|
+
?"usageAmount" => Numeric,
|
|
1155
|
+
?"period" => budget_period & (budget_recurring_period | budget_explicit_periods),
|
|
1156
|
+
?"parentBudgetId" => String
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
# What the budget counts. `cost` (the default) is money in `currency`, against
|
|
1160
|
+
# `amountCents`. `usage` sums the cost rows' usage quantity in `usageUnit`
|
|
1161
|
+
# against `usageAmount` (tokens, GB, instance-hours, requests: whatever the
|
|
1162
|
+
# providers report; list them with GET
|
|
1163
|
+
# /costs/dimensions?dimension=usage-units). Units are matched exactly and
|
|
1164
|
+
# never converted. A usage budget takes no scenario model and no billing
|
|
1165
|
+
# rules.
|
|
1166
|
+
#
|
|
1167
|
+
# Spec schema: `BudgetMeasure`.
|
|
1168
|
+
type budget_measure = "cost" | "usage"
|
|
1169
|
+
|
|
1170
|
+
# Which periods the budget covers. Omitted (or null) is the calendar month.
|
|
1171
|
+
# `recurring` repeats every `interval` × `unit` from `startDate`; `explicit`
|
|
1172
|
+
# lists the periods with an amount each, and the top-level amount is then
|
|
1173
|
+
# ignored. Thresholds fire once per period; days outside every period are not
|
|
1174
|
+
# measured.
|
|
1175
|
+
#
|
|
1176
|
+
# Spec schema: `BudgetPeriod`.
|
|
1177
|
+
type budget_period = budget_recurring_period | budget_explicit_periods | nil
|
|
1178
|
+
|
|
1179
|
+
# Spec schema: `BudgetRecurringPeriod`.
|
|
1180
|
+
type budget_recurring_period = {
|
|
1181
|
+
"kind" => "recurring",
|
|
1182
|
+
"unit" => "day" | "week" | "month" | "quarter" | "year",
|
|
1183
|
+
"interval" => Integer,
|
|
1184
|
+
"startDate" => String
|
|
1130
1185
|
}
|
|
1131
1186
|
|
|
1132
1187
|
# Spec schema: `BudgetThreshold`.
|
|
@@ -1156,7 +1211,20 @@ module Infrawrench
|
|
|
1156
1211
|
"thresholdPercent" => Integer,
|
|
1157
1212
|
"triggeredAt" => String
|
|
1158
1213
|
}],
|
|
1159
|
-
"placements" => Array[{ "widgetId" => String, "dashboardId" => String, "dashboardName" => String }]
|
|
1214
|
+
"placements" => Array[{ "widgetId" => String, "dashboardId" => String, "dashboardName" => String }],
|
|
1215
|
+
"measure" => budget_measure,
|
|
1216
|
+
"usageUnit" => String | nil,
|
|
1217
|
+
"usageAmount" => Numeric | nil,
|
|
1218
|
+
"period" => budget_period,
|
|
1219
|
+
"parentBudgetId" => String | nil,
|
|
1220
|
+
"periodStart" => String | nil,
|
|
1221
|
+
"periodEnd" => String | nil,
|
|
1222
|
+
"periodLimit" => Numeric | nil,
|
|
1223
|
+
"actualUsage" => Numeric | nil,
|
|
1224
|
+
"forecastUsage" => Numeric | nil,
|
|
1225
|
+
"rolledUp" => bool,
|
|
1226
|
+
"childCount" => Integer,
|
|
1227
|
+
"hierarchyWarnings" => Array[budget_hierarchy_warning]
|
|
1160
1228
|
}
|
|
1161
1229
|
|
|
1162
1230
|
# Spec schema: `BusinessMetric`.
|
|
@@ -9003,7 +9071,7 @@ module Infrawrench
|
|
|
9003
9071
|
def create: (body: budget_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> budget_full
|
|
9004
9072
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
9005
9073
|
def events: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[budget_alert_event]
|
|
9006
|
-
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) ->
|
|
9074
|
+
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> budget_with_status
|
|
9007
9075
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[budget_with_status]
|
|
9008
9076
|
def update: (id: String, body: budget_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> budget_full
|
|
9009
9077
|
end
|
|
@@ -9279,7 +9347,7 @@ module Infrawrench
|
|
|
9279
9347
|
attr_reader anomaly_settings: CostsAnomalySettingsNamespace
|
|
9280
9348
|
attr_reader efficiency_alert_settings: CostsEfficiencyAlertSettingsNamespace
|
|
9281
9349
|
def initialize: (Transport) -> void
|
|
9282
|
-
def dimensions: (dimension: "provider" | "account" | "service" | "region" | "resource" | "tag" | "charge_type" | "commitment" | "tag-keys", ?org_id: String?, ?tag_key: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_dimension_values
|
|
9350
|
+
def dimensions: (dimension: "provider" | "account" | "service" | "region" | "resource" | "tag" | "charge_type" | "commitment" | "tag-keys" | "usage-units", ?org_id: String?, ?tag_key: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_dimension_values
|
|
9283
9351
|
def efficiency_alerts: (?org_id: String?, ?kind: "commitment_expiry" | "commitment_idle" | "unit_cost_regression"?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> { "events" => Array[efficiency_alert_event] }
|
|
9284
9352
|
def focus_export: (body: focus_export_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
9285
9353
|
def query: (body: cost_query_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> cost_query_response
|
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.57.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.57.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.57.0).
|
|
62
62
|
test_files: []
|