infrawrench-sdk 1.77.0 → 1.79.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 +452 -5
- 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 +323 -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: 687a70061b19e0a2efbf1599ff0a0ab1a248b60067e63b7982c69e210eaba39a
|
|
4
|
+
data.tar.gz: 03a24633a77f278eb0baac3bf1ef82973b73f134db3a370168ebd89dbb78a2fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 436adf1ea183097d066e10eb4b2e64248be1107a3130736b85f9fed7814e43f26ac41ca812198c07bf76916a2af1235dedb4648f657cfc03e67b4767f82287d2
|
|
7
|
+
data.tar.gz: 9f5cbbca90da8e278ef4d0f0e72c4df7cf1b5244eb84803fec555738c590f7409d56e8a3625c5b4837f01d7dd09aab90b8a06785789d34919f5164b9623adb35
|
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.79.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
|
+
976 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.79.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.79.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.79.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.79.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.79.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.79.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -4885,9 +4885,9 @@ module Infrawrench
|
|
|
4885
4885
|
# Export the organization's configuration as one document
|
|
4886
4886
|
#
|
|
4887
4887
|
# Dashboards, workflows, custom graphs, budgets, metric alerts, synthetic
|
|
4888
|
-
# probes, cost centres, the tag policy and the org-wide alert
|
|
4889
|
-
# addressed by stable keys rather than row ids so the result
|
|
4890
|
-
# organization.
|
|
4888
|
+
# probes, SLOs, cost centres, the tag policy and the org-wide alert
|
|
4889
|
+
# settings, addressed by stable keys rather than row ids so the result
|
|
4890
|
+
# applies to any organization.
|
|
4891
4891
|
#
|
|
4892
4892
|
# Credentials, accounts, resources and workflow signing secrets are never
|
|
4893
4893
|
# included. Ordering is stable, so re-exporting an unchanged organization
|
|
@@ -15551,6 +15551,228 @@ module Infrawrench
|
|
|
15551
15551
|
end
|
|
15552
15552
|
end
|
|
15553
15553
|
|
|
15554
|
+
# `client.pr_checks.repositories`
|
|
15555
|
+
class PrChecksRepositoriesNamespace
|
|
15556
|
+
# @api private
|
|
15557
|
+
# @param transport [Transport]
|
|
15558
|
+
def initialize(transport)
|
|
15559
|
+
@transport = transport
|
|
15560
|
+
end
|
|
15561
|
+
|
|
15562
|
+
# Turn on pull request checks for a repository
|
|
15563
|
+
#
|
|
15564
|
+
# _Requires permission: `org:settings:write`._
|
|
15565
|
+
#
|
|
15566
|
+
# POST /api/org/{orgId}/pr-checks/repositories
|
|
15567
|
+
#
|
|
15568
|
+
# Raises on 400: Bad request
|
|
15569
|
+
#
|
|
15570
|
+
# Raises on 409: Conflict
|
|
15571
|
+
#
|
|
15572
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15573
|
+
# constructed with.
|
|
15574
|
+
# @param body [Hash] Request body, shaped as `PrCheckRepositoryInput`.
|
|
15575
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15576
|
+
# @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
|
|
15577
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15578
|
+
def create(body:, org_id: nil, request_options: nil)
|
|
15579
|
+
@transport.request(
|
|
15580
|
+
http_method: "POST",
|
|
15581
|
+
path: "/api/org/{orgId}/pr-checks/repositories",
|
|
15582
|
+
path_params: { "orgId" => org_id },
|
|
15583
|
+
body: body,
|
|
15584
|
+
request_options: request_options
|
|
15585
|
+
)
|
|
15586
|
+
end
|
|
15587
|
+
|
|
15588
|
+
# Stop pull request checks for a repository
|
|
15589
|
+
#
|
|
15590
|
+
# Removes the settings and the repository's check history.
|
|
15591
|
+
#
|
|
15592
|
+
# _Requires permission: `org:settings:write`._
|
|
15593
|
+
#
|
|
15594
|
+
# DELETE /api/org/{orgId}/pr-checks/repositories/{id}
|
|
15595
|
+
#
|
|
15596
|
+
# Raises on 404: Not found
|
|
15597
|
+
#
|
|
15598
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15599
|
+
# constructed with.
|
|
15600
|
+
# @param id [String]
|
|
15601
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15602
|
+
# @return [Hash] Parsed JSON, shaped as `Hash` — see `sig/infrawrench/sdk.rbs`.
|
|
15603
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15604
|
+
def delete(id:, org_id: nil, request_options: nil)
|
|
15605
|
+
@transport.request(
|
|
15606
|
+
http_method: "DELETE",
|
|
15607
|
+
path: "/api/org/{orgId}/pr-checks/repositories/{id}",
|
|
15608
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
15609
|
+
request_options: request_options
|
|
15610
|
+
)
|
|
15611
|
+
end
|
|
15612
|
+
|
|
15613
|
+
# Get one repository's pull request check settings
|
|
15614
|
+
#
|
|
15615
|
+
# _Requires permission: `iac:read`._
|
|
15616
|
+
#
|
|
15617
|
+
# GET /api/org/{orgId}/pr-checks/repositories/{id}
|
|
15618
|
+
#
|
|
15619
|
+
# Raises on 404: Not found
|
|
15620
|
+
#
|
|
15621
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15622
|
+
# constructed with.
|
|
15623
|
+
# @param id [String]
|
|
15624
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15625
|
+
# @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
|
|
15626
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15627
|
+
def get(id:, org_id: nil, request_options: nil)
|
|
15628
|
+
@transport.request(
|
|
15629
|
+
http_method: "GET",
|
|
15630
|
+
path: "/api/org/{orgId}/pr-checks/repositories/{id}",
|
|
15631
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
15632
|
+
request_options: request_options
|
|
15633
|
+
)
|
|
15634
|
+
end
|
|
15635
|
+
|
|
15636
|
+
# List repositories with pull request checks
|
|
15637
|
+
#
|
|
15638
|
+
# _Requires permission: `iac:read`._
|
|
15639
|
+
#
|
|
15640
|
+
# GET /api/org/{orgId}/pr-checks/repositories
|
|
15641
|
+
#
|
|
15642
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15643
|
+
# constructed with.
|
|
15644
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15645
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<PrCheckRepository>` — see
|
|
15646
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
15647
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15648
|
+
def list(org_id: nil, request_options: nil)
|
|
15649
|
+
@transport.request(
|
|
15650
|
+
http_method: "GET",
|
|
15651
|
+
path: "/api/org/{orgId}/pr-checks/repositories",
|
|
15652
|
+
path_params: { "orgId" => org_id },
|
|
15653
|
+
request_options: request_options
|
|
15654
|
+
)
|
|
15655
|
+
end
|
|
15656
|
+
|
|
15657
|
+
# Replace one repository's pull request check settings
|
|
15658
|
+
#
|
|
15659
|
+
# _Requires permission: `org:settings:write`._
|
|
15660
|
+
#
|
|
15661
|
+
# PUT /api/org/{orgId}/pr-checks/repositories/{id}
|
|
15662
|
+
#
|
|
15663
|
+
# Raises on 400: Bad request
|
|
15664
|
+
#
|
|
15665
|
+
# Raises on 404: Not found
|
|
15666
|
+
#
|
|
15667
|
+
# Raises on 409: Conflict
|
|
15668
|
+
#
|
|
15669
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15670
|
+
# constructed with.
|
|
15671
|
+
# @param id [String]
|
|
15672
|
+
# @param body [Hash] Request body, shaped as `PrCheckRepositoryInput`.
|
|
15673
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15674
|
+
# @return [Hash] Parsed JSON, shaped as `PrCheckRepository` — see `sig/infrawrench/sdk.rbs`.
|
|
15675
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15676
|
+
def update(id:, body:, org_id: nil, request_options: nil)
|
|
15677
|
+
@transport.request(
|
|
15678
|
+
http_method: "PUT",
|
|
15679
|
+
path: "/api/org/{orgId}/pr-checks/repositories/{id}",
|
|
15680
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
15681
|
+
body: body,
|
|
15682
|
+
request_options: request_options
|
|
15683
|
+
)
|
|
15684
|
+
end
|
|
15685
|
+
end
|
|
15686
|
+
|
|
15687
|
+
# `client.pr_checks`
|
|
15688
|
+
class PrChecksNamespace
|
|
15689
|
+
# @return [PrChecksRepositoriesNamespace] `client.pr_checks.repositories`
|
|
15690
|
+
attr_reader :repositories
|
|
15691
|
+
|
|
15692
|
+
# @api private
|
|
15693
|
+
# @param transport [Transport]
|
|
15694
|
+
def initialize(transport)
|
|
15695
|
+
@transport = transport
|
|
15696
|
+
@repositories = PrChecksRepositoriesNamespace.new(@transport)
|
|
15697
|
+
end
|
|
15698
|
+
|
|
15699
|
+
# Get pull request check settings and installation access
|
|
15700
|
+
#
|
|
15701
|
+
# _Requires permission: `iac:read`._
|
|
15702
|
+
#
|
|
15703
|
+
# GET /api/org/{orgId}/pr-checks
|
|
15704
|
+
#
|
|
15705
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15706
|
+
# constructed with.
|
|
15707
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15708
|
+
# @return [Hash] Parsed JSON, shaped as `PrCheckStatus` — see `sig/infrawrench/sdk.rbs`.
|
|
15709
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15710
|
+
def get(org_id: nil, request_options: nil)
|
|
15711
|
+
@transport.request(
|
|
15712
|
+
http_method: "GET",
|
|
15713
|
+
path: "/api/org/{orgId}/pr-checks",
|
|
15714
|
+
path_params: { "orgId" => org_id },
|
|
15715
|
+
request_options: request_options
|
|
15716
|
+
)
|
|
15717
|
+
end
|
|
15718
|
+
|
|
15719
|
+
# Preview a pull request check without posting it
|
|
15720
|
+
#
|
|
15721
|
+
# Runs the same analysis the check posts, for a pull request in a configured
|
|
15722
|
+
# repository or for file contents from a local diff. Reads only: nothing is
|
|
15723
|
+
# posted to GitHub and nothing is stored.
|
|
15724
|
+
#
|
|
15725
|
+
# _Requires permission: `iac:read`._
|
|
15726
|
+
#
|
|
15727
|
+
# POST /api/org/{orgId}/pr-checks/preview
|
|
15728
|
+
#
|
|
15729
|
+
# Raises on 400: Bad request
|
|
15730
|
+
#
|
|
15731
|
+
# Raises on 404: Not found
|
|
15732
|
+
#
|
|
15733
|
+
# Raises on 502: GitHub refused the request or was unreachable
|
|
15734
|
+
#
|
|
15735
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15736
|
+
# constructed with.
|
|
15737
|
+
# @param body [Hash] Request body, shaped as `PrCheckPreviewInput`.
|
|
15738
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15739
|
+
# @return [Hash] Parsed JSON, shaped as `PrCheckPreview` — see `sig/infrawrench/sdk.rbs`.
|
|
15740
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15741
|
+
def preview(body:, org_id: nil, request_options: nil)
|
|
15742
|
+
@transport.request(
|
|
15743
|
+
http_method: "POST",
|
|
15744
|
+
path: "/api/org/{orgId}/pr-checks/preview",
|
|
15745
|
+
path_params: { "orgId" => org_id },
|
|
15746
|
+
body: body,
|
|
15747
|
+
request_options: request_options
|
|
15748
|
+
)
|
|
15749
|
+
end
|
|
15750
|
+
|
|
15751
|
+
# List recent pull request checks
|
|
15752
|
+
#
|
|
15753
|
+
# _Requires permission: `iac:read`._
|
|
15754
|
+
#
|
|
15755
|
+
# GET /api/org/{orgId}/pr-checks/runs
|
|
15756
|
+
#
|
|
15757
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
15758
|
+
# constructed with.
|
|
15759
|
+
# @param repository_id [String, nil]
|
|
15760
|
+
# @param limit [Integer, nil]
|
|
15761
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
15762
|
+
# @return [Array<Hash>] Parsed JSON, shaped as `Array<PrCheckRun>` — see
|
|
15763
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
15764
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
15765
|
+
def runs(org_id: nil, repository_id: nil, limit: nil, request_options: nil)
|
|
15766
|
+
@transport.request(
|
|
15767
|
+
http_method: "GET",
|
|
15768
|
+
path: "/api/org/{orgId}/pr-checks/runs",
|
|
15769
|
+
path_params: { "orgId" => org_id },
|
|
15770
|
+
query: { "repositoryId" => repository_id, "limit" => limit },
|
|
15771
|
+
request_options: request_options
|
|
15772
|
+
)
|
|
15773
|
+
end
|
|
15774
|
+
end
|
|
15775
|
+
|
|
15554
15776
|
# `client.price_catalog`
|
|
15555
15777
|
class PriceCatalogNamespace
|
|
15556
15778
|
# @api private
|
|
@@ -19699,6 +19921,225 @@ module Infrawrench
|
|
|
19699
19921
|
end
|
|
19700
19922
|
end
|
|
19701
19923
|
|
|
19924
|
+
# `client.slos.get`
|
|
19925
|
+
class SlosGetNamespace
|
|
19926
|
+
# @api private
|
|
19927
|
+
# @param transport [Transport]
|
|
19928
|
+
def initialize(transport)
|
|
19929
|
+
@transport = transport
|
|
19930
|
+
end
|
|
19931
|
+
|
|
19932
|
+
# List SLOs
|
|
19933
|
+
#
|
|
19934
|
+
# Every service-level objective with its last snapshot: SLI, error budget
|
|
19935
|
+
# remaining (as a fraction and in minutes) and burn rates over the alerting
|
|
19936
|
+
# windows.
|
|
19937
|
+
#
|
|
19938
|
+
# _Requires permission: `resources:read`._
|
|
19939
|
+
#
|
|
19940
|
+
# GET /api/org/{orgId}/slos
|
|
19941
|
+
#
|
|
19942
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
19943
|
+
# constructed with.
|
|
19944
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
19945
|
+
# @return [Hash] Parsed JSON, shaped as `SloList` — see `sig/infrawrench/sdk.rbs`.
|
|
19946
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
19947
|
+
def get(org_id: nil, request_options: nil)
|
|
19948
|
+
@transport.request(
|
|
19949
|
+
http_method: "GET",
|
|
19950
|
+
path: "/api/org/{orgId}/slos",
|
|
19951
|
+
path_params: { "orgId" => org_id },
|
|
19952
|
+
request_options: request_options
|
|
19953
|
+
)
|
|
19954
|
+
end
|
|
19955
|
+
|
|
19956
|
+
# Read an SLO with its history
|
|
19957
|
+
#
|
|
19958
|
+
# The SLO plus hourly good/total buckets over its window (the SLI and
|
|
19959
|
+
# budget-burndown charts are drawn from these) and the change freeze in
|
|
19960
|
+
# effect, if any.
|
|
19961
|
+
#
|
|
19962
|
+
# _Requires permission: `resources:read`._
|
|
19963
|
+
#
|
|
19964
|
+
# GET /api/org/{orgId}/slos/{sloId}
|
|
19965
|
+
#
|
|
19966
|
+
# Raises on 404: Not found
|
|
19967
|
+
#
|
|
19968
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
19969
|
+
# constructed with.
|
|
19970
|
+
# @param slo_id [String]
|
|
19971
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
19972
|
+
# @return [Hash] Parsed JSON, shaped as `SloDetail` — see `sig/infrawrench/sdk.rbs`.
|
|
19973
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
19974
|
+
def get_org_org_id_slos_slo_id(slo_id:, org_id: nil, request_options: nil)
|
|
19975
|
+
@transport.request(
|
|
19976
|
+
http_method: "GET",
|
|
19977
|
+
path: "/api/org/{orgId}/slos/{sloId}",
|
|
19978
|
+
path_params: { "orgId" => org_id, "sloId" => slo_id },
|
|
19979
|
+
request_options: request_options
|
|
19980
|
+
)
|
|
19981
|
+
end
|
|
19982
|
+
end
|
|
19983
|
+
|
|
19984
|
+
# `client.slos`
|
|
19985
|
+
class SlosNamespace
|
|
19986
|
+
# @return [SlosGetNamespace] `client.slos.get`
|
|
19987
|
+
attr_reader :get
|
|
19988
|
+
|
|
19989
|
+
# @api private
|
|
19990
|
+
# @param transport [Transport]
|
|
19991
|
+
def initialize(transport)
|
|
19992
|
+
@transport = transport
|
|
19993
|
+
@get = SlosGetNamespace.new(@transport)
|
|
19994
|
+
end
|
|
19995
|
+
|
|
19996
|
+
# Create an SLO
|
|
19997
|
+
#
|
|
19998
|
+
# Out-of-range inputs are rejected, not clamped. The source must exist in
|
|
19999
|
+
# the organization. The first evaluation runs within one poller tick.
|
|
20000
|
+
# Audit-logged.
|
|
20001
|
+
#
|
|
20002
|
+
# _Requires permission: `resources:write`._
|
|
20003
|
+
#
|
|
20004
|
+
# POST /api/org/{orgId}/slos
|
|
20005
|
+
#
|
|
20006
|
+
# Raises on 400: Bad request
|
|
20007
|
+
#
|
|
20008
|
+
# Raises on 404: Not found
|
|
20009
|
+
#
|
|
20010
|
+
# Raises on 409: Conflict
|
|
20011
|
+
#
|
|
20012
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
20013
|
+
# constructed with.
|
|
20014
|
+
# @param body [Hash, nil] Request body, shaped as `SloCreate`.
|
|
20015
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
20016
|
+
# @return [Hash] Parsed JSON, shaped as `Slo` — see `sig/infrawrench/sdk.rbs`.
|
|
20017
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
20018
|
+
def create(org_id: nil, body: nil, request_options: nil)
|
|
20019
|
+
@transport.request(
|
|
20020
|
+
http_method: "POST",
|
|
20021
|
+
path: "/api/org/{orgId}/slos",
|
|
20022
|
+
path_params: { "orgId" => org_id },
|
|
20023
|
+
body: body,
|
|
20024
|
+
request_options: request_options
|
|
20025
|
+
)
|
|
20026
|
+
end
|
|
20027
|
+
|
|
20028
|
+
# Delete an SLO
|
|
20029
|
+
#
|
|
20030
|
+
# The measured series are untouched. Audit-logged.
|
|
20031
|
+
#
|
|
20032
|
+
# _Requires permission: `resources:write`._
|
|
20033
|
+
#
|
|
20034
|
+
# DELETE /api/org/{orgId}/slos/{sloId}
|
|
20035
|
+
#
|
|
20036
|
+
# Raises on 404: Not found
|
|
20037
|
+
#
|
|
20038
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
20039
|
+
# constructed with.
|
|
20040
|
+
# @param slo_id [String]
|
|
20041
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
20042
|
+
# @return [nil] This endpoint returns no content.
|
|
20043
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
20044
|
+
def delete(slo_id:, org_id: nil, request_options: nil)
|
|
20045
|
+
@transport.request(
|
|
20046
|
+
http_method: "DELETE",
|
|
20047
|
+
path: "/api/org/{orgId}/slos/{sloId}",
|
|
20048
|
+
path_params: { "orgId" => org_id, "sloId" => slo_id },
|
|
20049
|
+
accept: :empty,
|
|
20050
|
+
request_options: request_options
|
|
20051
|
+
)
|
|
20052
|
+
end
|
|
20053
|
+
|
|
20054
|
+
# Start a change freeze for an SLO
|
|
20055
|
+
#
|
|
20056
|
+
# Acts on the freeze suggestion an exhausted budget makes: creates an
|
|
20057
|
+
# ordinary change freeze named after the SLO, listed and ended like any
|
|
20058
|
+
# other. Needs `freezes:write`.
|
|
20059
|
+
#
|
|
20060
|
+
# _Requires permission: `freezes:write`._
|
|
20061
|
+
#
|
|
20062
|
+
# POST /api/org/{orgId}/slos/{sloId}/freeze
|
|
20063
|
+
#
|
|
20064
|
+
# Raises on 400: Bad request
|
|
20065
|
+
#
|
|
20066
|
+
# Raises on 404: Not found
|
|
20067
|
+
#
|
|
20068
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
20069
|
+
# constructed with.
|
|
20070
|
+
# @param slo_id [String]
|
|
20071
|
+
# @param body [Hash, nil] Request body, shaped as `SloFreezeRequest`.
|
|
20072
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
20073
|
+
# @return [Hash] Parsed JSON, shaped as `SloActiveFreeze & Hash` — see
|
|
20074
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
20075
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
20076
|
+
def post_org_org_id_slos_slo_id_freeze(slo_id:, org_id: nil, body: nil, request_options: nil)
|
|
20077
|
+
@transport.request(
|
|
20078
|
+
http_method: "POST",
|
|
20079
|
+
path: "/api/org/{orgId}/slos/{sloId}/freeze",
|
|
20080
|
+
path_params: { "orgId" => org_id, "sloId" => slo_id },
|
|
20081
|
+
body: body,
|
|
20082
|
+
request_options: request_options
|
|
20083
|
+
)
|
|
20084
|
+
end
|
|
20085
|
+
|
|
20086
|
+
# List what an SLO can be measured from
|
|
20087
|
+
#
|
|
20088
|
+
# Every synthetic probe, and every synced resource that reported a metric
|
|
20089
|
+
# series in the last week with the series it reported. Feeds the editor's
|
|
20090
|
+
# pickers.
|
|
20091
|
+
#
|
|
20092
|
+
# _Requires permission: `resources:read`._
|
|
20093
|
+
#
|
|
20094
|
+
# GET /api/org/{orgId}/slos/sources
|
|
20095
|
+
#
|
|
20096
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
20097
|
+
# constructed with.
|
|
20098
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
20099
|
+
# @return [Hash] Parsed JSON, shaped as `SloSources` — see `sig/infrawrench/sdk.rbs`.
|
|
20100
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
20101
|
+
def sources(org_id: nil, request_options: nil)
|
|
20102
|
+
@transport.request(
|
|
20103
|
+
http_method: "GET",
|
|
20104
|
+
path: "/api/org/{orgId}/slos/sources",
|
|
20105
|
+
path_params: { "orgId" => org_id },
|
|
20106
|
+
request_options: request_options
|
|
20107
|
+
)
|
|
20108
|
+
end
|
|
20109
|
+
|
|
20110
|
+
# Update an SLO
|
|
20111
|
+
#
|
|
20112
|
+
# Omitted fields keep their value. Changing the source, target or window
|
|
20113
|
+
# resets the snapshot and the alert state. Audit-logged.
|
|
20114
|
+
#
|
|
20115
|
+
# _Requires permission: `resources:write`._
|
|
20116
|
+
#
|
|
20117
|
+
# PUT /api/org/{orgId}/slos/{sloId}
|
|
20118
|
+
#
|
|
20119
|
+
# Raises on 400: Bad request
|
|
20120
|
+
#
|
|
20121
|
+
# Raises on 404: Not found
|
|
20122
|
+
#
|
|
20123
|
+
# Raises on 409: Conflict
|
|
20124
|
+
#
|
|
20125
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
20126
|
+
# constructed with.
|
|
20127
|
+
# @param slo_id [String]
|
|
20128
|
+
# @param body [Hash, nil] Request body, shaped as `SloUpdate`.
|
|
20129
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
20130
|
+
# @return [Hash] Parsed JSON, shaped as `Slo` — see `sig/infrawrench/sdk.rbs`.
|
|
20131
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
20132
|
+
def update(slo_id:, org_id: nil, body: nil, request_options: nil)
|
|
20133
|
+
@transport.request(
|
|
20134
|
+
http_method: "PUT",
|
|
20135
|
+
path: "/api/org/{orgId}/slos/{sloId}",
|
|
20136
|
+
path_params: { "orgId" => org_id, "sloId" => slo_id },
|
|
20137
|
+
body: body,
|
|
20138
|
+
request_options: request_options
|
|
20139
|
+
)
|
|
20140
|
+
end
|
|
20141
|
+
end
|
|
20142
|
+
|
|
19702
20143
|
# `client.sql`
|
|
19703
20144
|
class SqlNamespace
|
|
19704
20145
|
# @api private
|
|
@@ -21979,6 +22420,8 @@ module Infrawrench
|
|
|
21979
22420
|
attr_reader :paging_webhooks
|
|
21980
22421
|
# @return [PostureNamespace] `client.posture`
|
|
21981
22422
|
attr_reader :posture
|
|
22423
|
+
# @return [PrChecksNamespace] `client.pr_checks`
|
|
22424
|
+
attr_reader :pr_checks
|
|
21982
22425
|
# @return [PriceCatalogNamespace] `client.price_catalog`
|
|
21983
22426
|
attr_reader :price_catalog
|
|
21984
22427
|
# @return [ProbesNamespace] `client.probes`
|
|
@@ -22013,6 +22456,8 @@ module Infrawrench
|
|
|
22013
22456
|
attr_reader :sharing
|
|
22014
22457
|
# @return [SlackNamespace] `client.slack`
|
|
22015
22458
|
attr_reader :slack
|
|
22459
|
+
# @return [SlosNamespace] `client.slos`
|
|
22460
|
+
attr_reader :slos
|
|
22016
22461
|
# @return [SqlNamespace] `client.sql`
|
|
22017
22462
|
attr_reader :sql
|
|
22018
22463
|
# @return [SshFanoutNamespace] `client.ssh_fanout`
|
|
@@ -22133,6 +22578,7 @@ module Infrawrench
|
|
|
22133
22578
|
@paging_providers = PagingProvidersNamespace.new(@transport)
|
|
22134
22579
|
@paging_webhooks = PagingWebhooksNamespace.new(@transport)
|
|
22135
22580
|
@posture = PostureNamespace.new(@transport)
|
|
22581
|
+
@pr_checks = PrChecksNamespace.new(@transport)
|
|
22136
22582
|
@price_catalog = PriceCatalogNamespace.new(@transport)
|
|
22137
22583
|
@probes = ProbesNamespace.new(@transport)
|
|
22138
22584
|
@profile = ProfileNamespace.new(@transport)
|
|
@@ -22150,6 +22596,7 @@ module Infrawrench
|
|
|
22150
22596
|
@shared_consoles = SharedConsolesNamespace.new(@transport)
|
|
22151
22597
|
@sharing = SharingNamespace.new(@transport)
|
|
22152
22598
|
@slack = SlackNamespace.new(@transport)
|
|
22599
|
+
@slos = SlosNamespace.new(@transport)
|
|
22153
22600
|
@sql = SqlNamespace.new(@transport)
|
|
22154
22601
|
@ssh_fanout = SshFanoutNamespace.new(@transport)
|
|
22155
22602
|
@ssh_keys = SshKeysNamespace.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.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.79.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -6521,6 +6521,7 @@ module Infrawrench
|
|
|
6521
6521
|
?"dashboards" => Array[org_config_dashboard],
|
|
6522
6522
|
?"metricAlerts" => Array[org_config_metric_alert],
|
|
6523
6523
|
?"probes" => Array[org_config_probe],
|
|
6524
|
+
?"slos" => Array[org_config_slo],
|
|
6524
6525
|
?"costCentres" => Array[org_config_cost_centre],
|
|
6525
6526
|
?"tagPolicy" => {
|
|
6526
6527
|
"requiredTags" => Array[{ "key" => String, ?"allowedValues" => Array[String] }],
|
|
@@ -6579,6 +6580,30 @@ module Infrawrench
|
|
|
6579
6580
|
| "tagPolicy"
|
|
6580
6581
|
| "alertSettings"
|
|
6581
6582
|
|
|
6583
|
+
# Spec schema: `OrgConfigSlo`.
|
|
6584
|
+
type org_config_slo = {
|
|
6585
|
+
"key" => String,
|
|
6586
|
+
"name" => String,
|
|
6587
|
+
?"description" => String | nil,
|
|
6588
|
+
"sliKind" => "probe_availability" | "probe_latency" | "metric_threshold",
|
|
6589
|
+
?"probeKey" => String,
|
|
6590
|
+
?"latencyThresholdMs" => Integer,
|
|
6591
|
+
?"resource" => {
|
|
6592
|
+
"pluginId" => String,
|
|
6593
|
+
"resourceTypeId" => String,
|
|
6594
|
+
"externalId" => String,
|
|
6595
|
+
"account" => String
|
|
6596
|
+
},
|
|
6597
|
+
?"metricKey" => String,
|
|
6598
|
+
?"comparator" => "<" | "<=" | ">" | ">=",
|
|
6599
|
+
?"threshold" => Numeric,
|
|
6600
|
+
"targetPercent" => Numeric,
|
|
6601
|
+
?"windowDays" => Numeric | Numeric | Numeric,
|
|
6602
|
+
?"alertsEnabled" => bool,
|
|
6603
|
+
?"suggestFreeze" => bool,
|
|
6604
|
+
?"enabled" => bool
|
|
6605
|
+
}
|
|
6606
|
+
|
|
6582
6607
|
# Something the document asked for that this organization could not satisfy; a
|
|
6583
6608
|
# pin for a resource nobody has synced, an account name that does not exist
|
|
6584
6609
|
# here. Not fatal: the affected card, clause or deletion is dropped and the
|
|
@@ -7267,6 +7292,161 @@ module Infrawrench
|
|
|
7267
7292
|
# Spec schema: `PostureSeverityCounts`.
|
|
7268
7293
|
type posture_severity_counts = { "critical" => Integer, "high" => Integer, "medium" => Integer, "low" => Integer }
|
|
7269
7294
|
|
|
7295
|
+
# Spec schema: `PrCheckChange`.
|
|
7296
|
+
type pr_check_change = {
|
|
7297
|
+
"address" => String,
|
|
7298
|
+
"terraformType" => String,
|
|
7299
|
+
"action" => "create" | "update" | "delete",
|
|
7300
|
+
"path" => String,
|
|
7301
|
+
"line" => Integer | nil,
|
|
7302
|
+
"resourceId" => String | nil,
|
|
7303
|
+
"displayName" => String | nil,
|
|
7304
|
+
"pluginId" => String | nil,
|
|
7305
|
+
"resourceTypeId" => String | nil,
|
|
7306
|
+
"changedAttributes" => Array[String],
|
|
7307
|
+
"count" => Integer | nil,
|
|
7308
|
+
"before" => pr_check_estimate_side,
|
|
7309
|
+
"after" => pr_check_estimate_side,
|
|
7310
|
+
"monthlyDelta" => Numeric | nil,
|
|
7311
|
+
"currency" => String | nil,
|
|
7312
|
+
"unpricedReason" => String | nil,
|
|
7313
|
+
"blastRadius" => {
|
|
7314
|
+
"directDependants" => Integer,
|
|
7315
|
+
"transitiveDependants" => Integer,
|
|
7316
|
+
"references" => Integer,
|
|
7317
|
+
"severity" => "none" | "low" | "medium" | "high" | "unknown",
|
|
7318
|
+
"headline" => String,
|
|
7319
|
+
"topDependants" => Array[String],
|
|
7320
|
+
"unchecked" => Integer
|
|
7321
|
+
}
|
|
7322
|
+
| nil,
|
|
7323
|
+
"warnings" => Array[{
|
|
7324
|
+
"kind" => "rightsizing" | "tag-policy" | "posture" | "parse",
|
|
7325
|
+
"severity" => "notice" | "warning",
|
|
7326
|
+
"message" => String
|
|
7327
|
+
}]
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
# Spec schema: `PrCheckConclusion`.
|
|
7331
|
+
type pr_check_conclusion = "success" | "neutral" | "failure" | nil
|
|
7332
|
+
|
|
7333
|
+
# Spec schema: `PrCheckEstimateSide`.
|
|
7334
|
+
type pr_check_estimate_side = { "monthlyAmount" => Numeric, "currency" => String, "partial" => bool } | nil
|
|
7335
|
+
|
|
7336
|
+
# What an installation has **accepted** of the permissions checks need:
|
|
7337
|
+
# `checks: write`, `pull_requests` (read, or write for the comment) and
|
|
7338
|
+
# `contents: read`. An installation made before checks existed shows `checks:
|
|
7339
|
+
# none` until an owner of the GitHub account approves the app's updated
|
|
7340
|
+
# permissions.
|
|
7341
|
+
#
|
|
7342
|
+
# Spec schema: `PrCheckInstallationAccess`.
|
|
7343
|
+
type pr_check_installation_access = {
|
|
7344
|
+
"installationId" => Integer,
|
|
7345
|
+
"accountLogin" => String | nil,
|
|
7346
|
+
"checks" => "none" | "read" | "write" | "admin",
|
|
7347
|
+
"pullRequests" => "none" | "read" | "write" | "admin",
|
|
7348
|
+
"contents" => "none" | "read" | "write" | "admin",
|
|
7349
|
+
"suspended" => bool,
|
|
7350
|
+
"manageUrl" => String | nil,
|
|
7351
|
+
"checked" => bool
|
|
7352
|
+
}
|
|
7353
|
+
|
|
7354
|
+
# Spec schema: `PrCheckPreview`.
|
|
7355
|
+
type pr_check_preview = {
|
|
7356
|
+
"report" => pr_check_report & Hash[String, untyped],
|
|
7357
|
+
"conclusion" => pr_check_conclusion & String,
|
|
7358
|
+
"title" => String,
|
|
7359
|
+
"markdown" => String
|
|
7360
|
+
}
|
|
7361
|
+
|
|
7362
|
+
# Either a configured repository and pull request number (read through the
|
|
7363
|
+
# GitHub App), or file contents from a local diff (`before` null for an added
|
|
7364
|
+
# file, `after` null for a removed one).
|
|
7365
|
+
#
|
|
7366
|
+
# Spec schema: `PrCheckPreviewInput`.
|
|
7367
|
+
type pr_check_preview_input = { "repositoryId" => String, "pullNumber" => Integer }
|
|
7368
|
+
| {
|
|
7369
|
+
"files" => Array[{ "path" => String, "before" => String | nil, "after" => String | nil }],
|
|
7370
|
+
?"repo" => String
|
|
7371
|
+
}
|
|
7372
|
+
|
|
7373
|
+
# Spec schema: `PrCheckReport`.
|
|
7374
|
+
type pr_check_report = {
|
|
7375
|
+
"generatedAt" => String,
|
|
7376
|
+
"files" => Array[{
|
|
7377
|
+
"path" => String,
|
|
7378
|
+
"kind" => "terraform" | "infrafile" | "kubernetes",
|
|
7379
|
+
"status" => "added" | "modified" | "removed" | "renamed",
|
|
7380
|
+
"analysed" => bool,
|
|
7381
|
+
"note" => String | nil
|
|
7382
|
+
}],
|
|
7383
|
+
"changes" => Array[pr_check_change],
|
|
7384
|
+
"totals" => {
|
|
7385
|
+
"monthlyDelta" => Numeric | nil,
|
|
7386
|
+
"currency" => String | nil,
|
|
7387
|
+
"partial" => bool,
|
|
7388
|
+
"pricedChanges" => Integer,
|
|
7389
|
+
"unpricedChanges" => Integer,
|
|
7390
|
+
"otherCurrencyChanges" => Integer
|
|
7391
|
+
},
|
|
7392
|
+
"blast" => {
|
|
7393
|
+
"touchedResources" => Integer,
|
|
7394
|
+
"dependants" => Integer,
|
|
7395
|
+
"highestSeverity" => "none" | "low" | "medium" | "high" | "unknown" | nil
|
|
7396
|
+
},
|
|
7397
|
+
"notes" => Array[String],
|
|
7398
|
+
"truncated" => bool
|
|
7399
|
+
}
|
|
7400
|
+
| nil
|
|
7401
|
+
|
|
7402
|
+
# Spec schema: `PrCheckRepository`.
|
|
7403
|
+
type pr_check_repository = pr_check_repository_input
|
|
7404
|
+
& { "id" => String, "createdAt" => String, "updatedAt" => String }
|
|
7405
|
+
|
|
7406
|
+
# Spec schema: `PrCheckRepositoryInput`.
|
|
7407
|
+
type pr_check_repository_input = {
|
|
7408
|
+
"installationId" => Integer,
|
|
7409
|
+
"repo" => String,
|
|
7410
|
+
"enabled" => bool,
|
|
7411
|
+
"commentEnabled" => bool,
|
|
7412
|
+
"costThreshold" => Numeric | nil,
|
|
7413
|
+
"thresholdConclusion" => pr_check_threshold_conclusion,
|
|
7414
|
+
"directories" => Array[String]
|
|
7415
|
+
}
|
|
7416
|
+
|
|
7417
|
+
# Spec schema: `PrCheckRun`.
|
|
7418
|
+
type pr_check_run = {
|
|
7419
|
+
"id" => String,
|
|
7420
|
+
"repositoryId" => String,
|
|
7421
|
+
"repo" => String,
|
|
7422
|
+
"pullNumber" => Integer,
|
|
7423
|
+
"pullTitle" => String | nil,
|
|
7424
|
+
"pullUrl" => String | nil,
|
|
7425
|
+
"headSha" => String,
|
|
7426
|
+
"status" => "running" | "completed" | "failed",
|
|
7427
|
+
"conclusion" => pr_check_conclusion,
|
|
7428
|
+
"checkRunUrl" => String | nil,
|
|
7429
|
+
"commentUrl" => String | nil,
|
|
7430
|
+
"report" => pr_check_report,
|
|
7431
|
+
"error" => String | nil,
|
|
7432
|
+
"createdAt" => String,
|
|
7433
|
+
"completedAt" => String | nil
|
|
7434
|
+
}
|
|
7435
|
+
|
|
7436
|
+
# Spec schema: `PrCheckStatus`.
|
|
7437
|
+
type pr_check_status = {
|
|
7438
|
+
"appConfigured" => bool,
|
|
7439
|
+
"installations" => Array[pr_check_installation_access],
|
|
7440
|
+
"repositories" => Array[pr_check_repository]
|
|
7441
|
+
}
|
|
7442
|
+
|
|
7443
|
+
# What the check concludes when the priced monthly increase exceeds
|
|
7444
|
+
# `costThreshold`: `neutral` flags it without blocking, `failure` fails it
|
|
7445
|
+
# (and blocks merging where branch protection requires the check).
|
|
7446
|
+
#
|
|
7447
|
+
# Spec schema: `PrCheckThresholdConclusion`.
|
|
7448
|
+
type pr_check_threshold_conclusion = "neutral" | "failure"
|
|
7449
|
+
|
|
7270
7450
|
# Spec schema: `PreflightCapability`.
|
|
7271
7451
|
type preflight_capability = {
|
|
7272
7452
|
"id" => String,
|
|
@@ -10140,6 +10320,110 @@ module Infrawrench
|
|
|
10140
10320
|
?"paused" => bool
|
|
10141
10321
|
}
|
|
10142
10322
|
|
|
10323
|
+
# Spec schema: `Slo`.
|
|
10324
|
+
type slo = {
|
|
10325
|
+
"id" => String,
|
|
10326
|
+
"name" => String,
|
|
10327
|
+
"description" => String | nil,
|
|
10328
|
+
"targetPercent" => Numeric,
|
|
10329
|
+
"windowDays" => Numeric | Numeric | Numeric,
|
|
10330
|
+
"alertsEnabled" => bool,
|
|
10331
|
+
"suggestFreeze" => bool,
|
|
10332
|
+
"enabled" => bool,
|
|
10333
|
+
"sliKind" => "probe_availability" | "probe_latency" | "metric_threshold",
|
|
10334
|
+
"probeId" => String | nil,
|
|
10335
|
+
"latencyThresholdMs" => Integer | nil,
|
|
10336
|
+
"resourceId" => String | nil,
|
|
10337
|
+
"metricKey" => String | nil,
|
|
10338
|
+
"comparator" => "<" | "<=" | ">" | ">=" | nil,
|
|
10339
|
+
"threshold" => Numeric | nil,
|
|
10340
|
+
"probeName" => String | nil,
|
|
10341
|
+
"resourceName" => String | nil,
|
|
10342
|
+
"accountId" => String | nil,
|
|
10343
|
+
"pluginId" => plugin_id & (String | nil),
|
|
10344
|
+
"resourceTypeId" => String | nil,
|
|
10345
|
+
"status" => "exhausted" | "fast_burn" | "slow_burn" | "ok" | "unknown",
|
|
10346
|
+
"sli" => Numeric | nil,
|
|
10347
|
+
"goodEvents" => Numeric,
|
|
10348
|
+
"totalEvents" => Numeric,
|
|
10349
|
+
"budgetRemaining" => Numeric | nil,
|
|
10350
|
+
"budgetTotalMinutes" => Numeric,
|
|
10351
|
+
"budgetRemainingMinutes" => Numeric | nil,
|
|
10352
|
+
"burnRates" => Hash[String, Numeric | nil],
|
|
10353
|
+
"burnAlert" => "none" | "slow" | "fast",
|
|
10354
|
+
"exhaustedAt" => String | nil,
|
|
10355
|
+
"lastEvalAt" => String | nil,
|
|
10356
|
+
"lastError" => String | nil,
|
|
10357
|
+
"createdAt" => String,
|
|
10358
|
+
"updatedAt" => String
|
|
10359
|
+
}
|
|
10360
|
+
|
|
10361
|
+
# The change freeze in effect, if any.
|
|
10362
|
+
#
|
|
10363
|
+
# Spec schema: `SloActiveFreeze`.
|
|
10364
|
+
type slo_active_freeze = { "id" => String, "name" => String, "endsAt" => String | nil } | nil
|
|
10365
|
+
|
|
10366
|
+
# Spec schema: `SloBucket`.
|
|
10367
|
+
type slo_bucket = { "startMs" => Numeric, "good" => Numeric, "total" => Numeric }
|
|
10368
|
+
|
|
10369
|
+
# Spec schema: `SloCreate`.
|
|
10370
|
+
type slo_create = {
|
|
10371
|
+
"name" => String,
|
|
10372
|
+
?"description" => String | nil,
|
|
10373
|
+
"sliKind" => "probe_availability" | "probe_latency" | "metric_threshold",
|
|
10374
|
+
?"probeId" => String | nil,
|
|
10375
|
+
?"latencyThresholdMs" => Integer | nil,
|
|
10376
|
+
?"resourceId" => String | nil,
|
|
10377
|
+
?"metricKey" => String | nil,
|
|
10378
|
+
?"comparator" => "<" | "<=" | ">" | ">=" | nil,
|
|
10379
|
+
?"threshold" => Numeric | nil,
|
|
10380
|
+
?"targetPercent" => Numeric,
|
|
10381
|
+
?"windowDays" => Numeric | Numeric | Numeric,
|
|
10382
|
+
?"alertsEnabled" => bool,
|
|
10383
|
+
?"suggestFreeze" => bool,
|
|
10384
|
+
?"enabled" => bool
|
|
10385
|
+
}
|
|
10386
|
+
|
|
10387
|
+
# Spec schema: `SloDetail`.
|
|
10388
|
+
type slo_detail = { "slo" => slo, "buckets" => Array[slo_bucket], "activeFreeze" => slo_active_freeze }
|
|
10389
|
+
|
|
10390
|
+
# Spec schema: `SloFreezeRequest`.
|
|
10391
|
+
type slo_freeze_request = { ?"durationHours" => Numeric | Numeric | Numeric | nil, ?"reason" => String }
|
|
10392
|
+
|
|
10393
|
+
# Spec schema: `SloList`.
|
|
10394
|
+
type slo_list = { "slos" => Array[slo] }
|
|
10395
|
+
|
|
10396
|
+
# Spec schema: `SloSources`.
|
|
10397
|
+
type slo_sources = {
|
|
10398
|
+
"probes" => Array[{ "id" => String, "name" => String, "url" => String, "status" => "up" | "down" | "unknown" }],
|
|
10399
|
+
"metricResources" => Array[{
|
|
10400
|
+
"resourceId" => String,
|
|
10401
|
+
"displayName" => String,
|
|
10402
|
+
"accountId" => String,
|
|
10403
|
+
"pluginId" => plugin_id,
|
|
10404
|
+
"resourceTypeId" => String,
|
|
10405
|
+
"series" => Array[{ "label" => String, "unit" => String }]
|
|
10406
|
+
}]
|
|
10407
|
+
}
|
|
10408
|
+
|
|
10409
|
+
# Spec schema: `SloUpdate`.
|
|
10410
|
+
type slo_update = {
|
|
10411
|
+
?"name" => String,
|
|
10412
|
+
?"description" => String | nil,
|
|
10413
|
+
?"sliKind" => "probe_availability" | "probe_latency" | "metric_threshold",
|
|
10414
|
+
?"probeId" => String | nil,
|
|
10415
|
+
?"latencyThresholdMs" => Integer | nil,
|
|
10416
|
+
?"resourceId" => String | nil,
|
|
10417
|
+
?"metricKey" => String | nil,
|
|
10418
|
+
?"comparator" => "<" | "<=" | ">" | ">=" | nil,
|
|
10419
|
+
?"threshold" => Numeric | nil,
|
|
10420
|
+
?"targetPercent" => Numeric,
|
|
10421
|
+
?"windowDays" => Numeric | Numeric | Numeric,
|
|
10422
|
+
?"alertsEnabled" => bool,
|
|
10423
|
+
?"suggestFreeze" => bool,
|
|
10424
|
+
?"enabled" => bool
|
|
10425
|
+
}
|
|
10426
|
+
|
|
10143
10427
|
# Spec schema: `SqlEstimateRequest`.
|
|
10144
10428
|
type sql_estimate_request = { "accountId" => String, "resourceId" => resource_id, "sql" => String }
|
|
10145
10429
|
|
|
@@ -10522,6 +10806,7 @@ module Infrawrench
|
|
|
10522
10806
|
| "quotas"
|
|
10523
10807
|
| "price-catalog"
|
|
10524
10808
|
| "incidents"
|
|
10809
|
+
| "slos"
|
|
10525
10810
|
| "workflows"
|
|
10526
10811
|
| "deployments"
|
|
10527
10812
|
| "settings"
|
|
@@ -10534,6 +10819,7 @@ module Infrawrench
|
|
|
10534
10819
|
?"reportId" => String,
|
|
10535
10820
|
?"invoiceId" => String,
|
|
10536
10821
|
?"canvasId" => String,
|
|
10822
|
+
?"sloId" => String,
|
|
10537
10823
|
?"sessionId" => String,
|
|
10538
10824
|
?"windowId" => Integer,
|
|
10539
10825
|
?"appId" => String
|
|
@@ -12102,6 +12388,23 @@ module Infrawrench
|
|
|
12102
12388
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> posture_list_response
|
|
12103
12389
|
end
|
|
12104
12390
|
|
|
12391
|
+
class PrChecksRepositoriesNamespace
|
|
12392
|
+
def initialize: (Transport) -> void
|
|
12393
|
+
def create: (body: pr_check_repository_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
|
|
12394
|
+
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool }
|
|
12395
|
+
def get: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
|
|
12396
|
+
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[pr_check_repository]
|
|
12397
|
+
def update: (id: String, body: pr_check_repository_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_repository
|
|
12398
|
+
end
|
|
12399
|
+
|
|
12400
|
+
class PrChecksNamespace
|
|
12401
|
+
attr_reader repositories: PrChecksRepositoriesNamespace
|
|
12402
|
+
def initialize: (Transport) -> void
|
|
12403
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_status
|
|
12404
|
+
def preview: (body: pr_check_preview_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> pr_check_preview
|
|
12405
|
+
def runs: (?org_id: String?, ?repository_id: String?, ?limit: Integer?, ?request_options: Hash[Symbol, untyped]?) -> Array[pr_check_run]
|
|
12406
|
+
end
|
|
12407
|
+
|
|
12105
12408
|
class PriceCatalogNamespace
|
|
12106
12409
|
def initialize: (Transport) -> void
|
|
12107
12410
|
def compare: (?org_id: String?, ?vcpus: String?, ?memory_gb: String?, ?gpu_count: String?, ?gpu_model: String?, ?reference_plugin_id: String?, ?reference_sku: String?, ?area: price_catalog_area?, ?rate_type: price_rate_type?, ?plugin_ids: String?, ?alternatives: String?, ?request_options: Hash[Symbol, untyped]?) -> price_catalog_compare_response
|
|
@@ -12391,6 +12694,22 @@ module Infrawrench
|
|
|
12391
12694
|
def test: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "ok" => bool, "channelCount" => Integer, "attempted" => Integer, "succeeded" => Integer }
|
|
12392
12695
|
end
|
|
12393
12696
|
|
|
12697
|
+
class SlosGetNamespace
|
|
12698
|
+
def initialize: (Transport) -> void
|
|
12699
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> slo_list
|
|
12700
|
+
def get_org_org_id_slos_slo_id: (slo_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> slo_detail
|
|
12701
|
+
end
|
|
12702
|
+
|
|
12703
|
+
class SlosNamespace
|
|
12704
|
+
attr_reader get: SlosGetNamespace
|
|
12705
|
+
def initialize: (Transport) -> void
|
|
12706
|
+
def create: (?org_id: String?, ?body: slo_create?, ?request_options: Hash[Symbol, untyped]?) -> slo
|
|
12707
|
+
def delete: (slo_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
12708
|
+
def post_org_org_id_slos_slo_id_freeze: (slo_id: String, ?org_id: String?, ?body: slo_freeze_request?, ?request_options: Hash[Symbol, untyped]?) -> (slo_active_freeze & Hash[String, untyped])
|
|
12709
|
+
def sources: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> slo_sources
|
|
12710
|
+
def update: (slo_id: String, ?org_id: String?, ?body: slo_update?, ?request_options: Hash[Symbol, untyped]?) -> slo
|
|
12711
|
+
end
|
|
12712
|
+
|
|
12394
12713
|
class SqlNamespace
|
|
12395
12714
|
def initialize: (Transport) -> void
|
|
12396
12715
|
def estimate: (body: sql_estimate_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> json_object
|
|
@@ -12645,6 +12964,7 @@ module Infrawrench
|
|
|
12645
12964
|
attr_reader paging_providers: PagingProvidersNamespace
|
|
12646
12965
|
attr_reader paging_webhooks: PagingWebhooksNamespace
|
|
12647
12966
|
attr_reader posture: PostureNamespace
|
|
12967
|
+
attr_reader pr_checks: PrChecksNamespace
|
|
12648
12968
|
attr_reader price_catalog: PriceCatalogNamespace
|
|
12649
12969
|
attr_reader probes: ProbesNamespace
|
|
12650
12970
|
attr_reader profile: ProfileNamespace
|
|
@@ -12662,6 +12982,7 @@ module Infrawrench
|
|
|
12662
12982
|
attr_reader shared_consoles: SharedConsolesNamespace
|
|
12663
12983
|
attr_reader sharing: SharingNamespace
|
|
12664
12984
|
attr_reader slack: SlackNamespace
|
|
12985
|
+
attr_reader slos: SlosNamespace
|
|
12665
12986
|
attr_reader sql: SqlNamespace
|
|
12666
12987
|
attr_reader ssh_fanout: SshFanoutNamespace
|
|
12667
12988
|
attr_reader ssh_keys: SshKeysNamespace
|
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.79.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-10-08 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.79.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.79.0).
|
|
62
62
|
test_files: []
|