infrawrench-sdk 1.106.0 → 1.107.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 +313 -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 +181 -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: 970422be1092dca1a625504a9f1ee9f8f3a45399a503a69ba66180f37052b242
|
|
4
|
+
data.tar.gz: dbf398730ae4f3f3d6aa2109149dcc9ef5af9dae91564b3e3ff4d1035203e767
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4baaf59d2d3d9e757767ab76569d8846309f240236958cc367391cc0d3f7d541115b4a9012afd47ae6d2b62a861820a317c98534fc221719288a59d947f1835b
|
|
7
|
+
data.tar.gz: 5f907b483e04e516027a41fa132af0fe1139baa80de5688ee057e5ef2a42aa0dd138c855f38ea92a10edab756b56bb86e459765c8158931a804cd961a7016030
|
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.107.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
|
+
1350 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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.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.107.0)."
|
|
21
|
+
spec.description = "Generated Ruby client for the Infrawrench API (v1.107.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 Services, Inc.", "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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.0).
|
|
7
7
|
#
|
|
8
8
|
# DO NOT EDIT. Regenerate with:
|
|
9
9
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -752,6 +752,8 @@ module Infrawrench
|
|
|
752
752
|
#
|
|
753
753
|
# DELETE /api/org/{orgId}/accounts/{id}
|
|
754
754
|
#
|
|
755
|
+
# Raises on 409: Conflict
|
|
756
|
+
#
|
|
755
757
|
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
756
758
|
# constructed with.
|
|
757
759
|
# @param id [String]
|
|
@@ -6092,6 +6094,312 @@ module Infrawrench
|
|
|
6092
6094
|
end
|
|
6093
6095
|
end
|
|
6094
6096
|
|
|
6097
|
+
# `client.ci.access.connections`
|
|
6098
|
+
class CiAccessConnectionsNamespace
|
|
6099
|
+
# @api private
|
|
6100
|
+
# @param transport [Transport]
|
|
6101
|
+
def initialize(transport)
|
|
6102
|
+
@transport = transport
|
|
6103
|
+
end
|
|
6104
|
+
|
|
6105
|
+
# Check whether a connection can run cloud jobs of a kind
|
|
6106
|
+
#
|
|
6107
|
+
# Asks the provider without starting anything (a dry run or a permission
|
|
6108
|
+
# test) and keeps the answer: what is missing and how to grant it. A failing
|
|
6109
|
+
# check turns that kind off.
|
|
6110
|
+
#
|
|
6111
|
+
# _Requires permission: `ci-access:write`._
|
|
6112
|
+
#
|
|
6113
|
+
# POST /api/org/{orgId}/ci/access/connections/{accountId}/preflight
|
|
6114
|
+
#
|
|
6115
|
+
# Raises on 400: Bad request
|
|
6116
|
+
#
|
|
6117
|
+
# Raises on 404: Not found
|
|
6118
|
+
#
|
|
6119
|
+
# Raises on 409: Conflict
|
|
6120
|
+
#
|
|
6121
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6122
|
+
# constructed with.
|
|
6123
|
+
# @param account_id [String]
|
|
6124
|
+
# @param body [Hash] Request body, shaped as `Hash`.
|
|
6125
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6126
|
+
# @return [Hash] Parsed JSON, shaped as `CiConnectionAccess` — see
|
|
6127
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
6128
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6129
|
+
def preflight(account_id:, body:, org_id: nil, request_options: nil)
|
|
6130
|
+
@transport.request(
|
|
6131
|
+
http_method: "POST",
|
|
6132
|
+
path: "/api/org/{orgId}/ci/access/connections/{accountId}/preflight",
|
|
6133
|
+
path_params: { "orgId" => org_id, "accountId" => account_id },
|
|
6134
|
+
body: body,
|
|
6135
|
+
request_options: request_options
|
|
6136
|
+
)
|
|
6137
|
+
end
|
|
6138
|
+
|
|
6139
|
+
# Set what CI may do with a connection
|
|
6140
|
+
#
|
|
6141
|
+
# Run cloud jobs on it (kinds, limits, repositories, branches) and lend its
|
|
6142
|
+
# credentials to jobs (repositories, branches). Turning cloud jobs on needs
|
|
6143
|
+
# a passing permission check for every kind.
|
|
6144
|
+
#
|
|
6145
|
+
# _Requires permission: `ci-access:write`._
|
|
6146
|
+
#
|
|
6147
|
+
# PUT /api/org/{orgId}/ci/access/connections/{accountId}
|
|
6148
|
+
#
|
|
6149
|
+
# Raises on 400: Bad request
|
|
6150
|
+
#
|
|
6151
|
+
# Raises on 404: Not found
|
|
6152
|
+
#
|
|
6153
|
+
# Raises on 409: Conflict
|
|
6154
|
+
#
|
|
6155
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6156
|
+
# constructed with.
|
|
6157
|
+
# @param account_id [String]
|
|
6158
|
+
# @param body [Hash] Request body, shaped as `CiConnectionAccessSettings`.
|
|
6159
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6160
|
+
# @return [Hash] Parsed JSON, shaped as `CiConnectionAccess` — see
|
|
6161
|
+
# `sig/infrawrench/sdk.rbs`.
|
|
6162
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6163
|
+
def update(account_id:, body:, org_id: nil, request_options: nil)
|
|
6164
|
+
@transport.request(
|
|
6165
|
+
http_method: "PUT",
|
|
6166
|
+
path: "/api/org/{orgId}/ci/access/connections/{accountId}",
|
|
6167
|
+
path_params: { "orgId" => org_id, "accountId" => account_id },
|
|
6168
|
+
body: body,
|
|
6169
|
+
request_options: request_options
|
|
6170
|
+
)
|
|
6171
|
+
end
|
|
6172
|
+
end
|
|
6173
|
+
|
|
6174
|
+
# `client.ci.access.grants`
|
|
6175
|
+
class CiAccessGrantsNamespace
|
|
6176
|
+
# @api private
|
|
6177
|
+
# @param transport [Transport]
|
|
6178
|
+
def initialize(transport)
|
|
6179
|
+
@transport = transport
|
|
6180
|
+
end
|
|
6181
|
+
|
|
6182
|
+
# Grant CI jobs a resource's outputs
|
|
6183
|
+
#
|
|
6184
|
+
# Pipelines read them as `${{ resources.<ciName>.<output> }}` in `env:`, or
|
|
6185
|
+
# all at once with `env-from: [<ciName>]`, read fresh for every run. Only
|
|
6186
|
+
# for the listed repositories and branches, and never for a fork's pull
|
|
6187
|
+
# request.
|
|
6188
|
+
#
|
|
6189
|
+
# _Requires permission: `ci-access:write`._
|
|
6190
|
+
#
|
|
6191
|
+
# POST /api/org/{orgId}/ci/access/grants
|
|
6192
|
+
#
|
|
6193
|
+
# Raises on 400: Bad request
|
|
6194
|
+
#
|
|
6195
|
+
# Raises on 404: Not found
|
|
6196
|
+
#
|
|
6197
|
+
# Raises on 409: Conflict
|
|
6198
|
+
#
|
|
6199
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6200
|
+
# constructed with.
|
|
6201
|
+
# @param body [Hash] Request body, shaped as `CiResourceGrantInput`.
|
|
6202
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6203
|
+
# @return [Hash] Parsed JSON, shaped as `CiResourceGrant` — see `sig/infrawrench/sdk.rbs`.
|
|
6204
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6205
|
+
def create(body:, org_id: nil, request_options: nil)
|
|
6206
|
+
@transport.request(
|
|
6207
|
+
http_method: "POST",
|
|
6208
|
+
path: "/api/org/{orgId}/ci/access/grants",
|
|
6209
|
+
path_params: { "orgId" => org_id },
|
|
6210
|
+
body: body,
|
|
6211
|
+
request_options: request_options
|
|
6212
|
+
)
|
|
6213
|
+
end
|
|
6214
|
+
|
|
6215
|
+
# Remove a resource grant
|
|
6216
|
+
#
|
|
6217
|
+
# _Requires permission: `ci:write`._
|
|
6218
|
+
#
|
|
6219
|
+
# DELETE /api/org/{orgId}/ci/access/grants/{grantId}
|
|
6220
|
+
#
|
|
6221
|
+
# Raises on 404: Not found
|
|
6222
|
+
#
|
|
6223
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6224
|
+
# constructed with.
|
|
6225
|
+
# @param grant_id [String]
|
|
6226
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6227
|
+
# @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
|
|
6228
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6229
|
+
def delete(grant_id:, org_id: nil, request_options: nil)
|
|
6230
|
+
@transport.request(
|
|
6231
|
+
http_method: "DELETE",
|
|
6232
|
+
path: "/api/org/{orgId}/ci/access/grants/{grantId}",
|
|
6233
|
+
path_params: { "orgId" => org_id, "grantId" => grant_id },
|
|
6234
|
+
request_options: request_options
|
|
6235
|
+
)
|
|
6236
|
+
end
|
|
6237
|
+
|
|
6238
|
+
# Change a resource grant
|
|
6239
|
+
#
|
|
6240
|
+
# _Requires permission: `ci-access:write`._
|
|
6241
|
+
#
|
|
6242
|
+
# PUT /api/org/{orgId}/ci/access/grants/{grantId}
|
|
6243
|
+
#
|
|
6244
|
+
# Raises on 400: Bad request
|
|
6245
|
+
#
|
|
6246
|
+
# Raises on 404: Not found
|
|
6247
|
+
#
|
|
6248
|
+
# Raises on 409: Conflict
|
|
6249
|
+
#
|
|
6250
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6251
|
+
# constructed with.
|
|
6252
|
+
# @param grant_id [String]
|
|
6253
|
+
# @param body [Hash] Request body, shaped as `CiResourceGrantInput`.
|
|
6254
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6255
|
+
# @return [Hash] Parsed JSON, shaped as `CiResourceGrant` — see `sig/infrawrench/sdk.rbs`.
|
|
6256
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6257
|
+
def update(grant_id:, body:, org_id: nil, request_options: nil)
|
|
6258
|
+
@transport.request(
|
|
6259
|
+
http_method: "PUT",
|
|
6260
|
+
path: "/api/org/{orgId}/ci/access/grants/{grantId}",
|
|
6261
|
+
path_params: { "orgId" => org_id, "grantId" => grant_id },
|
|
6262
|
+
body: body,
|
|
6263
|
+
request_options: request_options
|
|
6264
|
+
)
|
|
6265
|
+
end
|
|
6266
|
+
end
|
|
6267
|
+
|
|
6268
|
+
# `client.ci.access.ssh_keys`
|
|
6269
|
+
class CiAccessSshKeysNamespace
|
|
6270
|
+
# @api private
|
|
6271
|
+
# @param transport [Transport]
|
|
6272
|
+
def initialize(transport)
|
|
6273
|
+
@transport = transport
|
|
6274
|
+
end
|
|
6275
|
+
|
|
6276
|
+
# Stop CI jobs using someone's SSH key
|
|
6277
|
+
#
|
|
6278
|
+
# _Requires permission: `ci:write`._
|
|
6279
|
+
#
|
|
6280
|
+
# DELETE /api/org/{orgId}/ci/access/ssh-keys/{sshKeyId}
|
|
6281
|
+
#
|
|
6282
|
+
# Raises on 404: Not found
|
|
6283
|
+
#
|
|
6284
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6285
|
+
# constructed with.
|
|
6286
|
+
# @param ssh_key_id [String]
|
|
6287
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6288
|
+
# @return [Hash] Parsed JSON, shaped as `Ok` — see `sig/infrawrench/sdk.rbs`.
|
|
6289
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6290
|
+
def delete(ssh_key_id:, org_id: nil, request_options: nil)
|
|
6291
|
+
@transport.request(
|
|
6292
|
+
http_method: "DELETE",
|
|
6293
|
+
path: "/api/org/{orgId}/ci/access/ssh-keys/{sshKeyId}",
|
|
6294
|
+
path_params: { "orgId" => org_id, "sshKeyId" => ssh_key_id },
|
|
6295
|
+
request_options: request_options
|
|
6296
|
+
)
|
|
6297
|
+
end
|
|
6298
|
+
|
|
6299
|
+
# Lend one of your SSH keys to CI jobs, or stop
|
|
6300
|
+
#
|
|
6301
|
+
# Only the key's owner can, and only for a key whose private half
|
|
6302
|
+
# Infrawrench holds. Jobs name it in `ssh-keys:`.
|
|
6303
|
+
#
|
|
6304
|
+
# _Requires permission: `ssh-keys:write`._
|
|
6305
|
+
#
|
|
6306
|
+
# PUT /api/org/{orgId}/ci/access/ssh-keys/{sshKeyId}
|
|
6307
|
+
#
|
|
6308
|
+
# Raises on 400: Bad request
|
|
6309
|
+
#
|
|
6310
|
+
# Raises on 404: Not found
|
|
6311
|
+
#
|
|
6312
|
+
# Raises on 409: Conflict
|
|
6313
|
+
#
|
|
6314
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6315
|
+
# constructed with.
|
|
6316
|
+
# @param ssh_key_id [String]
|
|
6317
|
+
# @param body [Hash] Request body, shaped as `Hash`.
|
|
6318
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6319
|
+
# @return [Hash] Parsed JSON, shaped as `Hash` — see `sig/infrawrench/sdk.rbs`.
|
|
6320
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6321
|
+
def update(ssh_key_id:, body:, org_id: nil, request_options: nil)
|
|
6322
|
+
@transport.request(
|
|
6323
|
+
http_method: "PUT",
|
|
6324
|
+
path: "/api/org/{orgId}/ci/access/ssh-keys/{sshKeyId}",
|
|
6325
|
+
path_params: { "orgId" => org_id, "sshKeyId" => ssh_key_id },
|
|
6326
|
+
body: body,
|
|
6327
|
+
request_options: request_options
|
|
6328
|
+
)
|
|
6329
|
+
end
|
|
6330
|
+
end
|
|
6331
|
+
|
|
6332
|
+
# `client.ci.access`
|
|
6333
|
+
class CiAccessNamespace
|
|
6334
|
+
# @return [CiAccessConnectionsNamespace] `client.ci.access.connections`
|
|
6335
|
+
attr_reader :connections
|
|
6336
|
+
# @return [CiAccessGrantsNamespace] `client.ci.access.grants`
|
|
6337
|
+
attr_reader :grants
|
|
6338
|
+
# @return [CiAccessSshKeysNamespace] `client.ci.access.ssh_keys`
|
|
6339
|
+
attr_reader :ssh_keys
|
|
6340
|
+
|
|
6341
|
+
# @api private
|
|
6342
|
+
# @param transport [Transport]
|
|
6343
|
+
def initialize(transport)
|
|
6344
|
+
@transport = transport
|
|
6345
|
+
@connections = CiAccessConnectionsNamespace.new(@transport)
|
|
6346
|
+
@grants = CiAccessGrantsNamespace.new(@transport)
|
|
6347
|
+
@ssh_keys = CiAccessSshKeysNamespace.new(@transport)
|
|
6348
|
+
end
|
|
6349
|
+
|
|
6350
|
+
# What CI jobs may use: connections, resources and SSH keys
|
|
6351
|
+
#
|
|
6352
|
+
# Every connection whose provider can run CI jobs or lend its credentials,
|
|
6353
|
+
# with what it is allowed; the resources granted to CI; and the SSH keys
|
|
6354
|
+
# their owners lend. Nothing secret.
|
|
6355
|
+
#
|
|
6356
|
+
# _Requires permission: `ci:read`._
|
|
6357
|
+
#
|
|
6358
|
+
# GET /api/org/{orgId}/ci/access
|
|
6359
|
+
#
|
|
6360
|
+
# Raises on 404: Not found
|
|
6361
|
+
#
|
|
6362
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6363
|
+
# constructed with.
|
|
6364
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6365
|
+
# @return [Hash] Parsed JSON, shaped as `CiAccessOverview` — see `sig/infrawrench/sdk.rbs`.
|
|
6366
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6367
|
+
def get(org_id: nil, request_options: nil)
|
|
6368
|
+
@transport.request(
|
|
6369
|
+
http_method: "GET",
|
|
6370
|
+
path: "/api/org/{orgId}/ci/access",
|
|
6371
|
+
path_params: { "orgId" => org_id },
|
|
6372
|
+
request_options: request_options
|
|
6373
|
+
)
|
|
6374
|
+
end
|
|
6375
|
+
|
|
6376
|
+
# What a resource can be granted to CI
|
|
6377
|
+
#
|
|
6378
|
+
# _Requires permission: `ci-access:write`._
|
|
6379
|
+
#
|
|
6380
|
+
# GET /api/org/{orgId}/ci/access/resource-outputs
|
|
6381
|
+
#
|
|
6382
|
+
# Raises on 400: Bad request
|
|
6383
|
+
#
|
|
6384
|
+
# Raises on 404: Not found
|
|
6385
|
+
#
|
|
6386
|
+
# @param org_id [String, nil] Organization id. Defaults to the `org_id` the client was
|
|
6387
|
+
# constructed with.
|
|
6388
|
+
# @param resource_id [String] The resource's id.
|
|
6389
|
+
# @param request_options [Hash, nil] Per-call `:headers`, `:timeout` and `:open_timeout`.
|
|
6390
|
+
# @return [Hash] Parsed JSON, shaped as `CiResourceOutputs` — see `sig/infrawrench/sdk.rbs`.
|
|
6391
|
+
# @raise [Infrawrench::ApiError] On any non-2xx response.
|
|
6392
|
+
def resource_outputs(resource_id:, org_id: nil, request_options: nil)
|
|
6393
|
+
@transport.request(
|
|
6394
|
+
http_method: "GET",
|
|
6395
|
+
path: "/api/org/{orgId}/ci/access/resource-outputs",
|
|
6396
|
+
path_params: { "orgId" => org_id },
|
|
6397
|
+
query: { "resourceId" => resource_id },
|
|
6398
|
+
request_options: request_options
|
|
6399
|
+
)
|
|
6400
|
+
end
|
|
6401
|
+
end
|
|
6402
|
+
|
|
6095
6403
|
# `client.ci.accounts`
|
|
6096
6404
|
class CiAccountsNamespace
|
|
6097
6405
|
# @api private
|
|
@@ -6503,6 +6811,8 @@ module Infrawrench
|
|
|
6503
6811
|
|
|
6504
6812
|
# `client.ci`
|
|
6505
6813
|
class CiNamespace
|
|
6814
|
+
# @return [CiAccessNamespace] `client.ci.access`
|
|
6815
|
+
attr_reader :access
|
|
6506
6816
|
# @return [CiAccountsNamespace] `client.ci.accounts`
|
|
6507
6817
|
attr_reader :accounts
|
|
6508
6818
|
# @return [CiCachesNamespace] `client.ci.caches`
|
|
@@ -6516,6 +6826,7 @@ module Infrawrench
|
|
|
6516
6826
|
# @param transport [Transport]
|
|
6517
6827
|
def initialize(transport)
|
|
6518
6828
|
@transport = transport
|
|
6829
|
+
@access = CiAccessNamespace.new(@transport)
|
|
6519
6830
|
@accounts = CiAccountsNamespace.new(@transport)
|
|
6520
6831
|
@caches = CiCachesNamespace.new(@transport)
|
|
6521
6832
|
@runs = CiRunsNamespace.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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.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.107.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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.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.107.0 | MIT | Copyright (c) 2026 Infrawrench Services, Inc.
|
|
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.107.0).
|
|
5
5
|
#
|
|
6
6
|
# DO NOT EDIT. Regenerate with:
|
|
7
7
|
# pnpm --filter @infrawrench/web generate:sdk
|
|
@@ -2287,6 +2287,14 @@ module Infrawrench
|
|
|
2287
2287
|
?"fields" => Array[json_object]
|
|
2288
2288
|
}
|
|
2289
2289
|
|
|
2290
|
+
# Spec schema: `CiAccessOverview`.
|
|
2291
|
+
type ci_access_overview = {
|
|
2292
|
+
"viewerUserId" => String | nil,
|
|
2293
|
+
"connections" => Array[ci_connection_access],
|
|
2294
|
+
"grants" => Array[ci_resource_grant],
|
|
2295
|
+
"sshKeys" => Array[ci_ssh_key_lending]
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2290
2298
|
# Spec schema: `CiAccount`.
|
|
2291
2299
|
type ci_account = {
|
|
2292
2300
|
"installationId" => Integer,
|
|
@@ -2316,6 +2324,64 @@ module Infrawrench
|
|
|
2316
2324
|
# Spec schema: `CiCaches`.
|
|
2317
2325
|
type ci_caches = { "accounts" => Array[ci_account_caches] }
|
|
2318
2326
|
|
|
2327
|
+
# Spec schema: `CiCloudJob`.
|
|
2328
|
+
type ci_cloud_job = {
|
|
2329
|
+
"jobId" => String,
|
|
2330
|
+
"jobName" => String,
|
|
2331
|
+
"pipeline" => String,
|
|
2332
|
+
"accountId" => String | nil,
|
|
2333
|
+
"accountName" => String | nil,
|
|
2334
|
+
"pluginId" => String,
|
|
2335
|
+
"kind" => String,
|
|
2336
|
+
"machine" => String | nil,
|
|
2337
|
+
"region" => String | nil,
|
|
2338
|
+
"state" => "claiming" | "starting" | "running" | "tearing_down" | "done",
|
|
2339
|
+
"outcome" => String | nil,
|
|
2340
|
+
"reason" => String | nil,
|
|
2341
|
+
"label" => String | nil,
|
|
2342
|
+
"claimedAt" => String,
|
|
2343
|
+
"finishedAt" => String | nil
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
# Spec schema: `CiConnectionAccess`.
|
|
2347
|
+
type ci_connection_access = {
|
|
2348
|
+
"accountId" => String,
|
|
2349
|
+
"accountName" => String,
|
|
2350
|
+
"pluginId" => String,
|
|
2351
|
+
"pluginName" => String,
|
|
2352
|
+
"executor" => {
|
|
2353
|
+
"kinds" => Array[{
|
|
2354
|
+
"kind" => "vm" | "container" | "build" | "host" | "cluster",
|
|
2355
|
+
"label" => String,
|
|
2356
|
+
"defaults" => { ?"machine" => String, ?"image" => String, ?"region" => String },
|
|
2357
|
+
?"typicalStartSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN",
|
|
2358
|
+
?"minimumBillingSeconds" => Numeric | "Infinity" | "-Infinity" | "NaN",
|
|
2359
|
+
?"gpus" => bool,
|
|
2360
|
+
?"machineSuggestions" => Array[String],
|
|
2361
|
+
?"regionLabel" => String
|
|
2362
|
+
}],
|
|
2363
|
+
"helpLink" => { "label" => String, "url" => String } | nil
|
|
2364
|
+
}
|
|
2365
|
+
| nil,
|
|
2366
|
+
"credential" => { "description" => String, "shortLived" => bool, "namespaces" => bool } | nil,
|
|
2367
|
+
"settings" => ci_connection_access_settings,
|
|
2368
|
+
"preflight" => Hash[String, ci_preflight_record],
|
|
2369
|
+
"updatedAt" => String | nil
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
# Spec schema: `CiConnectionAccessSettings`.
|
|
2373
|
+
type ci_connection_access_settings = {
|
|
2374
|
+
"jobsEnabled" => bool,
|
|
2375
|
+
"jobKinds" => Array["vm" | "container" | "build" | "host" | "cluster"],
|
|
2376
|
+
"maxConcurrentJobs" => Integer,
|
|
2377
|
+
"maxJobMinutes" => Integer,
|
|
2378
|
+
"jobRepos" => Array[String] | nil,
|
|
2379
|
+
"jobBranchPattern" => String | nil,
|
|
2380
|
+
"lendEnabled" => bool,
|
|
2381
|
+
"lendRepos" => Array[String] | nil,
|
|
2382
|
+
"lendBranchPattern" => String | nil
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2319
2385
|
# Spec schema: `CiDownload`.
|
|
2320
2386
|
type ci_download = {
|
|
2321
2387
|
"path" => String,
|
|
@@ -2329,6 +2395,28 @@ module Infrawrench
|
|
|
2329
2395
|
# Spec schema: `CiDownloadLink`.
|
|
2330
2396
|
type ci_download_link = { "url" => String, "expiresAt" => String }
|
|
2331
2397
|
|
|
2398
|
+
# What the job was lent, by name only: connections, SSH keys, resources and
|
|
2399
|
+
# `env-from:` grants.
|
|
2400
|
+
#
|
|
2401
|
+
# Spec schema: `CiJobAccessNames`.
|
|
2402
|
+
type ci_job_access_names = {
|
|
2403
|
+
?"connections" => Array[String],
|
|
2404
|
+
?"sshKeys" => Array[String],
|
|
2405
|
+
?"resources" => Array[String],
|
|
2406
|
+
?"envFrom" => Array[String]
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
# A cloud job's `cloud:` block and what ran it.
|
|
2410
|
+
#
|
|
2411
|
+
# Spec schema: `CiJobCloud`.
|
|
2412
|
+
type ci_job_cloud = {
|
|
2413
|
+
"provider" => String,
|
|
2414
|
+
"kind" => String,
|
|
2415
|
+
?"machine" => String,
|
|
2416
|
+
?"region" => String,
|
|
2417
|
+
?"executor" => String
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2332
2420
|
# Spec schema: `CiJobOutput`.
|
|
2333
2421
|
type ci_job_output = {
|
|
2334
2422
|
"pipeline" => String,
|
|
@@ -2338,6 +2426,8 @@ module Infrawrench
|
|
|
2338
2426
|
"reason" => String | nil,
|
|
2339
2427
|
"durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
|
|
2340
2428
|
?"needs" => Array[String],
|
|
2429
|
+
?"access" => ci_job_access_names,
|
|
2430
|
+
?"cloud" => ci_job_cloud,
|
|
2341
2431
|
"stdout" => String,
|
|
2342
2432
|
"stderr" => String,
|
|
2343
2433
|
?"downloads" => Array[ci_download]
|
|
@@ -2351,7 +2441,18 @@ module Infrawrench
|
|
|
2351
2441
|
"status" => "passed" | "failed" | "skipped" | "error" | "cancelled",
|
|
2352
2442
|
"reason" => String | nil,
|
|
2353
2443
|
"durationMs" => Numeric | "Infinity" | "-Infinity" | "NaN" | nil,
|
|
2354
|
-
?"needs" => Array[String]
|
|
2444
|
+
?"needs" => Array[String],
|
|
2445
|
+
?"access" => ci_job_access_names,
|
|
2446
|
+
?"cloud" => ci_job_cloud
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
# Spec schema: `CiPreflightRecord`.
|
|
2450
|
+
type ci_preflight_record = {
|
|
2451
|
+
"ok" => bool,
|
|
2452
|
+
"missing" => Array[{ "permission" => String, "label" => String }],
|
|
2453
|
+
"problems" => Array[String],
|
|
2454
|
+
?"region" => String,
|
|
2455
|
+
"checkedAt" => String
|
|
2355
2456
|
}
|
|
2356
2457
|
|
|
2357
2458
|
# Spec schema: `CiRepoCache`.
|
|
@@ -2361,6 +2462,39 @@ module Infrawrench
|
|
|
2361
2462
|
"entries" => Integer
|
|
2362
2463
|
}
|
|
2363
2464
|
|
|
2465
|
+
# Spec schema: `CiResourceGrant`.
|
|
2466
|
+
type ci_resource_grant = {
|
|
2467
|
+
"id" => String,
|
|
2468
|
+
"accountId" => String,
|
|
2469
|
+
"accountName" => String,
|
|
2470
|
+
"pluginId" => String,
|
|
2471
|
+
"resourceId" => String,
|
|
2472
|
+
"resourceTypeId" => String,
|
|
2473
|
+
"resourceName" => String,
|
|
2474
|
+
"ciName" => String,
|
|
2475
|
+
"outputs" => Array[String],
|
|
2476
|
+
"secretVersion" => String | nil,
|
|
2477
|
+
"repos" => Array[String] | nil,
|
|
2478
|
+
"branchPattern" => String | nil,
|
|
2479
|
+
"createdAt" => String
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
# Spec schema: `CiResourceGrantInput`.
|
|
2483
|
+
type ci_resource_grant_input = {
|
|
2484
|
+
"resourceId" => String,
|
|
2485
|
+
"ciName" => String,
|
|
2486
|
+
"outputs" => Array[String],
|
|
2487
|
+
"secretVersion" => String | nil,
|
|
2488
|
+
"repos" => Array[String] | nil,
|
|
2489
|
+
"branchPattern" => String | nil
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
# Spec schema: `CiResourceOutputs`.
|
|
2493
|
+
type ci_resource_outputs = {
|
|
2494
|
+
"outputs" => Array[{ "key" => String, "label" => String, "sensitive" => bool }],
|
|
2495
|
+
"secretVersions" => Array[{ "id" => String, "state" => String, "createdAt" => String | nil }] | nil
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2364
2498
|
# Spec schema: `CiRun`.
|
|
2365
2499
|
type ci_run = {
|
|
2366
2500
|
"id" => String,
|
|
@@ -2389,7 +2523,7 @@ module Infrawrench
|
|
|
2389
2523
|
}
|
|
2390
2524
|
|
|
2391
2525
|
# Spec schema: `CiRunDetail`.
|
|
2392
|
-
type ci_run_detail = { "run" => ci_run, "jobs" => Array[ci_job_output] | nil }
|
|
2526
|
+
type ci_run_detail = { "run" => ci_run, "jobs" => Array[ci_job_output] | nil, ?"cloudJobs" => Array[ci_cloud_job] }
|
|
2393
2527
|
|
|
2394
2528
|
# Spec schema: `CiRunStatus`.
|
|
2395
2529
|
type ci_run_status = "awaiting_approval"
|
|
@@ -2405,6 +2539,19 @@ module Infrawrench
|
|
|
2405
2539
|
# Spec schema: `CiSecret`.
|
|
2406
2540
|
type ci_secret = { "name" => String, "updatedAt" => String }
|
|
2407
2541
|
|
|
2542
|
+
# Spec schema: `CiSshKeyLending`.
|
|
2543
|
+
type ci_ssh_key_lending = {
|
|
2544
|
+
"sshKeyId" => String,
|
|
2545
|
+
"keyName" => String,
|
|
2546
|
+
"ownerUserId" => String,
|
|
2547
|
+
"ownerName" => String | nil,
|
|
2548
|
+
"ciName" => String,
|
|
2549
|
+
"repos" => Array[String] | nil,
|
|
2550
|
+
"branchPattern" => String | nil,
|
|
2551
|
+
"mine" => bool,
|
|
2552
|
+
"createdAt" => String
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2408
2555
|
# Spec schema: `CiStatus`.
|
|
2409
2556
|
type ci_status = {
|
|
2410
2557
|
"enabled" => bool,
|
|
@@ -10036,6 +10183,7 @@ module Infrawrench
|
|
|
10036
10183
|
| "ci:read"
|
|
10037
10184
|
| "ci:write"
|
|
10038
10185
|
| "ci:approve"
|
|
10186
|
+
| "ci-access:write"
|
|
10039
10187
|
| "incidents:read"
|
|
10040
10188
|
| "incidents:write"
|
|
10041
10189
|
| "tag-policy:override"
|
|
@@ -15978,6 +16126,34 @@ module Infrawrench
|
|
|
15978
16126
|
def spend: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> chat_spend_status
|
|
15979
16127
|
end
|
|
15980
16128
|
|
|
16129
|
+
class CiAccessConnectionsNamespace
|
|
16130
|
+
def initialize: (Transport) -> void
|
|
16131
|
+
def preflight: (account_id: String, body: { "kind" => "vm" | "container" | "build" | "host" | "cluster", ?"region" => String }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_connection_access
|
|
16132
|
+
def update: (account_id: String, body: ci_connection_access_settings, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_connection_access
|
|
16133
|
+
end
|
|
16134
|
+
|
|
16135
|
+
class CiAccessGrantsNamespace
|
|
16136
|
+
def initialize: (Transport) -> void
|
|
16137
|
+
def create: (body: ci_resource_grant_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_resource_grant
|
|
16138
|
+
def delete: (grant_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16139
|
+
def update: (grant_id: String, body: ci_resource_grant_input, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_resource_grant
|
|
16140
|
+
end
|
|
16141
|
+
|
|
16142
|
+
class CiAccessSshKeysNamespace
|
|
16143
|
+
def initialize: (Transport) -> void
|
|
16144
|
+
def delete: (ssh_key_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ok
|
|
16145
|
+
def update: (ssh_key_id: String, body: { "enabled" => bool, "ciName" => String, "repos" => Array[String] | nil, "branchPattern" => String | nil }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> { "lending" => ci_ssh_key_lending | nil }
|
|
16146
|
+
end
|
|
16147
|
+
|
|
16148
|
+
class CiAccessNamespace
|
|
16149
|
+
attr_reader connections: CiAccessConnectionsNamespace
|
|
16150
|
+
attr_reader grants: CiAccessGrantsNamespace
|
|
16151
|
+
attr_reader ssh_keys: CiAccessSshKeysNamespace
|
|
16152
|
+
def initialize: (Transport) -> void
|
|
16153
|
+
def get: (?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_access_overview
|
|
16154
|
+
def resource_outputs: (resource_id: String, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_resource_outputs
|
|
16155
|
+
end
|
|
16156
|
+
|
|
15981
16157
|
class CiAccountsNamespace
|
|
15982
16158
|
def initialize: (Transport) -> void
|
|
15983
16159
|
def update: (installation_id: String, body: { "enabled" => bool }, ?org_id: String?, ?request_options: Hash[Symbol, untyped]?) -> ci_account
|
|
@@ -16008,6 +16184,7 @@ module Infrawrench
|
|
|
16008
16184
|
end
|
|
16009
16185
|
|
|
16010
16186
|
class CiNamespace
|
|
16187
|
+
attr_reader access: CiAccessNamespace
|
|
16011
16188
|
attr_reader accounts: CiAccountsNamespace
|
|
16012
16189
|
attr_reader caches: CiCachesNamespace
|
|
16013
16190
|
attr_reader runs: CiRunsNamespace
|
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.107.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Infrawrench Services, Inc.
|
|
@@ -11,7 +11,7 @@ bindir: bin
|
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 2026-11-13 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.107.0). Covers the
|
|
15
15
|
published API surface only — operations marked x-internal in the spec are not generated.
|
|
16
16
|
No 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.107.0).
|
|
62
62
|
test_files: []
|