infrawrench-sdk 1.12.0 → 1.13.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 +47 -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 +92 -2
- 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: fe82c9ffcd03c219b43a54d621c17d764bf016082c3690c1c330d3fb51a89eb2
|
|
4
|
+
data.tar.gz: f128050bb920aab571400145b812bcba3f660591cd36a5797686f46d8098e369
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10437ca09c7ead9e234342793c2b64bec369b50987aa2477462804250446c8b3b2fcb10b59f2025f7c7ad1b45b6a21ab7219b23378d7f520dea6b9aae7f7e6a6
|
|
7
|
+
data.tar.gz: 5e2c48172ce7b220f845f7f5480b30f17fc14b351afc0dd3c0d0372bba6b8c9e77f27a5ab27cf191dcb8181eafc494545632ec59a9547a5afa28002c22de2cea
|
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.13.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
|
+
565 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.13.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.13.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.13.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.13.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.13.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.13.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1724,6 +1724,48 @@ module Infrawrench
|
|
|
1724
1724
|
end
|
|
1725
1725
|
end
|
|
1726
1726
|
|
|
1727
|
+
# `client.blast_radius`
|
|
1728
|
+
class BlastRadiusNamespace
|
|
1729
|
+
# @api private
|
|
1730
|
+
# @param transport [Transport]
|
|
1731
|
+
def initialize(transport)
|
|
1732
|
+
@transport = transport
|
|
1733
|
+
end
|
|
1734
|
+
|
|
1735
|
+
# What breaks if this resource is deleted
|
|
1736
|
+
#
|
|
1737
|
+
# An impact report for one resource, assembled from the dependency graph
|
|
1738
|
+
# walked inbound, network flow attribution, and the org objects that name
|
|
1739
|
+
# the resource without depending on it (dashboards, custom graphs, probes,
|
|
1740
|
+
# status pages, metric alerts, leases, schedules, saved log queries,
|
|
1741
|
+
# workflows, and its recorded owner).
|
|
1742
|
+
#
|
|
1743
|
+
# The endpoint answers 200 with a partial report rather than failing when a
|
|
1744
|
+
# source is unavailable; `unchecked` says which, in prose.
|
|
1745
|
+
#
|
|
1746
|
+
# _Requires permission: `resources:read`._
|
|
1747
|
+
#
|
|
1748
|
+
# GET /api/org/{orgId}/blast-radius
|
|
1749
|
+
#
|
|
1750
|
+
# Raises on 400: Missing resourceId
|
|
1751
|
+
#
|
|
1752
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1753
|
+
# constructed with.
|
|
1754
|
+
# @param resource_id [Hash]
|
|
1755
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1756
|
+
# @return [Hash] Parsed JSON, shaped as `BlastRadiusReport` — see `sig/infrawrench/sdk.rbs`.
|
|
1757
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1758
|
+
def get(resource_id:, org_id: nil, request_options: nil)
|
|
1759
|
+
@transport.request(
|
|
1760
|
+
http_method: "GET",
|
|
1761
|
+
path: "/api/org/{orgId}/blast-radius",
|
|
1762
|
+
path_params: { "orgId" => org_id },
|
|
1763
|
+
query: { "resourceId" => resource_id },
|
|
1764
|
+
request_options: request_options
|
|
1765
|
+
)
|
|
1766
|
+
end
|
|
1767
|
+
end
|
|
1768
|
+
|
|
1727
1769
|
# `client.budgets`
|
|
1728
1770
|
class BudgetsNamespace
|
|
1729
1771
|
# @api private
|
|
@@ -12775,6 +12817,8 @@ module Infrawrench
|
|
|
12775
12817
|
attr_reader :billing
|
|
12776
12818
|
# @return [BillingRulesNamespace] `client.billing_rules`
|
|
12777
12819
|
attr_reader :billing_rules
|
|
12820
|
+
# @return [BlastRadiusNamespace] `client.blast_radius`
|
|
12821
|
+
attr_reader :blast_radius
|
|
12778
12822
|
# @return [BudgetsNamespace] `client.budgets`
|
|
12779
12823
|
attr_reader :budgets
|
|
12780
12824
|
# @return [BusinessMetricsNamespace] `client.business_metrics`
|
|
@@ -12929,6 +12973,7 @@ module Infrawrench
|
|
|
12929
12973
|
@bastions = BastionsNamespace.new(@transport)
|
|
12930
12974
|
@billing = BillingNamespace.new(@transport)
|
|
12931
12975
|
@billing_rules = BillingRulesNamespace.new(@transport)
|
|
12976
|
+
@blast_radius = BlastRadiusNamespace.new(@transport)
|
|
12932
12977
|
@budgets = BudgetsNamespace.new(@transport)
|
|
12933
12978
|
@business_metrics = BusinessMetricsNamespace.new(@transport)
|
|
12934
12979
|
@change_freezes = ChangeFreezesNamespace.new(@transport)
|
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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.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.13.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -514,6 +514,90 @@ module Infrawrench
|
|
|
514
514
|
# Spec schema: `BillingStatus`.
|
|
515
515
|
type billing_status = { "complimentary" => bool, "subscription" => subscription, "capacity" => capacity_status }
|
|
516
516
|
|
|
517
|
+
# Spec schema: `BlastRadiusDependant`.
|
|
518
|
+
type blast_radius_dependant = {
|
|
519
|
+
"node" => blast_radius_node & Hash[String, untyped],
|
|
520
|
+
"depth" => Integer,
|
|
521
|
+
?"via" => {
|
|
522
|
+
"fieldKey" => String,
|
|
523
|
+
"outputKey" => String,
|
|
524
|
+
?"kind" => "output-ref" | "declared" | "containment" | "field-match",
|
|
525
|
+
?"label" => String
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
# Spec schema: `BlastRadiusFlowPeer`.
|
|
530
|
+
type blast_radius_flow_peer = {
|
|
531
|
+
"ref" => String,
|
|
532
|
+
"label" => String,
|
|
533
|
+
"direction" => "egress" | "ingress",
|
|
534
|
+
"scope" => String,
|
|
535
|
+
"bytes" => Numeric,
|
|
536
|
+
"estimatedCost" => Numeric,
|
|
537
|
+
"currency" => String,
|
|
538
|
+
"days" => Integer,
|
|
539
|
+
"resourceId" => resource_id & (String | nil)
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
# Spec schema: `BlastRadiusGap`.
|
|
543
|
+
type blast_radius_gap = {
|
|
544
|
+
"kind" => "network-flows"
|
|
545
|
+
| "dependency-graph"
|
|
546
|
+
| "references"
|
|
547
|
+
| "workflow-source"
|
|
548
|
+
| "custom-graph-source",
|
|
549
|
+
"reason" => String
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
# The resource itself, when it participates in the dependency graph.
|
|
553
|
+
#
|
|
554
|
+
# Spec schema: `BlastRadiusNode`.
|
|
555
|
+
type blast_radius_node = {
|
|
556
|
+
"id" => resource_id,
|
|
557
|
+
"displayName" => String,
|
|
558
|
+
"pluginId" => String,
|
|
559
|
+
"pluginDisplayName" => String,
|
|
560
|
+
"pluginLogoSvg" => String,
|
|
561
|
+
"resourceTypeId" => String,
|
|
562
|
+
"resourceTypeLabel" => String,
|
|
563
|
+
"accountId" => String,
|
|
564
|
+
"accountName" => String
|
|
565
|
+
}
|
|
566
|
+
| nil
|
|
567
|
+
|
|
568
|
+
# Spec schema: `BlastRadiusReference`.
|
|
569
|
+
type blast_radius_reference = {
|
|
570
|
+
"kind" => "dashboard"
|
|
571
|
+
| "custom-graph"
|
|
572
|
+
| "probe"
|
|
573
|
+
| "status-page"
|
|
574
|
+
| "metric-alert"
|
|
575
|
+
| "lease"
|
|
576
|
+
| "schedule"
|
|
577
|
+
| "workflow"
|
|
578
|
+
| "log-query"
|
|
579
|
+
| "owner",
|
|
580
|
+
"id" => String,
|
|
581
|
+
"name" => String,
|
|
582
|
+
?"detail" => String,
|
|
583
|
+
?"userFacing" => bool
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
# Spec schema: `BlastRadiusReport`.
|
|
587
|
+
type blast_radius_report = {
|
|
588
|
+
"resourceId" => resource_id,
|
|
589
|
+
"resource" => blast_radius_node,
|
|
590
|
+
"dependants" => Array[blast_radius_dependant],
|
|
591
|
+
"directCount" => Integer,
|
|
592
|
+
"transitiveCount" => Integer,
|
|
593
|
+
"references" => Array[blast_radius_reference],
|
|
594
|
+
"flowPeers" => Array[blast_radius_flow_peer],
|
|
595
|
+
"flowTotals" => { "bytes" => Numeric, "estimatedCost" => Numeric, "currency" => String } | nil,
|
|
596
|
+
"unchecked" => Array[blast_radius_gap],
|
|
597
|
+
"severity" => "none" | "low" | "medium" | "high" | "unknown",
|
|
598
|
+
"headline" => String
|
|
599
|
+
}
|
|
600
|
+
|
|
517
601
|
# Spec schema: `BudgetAlertEvent`.
|
|
518
602
|
type budget_alert_event = {
|
|
519
603
|
"id" => String,
|
|
@@ -5863,6 +5947,11 @@ module Infrawrench
|
|
|
5863
5947
|
def update: (id: String, body: billing_rule_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> billing_rule
|
|
5864
5948
|
end
|
|
5865
5949
|
|
|
5950
|
+
class BlastRadiusNamespace
|
|
5951
|
+
def initialize: (Transport) -> void
|
|
5952
|
+
def get: (resource_id: (resource_id & untyped), ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> blast_radius_report
|
|
5953
|
+
end
|
|
5954
|
+
|
|
5866
5955
|
class BudgetsNamespace
|
|
5867
5956
|
def initialize: (Transport) -> void
|
|
5868
5957
|
def create: (body: budget_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> budget_full
|
|
@@ -6695,6 +6784,7 @@ module Infrawrench
|
|
|
6695
6784
|
attr_reader bastions: BastionsNamespace
|
|
6696
6785
|
attr_reader billing: BillingNamespace
|
|
6697
6786
|
attr_reader billing_rules: BillingRulesNamespace
|
|
6787
|
+
attr_reader blast_radius: BlastRadiusNamespace
|
|
6698
6788
|
attr_reader budgets: BudgetsNamespace
|
|
6699
6789
|
attr_reader business_metrics: BusinessMetricsNamespace
|
|
6700
6790
|
attr_reader change_freezes: ChangeFreezesNamespace
|
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.13.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-08-11 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.13.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.13.0).
|
|
62
62
|
test_files: []
|