infrawrench-sdk 0.15.0 → 0.16.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 +79 -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: d58235dc3defa4c040c889c7fad7c729813e4958ee0bc53768b71a777edc23ad
|
|
4
|
+
data.tar.gz: cd4f63aaae0b3d135b4a91271232cb4e3fb19661716a4f66ceb43fa168742d61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2664099d47415bff331a76588643536d3c67ea2e17c7cea3c77056b21438640eeb8a3254b5c2e878b1cccbc973a7f4f1b900ddc0e57b193ef3b389f9dfa5156f
|
|
7
|
+
data.tar.gz: d15e571a1483b722588b9270c145d159a36bf37348563da8b28041323f304d1168218f05010b86248eae15f10accae4c801c5d77bf4da0e3f076c63f63ee556e
|
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.16.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.16.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.16.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.16.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.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.16.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -584,6 +584,67 @@ 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
|
+
"deletedAt" => String | nil,
|
|
612
|
+
"createdAt" => String,
|
|
613
|
+
"updatedAt" => String
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
# Spec schema: `CustomGraphInput`.
|
|
617
|
+
type custom_graph_input = { "name" => String, ?"description" => String | nil, ?"source" => String }
|
|
618
|
+
|
|
619
|
+
# Spec schema: `CustomGraphRenderRequest`.
|
|
620
|
+
type custom_graph_render_request = {
|
|
621
|
+
?"controls" => Hash[String, String | Numeric | bool],
|
|
622
|
+
?"button" => String,
|
|
623
|
+
?"trigger" => "manual" | "refresh" | "interaction"
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
# Spec schema: `CustomGraphRenderResult`.
|
|
627
|
+
type custom_graph_render_result = {
|
|
628
|
+
"ok" => bool,
|
|
629
|
+
"spec" => json_object & (Hash[String, untyped] | nil),
|
|
630
|
+
"error" => String | nil,
|
|
631
|
+
"logs" => Array[{ "level" => "info" | "warn" | "error", "message" => String }],
|
|
632
|
+
"renderedAt" => String,
|
|
633
|
+
"durationMs" => Integer
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
# Spec schema: `CustomGraphSummary`.
|
|
637
|
+
type custom_graph_summary = {
|
|
638
|
+
"id" => String,
|
|
639
|
+
"name" => String,
|
|
640
|
+
"description" => String | nil,
|
|
641
|
+
"createdAt" => String,
|
|
642
|
+
"updatedAt" => String
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
# Spec schema: `CustomGraphUpdate`.
|
|
646
|
+
type custom_graph_update = { ?"name" => String, ?"description" => String | nil, ?"source" => String }
|
|
647
|
+
|
|
587
648
|
# Spec schema: `Dashboard`.
|
|
588
649
|
type dashboard = { "id" => String, "name" => String, "isDefault" => bool }
|
|
589
650
|
|
|
@@ -641,7 +702,7 @@ module Infrawrench
|
|
|
641
702
|
}
|
|
642
703
|
|
|
643
704
|
# Spec schema: `DashboardWidgetKind`.
|
|
644
|
-
type dashboard_widget_kind = "cost_graph" | "budget"
|
|
705
|
+
type dashboard_widget_kind = "cost_graph" | "budget" | "custom_graph"
|
|
645
706
|
|
|
646
707
|
# Spec schema: `DashboardWithPins`.
|
|
647
708
|
type dashboard_with_pins = {
|
|
@@ -1454,6 +1515,7 @@ module Infrawrench
|
|
|
1454
1515
|
| "collection"
|
|
1455
1516
|
| "composer-environment"
|
|
1456
1517
|
| "container"
|
|
1518
|
+
| "container-registry"
|
|
1457
1519
|
| "custom-hostname"
|
|
1458
1520
|
| "custom-voice"
|
|
1459
1521
|
| "d1-database"
|
|
@@ -1562,6 +1624,7 @@ module Infrawrench
|
|
|
1562
1624
|
| "k8s-ingress"
|
|
1563
1625
|
| "k8s-job"
|
|
1564
1626
|
| "k8s-namespace"
|
|
1627
|
+
| "k8s-node"
|
|
1565
1628
|
| "k8s-pod"
|
|
1566
1629
|
| "k8s-secret"
|
|
1567
1630
|
| "k8s-service"
|
|
@@ -2244,6 +2307,18 @@ module Infrawrench
|
|
|
2244
2307
|
def status: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "accounts" => Array[cost_account_status] }
|
|
2245
2308
|
end
|
|
2246
2309
|
|
|
2310
|
+
class CustomGraphsNamespace
|
|
2311
|
+
def initialize: (Transport) -> void
|
|
2312
|
+
def check: (body: custom_graph_check_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_check_result
|
|
2313
|
+
def create: (body: custom_graph_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
|
|
2314
|
+
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
2315
|
+
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
|
|
2316
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[custom_graph_summary]
|
|
2317
|
+
def render: (id: String, ?org_id: String?, ?body: custom_graph_render_request?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_render_result
|
|
2318
|
+
def typings: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> String
|
|
2319
|
+
def update: (id: String, body: custom_graph_update, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> custom_graph_full
|
|
2320
|
+
end
|
|
2321
|
+
|
|
2247
2322
|
class DashboardsDefaultNamespace
|
|
2248
2323
|
def initialize: (Transport) -> void
|
|
2249
2324
|
def full: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> dashboard_with_pins
|
|
@@ -2539,6 +2614,7 @@ module Infrawrench
|
|
|
2539
2614
|
attr_reader budgets: BudgetsNamespace
|
|
2540
2615
|
attr_reader connect: ConnectNamespace
|
|
2541
2616
|
attr_reader costs: CostsNamespace
|
|
2617
|
+
attr_reader custom_graphs: CustomGraphsNamespace
|
|
2542
2618
|
attr_reader dashboards: DashboardsNamespace
|
|
2543
2619
|
attr_reader deployments: DeploymentsNamespace
|
|
2544
2620
|
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.16.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.16.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.16.0).
|
|
62
62
|
test_files: []
|