infrawrench-sdk 0.15.0 → 0.17.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 +215 -2
- 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 +80 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83cef33920e9375e8eabc8bab21901ce26c79c28e8fa9c49899b6793b5a65011
|
|
4
|
+
data.tar.gz: 230d10e333a19ed65ec9a492858f7b555651d07c2dc52aa1fd96635b7ade8e1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd717a9076b270846c4b5603402f10123b58551c22013b322d9678550b9ebd99725c296786aac00a973210ca6048e8af8122da223999b0f6f967c3fb53129e9c
|
|
7
|
+
data.tar.gz: dc726139cd989efad3f892e7cb76e16a68ccc50550c241e63e4ca6c4e75fd66dc7f04a8a06e81bc60f7f108ca81f26922f4761fb154ee78d3ef856de9f7ea848
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# infrawrench-sdk
|
|
2
2
|
|
|
3
|
-
Generated Ruby client for the Infrawrench API (API version `0.
|
|
3
|
+
Generated Ruby client for the Infrawrench API (API version `0.17.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
|
+
223 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 v0.
|
|
3
|
+
# infrawrench-sdk v0.17.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.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 (v0.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v0.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v0.17.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.17.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.17.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1323,6 +1323,216 @@ module Infrawrench
|
|
|
1323
1323
|
end
|
|
1324
1324
|
end
|
|
1325
1325
|
|
|
1326
|
+
# `client.custom_graphs`
|
|
1327
|
+
class CustomGraphsNamespace
|
|
1328
|
+
# @api private
|
|
1329
|
+
# @param transport [Transport]
|
|
1330
|
+
def initialize(transport)
|
|
1331
|
+
@transport = transport
|
|
1332
|
+
end
|
|
1333
|
+
|
|
1334
|
+
# Type-check custom-graph source without saving it
|
|
1335
|
+
#
|
|
1336
|
+
# _Requires permission: `dashboards:read`._
|
|
1337
|
+
#
|
|
1338
|
+
# POST /api/org/{orgId}/custom-graphs/check
|
|
1339
|
+
#
|
|
1340
|
+
# Raises on 400: Bad request
|
|
1341
|
+
#
|
|
1342
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1343
|
+
# constructed with.
|
|
1344
|
+
# @param body [Hash] Request body, shaped as `CustomGraphCheckRequest`.
|
|
1345
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1346
|
+
# @return [Hash] Parsed JSON, shaped as `CustomGraphCheckResult` — see
|
|
1347
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
1348
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1349
|
+
def check(body:, org_id: nil, request_options: nil)
|
|
1350
|
+
@transport.request(
|
|
1351
|
+
http_method: "POST",
|
|
1352
|
+
path: "/api/org/{orgId}/custom-graphs/check",
|
|
1353
|
+
path_params: { "orgId" => org_id },
|
|
1354
|
+
body: body,
|
|
1355
|
+
request_options: request_options
|
|
1356
|
+
)
|
|
1357
|
+
end
|
|
1358
|
+
|
|
1359
|
+
# Create a custom graph (paid plan required)
|
|
1360
|
+
#
|
|
1361
|
+
# _Requires permission: `dashboards:write`._
|
|
1362
|
+
#
|
|
1363
|
+
# POST /api/org/{orgId}/custom-graphs
|
|
1364
|
+
#
|
|
1365
|
+
# Raises on 400: Bad request
|
|
1366
|
+
#
|
|
1367
|
+
# Raises on 402: Payment required — the organization's plan does not include
|
|
1368
|
+
# this
|
|
1369
|
+
#
|
|
1370
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1371
|
+
# constructed with.
|
|
1372
|
+
# @param body [Hash] Request body, shaped as `CustomGraphInput`.
|
|
1373
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1374
|
+
# @return [Hash] Parsed JSON, shaped as `CustomGraphFull` — see `sig/infrawrench/sdk.rbs`.
|
|
1375
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1376
|
+
def create(body:, org_id: nil, request_options: nil)
|
|
1377
|
+
@transport.request(
|
|
1378
|
+
http_method: "POST",
|
|
1379
|
+
path: "/api/org/{orgId}/custom-graphs",
|
|
1380
|
+
path_params: { "orgId" => org_id },
|
|
1381
|
+
body: body,
|
|
1382
|
+
request_options: request_options
|
|
1383
|
+
)
|
|
1384
|
+
end
|
|
1385
|
+
|
|
1386
|
+
# Delete a custom graph (and its dashboard cards)
|
|
1387
|
+
#
|
|
1388
|
+
# _Requires permission: `dashboards:write`._
|
|
1389
|
+
#
|
|
1390
|
+
# DELETE /api/org/{orgId}/custom-graphs/{id}
|
|
1391
|
+
#
|
|
1392
|
+
# Raises on 404: Not found
|
|
1393
|
+
#
|
|
1394
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1395
|
+
# constructed with.
|
|
1396
|
+
# @param id [String]
|
|
1397
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1398
|
+
# @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
|
|
1399
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1400
|
+
def delete(id:, org_id: nil, request_options: nil)
|
|
1401
|
+
@transport.request(
|
|
1402
|
+
http_method: "DELETE",
|
|
1403
|
+
path: "/api/org/{orgId}/custom-graphs/{id}",
|
|
1404
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
1405
|
+
request_options: request_options
|
|
1406
|
+
)
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
# Get a custom graph (including source)
|
|
1410
|
+
#
|
|
1411
|
+
# _Requires permission: `dashboards:read`._
|
|
1412
|
+
#
|
|
1413
|
+
# GET /api/org/{orgId}/custom-graphs/{id}
|
|
1414
|
+
#
|
|
1415
|
+
# Raises on 404: Not found
|
|
1416
|
+
#
|
|
1417
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1418
|
+
# constructed with.
|
|
1419
|
+
# @param id [String]
|
|
1420
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1421
|
+
# @return [Hash] Parsed JSON, shaped as `CustomGraphFull` — see `sig/infrawrench/sdk.rbs`.
|
|
1422
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1423
|
+
def get(id:, org_id: nil, request_options: nil)
|
|
1424
|
+
@transport.request(
|
|
1425
|
+
http_method: "GET",
|
|
1426
|
+
path: "/api/org/{orgId}/custom-graphs/{id}",
|
|
1427
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
1428
|
+
request_options: request_options
|
|
1429
|
+
)
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
# List custom graphs
|
|
1433
|
+
#
|
|
1434
|
+
# _Requires permission: `dashboards:read`._
|
|
1435
|
+
#
|
|
1436
|
+
# GET /api/org/{orgId}/custom-graphs
|
|
1437
|
+
#
|
|
1438
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1439
|
+
# constructed with.
|
|
1440
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1441
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<CustomGraphSummary>` — see
|
|
1442
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
1443
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1444
|
+
def list(org_id: nil, request_options: nil)
|
|
1445
|
+
@transport.request(
|
|
1446
|
+
http_method: "GET",
|
|
1447
|
+
path: "/api/org/{orgId}/custom-graphs",
|
|
1448
|
+
path_params: { "orgId" => org_id },
|
|
1449
|
+
request_options: request_options
|
|
1450
|
+
)
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
# Run the graph's script and return its render spec (paid plan required)
|
|
1454
|
+
#
|
|
1455
|
+
# _Requires permission: `dashboards:read`._
|
|
1456
|
+
#
|
|
1457
|
+
# POST /api/org/{orgId}/custom-graphs/{id}/render
|
|
1458
|
+
#
|
|
1459
|
+
# Raises on 400: Bad request
|
|
1460
|
+
#
|
|
1461
|
+
# Raises on 402: Payment required — the organization's plan does not include
|
|
1462
|
+
# this
|
|
1463
|
+
#
|
|
1464
|
+
# Raises on 404: Not found
|
|
1465
|
+
#
|
|
1466
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1467
|
+
# constructed with.
|
|
1468
|
+
# @param id [String]
|
|
1469
|
+
# @param body [Hash, nil] Request body, shaped as `CustomGraphRenderRequest`.
|
|
1470
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1471
|
+
# @return [Hash] Parsed JSON, shaped as `CustomGraphRenderResult` — see
|
|
1472
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
1473
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1474
|
+
def render(id:, org_id: nil, body: nil, request_options: nil)
|
|
1475
|
+
@transport.request(
|
|
1476
|
+
http_method: "POST",
|
|
1477
|
+
path: "/api/org/{orgId}/custom-graphs/{id}/render",
|
|
1478
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
1479
|
+
body: body,
|
|
1480
|
+
request_options: request_options
|
|
1481
|
+
)
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
# The ambient graph.d.ts for custom-graph source
|
|
1485
|
+
#
|
|
1486
|
+
# _Requires permission: `dashboards:read`._
|
|
1487
|
+
#
|
|
1488
|
+
# GET /api/org/{orgId}/custom-graphs/typings
|
|
1489
|
+
#
|
|
1490
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1491
|
+
# constructed with.
|
|
1492
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1493
|
+
# @return [String] Raw response bytes.
|
|
1494
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1495
|
+
def typings(org_id: nil, request_options: nil)
|
|
1496
|
+
@transport.request(
|
|
1497
|
+
http_method: "GET",
|
|
1498
|
+
path: "/api/org/{orgId}/custom-graphs/typings",
|
|
1499
|
+
path_params: { "orgId" => org_id },
|
|
1500
|
+
accept: :binary,
|
|
1501
|
+
request_options: request_options
|
|
1502
|
+
)
|
|
1503
|
+
end
|
|
1504
|
+
|
|
1505
|
+
# Update a custom graph (paid plan required)
|
|
1506
|
+
#
|
|
1507
|
+
# _Requires permission: `dashboards:write`._
|
|
1508
|
+
#
|
|
1509
|
+
# PUT /api/org/{orgId}/custom-graphs/{id}
|
|
1510
|
+
#
|
|
1511
|
+
# Raises on 400: Bad request
|
|
1512
|
+
#
|
|
1513
|
+
# Raises on 402: Payment required — the organization's plan does not include
|
|
1514
|
+
# this
|
|
1515
|
+
#
|
|
1516
|
+
# Raises on 404: Not found
|
|
1517
|
+
#
|
|
1518
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1519
|
+
# constructed with.
|
|
1520
|
+
# @param id [String]
|
|
1521
|
+
# @param body [Hash] Request body, shaped as `CustomGraphUpdate`.
|
|
1522
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1523
|
+
# @return [Hash] Parsed JSON, shaped as `CustomGraphFull` — see `sig/infrawrench/sdk.rbs`.
|
|
1524
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1525
|
+
def update(id:, body:, org_id: nil, request_options: nil)
|
|
1526
|
+
@transport.request(
|
|
1527
|
+
http_method: "PUT",
|
|
1528
|
+
path: "/api/org/{orgId}/custom-graphs/{id}",
|
|
1529
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
1530
|
+
body: body,
|
|
1531
|
+
request_options: request_options
|
|
1532
|
+
)
|
|
1533
|
+
end
|
|
1534
|
+
end
|
|
1535
|
+
|
|
1326
1536
|
# `client.dashboards.default`
|
|
1327
1537
|
class DashboardsDefaultNamespace
|
|
1328
1538
|
# @api private
|
|
@@ -4968,6 +5178,8 @@ module Infrawrench
|
|
|
4968
5178
|
attr_reader :connect
|
|
4969
5179
|
# @return [CostsNamespace] `client.costs`
|
|
4970
5180
|
attr_reader :costs
|
|
5181
|
+
# @return [CustomGraphsNamespace] `client.custom_graphs`
|
|
5182
|
+
attr_reader :custom_graphs
|
|
4971
5183
|
# @return [DashboardsNamespace] `client.dashboards`
|
|
4972
5184
|
attr_reader :dashboards
|
|
4973
5185
|
# @return [DeploymentsNamespace] `client.deployments`
|
|
@@ -5022,6 +5234,7 @@ module Infrawrench
|
|
|
5022
5234
|
@budgets = BudgetsNamespace.new(@transport)
|
|
5023
5235
|
@connect = ConnectNamespace.new(@transport)
|
|
5024
5236
|
@costs = CostsNamespace.new(@transport)
|
|
5237
|
+
@custom_graphs = CustomGraphsNamespace.new(@transport)
|
|
5025
5238
|
@dashboards = DashboardsNamespace.new(@transport)
|
|
5026
5239
|
@deployments = DeploymentsNamespace.new(@transport)
|
|
5027
5240
|
@docker = DockerNamespace.new(@transport)
|
data/lib/infrawrench/sdk.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# infrawrench-sdk v0.
|
|
3
|
+
# infrawrench-sdk v0.17.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.17.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.17.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.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 = "0.
|
|
18
|
+
VERSION = "0.17.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 v0.
|
|
3
|
+
# infrawrench-sdk v0.17.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 0.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.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 v0.
|
|
1
|
+
# infrawrench-sdk v0.17.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 0.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 0.17.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -584,6 +584,68 @@ module Infrawrench
|
|
|
584
584
|
?"filenameTemplate" => String
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
+
# Spec schema: `CustomGraphCheckRequest`.
|
|
588
|
+
type custom_graph_check_request = { "source" => String }
|
|
589
|
+
|
|
590
|
+
# Spec schema: `CustomGraphCheckResult`.
|
|
591
|
+
type custom_graph_check_result = {
|
|
592
|
+
"diagnostics" => Array[{
|
|
593
|
+
"line" => Integer,
|
|
594
|
+
"column" => Integer,
|
|
595
|
+
"code" => Integer,
|
|
596
|
+
"category" => String,
|
|
597
|
+
"message" => String
|
|
598
|
+
}],
|
|
599
|
+
"hasErrors" => bool,
|
|
600
|
+
"degraded" => bool
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
# Spec schema: `CustomGraphFull`.
|
|
604
|
+
type custom_graph_full = {
|
|
605
|
+
"id" => String,
|
|
606
|
+
"organizationId" => String,
|
|
607
|
+
"name" => String,
|
|
608
|
+
"description" => String | nil,
|
|
609
|
+
"source" => String,
|
|
610
|
+
"createdByUserId" => String | nil,
|
|
611
|
+
"sourceAuthorUserId" => String | nil,
|
|
612
|
+
"deletedAt" => String | nil,
|
|
613
|
+
"createdAt" => String,
|
|
614
|
+
"updatedAt" => String
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
# Spec schema: `CustomGraphInput`.
|
|
618
|
+
type custom_graph_input = { "name" => String, ?"description" => String | nil, ?"source" => String }
|
|
619
|
+
|
|
620
|
+
# Spec schema: `CustomGraphRenderRequest`.
|
|
621
|
+
type custom_graph_render_request = {
|
|
622
|
+
?"controls" => Hash[String, String | Numeric | bool],
|
|
623
|
+
?"button" => String,
|
|
624
|
+
?"trigger" => "manual" | "refresh" | "interaction"
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
# Spec schema: `CustomGraphRenderResult`.
|
|
628
|
+
type custom_graph_render_result = {
|
|
629
|
+
"ok" => bool,
|
|
630
|
+
"spec" => json_object & (Hash[String, untyped] | nil),
|
|
631
|
+
"error" => String | nil,
|
|
632
|
+
"logs" => Array[{ "level" => "info" | "warn" | "error", "message" => String }],
|
|
633
|
+
"renderedAt" => String,
|
|
634
|
+
"durationMs" => Integer
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
# Spec schema: `CustomGraphSummary`.
|
|
638
|
+
type custom_graph_summary = {
|
|
639
|
+
"id" => String,
|
|
640
|
+
"name" => String,
|
|
641
|
+
"description" => String | nil,
|
|
642
|
+
"createdAt" => String,
|
|
643
|
+
"updatedAt" => String
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
# Spec schema: `CustomGraphUpdate`.
|
|
647
|
+
type custom_graph_update = { ?"name" => String, ?"description" => String | nil, ?"source" => String }
|
|
648
|
+
|
|
587
649
|
# Spec schema: `Dashboard`.
|
|
588
650
|
type dashboard = { "id" => String, "name" => String, "isDefault" => bool }
|
|
589
651
|
|
|
@@ -641,7 +703,7 @@ module Infrawrench
|
|
|
641
703
|
}
|
|
642
704
|
|
|
643
705
|
# Spec schema: `DashboardWidgetKind`.
|
|
644
|
-
type dashboard_widget_kind = "cost_graph" | "budget"
|
|
706
|
+
type dashboard_widget_kind = "cost_graph" | "budget" | "custom_graph"
|
|
645
707
|
|
|
646
708
|
# Spec schema: `DashboardWithPins`.
|
|
647
709
|
type dashboard_with_pins = {
|
|
@@ -1454,6 +1516,7 @@ module Infrawrench
|
|
|
1454
1516
|
| "collection"
|
|
1455
1517
|
| "composer-environment"
|
|
1456
1518
|
| "container"
|
|
1519
|
+
| "container-registry"
|
|
1457
1520
|
| "custom-hostname"
|
|
1458
1521
|
| "custom-voice"
|
|
1459
1522
|
| "d1-database"
|
|
@@ -1562,6 +1625,7 @@ module Infrawrench
|
|
|
1562
1625
|
| "k8s-ingress"
|
|
1563
1626
|
| "k8s-job"
|
|
1564
1627
|
| "k8s-namespace"
|
|
1628
|
+
| "k8s-node"
|
|
1565
1629
|
| "k8s-pod"
|
|
1566
1630
|
| "k8s-secret"
|
|
1567
1631
|
| "k8s-service"
|
|
@@ -2244,6 +2308,18 @@ module Infrawrench
|
|
|
2244
2308
|
def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "accounts" => Array[cost_account_status] }
|
|
2245
2309
|
end
|
|
2246
2310
|
|
|
2311
|
+
class CustomGraphsNamespace
|
|
2312
|
+
def initialize: (Transport) -> void
|
|
2313
|
+
def check: (body: custom_graph_check_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_check_result
|
|
2314
|
+
def create: (body: custom_graph_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
|
|
2315
|
+
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
2316
|
+
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
|
|
2317
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[custom_graph_summary]
|
|
2318
|
+
def render: (id: String, ?org_id: String?, ?body: custom_graph_render_request?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_render_result
|
|
2319
|
+
def typings: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
2320
|
+
def update: (id: String, body: custom_graph_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
|
|
2321
|
+
end
|
|
2322
|
+
|
|
2247
2323
|
class DashboardsDefaultNamespace
|
|
2248
2324
|
def initialize: (Transport) -> void
|
|
2249
2325
|
def full: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> dashboard_with_pins
|
|
@@ -2539,6 +2615,7 @@ module Infrawrench
|
|
|
2539
2615
|
attr_reader budgets: BudgetsNamespace
|
|
2540
2616
|
attr_reader connect: ConnectNamespace
|
|
2541
2617
|
attr_reader costs: CostsNamespace
|
|
2618
|
+
attr_reader custom_graphs: CustomGraphsNamespace
|
|
2542
2619
|
attr_reader dashboards: DashboardsNamespace
|
|
2543
2620
|
attr_reader deployments: DeploymentsNamespace
|
|
2544
2621
|
attr_reader docker: DockerNamespace
|
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: 0.
|
|
4
|
+
version: 0.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Infrawrench LLC
|
|
@@ -9,9 +9,9 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-07-
|
|
12
|
+
date: 2026-07-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Generated Ruby client for the Infrawrench API (v0.
|
|
14
|
+
description: Generated Ruby client for the Infrawrench API (v0.17.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 (v0.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v0.17.0).
|
|
62
62
|
test_files: []
|