infrawrench-sdk 0.18.0 → 0.20.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 +127 -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 -8
- 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: 5b2aa57bcc2fbd17de00c520a3c60b34f37d8694384a7c608a105971a0c002d3
|
|
4
|
+
data.tar.gz: 7dad27d88aee603b8cc6bded0d97184e06b1d5f38c74d21e3f7ef5a8300df1fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7a1f587ef4f96872c9ad53cdc0d278e1d40351239c73fe157333fe9e6a5c3c8b3cf5367049e847e32993b4eda826fd11318ab1a839969b38dbaae30cd1cb985
|
|
7
|
+
data.tar.gz: be96a48198f36e1ecc606fbfe402d61fae7cfba652f43682863d31f97d94b3bd8241d16d1226999aa2d81ec837b310976a0fc2afe580167d74c0d4fbe859a09a
|
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.20.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
|
+
230 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.20.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.20.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.20.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.20.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.20.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.20.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -2382,6 +2382,87 @@ module Infrawrench
|
|
|
2382
2382
|
end
|
|
2383
2383
|
end
|
|
2384
2384
|
|
|
2385
|
+
# `client.digest`
|
|
2386
|
+
class DigestNamespace
|
|
2387
|
+
# @api private
|
|
2388
|
+
# @param transport [Transport]
|
|
2389
|
+
def initialize(transport)
|
|
2390
|
+
@transport = transport
|
|
2391
|
+
end
|
|
2392
|
+
|
|
2393
|
+
# Get the organization's weekly digest settings
|
|
2394
|
+
#
|
|
2395
|
+
# The weekly digest is a Monday-morning summary of last week's spend (with
|
|
2396
|
+
# week-over-week movers), sync incidents, and resource churn, delivered to
|
|
2397
|
+
# the Slack channels and Teams webhooks opted into the weeklyDigest trigger.
|
|
2398
|
+
#
|
|
2399
|
+
# GET /api/org/{orgId}/digest
|
|
2400
|
+
#
|
|
2401
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2402
|
+
# constructed with.
|
|
2403
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2404
|
+
# @return [Hash] Parsed JSON, shaped as `DigestSettings` — see `sig/infrawrench/sdk.rbs`.
|
|
2405
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2406
|
+
def get(org_id: nil, request_options: nil)
|
|
2407
|
+
@transport.request(
|
|
2408
|
+
http_method: "GET",
|
|
2409
|
+
path: "/api/org/{orgId}/digest",
|
|
2410
|
+
path_params: { "orgId" => org_id },
|
|
2411
|
+
request_options: request_options
|
|
2412
|
+
)
|
|
2413
|
+
end
|
|
2414
|
+
|
|
2415
|
+
# Compose and send last week's digest now
|
|
2416
|
+
#
|
|
2417
|
+
# Ignores the schedule and the enabled flag — composes the digest for the
|
|
2418
|
+
# last complete week and posts it to every opted-in channel. Fails when no
|
|
2419
|
+
# Slack channel or Teams webhook has the weeklyDigest trigger on.
|
|
2420
|
+
#
|
|
2421
|
+
# POST /api/org/{orgId}/digest/send
|
|
2422
|
+
#
|
|
2423
|
+
# Raises on 400: Bad request
|
|
2424
|
+
#
|
|
2425
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2426
|
+
# constructed with.
|
|
2427
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2428
|
+
# @return [Hash] Parsed JSON, shaped as `DigestSendResult` — see `sig/infrawrench/sdk.rbs`.
|
|
2429
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2430
|
+
def post_org_org_id_digest_send(org_id: nil, request_options: nil)
|
|
2431
|
+
@transport.request(
|
|
2432
|
+
http_method: "POST",
|
|
2433
|
+
path: "/api/org/{orgId}/digest/send",
|
|
2434
|
+
path_params: { "orgId" => org_id },
|
|
2435
|
+
request_options: request_options
|
|
2436
|
+
)
|
|
2437
|
+
end
|
|
2438
|
+
|
|
2439
|
+
# Enable or disable the weekly digest
|
|
2440
|
+
#
|
|
2441
|
+
# Enabling schedules the first digest for next Monday morning (07:00 UTC)
|
|
2442
|
+
# rather than sending immediately — use POST /digest/send for an immediate
|
|
2443
|
+
# one.
|
|
2444
|
+
#
|
|
2445
|
+
# PUT /api/org/{orgId}/digest
|
|
2446
|
+
#
|
|
2447
|
+
# Raises on 400: Bad request
|
|
2448
|
+
#
|
|
2449
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2450
|
+
# constructed with.
|
|
2451
|
+
# @param body [Hash, nil] Request body, shaped as `DigestSettingsUpdate`.
|
|
2452
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2453
|
+
# @return [Hash] Parsed JSON, shaped as `DigestSettings` — see `sig/infrawrench/sdk.rbs`.
|
|
2454
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2455
|
+
def update(org_id: nil, body: nil, request_options: nil)
|
|
2456
|
+
@transport.request(
|
|
2457
|
+
http_method: "PUT",
|
|
2458
|
+
path: "/api/org/{orgId}/digest",
|
|
2459
|
+
path_params: { "orgId" => org_id },
|
|
2460
|
+
body: body,
|
|
2461
|
+
request_options: request_options
|
|
2462
|
+
)
|
|
2463
|
+
end
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2385
2466
|
# `client.docker`
|
|
2386
2467
|
class DockerNamespace
|
|
2387
2468
|
# @api private
|
|
@@ -2690,6 +2771,44 @@ module Infrawrench
|
|
|
2690
2771
|
end
|
|
2691
2772
|
end
|
|
2692
2773
|
|
|
2774
|
+
# `client.orphans`
|
|
2775
|
+
class OrphansNamespace
|
|
2776
|
+
# @api private
|
|
2777
|
+
# @param transport [Transport]
|
|
2778
|
+
def initialize(transport)
|
|
2779
|
+
@transport = transport
|
|
2780
|
+
end
|
|
2781
|
+
|
|
2782
|
+
# List likely-orphaned and idle resources
|
|
2783
|
+
#
|
|
2784
|
+
# Scans the organization's already-synced resources against each plugin's
|
|
2785
|
+
# declarative orphan heuristics — unattached volumes, unassigned
|
|
2786
|
+
# floating/elastic IPs, reserved-but-unused static IPs — and returns the
|
|
2787
|
+
# matches grouped by account, each with the plugin's reason. Purely a read
|
|
2788
|
+
# over stored state: no provider API calls are made, so results reflect the
|
|
2789
|
+
# last sync. Where the org's collected cost data has per-resource rows,
|
|
2790
|
+
# matches are annotated with trailing spend.
|
|
2791
|
+
#
|
|
2792
|
+
# _Requires permission: `resources:read`._
|
|
2793
|
+
#
|
|
2794
|
+
# GET /api/org/{orgId}/orphans
|
|
2795
|
+
#
|
|
2796
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
2797
|
+
# constructed with.
|
|
2798
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
2799
|
+
# @return [Hash] Parsed JSON, shaped as `OrphanListResponse` — see
|
|
2800
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
2801
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
2802
|
+
def get(org_id: nil, request_options: nil)
|
|
2803
|
+
@transport.request(
|
|
2804
|
+
http_method: "GET",
|
|
2805
|
+
path: "/api/org/{orgId}/orphans",
|
|
2806
|
+
path_params: { "orgId" => org_id },
|
|
2807
|
+
request_options: request_options
|
|
2808
|
+
)
|
|
2809
|
+
end
|
|
2810
|
+
end
|
|
2811
|
+
|
|
2693
2812
|
# `client.pages`
|
|
2694
2813
|
class PagesNamespace
|
|
2695
2814
|
# @api private
|
|
@@ -5190,6 +5309,8 @@ module Infrawrench
|
|
|
5190
5309
|
attr_reader :dashboards
|
|
5191
5310
|
# @return [DeploymentsNamespace] `client.deployments`
|
|
5192
5311
|
attr_reader :deployments
|
|
5312
|
+
# @return [DigestNamespace] `client.digest`
|
|
5313
|
+
attr_reader :digest
|
|
5193
5314
|
# @return [DockerNamespace] `client.docker`
|
|
5194
5315
|
attr_reader :docker
|
|
5195
5316
|
# @return [InvitationsNamespace] `client.invitations`
|
|
@@ -5200,6 +5321,8 @@ module Infrawrench
|
|
|
5200
5321
|
attr_reader :msteams
|
|
5201
5322
|
# @return [OrgsNamespace] `client.orgs`
|
|
5202
5323
|
attr_reader :orgs
|
|
5324
|
+
# @return [OrphansNamespace] `client.orphans`
|
|
5325
|
+
attr_reader :orphans
|
|
5203
5326
|
# @return [PagesNamespace] `client.pages`
|
|
5204
5327
|
attr_reader :pages
|
|
5205
5328
|
# @return [ProfileNamespace] `client.profile`
|
|
@@ -5243,11 +5366,13 @@ module Infrawrench
|
|
|
5243
5366
|
@custom_graphs = CustomGraphsNamespace.new(@transport)
|
|
5244
5367
|
@dashboards = DashboardsNamespace.new(@transport)
|
|
5245
5368
|
@deployments = DeploymentsNamespace.new(@transport)
|
|
5369
|
+
@digest = DigestNamespace.new(@transport)
|
|
5246
5370
|
@docker = DockerNamespace.new(@transport)
|
|
5247
5371
|
@invitations = InvitationsNamespace.new(@transport)
|
|
5248
5372
|
@kv = KvNamespace.new(@transport)
|
|
5249
5373
|
@msteams = MsteamsNamespace.new(@transport)
|
|
5250
5374
|
@orgs = OrgsNamespace.new(@transport)
|
|
5375
|
+
@orphans = OrphansNamespace.new(@transport)
|
|
5251
5376
|
@pages = PagesNamespace.new(@transport)
|
|
5252
5377
|
@profile = ProfileNamespace.new(@transport)
|
|
5253
5378
|
@resources = ResourcesNamespace.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.20.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.20.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.20.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.20.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.20.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.20.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.20.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.20.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.20.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.20.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.20.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -848,6 +848,15 @@ module Infrawrench
|
|
|
848
848
|
# Spec schema: `DescribeResponse`.
|
|
849
849
|
type describe_response = { "text" => String }
|
|
850
850
|
|
|
851
|
+
# Spec schema: `DigestSendResult`.
|
|
852
|
+
type digest_send_result = { "ok" => bool, "attempted" => Integer, "succeeded" => Integer }
|
|
853
|
+
|
|
854
|
+
# Spec schema: `DigestSettings`.
|
|
855
|
+
type digest_settings = { "enabled" => bool, "lastSentWeekStart" => String | nil, "lastSentAt" => String | nil }
|
|
856
|
+
|
|
857
|
+
# Spec schema: `DigestSettingsUpdate`.
|
|
858
|
+
type digest_settings_update = { "enabled" => bool }
|
|
859
|
+
|
|
851
860
|
# Spec schema: `DockerCommandRequest`.
|
|
852
861
|
type docker_command_request = { "accountId" => String, "op" => String, ?"params" => json_object }
|
|
853
862
|
|
|
@@ -1031,7 +1040,8 @@ module Infrawrench
|
|
|
1031
1040
|
"urlHint" => String,
|
|
1032
1041
|
"syncIncidents" => bool,
|
|
1033
1042
|
"budgetAlerts" => bool,
|
|
1034
|
-
"workflowPages" => bool
|
|
1043
|
+
"workflowPages" => bool,
|
|
1044
|
+
"weeklyDigest" => bool
|
|
1035
1045
|
}
|
|
1036
1046
|
|
|
1037
1047
|
# Spec schema: `MsTeamsWebhookCreate`.
|
|
@@ -1040,7 +1050,8 @@ module Infrawrench
|
|
|
1040
1050
|
"url" => String,
|
|
1041
1051
|
?"syncIncidents" => bool,
|
|
1042
1052
|
?"budgetAlerts" => bool,
|
|
1043
|
-
?"workflowPages" => bool
|
|
1053
|
+
?"workflowPages" => bool,
|
|
1054
|
+
?"weeklyDigest" => bool
|
|
1044
1055
|
}
|
|
1045
1056
|
|
|
1046
1057
|
# Spec schema: `MsTeamsWebhookUpdate`.
|
|
@@ -1048,7 +1059,8 @@ module Infrawrench
|
|
|
1048
1059
|
?"label" => String,
|
|
1049
1060
|
?"syncIncidents" => bool,
|
|
1050
1061
|
?"budgetAlerts" => bool,
|
|
1051
|
-
?"workflowPages" => bool
|
|
1062
|
+
?"workflowPages" => bool,
|
|
1063
|
+
?"weeklyDigest" => bool
|
|
1052
1064
|
}
|
|
1053
1065
|
|
|
1054
1066
|
# Spec schema: `NoSqlCommandRequest`.
|
|
@@ -1089,6 +1101,43 @@ module Infrawrench
|
|
|
1089
1101
|
# Spec schema: `OrganizationRole`.
|
|
1090
1102
|
type organization_role = "owner" | "admin" | "member"
|
|
1091
1103
|
|
|
1104
|
+
# Spec schema: `OrphanAccountGroup`.
|
|
1105
|
+
type orphan_account_group = {
|
|
1106
|
+
"accountId" => String,
|
|
1107
|
+
"accountName" => String,
|
|
1108
|
+
"pluginId" => plugin_id,
|
|
1109
|
+
"pluginName" => String,
|
|
1110
|
+
"resources" => Array[orphaned_resource]
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
# Best-effort trailing spend matched from collected per-resource cost rows;
|
|
1114
|
+
# null when the provider reports no per-resource cost. The flag itself never
|
|
1115
|
+
# depends on billing data.
|
|
1116
|
+
#
|
|
1117
|
+
# Spec schema: `OrphanCostAnnotation`.
|
|
1118
|
+
type orphan_cost_annotation = { "amount" => Numeric, "currency" => String } | nil
|
|
1119
|
+
|
|
1120
|
+
# Spec schema: `OrphanListResponse`.
|
|
1121
|
+
type orphan_list_response = {
|
|
1122
|
+
"accounts" => Array[orphan_account_group],
|
|
1123
|
+
"totalCount" => Integer,
|
|
1124
|
+
"costWindowDays" => Integer,
|
|
1125
|
+
"generatedAt" => String
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
# Spec schema: `OrphanedResource`.
|
|
1129
|
+
type orphaned_resource = {
|
|
1130
|
+
"id" => String,
|
|
1131
|
+
"pluginId" => plugin_id,
|
|
1132
|
+
"resourceTypeId" => String,
|
|
1133
|
+
"resourceTypeName" => String,
|
|
1134
|
+
"displayName" => String,
|
|
1135
|
+
"externalId" => String | nil,
|
|
1136
|
+
"reason" => String,
|
|
1137
|
+
"cost" => orphan_cost_annotation,
|
|
1138
|
+
"lastSyncedAt" => String | nil
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1092
1141
|
# Spec schema: `OwnershipBlocker`.
|
|
1093
1142
|
type ownership_blocker = { "id" => String, "name" => String, "memberCount" => Integer }
|
|
1094
1143
|
|
|
@@ -1960,7 +2009,8 @@ module Infrawrench
|
|
|
1960
2009
|
"isPrivate" => bool,
|
|
1961
2010
|
"syncIncidents" => bool,
|
|
1962
2011
|
"budgetAlerts" => bool,
|
|
1963
|
-
"workflowPages" => bool
|
|
2012
|
+
"workflowPages" => bool,
|
|
2013
|
+
"weeklyDigest" => bool
|
|
1964
2014
|
}
|
|
1965
2015
|
|
|
1966
2016
|
# Spec schema: `SlackChannelCreate`.
|
|
@@ -1971,11 +2021,17 @@ module Infrawrench
|
|
|
1971
2021
|
?"isPrivate" => bool,
|
|
1972
2022
|
?"syncIncidents" => bool,
|
|
1973
2023
|
?"budgetAlerts" => bool,
|
|
1974
|
-
?"workflowPages" => bool
|
|
2024
|
+
?"workflowPages" => bool,
|
|
2025
|
+
?"weeklyDigest" => bool
|
|
1975
2026
|
}
|
|
1976
2027
|
|
|
1977
2028
|
# Spec schema: `SlackChannelUpdate`.
|
|
1978
|
-
type slack_channel_update = {
|
|
2029
|
+
type slack_channel_update = {
|
|
2030
|
+
?"syncIncidents" => bool,
|
|
2031
|
+
?"budgetAlerts" => bool,
|
|
2032
|
+
?"workflowPages" => bool,
|
|
2033
|
+
?"weeklyDigest" => bool
|
|
2034
|
+
}
|
|
1979
2035
|
|
|
1980
2036
|
# Spec schema: `SlackInstallation`.
|
|
1981
2037
|
type slack_installation = { "id" => String, "teamId" => String, "teamName" => String | nil }
|
|
@@ -2120,6 +2176,7 @@ module Infrawrench
|
|
|
2120
2176
|
| "resource"
|
|
2121
2177
|
| "agents"
|
|
2122
2178
|
| "costs"
|
|
2179
|
+
| "savings"
|
|
2123
2180
|
| "workflows"
|
|
2124
2181
|
| "deployments"
|
|
2125
2182
|
| "chat",
|
|
@@ -2382,6 +2439,13 @@ module Infrawrench
|
|
|
2382
2439
|
def repos: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[deploy_repo]
|
|
2383
2440
|
end
|
|
2384
2441
|
|
|
2442
|
+
class DigestNamespace
|
|
2443
|
+
def initialize: (Transport) -> void
|
|
2444
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> digest_settings
|
|
2445
|
+
def post_org_org_id_digest_send: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> digest_send_result
|
|
2446
|
+
def update: (?org_id: String?, ?body: digest_settings_update?, ?request_options: Hash[Symbol, untyped]?) -> digest_settings
|
|
2447
|
+
end
|
|
2448
|
+
|
|
2385
2449
|
class DockerNamespace
|
|
2386
2450
|
def initialize: (Transport) -> void
|
|
2387
2451
|
def command: (body: docker_command_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> docker_command_response
|
|
@@ -2422,6 +2486,11 @@ module Infrawrench
|
|
|
2422
2486
|
def create: (body: create_org_request, ?request_options: Hash[Symbol, untyped]?) -> organization
|
|
2423
2487
|
end
|
|
2424
2488
|
|
|
2489
|
+
class OrphansNamespace
|
|
2490
|
+
def initialize: (Transport) -> void
|
|
2491
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> orphan_list_response
|
|
2492
|
+
end
|
|
2493
|
+
|
|
2425
2494
|
class PagesNamespace
|
|
2426
2495
|
def initialize: (Transport) -> void
|
|
2427
2496
|
def create: (body: page_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> page_response
|
|
@@ -2618,11 +2687,13 @@ module Infrawrench
|
|
|
2618
2687
|
attr_reader custom_graphs: CustomGraphsNamespace
|
|
2619
2688
|
attr_reader dashboards: DashboardsNamespace
|
|
2620
2689
|
attr_reader deployments: DeploymentsNamespace
|
|
2690
|
+
attr_reader digest: DigestNamespace
|
|
2621
2691
|
attr_reader docker: DockerNamespace
|
|
2622
2692
|
attr_reader invitations: InvitationsNamespace
|
|
2623
2693
|
attr_reader kv: KvNamespace
|
|
2624
2694
|
attr_reader msteams: MsteamsNamespace
|
|
2625
2695
|
attr_reader orgs: OrgsNamespace
|
|
2696
|
+
attr_reader orphans: OrphansNamespace
|
|
2626
2697
|
attr_reader pages: PagesNamespace
|
|
2627
2698
|
attr_reader profile: ProfileNamespace
|
|
2628
2699
|
attr_reader resources: ResourcesNamespace
|
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.20.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-31 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.20.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.20.0).
|
|
62
62
|
test_files: []
|