infrawrench-sdk 0.14.0 → 0.15.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 +14 -4
- 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 +35 -4
- 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: 1858f46f47f07801ad40b9dab350a7b397ba4a75f2b62ce70a6d9e0c2c5c70d1
|
|
4
|
+
data.tar.gz: 5abd4e9fd25f6f7565caced42bfca25dda0d998a55bc5e5ab2a2b8e640ab2e0c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5a6c49b8fd05e62b97efbf571503f2dc1d699b6659c9d4affe47e2166b6a075a96596836576b8ff78b76c97c278159da69d01050f24997fd787d772ca1474d5
|
|
7
|
+
data.tar.gz: 0fd9fdf413630ee2b5f2d1ebacd80612dd1ce6a8d68aa7f17821a12db7a6537ae2bac27c38d4b52a931582fab88c149f0f43f5c99a6dd1d28788d3fe5cc41eb6
|
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.15.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
|
+
215 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.15.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.15.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.15.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v0.15.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.15.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.15.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1895,7 +1895,11 @@ module Infrawrench
|
|
|
1895
1895
|
# Re-runs that run's `deploy()` with the image and plan it recorded,
|
|
1896
1896
|
# building nothing — the exact artifact that was known good ships again. The
|
|
1897
1897
|
# Infrafile is read at the commit that run deployed, not at the branch head.
|
|
1898
|
-
# Only a successful run that produced an image can be rolled back to.
|
|
1898
|
+
# Only a successful run that produced an image can be rolled back to. With
|
|
1899
|
+
# `deleteCreated`, resources that runs after the target created through
|
|
1900
|
+
# `infra.accounts` are deleted once the rollback has succeeded — undoing the
|
|
1901
|
+
# provisioning, not just the shipping. Deletions are best-effort and
|
|
1902
|
+
# reported in the result's notes.
|
|
1899
1903
|
#
|
|
1900
1904
|
# _Requires permission: `deployments:write`._
|
|
1901
1905
|
#
|
|
@@ -1917,14 +1921,16 @@ module Infrawrench
|
|
|
1917
1921
|
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
1918
1922
|
# constructed with.
|
|
1919
1923
|
# @param id [String]
|
|
1924
|
+
# @param body [Hash, nil] Request body, shaped as `DeployRollbackInput`.
|
|
1920
1925
|
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
1921
1926
|
# @return [Hash] Parsed JSON, shaped as `DeployPlanResult` — see `sig/infrawrench/sdk.rbs`.
|
|
1922
1927
|
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
1923
|
-
def rollback(id:, org_id: nil, request_options: nil)
|
|
1928
|
+
def rollback(id:, org_id: nil, body: nil, request_options: nil)
|
|
1924
1929
|
@transport.request(
|
|
1925
1930
|
http_method: "POST",
|
|
1926
1931
|
path: "/api/org/{orgId}/deployments/runs/{id}/rollback",
|
|
1927
1932
|
path_params: { "orgId" => org_id, "id" => id },
|
|
1933
|
+
body: body,
|
|
1928
1934
|
request_options: request_options
|
|
1929
1935
|
)
|
|
1930
1936
|
end
|
|
@@ -3584,6 +3590,10 @@ module Infrawrench
|
|
|
3584
3590
|
|
|
3585
3591
|
# Fetch metric series for a resource
|
|
3586
3592
|
#
|
|
3593
|
+
# Historical points from the metrics store when the resource has accumulated
|
|
3594
|
+
# any (resources pinned to a dashboard are polled continuously); otherwise
|
|
3595
|
+
# the series are fetched live from the provider on demand.
|
|
3596
|
+
#
|
|
3587
3597
|
# _Requires permission: `resources:read`._
|
|
3588
3598
|
#
|
|
3589
3599
|
# POST /api/org/{orgId}/resources/{pluginId}/{typeId}/metrics
|
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.15.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.15.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.15.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.15.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.15.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.15.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.15.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.15.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.15.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.15.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.15.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -662,6 +662,17 @@ module Infrawrench
|
|
|
662
662
|
"metrics" => Array[{ "key" => String, "label" => String, "unit" => String | nil, ?"value" => untyped }]
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
+
# Spec schema: `DeployCreatedResource`.
|
|
666
|
+
type deploy_created_resource = {
|
|
667
|
+
"pluginId" => String,
|
|
668
|
+
"accountId" => String,
|
|
669
|
+
"resourceTypeId" => String,
|
|
670
|
+
"resourceId" => String,
|
|
671
|
+
?"externalId" => String,
|
|
672
|
+
"displayName" => String,
|
|
673
|
+
?"sidecar" => { "pluginId" => String, "parentResourceId" => String }
|
|
674
|
+
}
|
|
675
|
+
|
|
665
676
|
# Spec schema: `DeployEnvs`.
|
|
666
677
|
type deploy_envs = { "envs" => Array[String], "sha" => String, "repo" => String, "branch" => String }
|
|
667
678
|
|
|
@@ -686,6 +697,8 @@ module Infrawrench
|
|
|
686
697
|
?"dockerfile" => String,
|
|
687
698
|
?"image" => String,
|
|
688
699
|
"notes" => Array[String],
|
|
700
|
+
"createdResources" => Array[deploy_created_resource],
|
|
701
|
+
"plannedChanges" => Array[deploy_planned_change],
|
|
689
702
|
"logs" => Array[deploy_run_log],
|
|
690
703
|
?"reachedStage" => deploy_stage,
|
|
691
704
|
?"error" => { "message" => String, ?"stack" => String },
|
|
@@ -693,14 +706,28 @@ module Infrawrench
|
|
|
693
706
|
}
|
|
694
707
|
}
|
|
695
708
|
|
|
709
|
+
# Spec schema: `DeployPlannedChange`.
|
|
710
|
+
type deploy_planned_change = {
|
|
711
|
+
"action" => "create" | "update" | "delete",
|
|
712
|
+
"accountId" => String,
|
|
713
|
+
"resourceTypeId" => String,
|
|
714
|
+
?"resourceId" => String,
|
|
715
|
+
"displayName" => String,
|
|
716
|
+
?"fields" => Hash[String, String],
|
|
717
|
+
?"sidecar" => { "pluginId" => String, "parentResourceId" => String }
|
|
718
|
+
}
|
|
719
|
+
|
|
696
720
|
# Spec schema: `DeployRepo`.
|
|
697
721
|
type deploy_repo = { "fullName" => String, "defaultBranch" => String }
|
|
698
722
|
|
|
723
|
+
# Spec schema: `DeployRollbackInput`.
|
|
724
|
+
type deploy_rollback_input = { ?"deleteCreated" => bool }
|
|
725
|
+
|
|
699
726
|
# Spec schema: `DeployRunLog`.
|
|
700
727
|
type deploy_run_log = { "at" => Integer, "level" => "debug" | "info" | "warn" | "error", "message" => String }
|
|
701
728
|
|
|
702
729
|
# Spec schema: `DeployStage`.
|
|
703
|
-
type deploy_stage = "plan" | "dockerfile" | "build" | "deploy"
|
|
730
|
+
type deploy_stage = "plan" | "dockerfile" | "build" | "deploy" | "destroy"
|
|
704
731
|
|
|
705
732
|
# Spec schema: `DeployStatus`.
|
|
706
733
|
type deploy_status = "pending" | "running" | "success" | "failure" | "canceled"
|
|
@@ -746,6 +773,9 @@ module Infrawrench
|
|
|
746
773
|
?"image" => String,
|
|
747
774
|
?"stage" => deploy_stage,
|
|
748
775
|
?"notes" => Array[String],
|
|
776
|
+
?"output" => untyped,
|
|
777
|
+
?"plan" => untyped,
|
|
778
|
+
?"createdResources" => Array[deploy_created_resource],
|
|
749
779
|
?"durationMs" => Integer,
|
|
750
780
|
?"error" => { "message" => String } | nil
|
|
751
781
|
}
|
|
@@ -1495,6 +1525,7 @@ module Infrawrench
|
|
|
1495
1525
|
| "gateway"
|
|
1496
1526
|
| "gce-disk"
|
|
1497
1527
|
| "gce-instance"
|
|
1528
|
+
| "gcp-project"
|
|
1498
1529
|
| "gcp-service-account"
|
|
1499
1530
|
| "gcs-bucket"
|
|
1500
1531
|
| "gen-ai-agent"
|
|
@@ -2255,7 +2286,7 @@ module Infrawrench
|
|
|
2255
2286
|
def create: (?org_id: String?, ?body: deployment_run_input?, ?request_options: Hash[Symbol, untyped]?) -> { "id" => String }
|
|
2256
2287
|
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> deployment_run
|
|
2257
2288
|
def list: (?org_id: String?, ?env: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> Array[deployment_run]
|
|
2258
|
-
def rollback: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> deploy_plan_result
|
|
2289
|
+
def rollback: (id: String, ?org_id: String?, ?body: deploy_rollback_input?, ?request_options: Hash[Symbol, untyped]?) -> deploy_plan_result
|
|
2259
2290
|
end
|
|
2260
2291
|
|
|
2261
2292
|
class DeploymentsTriggersNamespace
|
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.15.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-07-29 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.15.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.15.0).
|
|
62
62
|
test_files: []
|