infrawrench-sdk 1.19.0 → 1.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 +191 -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 +114 -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: 2aade9009a4966cfaa9e82b4699079a6fd8d6905851025aae181ff1b7fbcbb81
|
|
4
|
+
data.tar.gz: 9a5246069b56720d98491a61586fc3e5974a6c9275c773bc5cc03fe155011794
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e70ca3fc61a7f2e1ca9f4a2566bc0c304485d72d0753839c8754688f11cfcd482b260a30374c3b36cdf35d78c48d3b9c731950715ea6809b3d417d846f62456
|
|
7
|
+
data.tar.gz: b5837bebf73eda20028285801425c5c89a42271701ed783839a316b3119bba973baf32033db5f0bc945c967f0fbf3feca93aebc4a47af941a744a8862e65dabe
|
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.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
|
+
635 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.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 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.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 (v1.
|
|
21
|
-
spec.description = "Generated Ruby client for the Infrawrench API (v1.
|
|
20
|
+
spec.summary = "Generated Ruby client for the Infrawrench API (v1.20.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.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 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.20.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -6978,6 +6978,192 @@ module Infrawrench
|
|
|
6978
6978
|
end
|
|
6979
6979
|
end
|
|
6980
6980
|
|
|
6981
|
+
# `client.iac.states`
|
|
6982
|
+
class IacStatesNamespace
|
|
6983
|
+
# @api private
|
|
6984
|
+
# @param transport [Transport]
|
|
6985
|
+
def initialize(transport)
|
|
6986
|
+
@transport = transport
|
|
6987
|
+
end
|
|
6988
|
+
|
|
6989
|
+
# Upload a Terraform state document
|
|
6990
|
+
#
|
|
6991
|
+
# Parses a `.tfstate` (format version 4) or `terraform show -json` output
|
|
6992
|
+
# (format_version 1.x) and records the resource instances it contains.
|
|
6993
|
+
# Attributes the state marks sensitive are dropped before anything is
|
|
6994
|
+
# written. The format version is checked, not assumed: an unsupported
|
|
6995
|
+
# version is a 400 rather than a partial read.
|
|
6996
|
+
#
|
|
6997
|
+
# POST /api/org/{orgId}/iac/states
|
|
6998
|
+
#
|
|
6999
|
+
# Raises on 400: Bad request
|
|
7000
|
+
#
|
|
7001
|
+
# Raises on 404: Not found
|
|
7002
|
+
#
|
|
7003
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
7004
|
+
# constructed with.
|
|
7005
|
+
# @param body [Hash, nil] Request body, shaped as `IacStateUploadRequest`.
|
|
7006
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
7007
|
+
# @return [Hash] Parsed JSON, shaped as `Hash` — see `sig/infrawrench/sdk.rbs`.
|
|
7008
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
7009
|
+
def create(org_id: nil, body: nil, request_options: nil)
|
|
7010
|
+
@transport.request(
|
|
7011
|
+
http_method: "POST",
|
|
7012
|
+
path: "/api/org/{orgId}/iac/states",
|
|
7013
|
+
path_params: { "orgId" => org_id },
|
|
7014
|
+
body: body,
|
|
7015
|
+
request_options: request_options
|
|
7016
|
+
)
|
|
7017
|
+
end
|
|
7018
|
+
|
|
7019
|
+
# Delete an uploaded state document
|
|
7020
|
+
#
|
|
7021
|
+
# DELETE /api/org/{orgId}/iac/states/{stateId}
|
|
7022
|
+
#
|
|
7023
|
+
# Raises on 404: Not found
|
|
7024
|
+
#
|
|
7025
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
7026
|
+
# constructed with.
|
|
7027
|
+
# @param state_id [String]
|
|
7028
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
7029
|
+
# @return [nil] This endpoint returns no content.
|
|
7030
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
7031
|
+
def delete(state_id:, org_id: nil, request_options: nil)
|
|
7032
|
+
@transport.request(
|
|
7033
|
+
http_method: "DELETE",
|
|
7034
|
+
path: "/api/org/{orgId}/iac/states/{stateId}",
|
|
7035
|
+
path_params: { "orgId" => org_id, "stateId" => state_id },
|
|
7036
|
+
accept: :empty,
|
|
7037
|
+
request_options: request_options
|
|
7038
|
+
)
|
|
7039
|
+
end
|
|
7040
|
+
|
|
7041
|
+
# List uploaded Terraform state documents
|
|
7042
|
+
#
|
|
7043
|
+
# Every state document the organization has uploaded, newest first. The
|
|
7044
|
+
# documents themselves are never stored — only the parsed, redacted
|
|
7045
|
+
# projection.
|
|
7046
|
+
#
|
|
7047
|
+
# GET /api/org/{orgId}/iac/states
|
|
7048
|
+
#
|
|
7049
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
7050
|
+
# constructed with.
|
|
7051
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
7052
|
+
# @return [Hash] Parsed JSON, shaped as `IacStateListResponse` — see
|
|
7053
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
7054
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
7055
|
+
def get(org_id: nil, request_options: nil)
|
|
7056
|
+
@transport.request(
|
|
7057
|
+
http_method: "GET",
|
|
7058
|
+
path: "/api/org/{orgId}/iac/states",
|
|
7059
|
+
path_params: { "orgId" => org_id },
|
|
7060
|
+
request_options: request_options
|
|
7061
|
+
)
|
|
7062
|
+
end
|
|
7063
|
+
end
|
|
7064
|
+
|
|
7065
|
+
# `client.iac`
|
|
7066
|
+
class IacNamespace
|
|
7067
|
+
# @return [IacStatesNamespace] `client.iac.states`
|
|
7068
|
+
attr_reader :states
|
|
7069
|
+
|
|
7070
|
+
# @api private
|
|
7071
|
+
# @param transport [Transport]
|
|
7072
|
+
def initialize(transport)
|
|
7073
|
+
@transport = transport
|
|
7074
|
+
@states = IacStatesNamespace.new(@transport)
|
|
7075
|
+
end
|
|
7076
|
+
|
|
7077
|
+
# Generate Terraform import blocks for unmanaged resources
|
|
7078
|
+
#
|
|
7079
|
+
# Terraform 1.5+ `import` blocks plus the matching resource stanzas,
|
|
7080
|
+
# generated by the same plugin export mappers and HCL serializer that back
|
|
7081
|
+
# "Export to Terraform…". Resources no plugin can express are returned in
|
|
7082
|
+
# `unsupported` with a reason, never dropped.
|
|
7083
|
+
#
|
|
7084
|
+
# POST /api/org/{orgId}/iac/import-plan
|
|
7085
|
+
#
|
|
7086
|
+
# Raises on 400: Bad request
|
|
7087
|
+
#
|
|
7088
|
+
# Raises on 404: Not found
|
|
7089
|
+
#
|
|
7090
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
7091
|
+
# constructed with.
|
|
7092
|
+
# @param body [Hash, nil] Request body, shaped as `IacImportPlanRequest`.
|
|
7093
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
7094
|
+
# @return [Hash] Parsed JSON, shaped as `IacImportPlanResponse` — see
|
|
7095
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
7096
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
7097
|
+
def import_plan(org_id: nil, body: nil, request_options: nil)
|
|
7098
|
+
@transport.request(
|
|
7099
|
+
http_method: "POST",
|
|
7100
|
+
path: "/api/org/{orgId}/iac/import-plan",
|
|
7101
|
+
path_params: { "orgId" => org_id },
|
|
7102
|
+
body: body,
|
|
7103
|
+
request_options: request_options
|
|
7104
|
+
)
|
|
7105
|
+
end
|
|
7106
|
+
|
|
7107
|
+
# Classify inventory against a state document
|
|
7108
|
+
#
|
|
7109
|
+
# Every synced resource classified as managed, drifted or unmanaged against
|
|
7110
|
+
# one uploaded state, plus state entries with no inventory match. Unmanaged
|
|
7111
|
+
# resources carry the ownership and first-seen join that answers "who made
|
|
7112
|
+
# this by hand, and when".
|
|
7113
|
+
#
|
|
7114
|
+
# GET /api/org/{orgId}/iac/reconciliation
|
|
7115
|
+
#
|
|
7116
|
+
# Raises on 400: Bad request
|
|
7117
|
+
#
|
|
7118
|
+
# Raises on 404: Not found
|
|
7119
|
+
#
|
|
7120
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
7121
|
+
# constructed with.
|
|
7122
|
+
# @param state_id [String]
|
|
7123
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
7124
|
+
# @return [Hash] Parsed JSON, shaped as `IacReconciliationResponse` — see
|
|
7125
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
7126
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
7127
|
+
def reconciliation(state_id:, org_id: nil, request_options: nil)
|
|
7128
|
+
@transport.request(
|
|
7129
|
+
http_method: "GET",
|
|
7130
|
+
path: "/api/org/{orgId}/iac/reconciliation",
|
|
7131
|
+
path_params: { "orgId" => org_id },
|
|
7132
|
+
query: { "stateId" => state_id },
|
|
7133
|
+
request_options: request_options
|
|
7134
|
+
)
|
|
7135
|
+
end
|
|
7136
|
+
|
|
7137
|
+
# IaC status for one resource
|
|
7138
|
+
#
|
|
7139
|
+
# The managed/unmanaged badge for a resource detail page, computed against
|
|
7140
|
+
# the newest state document. `status` is null when the organization has
|
|
7141
|
+
# uploaded none — absence of a state is not evidence of ClickOps. A query
|
|
7142
|
+
# parameter rather than a path segment because composite resource ids
|
|
7143
|
+
# contain slashes.
|
|
7144
|
+
#
|
|
7145
|
+
# GET /api/org/{orgId}/iac/resource
|
|
7146
|
+
#
|
|
7147
|
+
# Raises on 400: Bad request
|
|
7148
|
+
#
|
|
7149
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
7150
|
+
# constructed with.
|
|
7151
|
+
# @param resource_id [String]
|
|
7152
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
7153
|
+
# @return [Hash] Parsed JSON, shaped as `IacResourceStatusResponse` — see
|
|
7154
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
7155
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
7156
|
+
def resource(resource_id:, org_id: nil, request_options: nil)
|
|
7157
|
+
@transport.request(
|
|
7158
|
+
http_method: "GET",
|
|
7159
|
+
path: "/api/org/{orgId}/iac/resource",
|
|
7160
|
+
path_params: { "orgId" => org_id },
|
|
7161
|
+
query: { "resourceId" => resource_id },
|
|
7162
|
+
request_options: request_options
|
|
7163
|
+
)
|
|
7164
|
+
end
|
|
7165
|
+
end
|
|
7166
|
+
|
|
6981
7167
|
# `client.incidents.get`
|
|
6982
7168
|
class IncidentsGetNamespace
|
|
6983
7169
|
# @api private
|
|
@@ -14219,6 +14405,8 @@ module Infrawrench
|
|
|
14219
14405
|
attr_reader :environment_diff
|
|
14220
14406
|
# @return [ExpiringNamespace] `client.expiring`
|
|
14221
14407
|
attr_reader :expiring
|
|
14408
|
+
# @return [IacNamespace] `client.iac`
|
|
14409
|
+
attr_reader :iac
|
|
14222
14410
|
# @return [IncidentsNamespace] `client.incidents`
|
|
14223
14411
|
attr_reader :incidents
|
|
14224
14412
|
# @return [InvitationsNamespace] `client.invitations`
|
|
@@ -14352,6 +14540,7 @@ module Infrawrench
|
|
|
14352
14540
|
@docker = DockerNamespace.new(@transport)
|
|
14353
14541
|
@environment_diff = EnvironmentDiffNamespace.new(@transport)
|
|
14354
14542
|
@expiring = ExpiringNamespace.new(@transport)
|
|
14543
|
+
@iac = IacNamespace.new(@transport)
|
|
14355
14544
|
@incidents = IncidentsNamespace.new(@transport)
|
|
14356
14545
|
@invitations = InvitationsNamespace.new(@transport)
|
|
14357
14546
|
@invoices = InvoicesNamespace.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.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 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.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 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.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 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.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 = "1.
|
|
18
|
+
VERSION = "1.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 v1.
|
|
3
|
+
# infrawrench-sdk v1.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 1.
|
|
6
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.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 v1.
|
|
1
|
+
# infrawrench-sdk v1.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 1.
|
|
4
|
+
# Generated from the Infrawrench API OpenAPI 3.1 spec (API version 1.20.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -2935,6 +2935,99 @@ module Infrawrench
|
|
|
2935
2935
|
"counts" => { "high" => Integer, "medium" => Integer, "low" => Integer, "total" => Integer }
|
|
2936
2936
|
}
|
|
2937
2937
|
|
|
2938
|
+
# Spec schema: `IacFieldChange`.
|
|
2939
|
+
type iac_field_change = { "field" => String, ?"from" => untyped, ?"to" => untyped }
|
|
2940
|
+
|
|
2941
|
+
# Spec schema: `IacImportPlanRequest`.
|
|
2942
|
+
type iac_import_plan_request = { "resourceIds" => Array[String] }
|
|
2943
|
+
|
|
2944
|
+
# Spec schema: `IacImportPlanResponse`.
|
|
2945
|
+
type iac_import_plan_response = {
|
|
2946
|
+
"hcl" => String,
|
|
2947
|
+
"exported" => Array[{ "resourceId" => String, "address" => String, "importId" => String | nil }],
|
|
2948
|
+
"unsupported" => Array[{ "resourceId" => String, "displayName" => String, "reason" => String }]
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
# Spec schema: `IacReconciledResource`.
|
|
2952
|
+
type iac_reconciled_resource = {
|
|
2953
|
+
"resourceId" => String,
|
|
2954
|
+
"pluginId" => plugin_id,
|
|
2955
|
+
"resourceTypeId" => String,
|
|
2956
|
+
"accountId" => String,
|
|
2957
|
+
"displayName" => String,
|
|
2958
|
+
"externalId" => String | nil,
|
|
2959
|
+
"status" => "managed" | "drifted" | "unmanaged",
|
|
2960
|
+
"terraformType" => String | nil,
|
|
2961
|
+
"terraformAddress" => String | nil,
|
|
2962
|
+
"matchedBy" => "import-id" | "external-id" | "identifier" | nil,
|
|
2963
|
+
"drift" => Array[iac_field_change],
|
|
2964
|
+
"unmappableReason" => String | nil,
|
|
2965
|
+
"owner" => Hash[String, untyped] | nil,
|
|
2966
|
+
"firstSeenAt" => String | nil
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
# Spec schema: `IacReconciliationResponse`.
|
|
2970
|
+
type iac_reconciliation_response = {
|
|
2971
|
+
"state" => iac_state,
|
|
2972
|
+
"resources" => Array[iac_reconciled_resource],
|
|
2973
|
+
"stateOnly" => Array[iac_state_only_resource],
|
|
2974
|
+
"summary" => {
|
|
2975
|
+
"inventoryTotal" => Integer,
|
|
2976
|
+
"managed" => Integer,
|
|
2977
|
+
"drifted" => Integer,
|
|
2978
|
+
"unmanaged" => Integer,
|
|
2979
|
+
"stateOnly" => Integer,
|
|
2980
|
+
"undiffable" => Integer,
|
|
2981
|
+
"stateResources" => Integer,
|
|
2982
|
+
"dataSourcesIgnored" => Integer
|
|
2983
|
+
},
|
|
2984
|
+
"underivable" => Array[{ "pluginId" => plugin_id, "resourceTypeId" => String, "reason" => String }]
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
# Spec schema: `IacResourceStatusResponse`.
|
|
2988
|
+
type iac_resource_status_response = {
|
|
2989
|
+
"status" => "managed" | "drifted" | "unmanaged" | nil,
|
|
2990
|
+
"stateId" => String | nil,
|
|
2991
|
+
"stateLabel" => String | nil,
|
|
2992
|
+
"terraformAddress" => String | nil,
|
|
2993
|
+
"driftFieldCount" => Integer
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
# Spec schema: `IacState`.
|
|
2997
|
+
type iac_state = {
|
|
2998
|
+
"id" => String,
|
|
2999
|
+
"label" => String,
|
|
3000
|
+
"accountId" => String | nil,
|
|
3001
|
+
"accountName" => String | nil,
|
|
3002
|
+
"format" => "tfstate" | "show-json",
|
|
3003
|
+
"formatVersion" => String,
|
|
3004
|
+
"terraformVersion" => String | nil,
|
|
3005
|
+
"serial" => Integer | nil,
|
|
3006
|
+
"lineage" => String | nil,
|
|
3007
|
+
"resourceCount" => Integer,
|
|
3008
|
+
"dataSourceCount" => Integer,
|
|
3009
|
+
"redactedAttributeCount" => Integer,
|
|
3010
|
+
"parseWarnings" => Array[String],
|
|
3011
|
+
"uploadedByUserId" => String | nil,
|
|
3012
|
+
"uploadedByName" => String | nil,
|
|
3013
|
+
"createdAt" => String
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
# Spec schema: `IacStateListResponse`.
|
|
3017
|
+
type iac_state_list_response = { "states" => Array[iac_state] }
|
|
3018
|
+
|
|
3019
|
+
# Spec schema: `IacStateOnlyResource`.
|
|
3020
|
+
type iac_state_only_resource = {
|
|
3021
|
+
"address" => String,
|
|
3022
|
+
"terraformType" => String,
|
|
3023
|
+
"identifiers" => Array[String],
|
|
3024
|
+
"candidates" => Array[{ "pluginId" => plugin_id, "resourceTypeId" => String }],
|
|
3025
|
+
"reason" => "no-inventory-match" | "unknown-terraform-type"
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
# Spec schema: `IacStateUploadRequest`.
|
|
3029
|
+
type iac_state_upload_request = { "label" => String, ?"accountId" => String | nil, "document" => String }
|
|
3030
|
+
|
|
2938
3031
|
# Spec schema: `ImportSshKeyRequest`.
|
|
2939
3032
|
type import_ssh_key_request = { "name" => String, "publicKey" => String }
|
|
2940
3033
|
|
|
@@ -4307,6 +4400,8 @@ module Infrawrench
|
|
|
4307
4400
|
| "tag-policy:override"
|
|
4308
4401
|
| "config:read"
|
|
4309
4402
|
| "config:write"
|
|
4403
|
+
| "iac:read"
|
|
4404
|
+
| "iac:write"
|
|
4310
4405
|
| "audit:read"
|
|
4311
4406
|
| "access:read"
|
|
4312
4407
|
| "access:request"
|
|
@@ -6214,6 +6309,7 @@ module Infrawrench
|
|
|
6214
6309
|
| "access-review"
|
|
6215
6310
|
| "backups"
|
|
6216
6311
|
| "dns"
|
|
6312
|
+
| "iac"
|
|
6217
6313
|
| "environment-diff"
|
|
6218
6314
|
| "ssh-fanout"
|
|
6219
6315
|
| "metric-alerts"
|
|
@@ -6986,6 +7082,21 @@ module Infrawrench
|
|
|
6986
7082
|
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> expiry_list_response
|
|
6987
7083
|
end
|
|
6988
7084
|
|
|
7085
|
+
class IacStatesNamespace
|
|
7086
|
+
def initialize: (Transport) -> void
|
|
7087
|
+
def create: (?org_id: String?, ?body: iac_state_upload_request?, ?request_options: Hash[Symbol, untyped]?) -> { "state" => iac_state }
|
|
7088
|
+
def delete: (state_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> nil
|
|
7089
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> iac_state_list_response
|
|
7090
|
+
end
|
|
7091
|
+
|
|
7092
|
+
class IacNamespace
|
|
7093
|
+
attr_reader states: IacStatesNamespace
|
|
7094
|
+
def initialize: (Transport) -> void
|
|
7095
|
+
def import_plan: (?org_id: String?, ?body: iac_import_plan_request?, ?request_options: Hash[Symbol, untyped]?) -> iac_import_plan_response
|
|
7096
|
+
def reconciliation: (state_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> iac_reconciliation_response
|
|
7097
|
+
def resource: (resource_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> iac_resource_status_response
|
|
7098
|
+
end
|
|
7099
|
+
|
|
6989
7100
|
class IncidentsGetNamespace
|
|
6990
7101
|
def initialize: (Transport) -> void
|
|
6991
7102
|
def get: (?org_id: String?, ?status: String?, ?request_options: Hash[Symbol, untyped]?) -> incident_list
|
|
@@ -7549,6 +7660,7 @@ module Infrawrench
|
|
|
7549
7660
|
attr_reader docker: DockerNamespace
|
|
7550
7661
|
attr_reader environment_diff: EnvironmentDiffNamespace
|
|
7551
7662
|
attr_reader expiring: ExpiringNamespace
|
|
7663
|
+
attr_reader iac: IacNamespace
|
|
7552
7664
|
attr_reader incidents: IncidentsNamespace
|
|
7553
7665
|
attr_reader invitations: InvitationsNamespace
|
|
7554
7666
|
attr_reader invoices: InvoicesNamespace
|
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.20.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-12 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.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 (v1.
|
|
61
|
+
summary: Generated Ruby client for the Infrawrench API (v1.20.0).
|
|
62
62
|
test_files: []
|