infrawrench-sdk 1.2.0 → 1.3.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 +54 -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 +29 -3
- 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: e41f651da8ba97002c46fc9a3f0aea2aa5d7a99c70d991dadd001bd42d3cbe5d
|
|
4
|
+
data.tar.gz: 6b44b5672b49038b13bc4f69dcc006c4c0dd174e49fedc3ac017e1038819a9bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40ed6ddd9ca198c2d09d28272d84cc2246ce270890561eaf8205bcca83ce8546cc0d74a93eec1b2452c0fbb22f4c1c0a3e274ebd786472707600902aae5669bb
|
|
7
|
+
data.tar.gz: b50431ce75e7fa595c10c2c5391cee2c63566f613584fe3f471388cde6e9439e17b0706b0464347399e99642954e521ae486d18512202c92c2e64939d956e091
|
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.3.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
|
+
437 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.3.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.3.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.3.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.3.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.3.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.3.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -572,6 +572,29 @@ module Infrawrench
|
|
|
572
572
|
)
|
|
573
573
|
end
|
|
574
574
|
|
|
575
|
+
# Generate Terraform HCL for the account's stored inventory
|
|
576
|
+
#
|
|
577
|
+
# _Requires permission: `resources:read`._
|
|
578
|
+
#
|
|
579
|
+
# GET /api/org/{orgId}/accounts/{id}/export-terraform
|
|
580
|
+
#
|
|
581
|
+
# Raises on 404: Not found
|
|
582
|
+
#
|
|
583
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
584
|
+
# constructed with.
|
|
585
|
+
# @param id [String]
|
|
586
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
587
|
+
# @return [Hash] Parsed JSON, shaped as `TerraformExport` — see `sig/infrawrench/sdk.rbs`.
|
|
588
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
589
|
+
def export_terraform(id:, org_id: nil, request_options: nil)
|
|
590
|
+
@transport.request(
|
|
591
|
+
http_method: "GET",
|
|
592
|
+
path: "/api/org/{orgId}/accounts/{id}/export-terraform",
|
|
593
|
+
path_params: { "orgId" => org_id, "id" => id },
|
|
594
|
+
request_options: request_options
|
|
595
|
+
)
|
|
596
|
+
end
|
|
597
|
+
|
|
575
598
|
# List accounts in this organization
|
|
576
599
|
#
|
|
577
600
|
# _Requires permission: `accounts:read`._
|
|
@@ -6812,6 +6835,35 @@ module Infrawrench
|
|
|
6812
6835
|
)
|
|
6813
6836
|
end
|
|
6814
6837
|
|
|
6838
|
+
# Generate Terraform HCL for a resource (and its direct children) from
|
|
6839
|
+
# stored state
|
|
6840
|
+
#
|
|
6841
|
+
# _Requires permission: `resources:read`._
|
|
6842
|
+
#
|
|
6843
|
+
# POST /api/org/{orgId}/resources/{pluginId}/{typeId}/export-terraform
|
|
6844
|
+
#
|
|
6845
|
+
# Raises on 400: Bad request
|
|
6846
|
+
#
|
|
6847
|
+
# Raises on 404: Not found
|
|
6848
|
+
#
|
|
6849
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6850
|
+
# constructed with.
|
|
6851
|
+
# @param plugin_id [String]
|
|
6852
|
+
# @param type_id [String]
|
|
6853
|
+
# @param body [Hash] Request body, shaped as `ExportTerraformRequest`.
|
|
6854
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6855
|
+
# @return [Hash] Parsed JSON, shaped as `TerraformExport` — see `sig/infrawrench/sdk.rbs`.
|
|
6856
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6857
|
+
def export_terraform(plugin_id:, type_id:, body:, org_id: nil, request_options: nil)
|
|
6858
|
+
@transport.request(
|
|
6859
|
+
http_method: "POST",
|
|
6860
|
+
path: "/api/org/{orgId}/resources/{pluginId}/{typeId}/export-terraform",
|
|
6861
|
+
path_params: { "orgId" => org_id, "pluginId" => plugin_id, "typeId" => type_id },
|
|
6862
|
+
body: body,
|
|
6863
|
+
request_options: request_options
|
|
6864
|
+
)
|
|
6865
|
+
end
|
|
6866
|
+
|
|
6815
6867
|
# Execute an in-form field action (e.g. generate an IAM role)
|
|
6816
6868
|
#
|
|
6817
6869
|
# Calls the plugin's `executeFieldAction`. Returns `{ value }` to assign to
|
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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.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.3.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -1566,6 +1566,9 @@ module Infrawrench
|
|
|
1566
1566
|
?"parentResourceId" => resource_id
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
+
# Spec schema: `ExportTerraformRequest`.
|
|
1570
|
+
type export_terraform_request = { "resourceId" => resource_id, "accountId" => String }
|
|
1571
|
+
|
|
1569
1572
|
# Spec schema: `FieldActionRequest`.
|
|
1570
1573
|
type field_action_request = {
|
|
1571
1574
|
"accountId" => String,
|
|
@@ -2102,7 +2105,7 @@ module Infrawrench
|
|
|
2102
2105
|
# Spec schema: `OrgConfigDashboardCard`.
|
|
2103
2106
|
type org_config_dashboard_card = {
|
|
2104
2107
|
"kind" => "widget",
|
|
2105
|
-
"widgetKind" => "cost_graph" | "budget" | "custom_graph",
|
|
2108
|
+
"widgetKind" => "cost_graph" | "cost_report" | "budget" | "custom_graph",
|
|
2106
2109
|
?"title" => String,
|
|
2107
2110
|
?"config" => json_object,
|
|
2108
2111
|
?"budgetKey" => String,
|
|
@@ -2901,6 +2904,7 @@ module Infrawrench
|
|
|
2901
2904
|
"canEdit" => bool,
|
|
2902
2905
|
"editableFields" => Array[editable_field],
|
|
2903
2906
|
"credentialFormats" => Array[credential_format],
|
|
2907
|
+
"supportsTerraformExport" => bool,
|
|
2904
2908
|
"hasManifestEditor" => bool,
|
|
2905
2909
|
"hasSecretVersions" => bool,
|
|
2906
2910
|
"resourceDisplayName" => String,
|
|
@@ -4086,6 +4090,26 @@ module Infrawrench
|
|
|
4086
4090
|
?"allowedValues" => Array[String]
|
|
4087
4091
|
}
|
|
4088
4092
|
|
|
4093
|
+
# Spec schema: `TerraformExport`.
|
|
4094
|
+
type terraform_export = {
|
|
4095
|
+
"hcl" => String,
|
|
4096
|
+
"exported" => Array[{
|
|
4097
|
+
"id" => resource_id,
|
|
4098
|
+
"displayName" => String,
|
|
4099
|
+
"pluginId" => String,
|
|
4100
|
+
"resourceTypeId" => String,
|
|
4101
|
+
"address" => String,
|
|
4102
|
+
?"importId" => String
|
|
4103
|
+
}],
|
|
4104
|
+
"unsupported" => Array[{
|
|
4105
|
+
"id" => resource_id,
|
|
4106
|
+
"displayName" => String,
|
|
4107
|
+
"pluginId" => String,
|
|
4108
|
+
"resourceTypeId" => String,
|
|
4109
|
+
"reason" => String
|
|
4110
|
+
}]
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4089
4113
|
# Spec schema: `TotpEnrollment`.
|
|
4090
4114
|
type totp_enrollment = {
|
|
4091
4115
|
"factorId" => String,
|
|
@@ -4244,6 +4268,7 @@ module Infrawrench
|
|
|
4244
4268
|
def create: (body: (create_account_request & { ?"pluginId" => plugin_id }), ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> create_account_response
|
|
4245
4269
|
def delete: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
4246
4270
|
def detail: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> account_detail
|
|
4271
|
+
def export_terraform: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> terraform_export
|
|
4247
4272
|
def list: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> Array[account]
|
|
4248
4273
|
def resources: (id: String, ?org_id: String?, ?top_level_only: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> Array[resource]
|
|
4249
4274
|
def sync: (id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> sync_response
|
|
@@ -4734,6 +4759,7 @@ module Infrawrench
|
|
|
4734
4759
|
def describe: (plugin_id: plugin_id, type_id: resource_type_id, body: describe_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> describe_response
|
|
4735
4760
|
def detail: (plugin_id: plugin_id, type_id: resource_type_id, resource_id: resource_id, ?org_id: String?, ?account_id: String?, ?parent_resource_id: resource_id?, ?include_peer_panes: "true" | "false"?, ?request_options: Hash[Symbol, untyped]?) -> resource_detail
|
|
4736
4761
|
def export_credential: (plugin_id: plugin_id, type_id: resource_type_id, body: export_credential_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> credential_export
|
|
4762
|
+
def export_terraform: (plugin_id: plugin_id, type_id: resource_type_id, body: export_terraform_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> terraform_export
|
|
4737
4763
|
def field_action: (body: field_action_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> field_action_response
|
|
4738
4764
|
def import_yaml: (plugin_id: plugin_id, body: import_yaml_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> json_object
|
|
4739
4765
|
def invoke_action: (body: invoke_action_request, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
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.3.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-08-
|
|
12
|
+
date: 2026-08-10 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.3.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.3.0).
|
|
62
62
|
test_files: []
|