Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: added secret sync test simple ones

=f0c4ac2846a7
diff --git a/tests/CLAUDE.md b/tests/CLAUDE.md
index d9f135dccc..074f4330d9 100644
--- a/tests/CLAUDE.md
+++ b/tests/CLAUDE.md
@@ -1,30 +1,36 @@
# CLAUDE.md
-Everything needed to write tests in `tests/`, the Go blackbox suite. It boots a real
-Infisical in Docker and talks to it over HTTP only.
+How to write tests in `tests/`, the Go blackbox suite. It boots a real Infisical in
+Docker and talks to it over HTTP only.
+
+This file is conventions. How the harness works inside is in the code and its
+comments; you should not need any of it to write a test.
## 1. The boundary
**What belongs here:** anything a customer or an API client can observe. Requests,
-responses, status codes, error messages, emails, outbound calls to third parties,
-and behaviour that emerges from a queue or a cron after the response returns.
+responses, status codes, error messages, emails, outbound calls to third parties, and
+behaviour that emerges from a queue or a cron after the response returns.
**What does not:**
- Pure functions and arithmetic. Unit tests in `backend/` are cheaper and sharper.
-- Anything requiring a database connection, an internal service handle or a mocked
+- Anything needing a database connection, an internal service handle or a mocked
module. There is no database client here on purpose. If you want one, the test
belongs in `backend/e2e-test/`.
- Log lines, outside boot behaviour.
-**Why it exists separately from the other two suites.** `backend/e2e-test/` boots the
-Fastify app in-process and is compiled against the Node source tree, so it cannot
-survive a rewrite. `e2e/` is Playwright against a deployed environment and is
-deliberately smoke-level. This suite's only contract with the server is **a Docker
-image, a set of environment variables, and the OpenAPI spec**. Swap the image for a
-Go build and every test here still runs, which is the entire point.
+**Why it exists separately.** `backend/e2e-test/` boots Fastify in-process and is
+compiled against the Node source tree, so it cannot survive a rewrite. `e2e/` is
+Playwright against a deployed environment and is deliberately smoke-level. This
+suite's only contract with the server is **a Docker image, a set of environment
+variables, and the OpenAPI spec**. Swap the image for a Go build and every test here
+still runs, which is the entire point.
+
+Input validation is observable, so it *can* be tested here, but every test costs a
+tenant. Representative cases here; exhaustive matrices in unit tests.
-## 2. Quick start
+## 2. Running tests
```bash
make test-suites # product tests: ./suites/...
@@ -34,14 +40,11 @@ make test-unit # everything that needs no containers
make lint # gofmt, vet, staticcheck
```
-Each of the first three brings the stack up, runs its packages, and tears the stack
-down on the way out, including after a failure or a Ctrl-C. The exit status is the
-test run's, so a red run stays red.
+The first three bring the stack up and tear it down afterwards, including after a
+failure or a Ctrl-C.
-They are separate targets so a red line says _which thing_ broke: `test-suites`
-failing means Infisical is broken, `test-harness` failing means the harness is. One
-target reporting both would erase that distinction, which is the whole reason the two
-directories exist.
+They are separate targets so a red line says *which thing* broke: `test-suites`
+failing means Infisical is broken, `test-harness` failing means the harness is.
To iterate, keep the stack up and run one package:
@@ -51,85 +54,42 @@ go test ./suites/secretmanager/secrets/... -count=1
make down
```
-`-count=1` because Go caches results, and a cached pass tells you nothing about a
-live server.
-
-Other targets: `make status` lists harness containers, `make test-docker` runs the
-infra layer's own container tests, `make fmt` formats.
-
-## 3. How the stack works
-
-`make up` starts five containers on a Docker network:
-
-```
-inf-shared-postgres postgres:14-alpine, max_locks_per_transaction=512
-inf-shared-redis redis:7-alpine
-inf-shared-mailpit fake SMTP with a search API
-inf-shared-fakenet the fake internet: DNS, our fakes over TLS, a control API
-inf-shared-infisical-<image id> built from backend/Dockerfile
-```
-
-Boot costs about 25 seconds, almost all of it 540 migrations.
-
-**Container identity is the container name.** A test binary asks for a container by
-name, adopts it if it exists and creates it if it does not. That is why `go test`
-with nothing running works, and why a second run is fast. It also means **changing a
-shared container's configuration silently adopts a stale one**: if you change an
-image tag or a command flag, run `make down` first or the change will not take
-effect.
-
-fakenet is the exception, and deliberately so: its name carries its image ID, so
-editing a fake produces a fresh container, and the previous generation is removed
-first because only one container can hold the fixed address.
-
-**Nothing auto-cleans.** Testcontainers' reaper is disabled, because it deletes by
-the _creating_ session's label and would reap containers another binary had adopted.
-Cleanup belongs to `make down`. After an interrupted run, `make down` is also the fix
-for a stale container.
-
-**Container logs are written unconditionally** to `.logs/<timestamp>/<container>.log`
-next to the package, gitignored. You can tail one while a test hangs.
+`-count=1` because Go caches results, and a cached pass tells you nothing about a live
+server. Run `make down` after changing anything about a container's configuration, or a
+stale one is adopted and your change does not take effect.
-## 4. Layout
+## 3. Where things go
```
-tests/
-├── suites/ product behaviour: does Infisical do the right thing
-├── harnesstest/ harness behaviour: does our tooling do the right thing
-│ ├── shared/
-│ └── isolated/
-├── harness/ Stack, Profile, Tenant, Principal, instance lifecycle
-│ └── infisical/ the application container module
-├── fixture/ per-product resource builders: project, appconnection
-├── fakes/ one package per faked service: github, license
-├── provider/ what creating an app connection needs, per service
-├── infra/ product-agnostic container layer
-│ └── fakenet/ the fake-internet engine and its container module
-├── internal/ mail, id, apierr, spec
-├── clients/api/ generated Infisical client — never hand-edit
-├── cmd/fakenet/ the fake-internet server
-└── cmd/inf/ up, down, status
+suites/ product behaviour: does Infisical do the right thing
+harnesstest/ harness behaviour: does our tooling do the right thing
+harness/ Stack, Profile, Tenant, Principal
+fixture/ resource builders shared by more than one suite
+fakes/ one package per faked third party
+provider/ what creating an app connection needs, per service
+internal/ wait, mail, id, apierr, spec
+clients/api/ generated Infisical client, never hand-edit
```
**`suites/` or `harnesstest/`?** A harness test earns its place only if **the harness
is the only thing that can make it fail**. If a product change could break it, it is a
-product test and belongs in `suites/`, or it does not belong at all.
-
-This matters because of what a red run means. A failing suite says Infisical is
-broken; a failing harnesstest says our tooling is. Mixing them sends people to debug
-the wrong codebase, and when the API is rewritten the suites are the contract that
-must pass unchanged while the harness tests are not.
+product test and belongs in `suites/`, or it does not belong at all. A failing suite
+says Infisical is broken; a failing harnesstest says our tooling is. Mixing them sends
+people to debug the wrong codebase.
Within `suites/`, group by product boundary, not URL version:
-`suites/secretmanager/secrets`, `suites/organization`, `suites/project`. `identity`
-owns routes across v1 and v2; `secrets` owns v4 and the v3 deprecations. That is what
-makes the grouping survive a version bump.
+`suites/secretmanager/secrets`, `suites/organization`. `identity` owns routes across v1
+and v2; `secrets` owns v4 and the v3 deprecations. That is what makes the grouping
+survive a version bump.
+
+**Helpers start local and move on the second caller.** An unexported function at the
+bottom of the test file is the right home until a second package needs it; then it
+becomes a `fixture/`. Do not create a package for one caller.
-**Import direction is one-way.** `fixture/*` may import `harness`; `harness` must
-never import a fixture. That is what lets someone add `fixture/pki` without touching
-anything else.
+**Import direction is one-way.** `fixture/*` may import `harness`; `harness` must never
+import a fixture. `fakes/*` import neither.
-## 5. Writing a test
+## 4. Writing a test
Every package needs a `main_test.go` declaring its profile. That is the only harness
decision a test author makes:
@@ -149,235 +109,200 @@ func TestSecret_Create(t *testing.T) {
tn := h.NewTenant(t)
proj := project.New(t, tn, project.WithType("secret-manager"))
- created := createSecret(t, tn, proj.ID, "dev", "/", "DB_URL", "postgres://localhost/app")
- got := getSecret(t, tn, proj.ID, "dev", "/", "DB_URL")
+ secret.Create(t, proj, "dev", "DB_URL", "postgres://localhost/app")
- if got.SecretValue != "postgres://localhost/app" {
- t.Errorf("secret read back as %q, want postgres://localhost/app", got.SecretValue)
+ if got := secret.Get(t, proj, "dev", "DB_URL"); got.Value != "postgres://localhost/app" {
+ t.Errorf("secret read back as %q, want postgres://localhost/app", got.Value)
}
})
}
```
+> Arrange in under about eight lines. Act in one call. Assert one to three claims.
+
+If arrange is longer, the missing helper belongs beside the test or in a fixture.
+
### Profiles
-| profile | what it gives | when |
-| ------------------ | ------------------------------------------------------------- | --------------------------------------------- |
-| `harness.Shared` | one instance for the whole run, a fresh organization per test | almost always |
-| `harness.Isolated` | the package's own Postgres, Redis and Infisical | only when the test writes instance-wide state |
+| profile | what it gives | when |
+|---|---|---|
+| `harness.Shared` | one instance for the whole run, a fresh organization per test | almost always |
+| `harness.Isolated` | the package's own Postgres, Redis and Infisical | only when the test writes instance-wide state |
-`Isolated` costs a full Infisical boot, roughly 40 to 50 seconds per package. Reach
-for it only when the test writes something not scoped to an organization: super-admin
-config, enabled login methods, the encryption strategy, run modes.
+`Isolated` costs a full Infisical boot per package. Reach for it only when the test
+writes something not scoped to an organization: super-admin config, enabled login
+methods, the encryption strategy, run modes.
### `t.Parallel()`
**Mandatory under `Shared`**, on the test and every subtest. Each test gets its own
-tenant, so there is nothing to serialise. A `Shared` test that cannot be parallel is
-a test in the wrong package.
+tenant, so there is nothing to serialise. A `Shared` test that cannot be parallel is a
+test in the wrong package.
**Do not call it under `Isolated`.** Those tests share one instance's global state.
-They still run concurrently with other packages, because each test binary owns its
-containers.
### Tenancy is the isolation unit
-`h.NewTenant(t)` creates an organization with its own administrator, and registers
-its deletion on `t.Cleanup`. Everything a test touches lives under that organization.
-Choosing the org as the boundary is what makes `t.Parallel()` the default rather than
-the exception.
+`h.NewTenant(t)` creates an organization with its own administrator and registers its
+deletion on `t.Cleanup`. Everything a test touches lives under that organization.
+Choosing the org as the boundary is what makes `t.Parallel()` the default.
-The admin is a real invited user at `admin@<orgslug>.test`, not the instance root. It
-has no super-admin flag, so a test cannot reach instance-wide state through it. This
-was wrong once, and every `Shared` test held instance-admin power until it was fixed.
+`tn.Admin` is a real invited user, not the instance root, and holds no super-admin flag.
-## 6. Naming
+## 5. Naming
Test function: `Test<Resource>_<Behaviour>`.
-```go
-func TestSecret_Create(t *testing.T)
-func TestProject_Access(t *testing.T)
+Subtest: `<outcome>/<what happened, in words>`. The prefix is not decoration; it is what
+makes a run readable and what a lint can check.
+
+| prefix | meaning |
+|---|---|
+| `ok/` | the happy path |
+| `invalid/` | the request was malformed or referenced something that does not exist |
+| `unauth/` | no credential, or an auth mode the route does not accept |
+| `forbidden/` | authenticated but not allowed |
+| `cross-tenant/` | another tenant's data was not reachable |
+| `notfound/` | the target does not exist |
+| `conflict/` | the request collided with existing state |
+| `unlicensed/` | the plan does not include the feature |
+| `idempotent/` | doing it twice is the same as doing it once |
+
+**A subtest name is a claim, not a label.**
+
+```
+ok/the same key in a different environment is a different secret yes
+ok/create secret in prod env no
+conflict/the same key twice at the same path yes
+conflict/duplicate no
```
-Subtest: `<outcome>/<what happened, in words>`. The prefix is not decoration; it is
-what makes a run readable and what a lint can check.
+**The subject is the operation whose behaviour is being claimed.** Operations used to
+set up or observe are not subjects, so "the same key in two environments" is a subtest
+of `TestSecret_Create` even though a read is how you see it. Something earns its own
+top-level function only when no single operation owns the claim.
-| prefix | meaning |
-| --------------- | --------------------------------------------------------------------- |
-| `ok/` | the happy path |
-| `invalid/` | the request was malformed or referenced something that does not exist |
-| `forbidden/` | authenticated but not allowed |
-| `cross-tenant/` | another tenant's data was not reachable |
-| `notfound/` | the target does not exist |
-| `conflict/` | the request collided with existing state |
-| `unlicensed/` | the plan does not include the feature |
-| `idempotent/` | doing it twice is the same as doing it once |
+One file per resource or flow, named after it. Variants of one flow are subtests, not
+new files.
-One file per resource or flow, named after it: `create_test.go`, `access_test.go`.
-Variants of one flow are subtests, not new files.
+## 6. Test outcomes, not coverage
-## 7. Test outcomes, not coverage
+Line coverage means nothing here. The unit is **(operation, outcome)**.
A test exists to pin a behaviour someone could break. If you cannot say what breaks
when it fails, do not write it.
**Assert what the caller depends on, not that a route responded.** A test that checks
-`StatusCode() == 200` and stops has tested that a URL is routed. `TestProject_Create`
-did exactly that; it now checks the project landed in the caller's organization and
-that `dev`, `staging` and `prod` were provisioned, because those are what a caller
-relies on.
+`StatusCode() == 200` and stops has tested that a URL is routed.
-**A rejection test must also check nothing changed.** A route can refuse _and_ have
-already written. The duplicate-secret test re-reads the secret and asserts the
-original value survived.
+**A rejection test must also check nothing changed.** A route can refuse *and* have
+already written.
**Assert error bodies, not just statuses**, where the message is part of the contract.
-`backend/CODE_QUALITY.md` requires messages a user can understand and forbids
-pointless 500s; a suite that only checks `== 400` never enforces that.
-
-**Suspect a test that passes the first time.** Break the assertion on purpose, watch
-it fail, put it back. A test you have never seen fail is a test you have not verified.
+`backend/CODE_QUALITY.md` requires messages a user can understand and forbids pointless
+500s; a suite that only checks `== 400` never enforces that.
**Use the right actor.** A test about what a member can do must use a member. Reaching
for `tn.Admin` because it is convenient makes the claim vacuous.
+**Suspect a test that passes the first time.** Break the assertion on purpose, watch it
+fail, put it back. Then break *what it depends on*: a prune test that still passes when
+deletion is disabled is testing nothing.
+
### `spec.Why`, sparingly
-When the name cannot carry the reason, add one line of why: an invariant the rest of
-the suite rests on, a past incident, a product constraint not visible in the test.
+When the name cannot carry the reason, add one line: an invariant the rest of the suite
+rests on, a past incident, a product constraint not visible in the test.
```go
-spec.Why(t, `Create must not silently overwrite. If it did, a caller expecting to add
- a secret could replace one already in use and never learn about it.`)
+spec.Why(t, `The set to delete is computed from what GitHub returns, not from anything
+ Infisical stored, so this is only a real claim if the destination holds real state.`)
```
-It prints as a `why:` line in verbose output. Most tests do not need one. If every
-subtest has one, they have stopped meaning anything.
+It prints on failure and in verbose output. Most tests do not need one. If every subtest
+has one, they have stopped meaning anything.
-## 8. The harness API
+## 7. The API you write against
```go
h := harness.From(t) // the stack this package's TestMain built
tn := h.NewTenant(t) // fresh organization with its own admin
tn.Admin // *Principal: .API, .Token, .Email, .Kind, .ID
-tn.OrgID, tn.OrgSlug
tn.Address("alice") // alice@<orgslug>.test
tn.NewUser(t, harness.WithName("alice")) // real user, invited through Mailpit
-tn.NewIdentity(t, harness.OrgRole("admin")) // machine identity, universal auth
-tn.Mail(t) // Mailpit scoped to this tenant's domain
+tn.NewIdentity(t, harness.OrgRole("admin")) // machine identity
+tn.Mail(t) // Mailpit scoped to this tenant
tn.SetPlan(t, license.Enterprise().Without(license.RBAC))
-tn.Verify(t, plan) // assert the instance resolved the plan
-tn.Client(t, token) // a client on this tenant's rate-limit bucket
+tn.Client(t, token) // a client on this tenant's bucket
h.InstanceAdmin(t) // super admin; refused outside Isolated
```
-Fixtures live in their own packages and take the tenant:
+Fixtures take the resource they belong to:
```go
proj := project.New(t, tn, project.WithType("secret-manager"))
-proj.ID, proj.Slug, proj.Environments
-proj.NewIdentity(t, project.Role("admin"))
proj.NewUser(t, project.Name("bob"), project.Role("admin"))
proj.Grant(t, principal, "developer")
+secret.Create(t, proj, "dev", "DB_URL", "value", secret.Path("/svc"), secret.As(member))
+secret.Get(t, proj, "dev", "DB_URL")
+secret.Delete(t, proj, "dev", "DB_URL")
+
conn := appconnection.New(t, tn, provider.GitHub)
-appconnection.Try(t, tn, provider.GitHub, appconnection.RejectCredentials(401))
```
-A connection carries the credential its fake is keyed on, so the two travel together:
-
-```go
-gh := github.Open(t, conn.FakenetAdmin(t), conn.Nonce())
-gh.Seed(t, github.RepoSecret("acme/app", "UNMANAGED", "keep"))
-gh.Repo(t, "acme/app").Secrets // what the destination holds now
-gh.Fail(t, "PUT", "/repos/*", 500, 1) // failure injection
-gh.Received(t, "GET", "/user") // the call log
-```
+**Fixtures take required arguments positionally and everything else as options.** What
+the API refuses without is positional; what the schema marks optional is an `Option`.
+That is what lets someone add metadata or a different actor without touching every call
+site. Do not add an option nothing uses yet: `staticcheck` will tell you, and adding one
+later is a single line.
**Never build your own API client.** Use `tn.Admin.API`, a principal's `.API`, or
-`tn.Client(t, token)`. A hand-built client loses the tenant's `X-Forwarded-For`
-address and starts drawing down a rate-limit bucket shared with every other test, so
-the symptom is a 429 in an unrelated package.
+`tn.Client(t, token)`. A hand-built client loses the tenant's `X-Forwarded-For` address
+and starts drawing down a rate-limit bucket shared with every other test, so the symptom
+is a 429 in an unrelated package.
Organization roles and project roles are separate types on purpose:
`harness.OrgRole("admin")` and `project.Role("viewer")`. Passing one where the other
-belongs does not compile. It used to be silently ignored.
+belongs does not compile.
-## 9. Outbound calls and fakes
+## 8. Third parties are faked, not stubbed
-The instance has **no access to the real internet.** fakenet answers DNS for every
-hostname, so nothing resolves to a real address, and a host nobody faked gets a 501
-naming it:
-
-```
-fakenet has no fake for GET https://api.checklyhq.com/v1/accounts: no fake is
-registered for this host
-```
+The instance has **no access to the real internet**. Every hostname resolves to fakenet,
+which either answers as that service or refuses with a 501 naming the URL.
-This is load bearing, and it was measured rather than assumed: with plain Docker
-network aliases and no DNS of our own, a container on the harness network reaches
-`api.checklyhq.com` and gets a real 401 back from Checkly.
-
-### Fakes, not stubs
-
-A fake is a working implementation of a service, holding real state. You assert on
-what the destination ended up holding, not on which requests were sent:
+A fake is a working implementation holding real state, so you assert on what the
+destination ended up holding rather than on which requests were sent:
```go
conn := appconnection.New(t, tn, provider.GitHub)
gh := github.Open(t, conn.FakenetAdmin(t), conn.Nonce())
gh.Seed(t, github.RepoSecret("acme/app", "UNMANAGED", "keep"))
-// ... trigger a sync, delete a secret, trigger again ...
-got := gh.Repo(t, "acme/app").Secrets
+// ... run a sync ...
+gh.Repo(t, "acme/app").Secrets // what GitHub holds now
+gh.Fail(t, "PUT", "/repos/*", 500, fakenet.Times(1))
+gh.Received(t, "GET", "/user")
```
That difference is the point. A secret sync computes what to delete from what the
-destination _returns_, so stubbing that list means asserting against a fixture you
-invented. The same goes for the key-schema guard, `disableSecretDeletion`, and the
-sealed box: the GitHub fake holds the private key, so `Secrets["DB_URL"].Value` is the
-plaintext that actually arrived.
-
-One fakenet serves every tenant, so **isolation is by credential, not by server**.
-Each connection invents a unique one, the product sends it on every outbound call,
-and fakenet keys state on it. No org id is threaded anywhere.
-
-### How interception works
-
-fakenet runs its own DNS server, and Infisical is started with `--dns <fakenet>`.
-Docker's embedded resolver still answers container names first, so `postgres` and
-`redis` are unaffected; everything else falls through to fakenet, which answers with
-its own address. It then serves 443, minting a certificate per name asked for, signed
-by a CA the instance was told to trust.
-
-No `HTTP_PROXY`, no `CONNECT`, no host aliases. Three consequences worth knowing:
+destination *returns*, so stubbing that list would mean asserting against a fixture you
+invented.
-- **`safeRequest` stops being a problem.** It resolves a hostname up front and pins
- the socket to that IP. With a proxy that meant dialling the real host on the proxy's
- port and hanging for 100 seconds. Now the pin lands on fakenet because fakenet _is_
- the address.
-- **Clients that ignore proxy env are covered**, which the AWS, GCP and Azure SDKs all
- do. DNS asks for no cooperation.
-- **`ALLOW_INTERNAL_IP_CONNECTIONS=true` is required**, because fakenet answers for
- public hostnames from a private address and the SSRF guard would otherwise refuse.
+**Isolation is by credential.** Each connection invents a unique one and the product
+sends it on every outbound call, so parallel tenants never see each other and no org id
+is threaded anywhere.
-fakenet holds a fixed address (`10.201.0.53`) on a fixed subnet, because Infisical is
-told where to resolve when its container is created and is then adopted by later test
-binaries. Its CA lives in `tests/.cache/` for the same reason: editing a fake rebuilds
-fakenet, and a CA minted per boot would leave a running Infisical trusting an
-authority that no longer exists. `make down` removes both together.
+### Adding a fake
-### Writing a fake
-
-One package under `fakes/<service>/`, holding three things:
+One package under `fakes/<service>/`:
1. **The state struct**, shaped like the service rather than like our code.
2. **`ServeHTTP`**, routing with Go 1.22 patterns
(`PUT /repos/{owner}/{repo}/actions/secrets/{name}`).
-3. **`Host`, `Scope` and `New`** — the hostname, how to read the credential off a
+3. **`Host`, `Scope` and `New`**: the hostname, how to read the credential off a
request, and an empty state.
Then one line in `cmd/fakenet/main.go`. The generic `fakenet.Scope[S]` gives the test
@@ -387,134 +312,105 @@ The state struct is declared once and imported by both halves, so a field rename
compile error rather than a silent zero value.
**A fake is a plain `http.Handler`, so develop it in-process with no Docker at all**
-(`fakes/github/fake_test.go` does this). The container is only how the suite consumes
-it.
+(`fakes/github/fake_test.go` does this).
**One fake per service, never per feature.** GitHub is used by app connections, secret
-sync, rotation and scanning; they all talk to the same GitHub. Splitting them would
-mean two things claiming to be GitHub and free to disagree.
+sync, rotation and scanning; they all talk to the same GitHub.
+
+**Model the service honestly.** Real pagination, real error shapes, real crypto. A fake
+that always answers on one page hides the bug where we never fetch page two.
### Adding a provider
-`provider/` carries only what _creating a connection_ needs: the app slug, the
-hostname the client hardcodes, and a `Create` closure calling the generated client.
-How the service behaves once reached lives in its fake.
+`provider/` carries only what *creating a connection* needs: the app slug, the hostname
+the client hardcodes, and a `Create` closure. How the service behaves lives in its fake.
-The hostname must be one the client hardcodes. If the provider lets you configure a
-base URL and you point it straight at fakenet, the test proves the fake works and
-nothing about interception.
+The hostname must be one the client hardcodes. If the provider lets you configure a base
+URL and you point it at fakenet, the test proves the fake works and nothing about
+interception.
-## 10. Entitlements
+## 9. Entitlements and rate limits
-Every tenant gets a full enterprise plan by default. The instance runs in Cloud mode
-against a faked license server, which is what makes plans resolve **per
-organization** rather than instance-wide.
+Every tenant gets a full enterprise plan by default, resolved **per organization**.
```go
tn := h.NewTenant(t, harness.WithPlan(license.Enterprise().Without(license.RBAC)))
-tn.SetPlan(t, license.Enterprise()) // also verifies it took effect
+tn.SetPlan(t, license.Enterprise()) // also verifies it took effect
```
-`SetPlan` and `Verify` read the plan back with `refreshCache=true`, which busts the
-900-second Redis cache and asserts the fake produced what was asked for. A wrong
-feature key otherwise surfaces much later as a 403 in an unrelated test.
-
-Use `unlicensed/` subtests to pin downgrade behaviour. `CODE_QUALITY.md` requires that
-a license check never changes a read path, and flipping entitlements is the only way
-to test that.
-
-## 11. Rate limits
-
-The limiter is registered because the harness runs Cloud mode. Three tiers, and you
-can only move one:
-
-| where the limit comes from | examples | raisable |
-| -------------------------- | --------------------------------------------------------------- | ------------------------- |
-| the organization's plan | `readLimit`, `writeLimit`, `secretsLimit` | yes, via the license fake |
-| instance configuration | `authRateLimit`, `inviteUserRateLimit`, `identityCreationLimit` | no |
-| a literal in the source | `smtpRateLimit`, 2 per **40s** | no |
+Use `unlicensed/` subtests to pin downgrade behaviour. `CODE_QUALITY.md` requires that a
+license check never changes a read path, and flipping entitlements is the only way to
+test that.
-`PUT /api/v1/rate-limit` looks like the lever for the middle tier and is inert here:
-the sync that reads its row is gated on an entitlement Cloud mode never resolves.
+The rate limiter is on. Only the plan-derived limits (`readLimit`, `writeLimit`,
+`secretsLimit`) can be raised; the rest are per source address, which is why every tenant
+and principal gets its own and why you must not build your own client.
-**So the source address is the lever.** Every tenant and every principal gets its own
-`X-Forwarded-For`, which is also why you must not build your own client. The tightest
-limit is the org invite at two per forty seconds per address, which is why creating a
-user mints a fresh address.
+## 10. Time-dependent behaviour
-## 12. Time-dependent behaviour
+Separate two questions usually tested as one: does the scheduler decide correctly when to
+fire (pure arithmetic, unit test it), and does the right thing happen when it fires (this
+suite). Almost all the value is in the second, and it does not require waiting.
-Separate two questions usually tested as one: does the scheduler decide correctly when
-to fire (pure arithmetic, unit test it), and does the right thing happen when it fires
-(this suite). Almost all the value is in the second, and it does not require waiting.
+**Interval-shaped features: use the product's own trigger.** Rotation and sync expose a
+manual endpoint, so the interval never enters the test.
-**Interval-shaped features: use the product's own trigger.** Rotation and sync expose
-a manual endpoint. Testing through it tests a real surface, and the 25-day interval
-never enters the test.
+**Deadline-shaped features: move the deadline, not the clock.** Issue a certificate valid
+for 7 days and set the alert threshold to 30.
-**Deadline-shaped features: move the deadline, not the clock.** Certificates and
-leases carry their deadline in the artifact, and both the deadline and the threshold
-are user input. Issue a certificate valid for 7 days and set the alert threshold to
-30, and the condition is true immediately.
+**Async work is polled, never slept.** `internal/wait` exists for this. `time.Sleep` is
+how you get a suite that is slow *and* flaky.
-**Async work is polled, never slept.** Syncs, rotations, webhooks and audit logs land
-after the response returns. `time.Sleep` is how you get a suite that is slow _and_
-flaky. There is no shared polling helper yet; `internal/mail` has a private loop, and
-the second caller should extract one.
+**Poll the thing that records the outcome, not the side effect.** A sync writes its status
+and message to its own row; waiting on the destination instead turns every failure into an
+identical timeout with nothing to explain it.
-**Budget rule:** no `Shared` test waits more than about 60 seconds. A test that needs
-longer is telling you it is using the wrong lever.
+**Budget:** no `Shared` test waits more than about 60 seconds. A test that needs longer is
+using the wrong lever.
-## 13. The generated client
+## 11. The generated client
-Every call goes through `clients/api`, generated by oapi-codegen. There is no
-hand-written HTTP path: **a route the generated client cannot reach is a route missing
-an `operationId`, and the fix belongs in the router, not here.**
+Every call goes through `clients/api`. There is no hand-written HTTP path: **a route the
+generated client cannot reach is a route missing an `operationId`, and the fix belongs in
+the router.**
To add an endpoint:
-1. Add its `operationId` to `include-operation-ids` in
- `clients/api/oapi-codegen.yaml`.
+1. Add its `operationId` to `include-operation-ids` in `clients/api/oapi-codegen.yaml`.
2. Regenerate against a **non-production** instance:
```bash
INFISICAL_OPENAPI_URL=http://localhost:8080 make generate-client
```
-The non-production part is not optional. `env.ts` resolves the full spec as
+The non-production part is not optional. The full spec resolves as
`NODE_ENV !== "production" && OPENAPI_FULL_SPEC`, and the harness container runs
-`NODE_ENV=production` on purpose. Generating against it **silently drops operations**
-rather than failing. Use the dev stack, or boot a throwaway container from the harness
-image with `NODE_ENV=development`.
+`NODE_ENV=production`, so generating against it **silently drops operations**. Use the dev
+stack, or a throwaway container from the harness image with `NODE_ENV=development`.
-If the route has no `operationId`, add one in the backend router first; without it
-oapi-codegen derives a name from the path, which changes when the path does.
+**Union bodies.** Where a whole request body is a union, oapi-codegen declares it as a
+defined type, which does not inherit `MarshalJSON`, so it serialises as `{}`. Build the
+body, `json.Marshal` it yourself, and post through `...WithBodyWithResponse`. A union
+*field* inside an ordinary struct marshals fine.
-### Two generator traps
+**Union responses need unwrapping.** `createSecretV4` returns a secret *or* an approval
+request. Call `AsCreateSecretV4200JSONResponseBody0()` and fail loudly on the other
+branch, rather than letting an approval request read as success.
-**Union request bodies do not marshal.** oapi-codegen declares the request-body type
-as a _defined type_ over the union struct, and a defined type does not inherit
-methods, so the generated `MarshalJSON` is lost and the union serialises as `{}`.
-Build the `JSONBody`, `json.Marshal` it yourself, and post through
-`...WithBodyWithResponse`.
-
-**Union responses need unwrapping.** `createSecretV4` returns a secret _or_ an
-approval request. Call `AsCreateSecretV4200JSONResponseBody0()` and fail loudly if it
-is the other branch, rather than letting an approval request read as success.
-
-## 14. Debugging a failure
+## 12. Debugging a failure
1. **Container logs**: `.logs/<timestamp>/<container>.log`, written unconditionally.
-2. **The fakenet log**, which carries one line per outbound call:
- `GET api.github.com/user -> 200 scope=7116dd6caf34...`. It answers "did the call
- happen at all, and under which credential" before anything else.
- `GET /__fake/denied` lists calls that reached no fake.
-3. **Mailpit UI**: the mapped port on the Mailpit container, for anything email.
-4. **`make status`** lists harness containers and their state.
-5. If an outbound call is refused, the host has no fake. Register its `Service` in
- `cmd/fakenet/main.go`, or add the missing route to the fake that owns it.
+2. **The fakenet log**, one line per outbound call:
+ `GET api.github.com/user -> 200 scope=7116dd6caf34...`. It answers "did the call happen
+ at all, and under which credential" before anything else.
+3. **`GET /__fake/denied`** on fakenet's admin port lists calls that reached no fake.
+4. **Mailpit UI** on its mapped port, for anything email.
+5. **`make status`** lists harness containers.
+
+If an outbound call is refused, the host has no fake: register its `Service` in
+`cmd/fakenet/main.go`, or add the missing route to the fake that owns it.
-## 15. Anti-patterns
+## 13. Anti-patterns
Each has bitten a suite like this before.
@@ -522,14 +418,14 @@ Each has bitten a suite like this before.
- Asserting on log lines instead of responses, outside boot tests.
- Package-level mutable state shared between tests.
- Using `tn.Admin` in a test about what a member can do.
-- Seeding more than the test needs, which hides an outbound call the code should not
- have made.
+- Seeding more than the test needs, which hides an outbound call the code should not have
+ made.
- A `Shared` test that cannot be `t.Parallel()`. It is in the wrong package.
- Asserting only status codes where the message is part of the contract.
- Reaching for the database. There is no client, deliberately.
-- Naming a test file after a harness source file.
+- A package, fixture or option created for one caller.
-## 16. Before you call it done
+## 14. Before you call it done
```bash
make lint
@@ -537,25 +433,9 @@ make test-all
make up && go test -p 4 ./suites/... ./harnesstest/... -count=3; make down
```
-The last one is the flake gate, and it deliberately runs both trees at once: the bugs
-it catches are cross-package, so narrowing it to one tree would hide them. **Anything
-failing it is shared state that escaped the tenant boundary**, and it is the single
-most valuable check here.
-
-Then do the thing that is easy to skip: break your new assertion on purpose and watch
-it fail.
-
-## 17. Known gaps
-
-Honest state, so you do not assume coverage that is not there.
+The last one is the flake gate, and it deliberately runs both trees at once: the bugs it
+catches are cross-package. **Anything failing it is shared state that escaped the tenant
+boundary.**
-- Product coverage is thin: organization, project and secret creation only.
-- No `internal/wait` helper yet, so polling is hand-rolled per call site.
-- Secret sync and rotation are not covered; neither is PKI, PAM, KMS, scanning or SSO.
- The GitHub fake already serves the sync endpoints, so the suite is the missing half.
-- Only two fakes exist: `github` and `license`. AWS Parameter Store is the next one
- worth writing, since it is the only way to reach the SDK retry and batching paths.
-- Three operation IDs in the generated client have no caller
- (`listSecretsV4`, `beginEmailSignupV3`, `verifyEmailSignupV3`).
-- `-p` is not pinned in the Makefile, so local and CI exercise different amounts of
- concurrency.
+Then do the thing that is easy to skip: break your new assertion on purpose, and break
+what it depends on, and watch both fail.
diff --git a/tests/clients/api/api.gen.go b/tests/clients/api/api.gen.go
index 925904db5f..a7bad7d10e 100644
--- a/tests/clients/api/api.gen.go
+++ b/tests/clients/api/api.gen.go
@@ -2487,7560 +2487,11265 @@ func (e CreateProjectIdentityMembership500JSONResponseBodyStatusCode) Valid() bo
}
}
-// Defines values for CreateOrganization400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope.
const (
- CreateOrganization400JSONResponseBodyStatusCodeN400 CreateOrganization400JSONResponseBodyStatusCode = 400
+ CreateGitHubSecretSyncJSONBodyDestinationConfig0ScopeOrganization CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope = "organization"
)
-// Valid indicates whether the value is a known member of the CreateOrganization400JSONResponseBodyStatusCode enum.
-func (e CreateOrganization400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope enum.
+func (e CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope) Valid() bool {
switch e {
- case CreateOrganization400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubSecretSyncJSONBodyDestinationConfig0ScopeOrganization:
return true
default:
return false
}
}
-// Defines values for CreateOrganization401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility.
const (
- CreateOrganization401JSONResponseBodyStatusCodeN401 CreateOrganization401JSONResponseBodyStatusCode = 401
+ CreateGitHubSecretSyncJSONBodyDestinationConfig0VisibilityAll CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility = "all"
+ CreateGitHubSecretSyncJSONBodyDestinationConfig0VisibilityPrivate CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility = "private"
+ CreateGitHubSecretSyncJSONBodyDestinationConfig0VisibilitySelected CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility = "selected"
)
-// Valid indicates whether the value is a known member of the CreateOrganization401JSONResponseBodyStatusCode enum.
-func (e CreateOrganization401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility enum.
+func (e CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility) Valid() bool {
switch e {
- case CreateOrganization401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubSecretSyncJSONBodyDestinationConfig0VisibilityAll:
+ return true
+ case CreateGitHubSecretSyncJSONBodyDestinationConfig0VisibilityPrivate:
+ return true
+ case CreateGitHubSecretSyncJSONBodyDestinationConfig0VisibilitySelected:
return true
default:
return false
}
}
-// Defines values for CreateOrganization403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope.
const (
- CreateOrganization403JSONResponseBodyStatusCodeN403 CreateOrganization403JSONResponseBodyStatusCode = 403
+ CreateGitHubSecretSyncJSONBodyDestinationConfig1ScopeRepository CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope = "repository"
)
-// Valid indicates whether the value is a known member of the CreateOrganization403JSONResponseBodyStatusCode enum.
-func (e CreateOrganization403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope enum.
+func (e CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope) Valid() bool {
switch e {
- case CreateOrganization403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubSecretSyncJSONBodyDestinationConfig1ScopeRepository:
return true
default:
return false
}
}
-// Defines values for CreateOrganization404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope.
const (
- CreateOrganization404JSONResponseBodyStatusCodeN404 CreateOrganization404JSONResponseBodyStatusCode = 404
+ CreateGitHubSecretSyncJSONBodyDestinationConfig2ScopeRepositoryEnvironment CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope = "repository-environment"
)
-// Valid indicates whether the value is a known member of the CreateOrganization404JSONResponseBodyStatusCode enum.
-func (e CreateOrganization404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope enum.
+func (e CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope) Valid() bool {
switch e {
- case CreateOrganization404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubSecretSyncJSONBodyDestinationConfig2ScopeRepositoryEnvironment:
return true
default:
return false
}
}
-// Defines values for CreateOrganization422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior.
const (
- CreateOrganization422JSONResponseBodyStatusCodeN422 CreateOrganization422JSONResponseBodyStatusCode = 422
+ CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehaviorOverwriteDestination CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior = "overwrite-destination"
)
-// Valid indicates whether the value is a known member of the CreateOrganization422JSONResponseBodyStatusCode enum.
-func (e CreateOrganization422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior enum.
+func (e CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior) Valid() bool {
switch e {
- case CreateOrganization422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehaviorOverwriteDestination:
return true
default:
return false
}
}
-// Defines values for CreateOrganization500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp.
const (
- CreateOrganization500JSONResponseBodyStatusCodeN500 CreateOrganization500JSONResponseBodyStatusCode = 500
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp = "github"
)
-// Valid indicates whether the value is a known member of the CreateOrganization500JSONResponseBodyStatusCode enum.
-func (e CreateOrganization500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp) Valid() bool {
switch e {
- case CreateOrganization500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination.
const (
- DeleteOrganization400JSONResponseBodyStatusCodeN400 DeleteOrganization400JSONResponseBodyStatusCode = 400
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination = "github"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization400JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination) Valid() bool {
switch e {
- case DeleteOrganization400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope.
const (
- DeleteOrganization401JSONResponseBodyStatusCodeN401 DeleteOrganization401JSONResponseBodyStatusCode = 401
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope = "organization"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization401JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope) Valid() bool {
switch e {
- case DeleteOrganization401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility.
const (
- DeleteOrganization403JSONResponseBodyStatusCodeN403 DeleteOrganization403JSONResponseBodyStatusCode = 403
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "all"
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "private"
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "selected"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization403JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility) Valid() bool {
switch e {
- case DeleteOrganization403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll:
+ return true
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate:
+ return true
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope.
const (
- DeleteOrganization404JSONResponseBodyStatusCodeN404 DeleteOrganization404JSONResponseBodyStatusCode = 404
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope = "repository"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization404JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope) Valid() bool {
switch e {
- case DeleteOrganization404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope.
const (
- DeleteOrganization422JSONResponseBodyStatusCodeN422 DeleteOrganization422JSONResponseBodyStatusCode = 422
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope = "repository-environment"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization422JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope) Valid() bool {
switch e {
- case DeleteOrganization422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment:
return true
default:
return false
}
}
-// Defines values for DeleteOrganization500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior.
const (
- DeleteOrganization500JSONResponseBodyStatusCodeN500 DeleteOrganization500JSONResponseBodyStatusCode = 500
+ CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior = "overwrite-destination"
)
-// Valid indicates whether the value is a known member of the DeleteOrganization500JSONResponseBodyStatusCode enum.
-func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior enum.
+func (e CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior) Valid() bool {
switch e {
- case DeleteOrganization500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination:
return true
default:
return false
}
}
-// Defines values for LoginV3400JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync400JSONResponseBodyStatusCode.
const (
- LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400
+ CreateGitHubSecretSync400JSONResponseBodyStatusCodeN400 CreateGitHubSecretSync400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the LoginV3400JSONResponseBodyStatusCode enum.
-func (e LoginV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync400JSONResponseBodyStatusCode enum.
+func (e CreateGitHubSecretSync400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3400JSONResponseBodyStatusCodeN400:
+ case CreateGitHubSecretSync400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for LoginV3401JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync401JSONResponseBodyStatusCode.
const (
- LoginV3401JSONResponseBodyStatusCodeN401 LoginV3401JSONResponseBodyStatusCode = 401
+ CreateGitHubSecretSync401JSONResponseBodyStatusCodeN401 CreateGitHubSecretSync401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the LoginV3401JSONResponseBodyStatusCode enum.
-func (e LoginV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync401JSONResponseBodyStatusCode enum.
+func (e CreateGitHubSecretSync401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3401JSONResponseBodyStatusCodeN401:
+ case CreateGitHubSecretSync401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for LoginV3403JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync403JSONResponseBodyStatusCode.
const (
- LoginV3403JSONResponseBodyStatusCodeN403 LoginV3403JSONResponseBodyStatusCode = 403
+ CreateGitHubSecretSync403JSONResponseBodyStatusCodeN403 CreateGitHubSecretSync403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the LoginV3403JSONResponseBodyStatusCode enum.
-func (e LoginV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync403JSONResponseBodyStatusCode enum.
+func (e CreateGitHubSecretSync403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3403JSONResponseBodyStatusCodeN403:
+ case CreateGitHubSecretSync403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for LoginV3404JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync404JSONResponseBodyStatusCode.
const (
- LoginV3404JSONResponseBodyStatusCodeN404 LoginV3404JSONResponseBodyStatusCode = 404
+ CreateGitHubSecretSync404JSONResponseBodyStatusCodeN404 CreateGitHubSecretSync404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the LoginV3404JSONResponseBodyStatusCode enum.
-func (e LoginV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync404JSONResponseBodyStatusCode enum.
+func (e CreateGitHubSecretSync404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3404JSONResponseBodyStatusCodeN404:
+ case CreateGitHubSecretSync404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for LoginV3422JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync422JSONResponseBodyStatusCode.
const (
- LoginV3422JSONResponseBodyStatusCodeN422 LoginV3422JSONResponseBodyStatusCode = 422
+ CreateGitHubSecretSync422JSONResponseBodyStatusCodeN422 CreateGitHubSecretSync422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the LoginV3422JSONResponseBodyStatusCode enum.
-func (e LoginV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync422JSONResponseBodyStatusCode enum.
+func (e CreateGitHubSecretSync422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3422JSONResponseBodyStatusCodeN422:
+ case CreateGitHubSecretSync422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for LoginV3500JSONResponseBodyStatusCode.
+// Defines values for CreateGitHubSecretSync500JSONResponseBodyStatusCode.
const (
- LoginV3500JSONResponseBodyStatusCodeN500 LoginV3500JSONResponseBodyStatusCode = 500
+ CreateGitHubSecretSync500JSONResponseBodyStatusCodeN500 CreateGitHubSecretSync500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the LoginV3500JSONResponseBodyStatusCode enum.
-func (e LoginV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateGitHubSecretSync500JSONResponseBodyStatusCode enum.
+func (e CreateGitHubSecretSync500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case LoginV3500JSONResponseBodyStatusCodeN500:
+ case CreateGitHubSecretSync500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3JSONBodyUserAgent.
+// Defines values for DeleteGitHubSecretSyncParamsRemoveSecrets.
const (
- Cli SelectOrganizationV3JSONBodyUserAgent = "cli"
+ DeleteGitHubSecretSyncParamsRemoveSecretsFalse DeleteGitHubSecretSyncParamsRemoveSecrets = "false"
+ DeleteGitHubSecretSyncParamsRemoveSecretsTrue DeleteGitHubSecretSyncParamsRemoveSecrets = "true"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3JSONBodyUserAgent enum.
-func (e SelectOrganizationV3JSONBodyUserAgent) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSyncParamsRemoveSecrets enum.
+func (e DeleteGitHubSecretSyncParamsRemoveSecrets) Valid() bool {
switch e {
- case Cli:
+ case DeleteGitHubSecretSyncParamsRemoveSecretsFalse:
+ return true
+ case DeleteGitHubSecretSyncParamsRemoveSecretsTrue:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3400JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp.
const (
- SelectOrganizationV3400JSONResponseBodyStatusCodeN400 SelectOrganizationV3400JSONResponseBodyStatusCode = 400
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp = "github"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3400JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp) Valid() bool {
switch e {
- case SelectOrganizationV3400JSONResponseBodyStatusCodeN400:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3401JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination.
const (
- SelectOrganizationV3401JSONResponseBodyStatusCodeN401 SelectOrganizationV3401JSONResponseBodyStatusCode = 401
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination = "github"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3401JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination) Valid() bool {
switch e {
- case SelectOrganizationV3401JSONResponseBodyStatusCodeN401:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3403JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope.
const (
- SelectOrganizationV3403JSONResponseBodyStatusCodeN403 SelectOrganizationV3403JSONResponseBodyStatusCode = 403
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope = "organization"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3403JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope) Valid() bool {
switch e {
- case SelectOrganizationV3403JSONResponseBodyStatusCodeN403:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3404JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility.
const (
- SelectOrganizationV3404JSONResponseBodyStatusCodeN404 SelectOrganizationV3404JSONResponseBodyStatusCode = 404
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "all"
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "private"
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "selected"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3404JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility) Valid() bool {
switch e {
- case SelectOrganizationV3404JSONResponseBodyStatusCodeN404:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll:
+ return true
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate:
+ return true
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3422JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope.
const (
- SelectOrganizationV3422JSONResponseBodyStatusCodeN422 SelectOrganizationV3422JSONResponseBodyStatusCode = 422
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope = "repository"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3422JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope) Valid() bool {
switch e {
- case SelectOrganizationV3422JSONResponseBodyStatusCodeN422:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository:
return true
default:
return false
}
}
-// Defines values for SelectOrganizationV3500JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope.
const (
- SelectOrganizationV3500JSONResponseBodyStatusCodeN500 SelectOrganizationV3500JSONResponseBodyStatusCode = 500
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope = "repository-environment"
)
-// Valid indicates whether the value is a known member of the SelectOrganizationV3500JSONResponseBodyStatusCode enum.
-func (e SelectOrganizationV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope) Valid() bool {
switch e {
- case SelectOrganizationV3500JSONResponseBodyStatusCodeN500:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3JSONBody0Type.
+// Defines values for DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior.
const (
- CompleteAccountSignupV3JSONBody0TypeEmail CompleteAccountSignupV3JSONBody0Type = "email"
+ DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior = "overwrite-destination"
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody0Type enum.
-func (e CompleteAccountSignupV3JSONBody0Type) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior enum.
+func (e DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior) Valid() bool {
switch e {
- case CompleteAccountSignupV3JSONBody0TypeEmail:
+ case DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3JSONBody1Type.
+// Defines values for DeleteGitHubSecretSync400JSONResponseBodyStatusCode.
const (
- Alias CompleteAccountSignupV3JSONBody1Type = "alias"
+ DeleteGitHubSecretSync400JSONResponseBodyStatusCodeN400 DeleteGitHubSecretSync400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody1Type enum.
-func (e CompleteAccountSignupV3JSONBody1Type) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync400JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubSecretSync400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case Alias:
+ case DeleteGitHubSecretSync400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3400JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync401JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400 CompleteAccountSignupV3400JSONResponseBodyStatusCode = 400
+ DeleteGitHubSecretSync401JSONResponseBodyStatusCodeN401 DeleteGitHubSecretSync401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3400JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync401JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubSecretSync401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400:
+ case DeleteGitHubSecretSync401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3401JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync403JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401 CompleteAccountSignupV3401JSONResponseBodyStatusCode = 401
+ DeleteGitHubSecretSync403JSONResponseBodyStatusCodeN403 DeleteGitHubSecretSync403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3401JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync403JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubSecretSync403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401:
+ case DeleteGitHubSecretSync403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3403JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync404JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403 CompleteAccountSignupV3403JSONResponseBodyStatusCode = 403
+ DeleteGitHubSecretSync404JSONResponseBodyStatusCodeN404 DeleteGitHubSecretSync404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3403JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync404JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubSecretSync404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403:
+ case DeleteGitHubSecretSync404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3404JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync422JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404 CompleteAccountSignupV3404JSONResponseBodyStatusCode = 404
+ DeleteGitHubSecretSync422JSONResponseBodyStatusCodeN422 DeleteGitHubSecretSync422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3404JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync422JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubSecretSync422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404:
+ case DeleteGitHubSecretSync422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3422JSONResponseBodyStatusCode.
+// Defines values for DeleteGitHubSecretSync500JSONResponseBodyStatusCode.
const (
- CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422 CompleteAccountSignupV3422JSONResponseBodyStatusCode = 422
+ DeleteGitHubSecretSync500JSONResponseBodyStatusCodeN500 DeleteGitHubSecretSync500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3422JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the DeleteGitHubSecretSync500JSONResponseBodyStatusCode enum.
+func (e DeleteGitHubSecretSync500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422:
+ case DeleteGitHubSecretSync500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CompleteAccountSignupV3500JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp.
const (
- CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500 CompleteAccountSignupV3500JSONResponseBodyStatusCode = 500
+ GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp = "github"
)
-// Valid indicates whether the value is a known member of the CompleteAccountSignupV3500JSONResponseBodyStatusCode enum.
-func (e CompleteAccountSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp) Valid() bool {
switch e {
- case CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub:
return true
default:
return false
}
}
-// Defines values for BeginEmailSignupV3400JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncDestination.
const (
- BeginEmailSignupV3400JSONResponseBodyStatusCodeN400 BeginEmailSignupV3400JSONResponseBodyStatusCode = 400
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub GetGitHubSecretSync200JSONResponseBodySecretSyncDestination = "github"
)
-// Valid indicates whether the value is a known member of the BeginEmailSignupV3400JSONResponseBodyStatusCode enum.
-func (e BeginEmailSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncDestination enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncDestination) Valid() bool {
switch e {
- case BeginEmailSignupV3400JSONResponseBodyStatusCodeN400:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub:
return true
default:
return false
}
}
-// Defines values for BeginEmailSignupV3401JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope.
const (
- BeginEmailSignupV3401JSONResponseBodyStatusCodeN401 BeginEmailSignupV3401JSONResponseBodyStatusCode = 401
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope = "organization"
)
-// Valid indicates whether the value is a known member of the BeginEmailSignupV3401JSONResponseBodyStatusCode enum.
-func (e BeginEmailSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope) Valid() bool {
switch e {
- case BeginEmailSignupV3401JSONResponseBodyStatusCodeN401:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization:
return true
default:
return false
}
}
-// Defines values for BeginEmailSignupV3403JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility.
const (
- BeginEmailSignupV3403JSONResponseBodyStatusCodeN403 BeginEmailSignupV3403JSONResponseBodyStatusCode = 403
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "all"
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "private"
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "selected"
)
-// Valid indicates whether the value is a known member of the BeginEmailSignupV3403JSONResponseBodyStatusCode enum.
-func (e BeginEmailSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility) Valid() bool {
switch e {
- case BeginEmailSignupV3403JSONResponseBodyStatusCodeN403:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll:
+ return true
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate:
+ return true
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected:
return true
default:
return false
}
}
-// Defines values for BeginEmailSignupV3404JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope.
const (
- BeginEmailSignupV3404JSONResponseBodyStatusCodeN404 BeginEmailSignupV3404JSONResponseBodyStatusCode = 404
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope = "repository"
)
-// Valid indicates whether the value is a known member of the BeginEmailSignupV3404JSONResponseBodyStatusCode enum.
-func (e BeginEmailSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope) Valid() bool {
switch e {
- case BeginEmailSignupV3404JSONResponseBodyStatusCodeN404:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository:
return true
default:
return false
}
}
-// Defines values for BeginEmailSignupV3422JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope.
const (
- BeginEmailSignupV3422JSONResponseBodyStatusCodeN422 BeginEmailSignupV3422JSONResponseBodyStatusCode = 422
+ GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope = "repository-environment"
)
-// Valid indicates whether the value is a known member of the BeginEmailSignupV3422JSONResponseBodyStatusCode enum.
-func (e BeginEmailSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope) Valid() bool {
switch e {
- case BeginEmailSignupV3422JSONResponseBodyStatusCodeN422:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment:
return true
default:
return false
}
}
-// Defines values for BeginEmailSignupV3500JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior.
const (
- BeginEmailSignupV3500JSONResponseBodyStatusCodeN500 BeginEmailSignupV3500JSONResponseBodyStatusCode = 500
+ GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior = "overwrite-destination"
)
-// Valid indicates whether the value is a known member of the BeginEmailSignupV3500JSONResponseBodyStatusCode enum.
-func (e BeginEmailSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior enum.
+func (e GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior) Valid() bool {
switch e {
- case BeginEmailSignupV3500JSONResponseBodyStatusCodeN500:
+ case GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination:
return true
default:
return false
}
}
-// Defines values for VerifyEmailSignupV3400JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync400JSONResponseBodyStatusCode.
const (
- VerifyEmailSignupV3400JSONResponseBodyStatusCodeN400 VerifyEmailSignupV3400JSONResponseBodyStatusCode = 400
+ GetGitHubSecretSync400JSONResponseBodyStatusCodeN400 GetGitHubSecretSync400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the VerifyEmailSignupV3400JSONResponseBodyStatusCode enum.
-func (e VerifyEmailSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync400JSONResponseBodyStatusCode enum.
+func (e GetGitHubSecretSync400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case VerifyEmailSignupV3400JSONResponseBodyStatusCodeN400:
+ case GetGitHubSecretSync400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for VerifyEmailSignupV3401JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync401JSONResponseBodyStatusCode.
const (
- VerifyEmailSignupV3401JSONResponseBodyStatusCodeN401 VerifyEmailSignupV3401JSONResponseBodyStatusCode = 401
+ GetGitHubSecretSync401JSONResponseBodyStatusCodeN401 GetGitHubSecretSync401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the VerifyEmailSignupV3401JSONResponseBodyStatusCode enum.
-func (e VerifyEmailSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync401JSONResponseBodyStatusCode enum.
+func (e GetGitHubSecretSync401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case VerifyEmailSignupV3401JSONResponseBodyStatusCodeN401:
+ case GetGitHubSecretSync401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for VerifyEmailSignupV3403JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync403JSONResponseBodyStatusCode.
const (
- VerifyEmailSignupV3403JSONResponseBodyStatusCodeN403 VerifyEmailSignupV3403JSONResponseBodyStatusCode = 403
+ GetGitHubSecretSync403JSONResponseBodyStatusCodeN403 GetGitHubSecretSync403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the VerifyEmailSignupV3403JSONResponseBodyStatusCode enum.
-func (e VerifyEmailSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync403JSONResponseBodyStatusCode enum.
+func (e GetGitHubSecretSync403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case VerifyEmailSignupV3403JSONResponseBodyStatusCodeN403:
+ case GetGitHubSecretSync403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for VerifyEmailSignupV3404JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync404JSONResponseBodyStatusCode.
const (
- VerifyEmailSignupV3404JSONResponseBodyStatusCodeN404 VerifyEmailSignupV3404JSONResponseBodyStatusCode = 404
+ GetGitHubSecretSync404JSONResponseBodyStatusCodeN404 GetGitHubSecretSync404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the VerifyEmailSignupV3404JSONResponseBodyStatusCode enum.
-func (e VerifyEmailSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync404JSONResponseBodyStatusCode enum.
+func (e GetGitHubSecretSync404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case VerifyEmailSignupV3404JSONResponseBodyStatusCodeN404:
+ case GetGitHubSecretSync404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for VerifyEmailSignupV3422JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync422JSONResponseBodyStatusCode.
const (
- VerifyEmailSignupV3422JSONResponseBodyStatusCodeN422 VerifyEmailSignupV3422JSONResponseBodyStatusCode = 422
+ GetGitHubSecretSync422JSONResponseBodyStatusCodeN422 GetGitHubSecretSync422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the VerifyEmailSignupV3422JSONResponseBodyStatusCode enum.
-func (e VerifyEmailSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync422JSONResponseBodyStatusCode enum.
+func (e GetGitHubSecretSync422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case VerifyEmailSignupV3422JSONResponseBodyStatusCodeN422:
+ case GetGitHubSecretSync422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for VerifyEmailSignupV3500JSONResponseBodyStatusCode.
+// Defines values for GetGitHubSecretSync500JSONResponseBodyStatusCode.
const (
- VerifyEmailSignupV3500JSONResponseBodyStatusCodeN500 VerifyEmailSignupV3500JSONResponseBodyStatusCode = 500
+ GetGitHubSecretSync500JSONResponseBodyStatusCodeN500 GetGitHubSecretSync500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the VerifyEmailSignupV3500JSONResponseBodyStatusCode enum.
-func (e VerifyEmailSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the GetGitHubSecretSync500JSONResponseBodyStatusCode enum.
+func (e GetGitHubSecretSync500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case VerifyEmailSignupV3500JSONResponseBodyStatusCodeN500:
+ case GetGitHubSecretSync500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4ParamsViewSecretValue.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp.
const (
- ListSecretsV4ParamsViewSecretValueFalse ListSecretsV4ParamsViewSecretValue = "false"
- ListSecretsV4ParamsViewSecretValueTrue ListSecretsV4ParamsViewSecretValue = "true"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionAppGithub RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp = "github"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4ParamsViewSecretValue enum.
-func (e ListSecretsV4ParamsViewSecretValue) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp) Valid() bool {
switch e {
- case ListSecretsV4ParamsViewSecretValueFalse:
- return true
- case ListSecretsV4ParamsViewSecretValueTrue:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionAppGithub:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4ParamsExpandSecretReferences.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination.
const (
- ListSecretsV4ParamsExpandSecretReferencesFalse ListSecretsV4ParamsExpandSecretReferences = "false"
- ListSecretsV4ParamsExpandSecretReferencesTrue ListSecretsV4ParamsExpandSecretReferences = "true"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationGithub RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination = "github"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4ParamsExpandSecretReferences enum.
-func (e ListSecretsV4ParamsExpandSecretReferences) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination) Valid() bool {
switch e {
- case ListSecretsV4ParamsExpandSecretReferencesFalse:
- return true
- case ListSecretsV4ParamsExpandSecretReferencesTrue:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationGithub:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4ParamsRecursive.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope.
const (
- ListSecretsV4ParamsRecursiveFalse ListSecretsV4ParamsRecursive = "false"
- ListSecretsV4ParamsRecursiveTrue ListSecretsV4ParamsRecursive = "true"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope = "organization"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4ParamsRecursive enum.
-func (e ListSecretsV4ParamsRecursive) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope) Valid() bool {
switch e {
- case ListSecretsV4ParamsRecursiveFalse:
- return true
- case ListSecretsV4ParamsRecursiveTrue:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4ParamsIncludePersonalOverrides.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility.
const (
- ListSecretsV4ParamsIncludePersonalOverridesFalse ListSecretsV4ParamsIncludePersonalOverrides = "false"
- ListSecretsV4ParamsIncludePersonalOverridesTrue ListSecretsV4ParamsIncludePersonalOverrides = "true"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility = "all"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility = "private"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility = "selected"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4ParamsIncludePersonalOverrides enum.
-func (e ListSecretsV4ParamsIncludePersonalOverrides) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility) Valid() bool {
switch e {
- case ListSecretsV4ParamsIncludePersonalOverridesFalse:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll:
return true
- case ListSecretsV4ParamsIncludePersonalOverridesTrue:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate:
+ return true
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4ParamsIncludeImports.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope.
const (
- ListSecretsV4ParamsIncludeImportsFalse ListSecretsV4ParamsIncludeImports = "false"
- ListSecretsV4ParamsIncludeImportsTrue ListSecretsV4ParamsIncludeImports = "true"
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope = "repository"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4ParamsIncludeImports enum.
-func (e ListSecretsV4ParamsIncludeImports) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope) Valid() bool {
switch e {
- case ListSecretsV4ParamsIncludeImportsFalse:
- return true
- case ListSecretsV4ParamsIncludeImportsTrue:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4400JSONResponseBodyStatusCode.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope.
const (
- ListSecretsV4400JSONResponseBodyStatusCodeN400 ListSecretsV4400JSONResponseBodyStatusCode = 400
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope = "repository-environment"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4400JSONResponseBodyStatusCode enum.
-func (e ListSecretsV4400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope) Valid() bool {
switch e {
- case ListSecretsV4400JSONResponseBodyStatusCodeN400:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4401JSONResponseBodyStatusCode.
+// Defines values for RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior.
const (
- ListSecretsV4401JSONResponseBodyStatusCodeN401 ListSecretsV4401JSONResponseBodyStatusCode = 401
+ RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior = "overwrite-destination"
)
-// Valid indicates whether the value is a known member of the ListSecretsV4401JSONResponseBodyStatusCode enum.
-func (e ListSecretsV4401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior enum.
+func (e RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior) Valid() bool {
switch e {
- case ListSecretsV4401JSONResponseBodyStatusCodeN401:
+ case RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4403JSONResponseBodyStatusCode.
+// Defines values for RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode.
const (
- ListSecretsV4403JSONResponseBodyStatusCodeN403 ListSecretsV4403JSONResponseBodyStatusCode = 403
+ RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCodeN400 RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the ListSecretsV4403JSONResponseBodyStatusCode enum.
-func (e ListSecretsV4403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode enum.
+func (e RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListSecretsV4403JSONResponseBodyStatusCodeN403:
+ case RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4404JSONResponseBodyStatusCode.
+// Defines values for RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode.
const (
- ListSecretsV4404JSONResponseBodyStatusCodeN404 ListSecretsV4404JSONResponseBodyStatusCode = 404
+ RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCodeN401 RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the ListSecretsV4404JSONResponseBodyStatusCode enum.
-func (e ListSecretsV4404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode enum.
+func (e RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListSecretsV4404JSONResponseBodyStatusCodeN404:
+ case RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4422JSONResponseBodyStatusCode.
+// Defines values for RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode.
const (
- ListSecretsV4422JSONResponseBodyStatusCodeN422 ListSecretsV4422JSONResponseBodyStatusCode = 422
+ RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCodeN403 RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the ListSecretsV4422JSONResponseBodyStatusCode enum.
-func (e ListSecretsV4422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode enum.
+func (e RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListSecretsV4422JSONResponseBodyStatusCodeN422:
+ case RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for ListSecretsV4500JSONResponseBodyStatusCode.
+// Defines values for RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode.
const (
- ListSecretsV4500JSONResponseBodyStatusCodeN500 ListSecretsV4500JSONResponseBodyStatusCode = 500
+ RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCodeN404 RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the ListSecretsV4500JSONResponseBodyStatusCode enum.
-func (e ListSecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode enum.
+func (e RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case ListSecretsV4500JSONResponseBodyStatusCodeN500:
+ case RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4ParamsType.
+// Defines values for RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode.
const (
- GetSecretByNameV4ParamsTypePersonal GetSecretByNameV4ParamsType = "personal"
- GetSecretByNameV4ParamsTypeShared GetSecretByNameV4ParamsType = "shared"
+ RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCodeN422 RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsType enum.
-func (e GetSecretByNameV4ParamsType) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode enum.
+func (e RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case GetSecretByNameV4ParamsTypePersonal:
- return true
- case GetSecretByNameV4ParamsTypeShared:
+ case RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4ParamsViewSecretValue.
+// Defines values for RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode.
const (
- GetSecretByNameV4ParamsViewSecretValueFalse GetSecretByNameV4ParamsViewSecretValue = "false"
- GetSecretByNameV4ParamsViewSecretValueTrue GetSecretByNameV4ParamsViewSecretValue = "true"
+ RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCodeN500 RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsViewSecretValue enum.
-func (e GetSecretByNameV4ParamsViewSecretValue) Valid() bool {
+// Valid indicates whether the value is a known member of the RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode enum.
+func (e RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case GetSecretByNameV4ParamsViewSecretValueFalse:
- return true
- case GetSecretByNameV4ParamsViewSecretValueTrue:
+ case RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4ParamsExpandSecretReferences.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp.
const (
- GetSecretByNameV4ParamsExpandSecretReferencesFalse GetSecretByNameV4ParamsExpandSecretReferences = "false"
- GetSecretByNameV4ParamsExpandSecretReferencesTrue GetSecretByNameV4ParamsExpandSecretReferences = "true"
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp = "github"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsExpandSecretReferences enum.
-func (e GetSecretByNameV4ParamsExpandSecretReferences) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp) Valid() bool {
switch e {
- case GetSecretByNameV4ParamsExpandSecretReferencesFalse:
- return true
- case GetSecretByNameV4ParamsExpandSecretReferencesTrue:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionAppGithub:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4ParamsIncludeImports.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination.
const (
- GetSecretByNameV4ParamsIncludeImportsFalse GetSecretByNameV4ParamsIncludeImports = "false"
- GetSecretByNameV4ParamsIncludeImportsTrue GetSecretByNameV4ParamsIncludeImports = "true"
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination = "github"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsIncludeImports enum.
-func (e GetSecretByNameV4ParamsIncludeImports) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination) Valid() bool {
switch e {
- case GetSecretByNameV4ParamsIncludeImportsFalse:
- return true
- case GetSecretByNameV4ParamsIncludeImportsTrue:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationGithub:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4400JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope.
const (
- GetSecretByNameV4400JSONResponseBodyStatusCodeN400 GetSecretByNameV4400JSONResponseBodyStatusCode = 400
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope = "organization"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4400JSONResponseBodyStatusCode enum.
-func (e GetSecretByNameV4400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope) Valid() bool {
switch e {
- case GetSecretByNameV4400JSONResponseBodyStatusCodeN400:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0ScopeOrganization:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4401JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility.
const (
- GetSecretByNameV4401JSONResponseBodyStatusCodeN401 GetSecretByNameV4401JSONResponseBodyStatusCode = 401
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "all"
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "private"
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility = "selected"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4401JSONResponseBodyStatusCode enum.
-func (e GetSecretByNameV4401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility) Valid() bool {
switch e {
- case GetSecretByNameV4401JSONResponseBodyStatusCodeN401:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityAll:
+ return true
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilityPrivate:
+ return true
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0VisibilitySelected:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4403JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope.
const (
- GetSecretByNameV4403JSONResponseBodyStatusCodeN403 GetSecretByNameV4403JSONResponseBodyStatusCode = 403
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope = "repository"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4403JSONResponseBodyStatusCode enum.
-func (e GetSecretByNameV4403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope) Valid() bool {
switch e {
- case GetSecretByNameV4403JSONResponseBodyStatusCodeN403:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1ScopeRepository:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4404JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope.
const (
- GetSecretByNameV4404JSONResponseBodyStatusCodeN404 GetSecretByNameV4404JSONResponseBodyStatusCode = 404
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope = "repository-environment"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4404JSONResponseBodyStatusCode enum.
-func (e GetSecretByNameV4404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope) Valid() bool {
switch e {
- case GetSecretByNameV4404JSONResponseBodyStatusCodeN404:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2ScopeRepositoryEnvironment:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4422JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior.
const (
- GetSecretByNameV4422JSONResponseBodyStatusCodeN422 GetSecretByNameV4422JSONResponseBodyStatusCode = 422
+ SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior = "overwrite-destination"
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4422JSONResponseBodyStatusCode enum.
-func (e GetSecretByNameV4422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior enum.
+func (e SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior) Valid() bool {
switch e {
- case GetSecretByNameV4422JSONResponseBodyStatusCodeN422:
+ case SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehaviorOverwriteDestination:
return true
default:
return false
}
}
-// Defines values for GetSecretByNameV4500JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync400JSONResponseBodyStatusCode.
const (
- GetSecretByNameV4500JSONResponseBodyStatusCodeN500 GetSecretByNameV4500JSONResponseBodyStatusCode = 500
+ SyncGitHubSecretSync400JSONResponseBodyStatusCodeN400 SyncGitHubSecretSync400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the GetSecretByNameV4500JSONResponseBodyStatusCode enum.
-func (e GetSecretByNameV4500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync400JSONResponseBodyStatusCode enum.
+func (e SyncGitHubSecretSync400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case GetSecretByNameV4500JSONResponseBodyStatusCodeN500:
+ case SyncGitHubSecretSync400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4JSONBodyType.
+// Defines values for SyncGitHubSecretSync401JSONResponseBodyStatusCode.
const (
- CreateSecretV4JSONBodyTypePersonal CreateSecretV4JSONBodyType = "personal"
- CreateSecretV4JSONBodyTypeShared CreateSecretV4JSONBodyType = "shared"
+ SyncGitHubSecretSync401JSONResponseBodyStatusCodeN401 SyncGitHubSecretSync401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateSecretV4JSONBodyType enum.
-func (e CreateSecretV4JSONBodyType) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync401JSONResponseBodyStatusCode enum.
+func (e SyncGitHubSecretSync401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4JSONBodyTypePersonal:
- return true
- case CreateSecretV4JSONBodyTypeShared:
+ case SyncGitHubSecretSync401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4400JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync403JSONResponseBodyStatusCode.
const (
- CreateSecretV4400JSONResponseBodyStatusCodeN400 CreateSecretV4400JSONResponseBodyStatusCode = 400
+ SyncGitHubSecretSync403JSONResponseBodyStatusCodeN403 SyncGitHubSecretSync403JSONResponseBodyStatusCode = 403
)
-// Valid indicates whether the value is a known member of the CreateSecretV4400JSONResponseBodyStatusCode enum.
-func (e CreateSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync403JSONResponseBodyStatusCode enum.
+func (e SyncGitHubSecretSync403JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4400JSONResponseBodyStatusCodeN400:
+ case SyncGitHubSecretSync403JSONResponseBodyStatusCodeN403:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4401JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync404JSONResponseBodyStatusCode.
const (
- CreateSecretV4401JSONResponseBodyStatusCodeN401 CreateSecretV4401JSONResponseBodyStatusCode = 401
+ SyncGitHubSecretSync404JSONResponseBodyStatusCodeN404 SyncGitHubSecretSync404JSONResponseBodyStatusCode = 404
)
-// Valid indicates whether the value is a known member of the CreateSecretV4401JSONResponseBodyStatusCode enum.
-func (e CreateSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync404JSONResponseBodyStatusCode enum.
+func (e SyncGitHubSecretSync404JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4401JSONResponseBodyStatusCodeN401:
+ case SyncGitHubSecretSync404JSONResponseBodyStatusCodeN404:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4403JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync422JSONResponseBodyStatusCode.
const (
- CreateSecretV4403JSONResponseBodyStatusCodeN403 CreateSecretV4403JSONResponseBodyStatusCode = 403
+ SyncGitHubSecretSync422JSONResponseBodyStatusCodeN422 SyncGitHubSecretSync422JSONResponseBodyStatusCode = 422
)
-// Valid indicates whether the value is a known member of the CreateSecretV4403JSONResponseBodyStatusCode enum.
-func (e CreateSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync422JSONResponseBodyStatusCode enum.
+func (e SyncGitHubSecretSync422JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4403JSONResponseBodyStatusCodeN403:
+ case SyncGitHubSecretSync422JSONResponseBodyStatusCodeN422:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4404JSONResponseBodyStatusCode.
+// Defines values for SyncGitHubSecretSync500JSONResponseBodyStatusCode.
const (
- CreateSecretV4404JSONResponseBodyStatusCodeN404 CreateSecretV4404JSONResponseBodyStatusCode = 404
+ SyncGitHubSecretSync500JSONResponseBodyStatusCodeN500 SyncGitHubSecretSync500JSONResponseBodyStatusCode = 500
)
-// Valid indicates whether the value is a known member of the CreateSecretV4404JSONResponseBodyStatusCode enum.
-func (e CreateSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the SyncGitHubSecretSync500JSONResponseBodyStatusCode enum.
+func (e SyncGitHubSecretSync500JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4404JSONResponseBodyStatusCodeN404:
+ case SyncGitHubSecretSync500JSONResponseBodyStatusCodeN500:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4422JSONResponseBodyStatusCode.
+// Defines values for CreateOrganization400JSONResponseBodyStatusCode.
const (
- CreateSecretV4422JSONResponseBodyStatusCodeN422 CreateSecretV4422JSONResponseBodyStatusCode = 422
+ CreateOrganization400JSONResponseBodyStatusCodeN400 CreateOrganization400JSONResponseBodyStatusCode = 400
)
-// Valid indicates whether the value is a known member of the CreateSecretV4422JSONResponseBodyStatusCode enum.
-func (e CreateSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateOrganization400JSONResponseBodyStatusCode enum.
+func (e CreateOrganization400JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4422JSONResponseBodyStatusCodeN422:
+ case CreateOrganization400JSONResponseBodyStatusCodeN400:
return true
default:
return false
}
}
-// Defines values for CreateSecretV4500JSONResponseBodyStatusCode.
+// Defines values for CreateOrganization401JSONResponseBodyStatusCode.
const (
- CreateSecretV4500JSONResponseBodyStatusCodeN500 CreateSecretV4500JSONResponseBodyStatusCode = 500
+ CreateOrganization401JSONResponseBodyStatusCodeN401 CreateOrganization401JSONResponseBodyStatusCode = 401
)
-// Valid indicates whether the value is a known member of the CreateSecretV4500JSONResponseBodyStatusCode enum.
-func (e CreateSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+// Valid indicates whether the value is a known member of the CreateOrganization401JSONResponseBodyStatusCode enum.
+func (e CreateOrganization401JSONResponseBodyStatusCode) Valid() bool {
switch e {
- case CreateSecretV4500JSONResponseBodyStatusCodeN500:
+ case CreateOrganization401JSONResponseBodyStatusCodeN401:
return true
default:
return false
}
}
-// GetServerStatus400JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus400JSONResponseBodyStatusCode float32
-
-// GetServerStatus401JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus401JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization403JSONResponseBodyStatusCode.
+const (
+ CreateOrganization403JSONResponseBodyStatusCodeN403 CreateOrganization403JSONResponseBodyStatusCode = 403
+)
-// GetServerStatus403JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization403JSONResponseBodyStatusCode enum.
+func (e CreateOrganization403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// GetServerStatus404JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus404JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization404JSONResponseBodyStatusCode.
+const (
+ CreateOrganization404JSONResponseBodyStatusCodeN404 CreateOrganization404JSONResponseBodyStatusCode = 404
+)
-// GetServerStatus422JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization404JSONResponseBodyStatusCode enum.
+func (e CreateOrganization404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// GetServerStatus500JSONResponseBodyStatusCode defines parameters for GetServerStatus.
-type GetServerStatus500JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization422JSONResponseBodyStatusCode.
+const (
+ CreateOrganization422JSONResponseBodyStatusCodeN422 CreateOrganization422JSONResponseBodyStatusCode = 422
+)
-// AdminBootstrapJSONBody defines parameters for AdminBootstrap.
-type AdminBootstrapJSONBody struct {
- Email openapi_types.Email `json:"email"`
- Organization string `json:"organization"`
- Password string `json:"password"`
+// Valid indicates whether the value is a known member of the CreateOrganization422JSONResponseBodyStatusCode enum.
+func (e CreateOrganization422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap400JSONResponseBodyStatusCode float32
+// Defines values for CreateOrganization500JSONResponseBodyStatusCode.
+const (
+ CreateOrganization500JSONResponseBodyStatusCodeN500 CreateOrganization500JSONResponseBodyStatusCode = 500
+)
-// AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateOrganization500JSONResponseBodyStatusCode enum.
+func (e CreateOrganization500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateOrganization500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
-// AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap403JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization400JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization400JSONResponseBodyStatusCodeN400 DeleteOrganization400JSONResponseBodyStatusCode = 400
+)
-// AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization400JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap422JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization401JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization401JSONResponseBodyStatusCodeN401 DeleteOrganization401JSONResponseBodyStatusCode = 401
+)
-// AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
-type AdminBootstrap500JSONResponseBodyStatusCode float32
-
-// UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.
-type UpdateAdminConfigJSONBody struct {
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`
- EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`
- EnvOverrides *struct {
- CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`
- CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`
- CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`
- CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`
- CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`
- CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`
- CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`
- DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`
- DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`
- DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`
- INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`
- INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`
- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`
- INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`
- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`
- INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`
- INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`
- INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`
- INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`
- INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`
- INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`
- INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`
- INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`
- INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`
- INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`
- INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`
- INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`
- INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`
- INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`
- INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`
- INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`
- INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`
- INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`
- INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`
- } `json:"envOverrides,omitempty"`
- GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`
- GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`
- GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`
- GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`
- GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`
- MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`
- MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`
- MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- SlackClientId *string `json:"slackClientId,omitempty"`
- SlackClientSecret *string `json:"slackClientSecret,omitempty"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteOrganization401JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.
-type UpdateAdminConfigJSONBodyEnabledLoginMethods string
-
-// UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig400JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization403JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization403JSONResponseBodyStatusCodeN403 DeleteOrganization403JSONResponseBodyStatusCode = 403
+)
-// UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization403JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig403JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization404JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization404JSONResponseBodyStatusCodeN404 DeleteOrganization404JSONResponseBodyStatusCode = 404
+)
-// UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization404JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig422JSONResponseBodyStatusCode float32
+// Defines values for DeleteOrganization422JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization422JSONResponseBodyStatusCodeN422 DeleteOrganization422JSONResponseBodyStatusCode = 422
+)
-// UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
-type UpdateAdminConfig500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the DeleteOrganization422JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnectionJSONBody defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody struct {
- // Description An optional description for the GitHub Connection.
- Description *string `json:"description,omitempty"`
+// Defines values for DeleteOrganization500JSONResponseBodyStatusCode.
+const (
+ DeleteOrganization500JSONResponseBodyStatusCodeN500 DeleteOrganization500JSONResponseBodyStatusCode = 500
+)
- // GatewayId The Gateway ID to use for this connection.
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteOrganization500JSONResponseBodyStatusCode enum.
+func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteOrganization500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
- // GatewayPoolId The Gateway Pool ID to use for this connection.
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+// Defines values for LoginV3400JSONResponseBodyStatusCode.
+const (
+ LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400
+)
- // IsAutoRotationEnabled Not supported for GitHub Connections.
- IsAutoRotationEnabled *CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
+// Valid indicates whether the value is a known member of the LoginV3400JSONResponseBodyStatusCode enum.
+func (e LoginV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
- // IsPlatformManagedCredentials Not supported for GitHub Connections.
- IsPlatformManagedCredentials *CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
+// Defines values for LoginV3401JSONResponseBodyStatusCode.
+const (
+ LoginV3401JSONResponseBodyStatusCodeN401 LoginV3401JSONResponseBodyStatusCode = 401
+)
- // Name The name of the GitHub Connection to create. Must be slug-friendly.
- Name string `json:"name"`
+// Valid indicates whether the value is a known member of the LoginV3401JSONResponseBodyStatusCode enum.
+func (e LoginV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
- // ProjectId The ID of the project to create the GitHub Connection in.
- ProjectId *string `json:"projectId,omitempty"`
+// Defines values for LoginV3403JSONResponseBodyStatusCode.
+const (
+ LoginV3403JSONResponseBodyStatusCodeN403 LoginV3403JSONResponseBodyStatusCode = 403
+)
- // Rotation Not supported for GitHub Connections.
- Rotation *CreateGitHubAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
- union json.RawMessage
+// Valid indicates whether the value is a known member of the LoginV3403JSONResponseBodyStatusCode enum.
+func (e LoginV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled bool
-
-// CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials bool
+// Defines values for LoginV3404JSONResponseBodyStatusCode.
+const (
+ LoginV3404JSONResponseBodyStatusCodeN404 LoginV3404JSONResponseBodyStatusCode = 404
+)
-// CreateGitHubAppConnectionJSONBodyRotation0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBodyRotation0 = interface{}
+// Valid indicates whether the value is a known member of the LoginV3404JSONResponseBodyStatusCode enum.
+func (e LoginV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnectionJSONBodyRotation1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBodyRotation1 = interface{}
+// Defines values for LoginV3422JSONResponseBodyStatusCode.
+const (
+ LoginV3422JSONResponseBodyStatusCodeN422 LoginV3422JSONResponseBodyStatusCode = 422
+)
-// CreateGitHubAppConnectionJSONBody_Rotation defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody_Rotation struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the LoginV3422JSONResponseBodyStatusCode enum.
+func (e LoginV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody0 struct {
- // Credentials The credentials used to connect with GitHub.
- Credentials CreateGitHubAppConnectionJSONBody_0_Credentials `json:"credentials"`
+// Defines values for LoginV3500JSONResponseBodyStatusCode.
+const (
+ LoginV3500JSONResponseBodyStatusCodeN500 LoginV3500JSONResponseBodyStatusCode = 500
+)
- // Method The method used to authenticate with GitHub.
- Method CreateGitHubAppConnectionJSONBody0Method `json:"method"`
+// Valid indicates whether the value is a known member of the LoginV3500JSONResponseBodyStatusCode enum.
+func (e LoginV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case LoginV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody0Credentials0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody0Credentials0 struct {
- Code string `json:"code"`
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host string `json:"host"`
- InstallationId string `json:"installationId"`
- InstanceType CreateGitHubAppConnectionJSONBody0Credentials0InstanceType `json:"instanceType"`
+// Defines values for SelectOrganizationV3JSONBodyUserAgent.
+const (
+ Cli SelectOrganizationV3JSONBodyUserAgent = "cli"
+)
+
+// Valid indicates whether the value is a known member of the SelectOrganizationV3JSONBodyUserAgent enum.
+func (e SelectOrganizationV3JSONBodyUserAgent) Valid() bool {
+ switch e {
+ case Cli:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody0Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody0Credentials0InstanceType string
+// Defines values for SelectOrganizationV3400JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3400JSONResponseBodyStatusCodeN400 SelectOrganizationV3400JSONResponseBodyStatusCode = 400
+)
-// CreateGitHubAppConnectionJSONBody0Credentials1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody0Credentials1 struct {
- Code string `json:"code"`
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host *string `json:"host,omitempty"`
- InstallationId string `json:"installationId"`
- InstanceType *CreateGitHubAppConnectionJSONBody0Credentials1InstanceType `json:"instanceType,omitempty"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3400JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody0Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody0Credentials1InstanceType string
+// Defines values for SelectOrganizationV3401JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3401JSONResponseBodyStatusCodeN401 SelectOrganizationV3401JSONResponseBodyStatusCode = 401
+)
-// CreateGitHubAppConnectionJSONBody_0_Credentials defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody_0_Credentials struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the SelectOrganizationV3401JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody0Method defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody0Method string
-
-// CreateGitHubAppConnectionJSONBody1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody1 struct {
- // Credentials The credentials used to connect with GitHub.
- Credentials CreateGitHubAppConnectionJSONBody_1_Credentials `json:"credentials"`
+// Defines values for SelectOrganizationV3403JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3403JSONResponseBodyStatusCodeN403 SelectOrganizationV3403JSONResponseBodyStatusCode = 403
+)
- // Method The method used to authenticate with GitHub.
- Method CreateGitHubAppConnectionJSONBody1Method `json:"method"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3403JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody1Credentials0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody1Credentials0 struct {
- Code string `json:"code"`
- Host string `json:"host"`
- InstanceType CreateGitHubAppConnectionJSONBody1Credentials0InstanceType `json:"instanceType"`
+// Defines values for SelectOrganizationV3404JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3404JSONResponseBodyStatusCodeN404 SelectOrganizationV3404JSONResponseBodyStatusCode = 404
+)
+
+// Valid indicates whether the value is a known member of the SelectOrganizationV3404JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody1Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody1Credentials0InstanceType string
+// Defines values for SelectOrganizationV3422JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3422JSONResponseBodyStatusCodeN422 SelectOrganizationV3422JSONResponseBodyStatusCode = 422
+)
-// CreateGitHubAppConnectionJSONBody1Credentials1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody1Credentials1 struct {
- Code string `json:"code"`
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnectionJSONBody1Credentials1InstanceType `json:"instanceType,omitempty"`
+// Valid indicates whether the value is a known member of the SelectOrganizationV3422JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody1Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody1Credentials1InstanceType string
+// Defines values for SelectOrganizationV3500JSONResponseBodyStatusCode.
+const (
+ SelectOrganizationV3500JSONResponseBodyStatusCodeN500 SelectOrganizationV3500JSONResponseBodyStatusCode = 500
+)
-// CreateGitHubAppConnectionJSONBody_1_Credentials defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody_1_Credentials struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the SelectOrganizationV3500JSONResponseBodyStatusCode enum.
+func (e SelectOrganizationV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case SelectOrganizationV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody1Method defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody1Method string
-
-// CreateGitHubAppConnectionJSONBody2 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody2 struct {
- // Credentials The credentials used to connect with GitHub.
- Credentials CreateGitHubAppConnectionJSONBody_2_Credentials `json:"credentials"`
+// Defines values for CompleteAccountSignupV3JSONBody0Type.
+const (
+ CompleteAccountSignupV3JSONBody0TypeEmail CompleteAccountSignupV3JSONBody0Type = "email"
+)
- // Method The method used to authenticate with GitHub.
- Method CreateGitHubAppConnectionJSONBody2Method `json:"method"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody0Type enum.
+func (e CompleteAccountSignupV3JSONBody0Type) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3JSONBody0TypeEmail:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody2Credentials0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody2Credentials0 struct {
- Host string `json:"host"`
- InstanceType CreateGitHubAppConnectionJSONBody2Credentials0InstanceType `json:"instanceType"`
- PersonalAccessToken string `json:"personalAccessToken"`
+// Defines values for CompleteAccountSignupV3JSONBody1Type.
+const (
+ Alias CompleteAccountSignupV3JSONBody1Type = "alias"
+)
+
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3JSONBody1Type enum.
+func (e CompleteAccountSignupV3JSONBody1Type) Valid() bool {
+ switch e {
+ case Alias:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody2Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody2Credentials0InstanceType string
+// Defines values for CompleteAccountSignupV3400JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400 CompleteAccountSignupV3400JSONResponseBodyStatusCode = 400
+)
-// CreateGitHubAppConnectionJSONBody2Credentials1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody2Credentials1 struct {
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnectionJSONBody2Credentials1InstanceType `json:"instanceType,omitempty"`
- PersonalAccessToken string `json:"personalAccessToken"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3400JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody2Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody2Credentials1InstanceType string
+// Defines values for CompleteAccountSignupV3401JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401 CompleteAccountSignupV3401JSONResponseBodyStatusCode = 401
+)
-// CreateGitHubAppConnectionJSONBody_2_Credentials defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody_2_Credentials struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3401JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnectionJSONBody2Method defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnectionJSONBody2Method string
-
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
- App CreateGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+// Defines values for CompleteAccountSignupV3403JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403 CompleteAccountSignupV3403JSONResponseBodyStatusCode = 403
+)
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3403JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+// Defines values for CompleteAccountSignupV3404JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404 CompleteAccountSignupV3404JSONResponseBodyStatusCode = 404
+)
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3404JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+// Defines values for CompleteAccountSignupV3422JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422 CompleteAccountSignupV3422JSONResponseBodyStatusCode = 422
+)
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3422JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+// Defines values for CompleteAccountSignupV3500JSONResponseBodyStatusCode.
+const (
+ CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500 CompleteAccountSignupV3500JSONResponseBodyStatusCode = 500
+)
+
+// Valid indicates whether the value is a known member of the CompleteAccountSignupV3500JSONResponseBodyStatusCode enum.
+func (e CompleteAccountSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CompleteAccountSignupV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection0App string
+// Defines values for BeginEmailSignupV3400JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3400JSONResponseBodyStatusCodeN400 BeginEmailSignupV3400JSONResponseBodyStatusCode = 400
+)
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3400JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
+// Defines values for BeginEmailSignupV3401JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3401JSONResponseBodyStatusCodeN401 BeginEmailSignupV3401JSONResponseBodyStatusCode = 401
+)
-// CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3401JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method string
+// Defines values for BeginEmailSignupV3403JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3403JSONResponseBodyStatusCodeN403 BeginEmailSignupV3403JSONResponseBodyStatusCode = 403
+)
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3403JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
- App CreateGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+// Defines values for BeginEmailSignupV3404JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3404JSONResponseBodyStatusCodeN404 BeginEmailSignupV3404JSONResponseBodyStatusCode = 404
+)
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3404JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+// Defines values for BeginEmailSignupV3422JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3422JSONResponseBodyStatusCodeN422 BeginEmailSignupV3422JSONResponseBodyStatusCode = 422
+)
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3422JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+// Defines values for BeginEmailSignupV3500JSONResponseBodyStatusCode.
+const (
+ BeginEmailSignupV3500JSONResponseBodyStatusCodeN500 BeginEmailSignupV3500JSONResponseBodyStatusCode = 500
+)
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+// Valid indicates whether the value is a known member of the BeginEmailSignupV3500JSONResponseBodyStatusCode enum.
+func (e BeginEmailSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case BeginEmailSignupV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+// Defines values for VerifyEmailSignupV3400JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3400JSONResponseBodyStatusCodeN400 VerifyEmailSignupV3400JSONResponseBodyStatusCode = 400
+)
+
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3400JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection1App string
+// Defines values for VerifyEmailSignupV3401JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3401JSONResponseBodyStatusCodeN401 VerifyEmailSignupV3401JSONResponseBodyStatusCode = 401
+)
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3401JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
+// Defines values for VerifyEmailSignupV3403JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3403JSONResponseBodyStatusCodeN403 VerifyEmailSignupV3403JSONResponseBodyStatusCode = 403
+)
-// CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3403JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method string
+// Defines values for VerifyEmailSignupV3404JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3404JSONResponseBodyStatusCodeN404 VerifyEmailSignupV3404JSONResponseBodyStatusCode = 404
+)
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3404JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
- App CreateGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
-
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+// Defines values for VerifyEmailSignupV3422JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3422JSONResponseBodyStatusCodeN422 VerifyEmailSignupV3422JSONResponseBodyStatusCode = 422
+)
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3422JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+// Defines values for VerifyEmailSignupV3500JSONResponseBodyStatusCode.
+const (
+ VerifyEmailSignupV3500JSONResponseBodyStatusCodeN500 VerifyEmailSignupV3500JSONResponseBodyStatusCode = 500
+)
- // RotationStatus The status of the last rotation attempt.
- RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+// Valid indicates whether the value is a known member of the VerifyEmailSignupV3500JSONResponseBodyStatusCode enum.
+func (e VerifyEmailSignupV3500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case VerifyEmailSignupV3500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection2App string
+// Defines values for ListSecretsV4ParamsViewSecretValue.
+const (
+ ListSecretsV4ParamsViewSecretValueFalse ListSecretsV4ParamsViewSecretValue = "false"
+ ListSecretsV4ParamsViewSecretValueTrue ListSecretsV4ParamsViewSecretValue = "true"
+)
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
+// Valid indicates whether the value is a known member of the ListSecretsV4ParamsViewSecretValue enum.
+func (e ListSecretsV4ParamsViewSecretValue) Valid() bool {
+ switch e {
+ case ListSecretsV4ParamsViewSecretValueFalse:
+ return true
+ case ListSecretsV4ParamsViewSecretValueTrue:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
+// Defines values for ListSecretsV4ParamsExpandSecretReferences.
+const (
+ ListSecretsV4ParamsExpandSecretReferencesFalse ListSecretsV4ParamsExpandSecretReferences = "false"
+ ListSecretsV4ParamsExpandSecretReferencesTrue ListSecretsV4ParamsExpandSecretReferences = "true"
+)
-// CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the ListSecretsV4ParamsExpandSecretReferences enum.
+func (e ListSecretsV4ParamsExpandSecretReferences) Valid() bool {
+ switch e {
+ case ListSecretsV4ParamsExpandSecretReferencesFalse:
+ return true
+ case ListSecretsV4ParamsExpandSecretReferencesTrue:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method string
-
-// CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
+// Defines values for ListSecretsV4ParamsRecursive.
+const (
+ ListSecretsV4ParamsRecursiveFalse ListSecretsV4ParamsRecursive = "false"
+ ListSecretsV4ParamsRecursiveTrue ListSecretsV4ParamsRecursive = "true"
+)
-// CreateGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection200JSONResponseBody_AppConnection struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the ListSecretsV4ParamsRecursive enum.
+func (e ListSecretsV4ParamsRecursive) Valid() bool {
+ switch e {
+ case ListSecretsV4ParamsRecursiveFalse:
+ return true
+ case ListSecretsV4ParamsRecursiveTrue:
+ return true
+ default:
+ return false
+ }
}
-// CreateGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection400JSONResponseBodyStatusCode float32
-
-// CreateGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection401JSONResponseBodyStatusCode float32
+// Defines values for ListSecretsV4ParamsIncludePersonalOverrides.
+const (
+ ListSecretsV4ParamsIncludePersonalOverridesFalse ListSecretsV4ParamsIncludePersonalOverrides = "false"
+ ListSecretsV4ParamsIncludePersonalOverridesTrue ListSecretsV4ParamsIncludePersonalOverrides = "true"
+)
-// CreateGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection403JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the ListSecretsV4ParamsIncludePersonalOverrides enum.
+func (e ListSecretsV4ParamsIncludePersonalOverrides) Valid() bool {
+ switch e {
+ case ListSecretsV4ParamsIncludePersonalOverridesFalse:
+ return true
+ case ListSecretsV4ParamsIncludePersonalOverridesTrue:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection404JSONResponseBodyStatusCode float32
+// Defines values for ListSecretsV4ParamsIncludeImports.
+const (
+ ListSecretsV4ParamsIncludeImportsFalse ListSecretsV4ParamsIncludeImports = "false"
+ ListSecretsV4ParamsIncludeImportsTrue ListSecretsV4ParamsIncludeImports = "true"
+)
-// CreateGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection422JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the ListSecretsV4ParamsIncludeImports enum.
+func (e ListSecretsV4ParamsIncludeImports) Valid() bool {
+ switch e {
+ case ListSecretsV4ParamsIncludeImportsFalse:
+ return true
+ case ListSecretsV4ParamsIncludeImportsTrue:
+ return true
+ default:
+ return false
+ }
+}
-// CreateGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
-type CreateGitHubAppConnection500JSONResponseBodyStatusCode float32
+// Defines values for ListSecretsV4400JSONResponseBodyStatusCode.
+const (
+ ListSecretsV4400JSONResponseBodyStatusCodeN400 ListSecretsV4400JSONResponseBodyStatusCode = 400
+)
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
- App DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
- Host *string `json:"host,omitempty"`
- InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+// Valid indicates whether the value is a known member of the ListSecretsV4400JSONResponseBodyStatusCode enum.
+func (e ListSecretsV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case ListSecretsV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+// Defines values for ListSecretsV4401JSONResponseBodyStatusCode.
+const (
+ ListSecretsV4401JSONResponseBodyStatusCodeN401 ListSecretsV4401JSONResponseBodyStatusCode = 401
+)
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+// Valid indicates whether the value is a known member of the ListSecretsV4401JSONResponseBodyStatusCode enum.
+func (e ListSecretsV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case ListSecretsV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+// Defines values for ListSecretsV4403JSONResponseBodyStatusCode.
+const (
+ ListSecretsV4403JSONResponseBodyStatusCodeN403 ListSecretsV4403JSONResponseBodyStatusCode = 403
+)
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+// Valid indicates whether the value is a known member of the ListSecretsV4403JSONResponseBodyStatusCode enum.
+func (e ListSecretsV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case ListSecretsV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+// Defines values for ListSecretsV4404JSONResponseBodyStatusCode.
+const (
+ ListSecretsV4404JSONResponseBodyStatusCodeN404 ListSecretsV4404JSONResponseBodyStatusCode = 404
+)
- // RotationStatus The status of the last rotation attempt.
- RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+// Valid indicates whether the value is a known member of the ListSecretsV4404JSONResponseBodyStatusCode enum.
+func (e ListSecretsV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case ListSecretsV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App string
-
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
-
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
+// Defines values for ListSecretsV4422JSONResponseBodyStatusCode.
+const (
+ ListSecretsV4422JSONResponseBodyStatusCodeN422 ListSecretsV4422JSONResponseBodyStatusCode = 422
+)
-// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the ListSecretsV4422JSONResponseBodyStatusCode enum.
+func (e ListSecretsV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case ListSecretsV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method string
-
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
-
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
- App DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
-
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+// Defines values for ListSecretsV4500JSONResponseBodyStatusCode.
+const (
+ ListSecretsV4500JSONResponseBodyStatusCodeN500 ListSecretsV4500JSONResponseBodyStatusCode = 500
+)
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+// Valid indicates whether the value is a known member of the ListSecretsV4500JSONResponseBodyStatusCode enum.
+func (e ListSecretsV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case ListSecretsV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+// Defines values for DeleteSecretV4JSONBodyType.
+const (
+ DeleteSecretV4JSONBodyTypePersonal DeleteSecretV4JSONBodyType = "personal"
+ DeleteSecretV4JSONBodyTypeShared DeleteSecretV4JSONBodyType = "shared"
+)
- // RotationStatus The status of the last rotation attempt.
- RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteSecretV4JSONBodyType enum.
+func (e DeleteSecretV4JSONBodyType) Valid() bool {
+ switch e {
+ case DeleteSecretV4JSONBodyTypePersonal:
+ return true
+ case DeleteSecretV4JSONBodyTypeShared:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App string
+// Defines values for DeleteSecretV4400JSONResponseBodyStatusCode.
+const (
+ DeleteSecretV4400JSONResponseBodyStatusCodeN400 DeleteSecretV4400JSONResponseBodyStatusCode = 400
+)
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
+// Valid indicates whether the value is a known member of the DeleteSecretV4400JSONResponseBodyStatusCode enum.
+func (e DeleteSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
+// Defines values for DeleteSecretV4401JSONResponseBodyStatusCode.
+const (
+ DeleteSecretV4401JSONResponseBodyStatusCodeN401 DeleteSecretV4401JSONResponseBodyStatusCode = 401
+)
-// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the DeleteSecretV4401JSONResponseBodyStatusCode enum.
+func (e DeleteSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method string
-
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
+// Defines values for DeleteSecretV4403JSONResponseBodyStatusCode.
+const (
+ DeleteSecretV4403JSONResponseBodyStatusCodeN403 DeleteSecretV4403JSONResponseBodyStatusCode = 403
+)
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
- App DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
- CreatedAt time.Time `json:"createdAt"`
- Credentials struct {
- Host *string `json:"host,omitempty"`
- InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
- } `json:"credentials"`
- CredentialsHash *string `json:"credentialsHash,omitempty"`
- Description *string `json:"description,omitempty"`
- GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
- GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
- IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
- Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- Project *struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- } `json:"project,omitempty"`
- ProjectId *string `json:"projectId,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteSecretV4403JSONResponseBodyStatusCode enum.
+func (e DeleteSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
- // Rotation The credential rotation configuration, if configured.
- Rotation *struct {
- // LastRotationMessage The message from the last rotation attempt.
- LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
+// Defines values for DeleteSecretV4404JSONResponseBodyStatusCode.
+const (
+ DeleteSecretV4404JSONResponseBodyStatusCodeN404 DeleteSecretV4404JSONResponseBodyStatusCode = 404
+)
- // NextRotationAt The next scheduled rotation time.
- NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteSecretV4404JSONResponseBodyStatusCode enum.
+func (e DeleteSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
- // RotateAtUtc The UTC time of day at which rotation should occur.
- RotateAtUtc struct {
- // Hours The hour (0-23) at which to rotate.
- Hours float32 `json:"hours"`
+// Defines values for DeleteSecretV4422JSONResponseBodyStatusCode.
+const (
+ DeleteSecretV4422JSONResponseBodyStatusCodeN422 DeleteSecretV4422JSONResponseBodyStatusCode = 422
+)
- // Minutes The minute (0-59) at which to rotate.
- Minutes float32 `json:"minutes"`
- } `json:"rotateAtUtc"`
+// Valid indicates whether the value is a known member of the DeleteSecretV4422JSONResponseBodyStatusCode enum.
+func (e DeleteSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
- // RotationInterval The interval in days between credential rotations.
- RotationInterval float32 `json:"rotationInterval"`
+// Defines values for DeleteSecretV4500JSONResponseBodyStatusCode.
+const (
+ DeleteSecretV4500JSONResponseBodyStatusCodeN500 DeleteSecretV4500JSONResponseBodyStatusCode = 500
+)
- // RotationStatus The status of the last rotation attempt.
- RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
- } `json:"rotation,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version *float32 `json:"version,omitempty"`
+// Valid indicates whether the value is a known member of the DeleteSecretV4500JSONResponseBodyStatusCode enum.
+func (e DeleteSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case DeleteSecretV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App string
+// Defines values for GetSecretByNameV4ParamsType.
+const (
+ GetSecretByNameV4ParamsTypePersonal GetSecretByNameV4ParamsType = "personal"
+ GetSecretByNameV4ParamsTypeShared GetSecretByNameV4ParamsType = "shared"
+)
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
+// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsType enum.
+func (e GetSecretByNameV4ParamsType) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsTypePersonal:
+ return true
+ case GetSecretByNameV4ParamsTypeShared:
+ return true
+ default:
+ return false
+ }
+}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
+// Defines values for GetSecretByNameV4ParamsViewSecretValue.
+const (
+ GetSecretByNameV4ParamsViewSecretValueFalse GetSecretByNameV4ParamsViewSecretValue = "false"
+ GetSecretByNameV4ParamsViewSecretValueTrue GetSecretByNameV4ParamsViewSecretValue = "true"
+)
-// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsViewSecretValue enum.
+func (e GetSecretByNameV4ParamsViewSecretValue) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsViewSecretValueFalse:
+ return true
+ case GetSecretByNameV4ParamsViewSecretValueTrue:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method string
-
-// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
+// Defines values for GetSecretByNameV4ParamsExpandSecretReferences.
+const (
+ GetSecretByNameV4ParamsExpandSecretReferencesFalse GetSecretByNameV4ParamsExpandSecretReferences = "false"
+ GetSecretByNameV4ParamsExpandSecretReferencesTrue GetSecretByNameV4ParamsExpandSecretReferences = "true"
+)
-// DeleteGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection200JSONResponseBody_AppConnection struct {
- union json.RawMessage
+// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsExpandSecretReferences enum.
+func (e GetSecretByNameV4ParamsExpandSecretReferences) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsExpandSecretReferencesFalse:
+ return true
+ case GetSecretByNameV4ParamsExpandSecretReferencesTrue:
+ return true
+ default:
+ return false
+ }
}
-// DeleteGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection400JSONResponseBodyStatusCode float32
+// Defines values for GetSecretByNameV4ParamsIncludeImports.
+const (
+ GetSecretByNameV4ParamsIncludeImportsFalse GetSecretByNameV4ParamsIncludeImports = "false"
+ GetSecretByNameV4ParamsIncludeImportsTrue GetSecretByNameV4ParamsIncludeImports = "true"
+)
-// DeleteGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the GetSecretByNameV4ParamsIncludeImports enum.
+func (e GetSecretByNameV4ParamsIncludeImports) Valid() bool {
+ switch e {
+ case GetSecretByNameV4ParamsIncludeImportsFalse:
+ return true
+ case GetSecretByNameV4ParamsIncludeImportsTrue:
+ return true
+ default:
+ return false
+ }
+}
-// DeleteGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection403JSONResponseBodyStatusCode float32
+// Defines values for GetSecretByNameV4400JSONResponseBodyStatusCode.
+const (
+ GetSecretByNameV4400JSONResponseBodyStatusCodeN400 GetSecretByNameV4400JSONResponseBodyStatusCode = 400
+)
-// DeleteGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the GetSecretByNameV4400JSONResponseBodyStatusCode enum.
+func (e GetSecretByNameV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
-// DeleteGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection422JSONResponseBodyStatusCode float32
+// Defines values for GetSecretByNameV4401JSONResponseBodyStatusCode.
+const (
+ GetSecretByNameV4401JSONResponseBodyStatusCodeN401 GetSecretByNameV4401JSONResponseBodyStatusCode = 401
+)
-// DeleteGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
-type DeleteGitHubAppConnection500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the GetSecretByNameV4401JSONResponseBodyStatusCode enum.
+func (e GetSecretByNameV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
-// RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken400JSONResponseBodyStatusCode float32
+// Defines values for GetSecretByNameV4403JSONResponseBodyStatusCode.
+const (
+ GetSecretByNameV4403JSONResponseBodyStatusCodeN403 GetSecretByNameV4403JSONResponseBodyStatusCode = 403
+)
-// RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the GetSecretByNameV4403JSONResponseBodyStatusCode enum.
+func (e GetSecretByNameV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
+}
-// RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken403JSONResponseBodyStatusCode float32
+// Defines values for GetSecretByNameV4404JSONResponseBodyStatusCode.
+const (
+ GetSecretByNameV4404JSONResponseBodyStatusCodeN404 GetSecretByNameV4404JSONResponseBodyStatusCode = 404
+)
-// RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the GetSecretByNameV4404JSONResponseBodyStatusCode enum.
+func (e GetSecretByNameV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken422JSONResponseBodyStatusCode float32
+// Defines values for GetSecretByNameV4422JSONResponseBodyStatusCode.
+const (
+ GetSecretByNameV4422JSONResponseBodyStatusCodeN422 GetSecretByNameV4422JSONResponseBodyStatusCode = 422
+)
-// RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
-type RefreshAuthToken500JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the GetSecretByNameV4422JSONResponseBodyStatusCode enum.
+func (e GetSecretByNameV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.
-type AttachUniversalAuthJSONBody struct {
- // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.
- AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`
+// Defines values for GetSecretByNameV4500JSONResponseBodyStatusCode.
+const (
+ GetSecretByNameV4500JSONResponseBodyStatusCodeN500 GetSecretByNameV4500JSONResponseBodyStatusCode = 500
+)
- // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.
- AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`
+// Valid indicates whether the value is a known member of the GetSecretByNameV4500JSONResponseBodyStatusCode enum.
+func (e GetSecretByNameV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case GetSecretByNameV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
- // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.
- AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`
+// Defines values for CreateSecretV4JSONBodyType.
+const (
+ CreateSecretV4JSONBodyTypePersonal CreateSecretV4JSONBodyType = "personal"
+ CreateSecretV4JSONBodyTypeShared CreateSecretV4JSONBodyType = "shared"
+)
- // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.
- AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`
+// Valid indicates whether the value is a known member of the CreateSecretV4JSONBodyType enum.
+func (e CreateSecretV4JSONBodyType) Valid() bool {
+ switch e {
+ case CreateSecretV4JSONBodyTypePersonal:
+ return true
+ case CreateSecretV4JSONBodyTypeShared:
+ return true
+ default:
+ return false
+ }
+}
- // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.
- AccessTokenTrustedIps *[]struct {
- IpAddress string `json:"ipAddress"`
- } `json:"accessTokenTrustedIps,omitempty"`
+// Defines values for CreateSecretV4400JSONResponseBodyStatusCode.
+const (
+ CreateSecretV4400JSONResponseBodyStatusCodeN400 CreateSecretV4400JSONResponseBodyStatusCode = 400
+)
- // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.
- ClientSecretTrustedIps *[]struct {
- IpAddress string `json:"ipAddress"`
- } `json:"clientSecretTrustedIps,omitempty"`
+// Valid indicates whether the value is a known member of the CreateSecretV4400JSONResponseBodyStatusCode enum.
+func (e CreateSecretV4400JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4400JSONResponseBodyStatusCodeN400:
+ return true
+ default:
+ return false
+ }
+}
- // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.
- LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+// Defines values for CreateSecretV4401JSONResponseBodyStatusCode.
+const (
+ CreateSecretV4401JSONResponseBodyStatusCodeN401 CreateSecretV4401JSONResponseBodyStatusCode = 401
+)
- // LockoutDurationSeconds How long an identity auth method lockout lasts.
- LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+// Valid indicates whether the value is a known member of the CreateSecretV4401JSONResponseBodyStatusCode enum.
+func (e CreateSecretV4401JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4401JSONResponseBodyStatusCodeN401:
+ return true
+ default:
+ return false
+ }
+}
- // LockoutEnabled Whether the lockout feature is enabled.
- LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+// Defines values for CreateSecretV4403JSONResponseBodyStatusCode.
+const (
+ CreateSecretV4403JSONResponseBodyStatusCodeN403 CreateSecretV4403JSONResponseBodyStatusCode = 403
+)
- // LockoutThreshold The amount of times login must fail before locking the identity auth method.
- LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+// Valid indicates whether the value is a known member of the CreateSecretV4403JSONResponseBodyStatusCode enum.
+func (e CreateSecretV4403JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4403JSONResponseBodyStatusCodeN403:
+ return true
+ default:
+ return false
+ }
}
-// AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth400JSONResponseBodyStatusCode float32
+// Defines values for CreateSecretV4404JSONResponseBodyStatusCode.
+const (
+ CreateSecretV4404JSONResponseBodyStatusCodeN404 CreateSecretV4404JSONResponseBodyStatusCode = 404
+)
-// AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth401JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateSecretV4404JSONResponseBodyStatusCode enum.
+func (e CreateSecretV4404JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4404JSONResponseBodyStatusCodeN404:
+ return true
+ default:
+ return false
+ }
+}
-// AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth403JSONResponseBodyStatusCode float32
+// Defines values for CreateSecretV4422JSONResponseBodyStatusCode.
+const (
+ CreateSecretV4422JSONResponseBodyStatusCodeN422 CreateSecretV4422JSONResponseBodyStatusCode = 422
+)
-// AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth404JSONResponseBodyStatusCode float32
+// Valid indicates whether the value is a known member of the CreateSecretV4422JSONResponseBodyStatusCode enum.
+func (e CreateSecretV4422JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4422JSONResponseBodyStatusCodeN422:
+ return true
+ default:
+ return false
+ }
+}
-// AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth422JSONResponseBodyStatusCode float32
-
-// AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
-type AttachUniversalAuth500JSONResponseBodyStatusCode float32
+// Defines values for CreateSecretV4500JSONResponseBodyStatusCode.
+const (
+ CreateSecretV4500JSONResponseBodyStatusCodeN500 CreateSecretV4500JSONResponseBodyStatusCode = 500
+)
-// CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecretJSONBody struct {
- // Description The description of the client secret.
- Description *string `json:"description,omitempty"`
+// Valid indicates whether the value is a known member of the CreateSecretV4500JSONResponseBodyStatusCode enum.
+func (e CreateSecretV4500JSONResponseBodyStatusCode) Valid() bool {
+ switch e {
+ case CreateSecretV4500JSONResponseBodyStatusCodeN500:
+ return true
+ default:
+ return false
+ }
+}
- // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.
- NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`
+// GetServerStatus400JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus400JSONResponseBodyStatusCode float32
- // Ttl The lifetime for the client secret in seconds.
- Ttl *float32 `json:"ttl,omitempty"`
-}
+// GetServerStatus401JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus401JSONResponseBodyStatusCode float32
-// CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32
+// GetServerStatus403JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus403JSONResponseBodyStatusCode float32
-// CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32
+// GetServerStatus404JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus404JSONResponseBodyStatusCode float32
-// CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32
+// GetServerStatus422JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus422JSONResponseBodyStatusCode float32
-// CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32
+// GetServerStatus500JSONResponseBodyStatusCode defines parameters for GetServerStatus.
+type GetServerStatus500JSONResponseBodyStatusCode float32
-// CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32
+// AdminBootstrapJSONBody defines parameters for AdminBootstrap.
+type AdminBootstrapJSONBody struct {
+ Email openapi_types.Email `json:"email"`
+ Organization string `json:"organization"`
+ Password string `json:"password"`
+}
-// CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
-type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32
+// AdminBootstrap400JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap400JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuthJSONBody struct {
- // ClientId Your Machine Identity Client ID.
- ClientId string `json:"clientId"`
+// AdminBootstrap401JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap401JSONResponseBodyStatusCode float32
- // ClientSecret Your Machine Identity Client Secret.
- ClientSecret string `json:"clientSecret"`
+// AdminBootstrap403JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap403JSONResponseBodyStatusCode float32
- // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.
- OrganizationSlug *string `json:"organizationSlug,omitempty"`
-}
+// AdminBootstrap404JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap404JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth200JSONResponseBodyTokenType string
+// AdminBootstrap422JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap422JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32
+// AdminBootstrap500JSONResponseBodyStatusCode defines parameters for AdminBootstrap.
+type AdminBootstrap500JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32
+// UpdateAdminConfigJSONBody defines parameters for UpdateAdminConfig.
+type UpdateAdminConfigJSONBody struct {
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ DefaultAuthOrgId *string `json:"defaultAuthOrgId,omitempty"`
+ EnabledLoginMethods *[]UpdateAdminConfigJSONBodyEnabledLoginMethods `json:"enabledLoginMethods,omitempty"`
+ EnvOverrides *struct {
+ CLIENTGITLABLOGINURL string `json:"CLIENT_GITLAB_LOGIN_URL"`
+ CLIENTIDGITHUBLOGIN string `json:"CLIENT_ID_GITHUB_LOGIN"`
+ CLIENTIDGITLABLOGIN string `json:"CLIENT_ID_GITLAB_LOGIN"`
+ CLIENTIDGOOGLELOGIN string `json:"CLIENT_ID_GOOGLE_LOGIN"`
+ CLIENTSECRETGITHUBLOGIN string `json:"CLIENT_SECRET_GITHUB_LOGIN"`
+ CLIENTSECRETGITLABLOGIN string `json:"CLIENT_SECRET_GITLAB_LOGIN"`
+ CLIENTSECRETGOOGLELOGIN string `json:"CLIENT_SECRET_GOOGLE_LOGIN"`
+ DISABLEAUDITLOGSTORAGE string `json:"DISABLE_AUDIT_LOG_STORAGE"`
+ DISABLEPOSTGRESAUDITLOGSTORAGE string `json:"DISABLE_POSTGRES_AUDIT_LOG_STORAGE"`
+ DISABLEPUBLICSECRETSHARING string `json:"DISABLE_PUBLIC_SECRET_SHARING"`
+ INFAPPCONNECTIONAWSACCESSKEYID string `json:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`
+ INFAPPCONNECTIONAWSSECRETACCESSKEY string `json:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`
+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTID string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREAPPCONFIGURATIONCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`
+ INFAPPCONNECTIONAZURECLIENTSECRETSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZUREDEVOPSCLIENTID string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREDEVOPSCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`
+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTID string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`
+ INFAPPCONNECTIONAZUREKEYVAULTCLIENTSECRET string `json:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`
+ INFAPPCONNECTIONGCPSERVICEACCOUNTCREDENTIAL string `json:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`
+ INFAPPCONNECTIONGITHUBAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBAPPHOST string `json:"INF_APP_CONNECTION_GITHUB_APP_HOST"`
+ INFAPPCONNECTIONGITHUBAPPID string `json:"INF_APP_CONNECTION_GITHUB_APP_ID"`
+ INFAPPCONNECTIONGITHUBAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`
+ INFAPPCONNECTIONGITHUBAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`
+ INFAPPCONNECTIONGITHUBOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`
+ INFAPPCONNECTIONGITHUBRADARAPPCLIENTSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`
+ INFAPPCONNECTIONGITHUBRADARAPPID string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`
+ INFAPPCONNECTIONGITHUBRADARAPPPRIVATEKEY string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`
+ INFAPPCONNECTIONGITHUBRADARAPPSLUG string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`
+ INFAPPCONNECTIONGITHUBRADARAPPWEBHOOKSECRET string `json:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`
+ INFAPPCONNECTIONGITLABOAUTHCLIENTID string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONGITLABOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`
+ INFAPPCONNECTIONHEROKUOAUTHCLIENTID string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`
+ INFAPPCONNECTIONHEROKUOAUTHCLIENTSECRET string `json:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`
+ } `json:"envOverrides,omitempty"`
+ GitHubAppConnectionClientId *string `json:"gitHubAppConnectionClientId,omitempty"`
+ GitHubAppConnectionClientSecret *string `json:"gitHubAppConnectionClientSecret,omitempty"`
+ GitHubAppConnectionId *string `json:"gitHubAppConnectionId,omitempty"`
+ GitHubAppConnectionPrivateKey *string `json:"gitHubAppConnectionPrivateKey,omitempty"`
+ GitHubAppConnectionSlug *string `json:"gitHubAppConnectionSlug,omitempty"`
+ MicrosoftTeamsAppId *string `json:"microsoftTeamsAppId,omitempty"`
+ MicrosoftTeamsBotId *string `json:"microsoftTeamsBotId,omitempty"`
+ MicrosoftTeamsClientSecret *string `json:"microsoftTeamsClientSecret,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ SlackClientId *string `json:"slackClientId,omitempty"`
+ SlackClientSecret *string `json:"slackClientSecret,omitempty"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+}
-// LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32
+// UpdateAdminConfigJSONBodyEnabledLoginMethods defines parameters for UpdateAdminConfig.
+type UpdateAdminConfigJSONBodyEnabledLoginMethods string
-// LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32
+// UpdateAdminConfig400JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig400JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32
+// UpdateAdminConfig401JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig401JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
-type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32
+// UpdateAdminConfig403JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig403JSONResponseBodyStatusCode float32
-// CreateMachineIdentityJSONBody defines parameters for CreateMachineIdentity.
-type CreateMachineIdentityJSONBody struct {
- // HasDeleteProtection Prevents deletion of the identity when enabled.
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Metadata *[]struct {
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
+// UpdateAdminConfig404JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig404JSONResponseBodyStatusCode float32
- // Name The name of the identity to create.
- Name string `json:"name"`
+// UpdateAdminConfig422JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig422JSONResponseBodyStatusCode float32
- // OrganizationId The organization ID to which the identity belongs.
- OrganizationId string `json:"organizationId"`
+// UpdateAdminConfig500JSONResponseBodyStatusCode defines parameters for UpdateAdminConfig.
+type UpdateAdminConfig500JSONResponseBodyStatusCode float32
- // Role The role of the identity. Possible values are 'no-access', 'member', and 'admin'.
- Role *string `json:"role,omitempty"`
-}
+// CreateGitHubAppConnectionJSONBody defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody struct {
+ // Description An optional description for the GitHub Connection.
+ Description *string `json:"description,omitempty"`
-// CreateMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity400JSONResponseBodyStatusCode float32
+ // GatewayId The Gateway ID to use for this connection.
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
-// CreateMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity401JSONResponseBodyStatusCode float32
+ // GatewayPoolId The Gateway Pool ID to use for this connection.
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
-// CreateMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity403JSONResponseBodyStatusCode float32
+ // IsAutoRotationEnabled Not supported for GitHub Connections.
+ IsAutoRotationEnabled *CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled `json:"isAutoRotationEnabled,omitempty"`
-// CreateMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity404JSONResponseBodyStatusCode float32
+ // IsPlatformManagedCredentials Not supported for GitHub Connections.
+ IsPlatformManagedCredentials *CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials `json:"isPlatformManagedCredentials,omitempty"`
-// CreateMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity422JSONResponseBodyStatusCode float32
+ // Name The name of the GitHub Connection to create. Must be slug-friendly.
+ Name string `json:"name"`
-// CreateMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
-type CreateMachineIdentity500JSONResponseBodyStatusCode float32
+ // ProjectId The ID of the project to create the GitHub Connection in.
+ ProjectId *string `json:"projectId,omitempty"`
-// InviteUsersToOrganizationJSONBody defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganizationJSONBody struct {
- GrantAgentVaultAccess *bool `json:"grantAgentVaultAccess,omitempty"`
- GrantPamAccess *bool `json:"grantPamAccess,omitempty"`
- InviteeEmails []openapi_types.Email `json:"inviteeEmails"`
- OrganizationId string `json:"organizationId"`
- OrganizationRoleSlug *string `json:"organizationRoleSlug,omitempty"`
- ProjectIds *[]string `json:"projectIds,omitempty"`
+ // Rotation Not supported for GitHub Connections.
+ Rotation *CreateGitHubAppConnectionJSONBody_Rotation `json:"rotation,omitempty"`
+ union json.RawMessage
}
-// InviteUsersToOrganization400JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization400JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyIsAutoRotationEnabled bool
-// InviteUsersToOrganization401JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization401JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyIsPlatformManagedCredentials bool
-// InviteUsersToOrganization403JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization403JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBodyRotation0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyRotation0 = interface{}
-// InviteUsersToOrganization404JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization404JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBodyRotation1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBodyRotation1 = interface{}
-// InviteUsersToOrganization422JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization422JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody_Rotation defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_Rotation struct {
+ union json.RawMessage
+}
-// InviteUsersToOrganization500JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
-type InviteUsersToOrganization500JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_0_Credentials `json:"credentials"`
-// VerifyUserToOrganizationJSONBody defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganizationJSONBody struct {
- Code string `json:"code"`
- Email openapi_types.Email `json:"email"`
- OrganizationId string `json:"organizationId"`
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody0Method `json:"method"`
}
-// VerifyUserToOrganization400JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization400JSONResponseBodyStatusCode float32
-
-// VerifyUserToOrganization401JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization401JSONResponseBodyStatusCode float32
-
-// VerifyUserToOrganization403JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization403JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Credentials0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials0 struct {
+ Code string `json:"code"`
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host string `json:"host"`
+ InstallationId string `json:"installationId"`
+ InstanceType CreateGitHubAppConnectionJSONBody0Credentials0InstanceType `json:"instanceType"`
+}
-// VerifyUserToOrganization404JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization404JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials0InstanceType string
-// VerifyUserToOrganization422JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization422JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Credentials1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials1 struct {
+ Code string `json:"code"`
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstallationId string `json:"installationId"`
+ InstanceType *CreateGitHubAppConnectionJSONBody0Credentials1InstanceType `json:"instanceType,omitempty"`
+}
-// VerifyUserToOrganization500JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
-type VerifyUserToOrganization500JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Credentials1InstanceType string
-// GetOrganizationPlanParams defines parameters for GetOrganizationPlan.
-type GetOrganizationPlanParams struct {
- RefreshCache *GetOrganizationPlanParamsRefreshCache `form:"refreshCache,omitempty" json:"refreshCache,omitempty"`
+// CreateGitHubAppConnectionJSONBody_0_Credentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_0_Credentials struct {
+ union json.RawMessage
}
-// GetOrganizationPlanParamsRefreshCache defines parameters for GetOrganizationPlan.
-type GetOrganizationPlanParamsRefreshCache string
-
-// GetOrganizationPlan400JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan400JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody0Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody0Method string
-// GetOrganizationPlan401JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan401JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_1_Credentials `json:"credentials"`
-// GetOrganizationPlan403JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan403JSONResponseBodyStatusCode float32
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody1Method `json:"method"`
+}
-// GetOrganizationPlan404JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan404JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody1Credentials0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials0 struct {
+ Code string `json:"code"`
+ Host string `json:"host"`
+ InstanceType CreateGitHubAppConnectionJSONBody1Credentials0InstanceType `json:"instanceType"`
+}
-// GetOrganizationPlan422JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan422JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody1Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials0InstanceType string
-// GetOrganizationPlan500JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
-type GetOrganizationPlan500JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody1Credentials1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials1 struct {
+ Code string `json:"code"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnectionJSONBody1Credentials1InstanceType `json:"instanceType,omitempty"`
+}
-// CreateProjectJSONBody defines parameters for CreateProject.
-type CreateProjectJSONBody struct {
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- KmsKeyId *string `json:"kmsKeyId,omitempty"`
+// CreateGitHubAppConnectionJSONBody1Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Credentials1InstanceType string
- // ProjectDescription An optional description label for the project.
- ProjectDescription *string `json:"projectDescription,omitempty"`
+// CreateGitHubAppConnectionJSONBody_1_Credentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_1_Credentials struct {
+ union json.RawMessage
+}
- // ProjectName The name of the project to create.
- ProjectName string `json:"projectName"`
- ShouldCreateDefaultEnvs *bool `json:"shouldCreateDefaultEnvs,omitempty"`
+// CreateGitHubAppConnectionJSONBody1Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody1Method string
- // Slug An optional slug for the project.
- Slug *string `json:"slug,omitempty"`
+// CreateGitHubAppConnectionJSONBody2 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2 struct {
+ // Credentials The credentials used to connect with GitHub.
+ Credentials CreateGitHubAppConnectionJSONBody_2_Credentials `json:"credentials"`
- // Template The name of the project template, if specified, to apply to this project.
- Template *string `json:"template,omitempty"`
- Type *CreateProjectJSONBodyType `json:"type,omitempty"`
+ // Method The method used to authenticate with GitHub.
+ Method CreateGitHubAppConnectionJSONBody2Method `json:"method"`
}
-// CreateProjectJSONBodyType defines parameters for CreateProject.
-type CreateProjectJSONBodyType string
-
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 struct {
- Email *string `json:"email"`
- FirstName *string `json:"firstName"`
- Id string `json:"id"`
- LastName *string `json:"lastName"`
- Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type `json:"type"`
- Username *string `json:"username"`
+// CreateGitHubAppConnectionJSONBody2Credentials0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials0 struct {
+ Host string `json:"host"`
+ InstanceType CreateGitHubAppConnectionJSONBody2Credentials0InstanceType `json:"instanceType"`
+ PersonalAccessToken string `json:"personalAccessToken"`
}
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type string
+// CreateGitHubAppConnectionJSONBody2Credentials0InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials0InstanceType string
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type `json:"type"`
+// CreateGitHubAppConnectionJSONBody2Credentials1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials1 struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnectionJSONBody2Credentials1InstanceType `json:"instanceType,omitempty"`
+ PersonalAccessToken string `json:"personalAccessToken"`
}
-// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type defines parameters for CreateProject.
-type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type string
+// CreateGitHubAppConnectionJSONBody2Credentials1InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Credentials1InstanceType string
-// CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy defines parameters for CreateProject.
-type CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy struct {
+// CreateGitHubAppConnectionJSONBody_2_Credentials defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody_2_Credentials struct {
union json.RawMessage
}
-// CreateProject400JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject400JSONResponseBodyStatusCode float32
-
-// CreateProject401JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject401JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnectionJSONBody2Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnectionJSONBody2Method string
-// CreateProject403JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject403JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
-// CreateProject404JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject404JSONResponseBodyStatusCode float32
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-// CreateProject422JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject422JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-// CreateProject500JSONResponseBodyStatusCode defines parameters for CreateProject.
-type CreateProject500JSONResponseBodyStatusCode float32
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
-// ListProjectMachineIdentitiesParams defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentitiesParams struct {
- // Offset The offset to start from. If you enter 10, it will start from the 10th identity.
- Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
- // Limit The number of identities to return.
- Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // Search The text string that identity names will be filtered by.
- Search *string `form:"search,omitempty" json:"search,omitempty"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
-// ListProjectMachineIdentities400JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities400JSONResponseBodyStatusCode float32
-
-// ListProjectMachineIdentities401JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities401JSONResponseBodyStatusCode float32
-
-// ListProjectMachineIdentities403JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities403JSONResponseBodyStatusCode float32
-
-// ListProjectMachineIdentities404JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities404JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0App string
-// ListProjectMachineIdentities422JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities422JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
-// ListProjectMachineIdentities500JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
-type ListProjectMachineIdentities500JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
-// CreateProjectMachineIdentityJSONBody defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBody struct {
- // HasDeleteProtection Prevents deletion of the identity when enabled.
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
+ union json.RawMessage
+}
- // Metadata An optional array of key-value pairs to attach to the identity.
- Metadata *[]struct {
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0Method string
- // Name The name of the identity to create.
- Name string `json:"name"`
- Roles *[]CreateProjectMachineIdentityJSONBody_Roles_Item `json:"roles,omitempty"`
-}
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
-// CreateProjectMachineIdentityJSONBodyRoles0 defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles0 struct {
- IsTemporary *CreateProjectMachineIdentityJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
- Role string `json:"role"`
-}
-
-// CreateProjectMachineIdentityJSONBodyRoles0IsTemporary defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles0IsTemporary bool
-
-// CreateProjectMachineIdentityJSONBodyRoles1 defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles1 struct {
- IsTemporary CreateProjectMachineIdentityJSONBodyRoles1IsTemporary `json:"isTemporary"`
- Role string `json:"role"`
- TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
- TemporaryMode CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
- TemporaryRange string `json:"temporaryRange"`
-}
-
-// CreateProjectMachineIdentityJSONBodyRoles1IsTemporary defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles1IsTemporary bool
-
-// CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode string
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
-// CreateProjectMachineIdentityJSONBody_Roles_Item defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentityJSONBody_Roles_Item struct {
- union json.RawMessage
-}
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-// CreateProjectMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity400JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-// CreateProjectMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity401JSONResponseBodyStatusCode float32
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
-// CreateProjectMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity403JSONResponseBodyStatusCode float32
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
-// CreateProjectMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity404JSONResponseBodyStatusCode float32
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
-// CreateProjectMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity422JSONResponseBodyStatusCode float32
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
-// CreateProjectMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
-type CreateProjectMachineIdentity500JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1App string
-// InviteProjectMembersJSONBody defines parameters for InviteProjectMembers.
-type InviteProjectMembersJSONBody struct {
- // Emails A list of organization member emails to invite to the project.
- Emails *[]openapi_types.Email `json:"emails,omitempty"`
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
- // RoleSlugs A list of role slugs to assign to the newly created project membership. If nothing is provided, it will default to the Member role.
- RoleSlugs *[]string `json:"roleSlugs,omitempty"`
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
- // Usernames A list of usernames to invite to the project.
- Usernames *[]string `json:"usernames,omitempty"`
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// InviteProjectMembers400JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers400JSONResponseBodyStatusCode float32
-
-// InviteProjectMembers401JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers401JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1Method string
-// InviteProjectMembers403JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers403JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
-// InviteProjectMembers404JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers404JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
+ App CreateGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
-// InviteProjectMembers422JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers422JSONResponseBodyStatusCode float32
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-// InviteProjectMembers500JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
-type InviteProjectMembers500JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-// CreateProjectIdentityMembershipJSONBody defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBody struct {
- Role *string `json:"role,omitempty"`
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
- // Roles A list of role slugs to assign to the newly created identity project membership.
- Roles *[]CreateProjectIdentityMembershipJSONBody_Roles_Item `json:"roles,omitempty"`
-}
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
-// CreateProjectIdentityMembershipJSONBodyRoles0 defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles0 struct {
- // IsTemporary The role slug to assign to the newly created identity project membership.
- IsTemporary *CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
- // Role The role slug to assign to the newly created identity project membership.
- Role string `json:"role"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
-// CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary bool
-
-// CreateProjectIdentityMembershipJSONBodyRoles1 defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles1 struct {
- // IsTemporary The role slug to assign to the newly created identity project membership.
- IsTemporary CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary `json:"isTemporary"`
-
- // Role The role slug to assign to the newly created identity project membership.
- Role string `json:"role"`
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2App string
- // TemporaryAccessStartTime The role slug to assign to the newly created identity project membership.
- TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
- // TemporaryMode The role slug to assign to the newly created identity project membership.
- TemporaryMode CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
- // TemporaryRange The role slug to assign to the newly created identity project membership.
- TemporaryRange string `json:"temporaryRange"`
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary bool
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2Method string
-// CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode string
+// CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
-// CreateProjectIdentityMembershipJSONBody_Roles_Item defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembershipJSONBody_Roles_Item struct {
+// CreateGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection200JSONResponseBody_AppConnection struct {
union json.RawMessage
}
-// CreateProjectIdentityMembership400JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership400JSONResponseBodyStatusCode float32
-
-// CreateProjectIdentityMembership401JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership401JSONResponseBodyStatusCode float32
-
-// CreateProjectIdentityMembership403JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership403JSONResponseBodyStatusCode float32
-
-// CreateProjectIdentityMembership404JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership404JSONResponseBodyStatusCode float32
-
-// CreateProjectIdentityMembership422JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership422JSONResponseBodyStatusCode float32
-
-// CreateProjectIdentityMembership500JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
-type CreateProjectIdentityMembership500JSONResponseBodyStatusCode float32
-
-// CreateOrganizationJSONBody defines parameters for CreateOrganization.
-type CreateOrganizationJSONBody struct {
- Name string `json:"name"`
-}
+// CreateGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection400JSONResponseBodyStatusCode float32
-// CreateOrganization400JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization400JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection401JSONResponseBodyStatusCode float32
-// CreateOrganization401JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization401JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection403JSONResponseBodyStatusCode float32
-// CreateOrganization403JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization403JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection404JSONResponseBodyStatusCode float32
-// CreateOrganization404JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization404JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection422JSONResponseBodyStatusCode float32
-// CreateOrganization422JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization422JSONResponseBodyStatusCode float32
+// CreateGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for CreateGitHubAppConnection.
+type CreateGitHubAppConnection500JSONResponseBodyStatusCode float32
-// CreateOrganization500JSONResponseBodyStatusCode defines parameters for CreateOrganization.
-type CreateOrganization500JSONResponseBodyStatusCode float32
-
-// DeleteOrganization400JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization400JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ GitHubAppId *openapi_types.UUID `json:"gitHubAppId,omitempty"`
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
-// DeleteOrganization401JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization401JSONResponseBodyStatusCode float32
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-// DeleteOrganization403JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization403JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-// DeleteOrganization404JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization404JSONResponseBodyStatusCode float32
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
-// DeleteOrganization422JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization422JSONResponseBodyStatusCode float32
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
-// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
-type DeleteOrganization500JSONResponseBodyStatusCode float32
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
-// LoginV3JSONBody defines parameters for LoginV3.
-type LoginV3JSONBody struct {
- CaptchaToken *string `json:"captchaToken,omitempty"`
- Email string `json:"email"`
- Password string `json:"password"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
-// LoginV3400JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3400JSONResponseBodyStatusCode float32
-
-// LoginV3401JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3401JSONResponseBodyStatusCode float32
-
-// LoginV3403JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3403JSONResponseBodyStatusCode float32
-
-// LoginV3404JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3404JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0App string
-// LoginV3422JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3422JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 string
-// LoginV3500JSONResponseBodyStatusCode defines parameters for LoginV3.
-type LoginV3500JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 string
-// SelectOrganizationV3JSONBody defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3JSONBody struct {
- OrganizationId string `json:"organizationId"`
- UserAgent *SelectOrganizationV3JSONBodyUserAgent `json:"userAgent,omitempty"`
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// SelectOrganizationV3JSONBodyUserAgent defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3JSONBodyUserAgent string
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0Method string
-// SelectOrganizationV3400JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3400JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection0RotationRotationStatus string
-// SelectOrganizationV3401JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3401JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
-// SelectOrganizationV3403JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3403JSONResponseBodyStatusCode float32
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-// SelectOrganizationV3404JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3404JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-// SelectOrganizationV3422JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3422JSONResponseBodyStatusCode float32
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
-// SelectOrganizationV3500JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
-type SelectOrganizationV3500JSONResponseBodyStatusCode float32
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
-// CompleteAccountSignupV3JSONBody defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody struct {
- union json.RawMessage
-}
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
-// CompleteAccountSignupV3JSONBody0 defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody0 struct {
- AttributionSource *string `json:"attributionSource,omitempty"`
- Email string `json:"email"`
- FirstName string `json:"firstName"`
- HubspotUtk *string `json:"hubspotUtk,omitempty"`
- LastName *string `json:"lastName,omitempty"`
- OrganizationName *string `json:"organizationName,omitempty"`
- Password string `json:"password"`
- Type CompleteAccountSignupV3JSONBody0Type `json:"type"`
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
}
-// CompleteAccountSignupV3JSONBody0Type defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody0Type string
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1App string
-// CompleteAccountSignupV3JSONBody1 defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody1 struct {
- Code string `json:"code"`
- HubspotUtk *string `json:"hubspotUtk,omitempty"`
- Type CompleteAccountSignupV3JSONBody1Type `json:"type"`
-}
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 string
-// CompleteAccountSignupV3JSONBody1Type defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3JSONBody1Type string
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 string
-// CompleteAccountSignupV3400JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3400JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType struct {
+ union json.RawMessage
+}
-// CompleteAccountSignupV3401JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3401JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1Method string
-// CompleteAccountSignupV3403JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3403JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection1RotationRotationStatus string
-// CompleteAccountSignupV3404JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3404JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2 struct {
+ App DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App `json:"app"`
+ CreatedAt time.Time `json:"createdAt"`
+ Credentials struct {
+ Host *string `json:"host,omitempty"`
+ InstanceType *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType `json:"instanceType,omitempty"`
+ } `json:"credentials"`
+ CredentialsHash *string `json:"credentialsHash,omitempty"`
+ Description *string `json:"description,omitempty"`
+ GatewayId *openapi_types.UUID `json:"gatewayId,omitempty"`
+ GatewayPoolId *openapi_types.UUID `json:"gatewayPoolId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsAutoRotationEnabled *bool `json:"isAutoRotationEnabled,omitempty"`
+ IsPlatformManagedCredentials *bool `json:"isPlatformManagedCredentials,omitempty"`
+ Method DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method `json:"method"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ Project *struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ } `json:"project,omitempty"`
+ ProjectId *string `json:"projectId,omitempty"`
-// CompleteAccountSignupV3422JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3422JSONResponseBodyStatusCode float32
+ // Rotation The credential rotation configuration, if configured.
+ Rotation *struct {
+ // LastRotationMessage The message from the last rotation attempt.
+ LastRotationMessage *string `json:"lastRotationMessage,omitempty"`
-// CompleteAccountSignupV3500JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
-type CompleteAccountSignupV3500JSONResponseBodyStatusCode float32
+ // NextRotationAt The next scheduled rotation time.
+ NextRotationAt *time.Time `json:"nextRotationAt,omitempty"`
-// BeginEmailSignupV3JSONBody defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3JSONBody struct {
- CaptchaToken *string `json:"captchaToken,omitempty"`
- Email openapi_types.Email `json:"email"`
-}
+ // RotateAtUtc The UTC time of day at which rotation should occur.
+ RotateAtUtc struct {
+ // Hours The hour (0-23) at which to rotate.
+ Hours float32 `json:"hours"`
-// BeginEmailSignupV3400JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3400JSONResponseBodyStatusCode float32
+ // Minutes The minute (0-59) at which to rotate.
+ Minutes float32 `json:"minutes"`
+ } `json:"rotateAtUtc"`
-// BeginEmailSignupV3401JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3401JSONResponseBodyStatusCode float32
+ // RotationInterval The interval in days between credential rotations.
+ RotationInterval float32 `json:"rotationInterval"`
-// BeginEmailSignupV3403JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3403JSONResponseBodyStatusCode float32
+ // RotationStatus The status of the last rotation attempt.
+ RotationStatus DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus `json:"rotationStatus"`
+ } `json:"rotation,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+}
-// BeginEmailSignupV3404JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3404JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2App string
-// BeginEmailSignupV3422JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3422JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 string
-// BeginEmailSignupV3500JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
-type BeginEmailSignupV3500JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 string
-// VerifyEmailSignupV3JSONBody defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3JSONBody struct {
- Code string `json:"code"`
- Email openapi_types.Email `json:"email"`
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType struct {
+ union json.RawMessage
}
-// VerifyEmailSignupV3400JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3400JSONResponseBodyStatusCode float32
-
-// VerifyEmailSignupV3401JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3401JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2Method string
-// VerifyEmailSignupV3403JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3403JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBodyAppConnection2RotationRotationStatus string
-// VerifyEmailSignupV3404JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3404JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection200JSONResponseBody_AppConnection defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection200JSONResponseBody_AppConnection struct {
+ union json.RawMessage
+}
-// VerifyEmailSignupV3422JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3422JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection400JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection400JSONResponseBodyStatusCode float32
-// VerifyEmailSignupV3500JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
-type VerifyEmailSignupV3500JSONResponseBodyStatusCode float32
+// DeleteGitHubAppConnection401JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection401JSONResponseBodyStatusCode float32
-// ListSecretsV4Params defines parameters for ListSecretsV4.
-type ListSecretsV4Params struct {
- // MetadataFilter Unencrypted secret metadata key-value pairs used to filter secrets. Only metadata with unencrypted values is supported. When querying for multiple metadata pairs, the query is treated as an AND operation. Secret metadata format is key=value1,value=value2|key=value3,value=value4.
- MetadataFilter *string `form:"metadataFilter,omitempty" json:"metadataFilter,omitempty"`
+// DeleteGitHubAppConnection403JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection403JSONResponseBodyStatusCode float32
- // ProjectId The ID of the project to list secrets from.
- ProjectId *string `form:"projectId,omitempty" json:"projectId,omitempty"`
+// DeleteGitHubAppConnection404JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection404JSONResponseBodyStatusCode float32
- // Environment The slug of the environment to list secrets from.
- Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
+// DeleteGitHubAppConnection422JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection422JSONResponseBodyStatusCode float32
- // SecretPath The secret path to list secrets from.
- SecretPath *string `form:"secretPath,omitempty" json:"secretPath,omitempty"`
+// DeleteGitHubAppConnection500JSONResponseBodyStatusCode defines parameters for DeleteGitHubAppConnection.
+type DeleteGitHubAppConnection500JSONResponseBodyStatusCode float32
- // ViewSecretValue Whether or not to retrieve the secret value.
- ViewSecretValue *ListSecretsV4ParamsViewSecretValue `form:"viewSecretValue,omitempty" json:"viewSecretValue,omitempty"`
+// RefreshAuthToken400JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken400JSONResponseBodyStatusCode float32
- // ExpandSecretReferences Whether or not to expand secret references.
- ExpandSecretReferences *ListSecretsV4ParamsExpandSecretReferences `form:"expandSecretReferences,omitempty" json:"expandSecretReferences,omitempty"`
+// RefreshAuthToken401JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken401JSONResponseBodyStatusCode float32
- // Recursive Whether or not to fetch all secrets from the specified base path, and all of its subdirectories. Note, the max depth is 20 deep.
- Recursive *ListSecretsV4ParamsRecursive `form:"recursive,omitempty" json:"recursive,omitempty"`
+// RefreshAuthToken403JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken403JSONResponseBodyStatusCode float32
- // IncludePersonalOverrides Whether or not to include personal secrets in the response. When enabled, personal secrets will be included in the response. Shared secrets will still be included, but personal secrets will take priority, and the corresponding shared secrets will be replaced with the personal secrets.
- IncludePersonalOverrides *ListSecretsV4ParamsIncludePersonalOverrides `form:"includePersonalOverrides,omitempty" json:"includePersonalOverrides,omitempty"`
+// RefreshAuthToken404JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken404JSONResponseBodyStatusCode float32
- // IncludeImports Weather to include imported secrets or not.
- IncludeImports *ListSecretsV4ParamsIncludeImports `form:"includeImports,omitempty" json:"includeImports,omitempty"`
+// RefreshAuthToken422JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken422JSONResponseBodyStatusCode float32
- // TagSlugs The comma separated tag slugs to filter secrets.
- TagSlugs *string `form:"tagSlugs,omitempty" json:"tagSlugs,omitempty"`
-}
+// RefreshAuthToken500JSONResponseBodyStatusCode defines parameters for RefreshAuthToken.
+type RefreshAuthToken500JSONResponseBodyStatusCode float32
-// ListSecretsV4ParamsViewSecretValue defines parameters for ListSecretsV4.
-type ListSecretsV4ParamsViewSecretValue string
+// AttachUniversalAuthJSONBody defines parameters for AttachUniversalAuth.
+type AttachUniversalAuthJSONBody struct {
+ // AccessTokenMaxTTL The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.
+ AccessTokenMaxTTL *int `json:"accessTokenMaxTTL,omitempty"`
-// ListSecretsV4ParamsExpandSecretReferences defines parameters for ListSecretsV4.
-type ListSecretsV4ParamsExpandSecretReferences string
+ // AccessTokenNumUsesLimit The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.
+ AccessTokenNumUsesLimit *int `json:"accessTokenNumUsesLimit,omitempty"`
-// ListSecretsV4ParamsRecursive defines parameters for ListSecretsV4.
-type ListSecretsV4ParamsRecursive string
+ // AccessTokenPeriod The period for an access token in seconds. This value will be referenced at renewal time. Default value is 0.
+ AccessTokenPeriod *int `json:"accessTokenPeriod,omitempty"`
-// ListSecretsV4ParamsIncludePersonalOverrides defines parameters for ListSecretsV4.
-type ListSecretsV4ParamsIncludePersonalOverrides string
+ // AccessTokenTTL The lifetime for an access token in seconds. This value will be referenced at renewal time.
+ AccessTokenTTL *int `json:"accessTokenTTL,omitempty"`
-// ListSecretsV4ParamsIncludeImports defines parameters for ListSecretsV4.
-type ListSecretsV4ParamsIncludeImports string
+ // AccessTokenTrustedIps A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.
+ AccessTokenTrustedIps *[]struct {
+ IpAddress string `json:"ipAddress"`
+ } `json:"accessTokenTrustedIps,omitempty"`
-// ListSecretsV4400JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
-type ListSecretsV4400JSONResponseBodyStatusCode float32
+ // ClientSecretTrustedIps A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.
+ ClientSecretTrustedIps *[]struct {
+ IpAddress string `json:"ipAddress"`
+ } `json:"clientSecretTrustedIps,omitempty"`
-// ListSecretsV4401JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
-type ListSecretsV4401JSONResponseBodyStatusCode float32
+ // LockoutCounterResetSeconds How long to wait from the most recent failed login until resetting the lockout counter.
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
-// ListSecretsV4403JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
-type ListSecretsV4403JSONResponseBodyStatusCode float32
+ // LockoutDurationSeconds How long an identity auth method lockout lasts.
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
-// ListSecretsV4404JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
-type ListSecretsV4404JSONResponseBodyStatusCode float32
+ // LockoutEnabled Whether the lockout feature is enabled.
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
-// ListSecretsV4422JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
-type ListSecretsV4422JSONResponseBodyStatusCode float32
+ // LockoutThreshold The amount of times login must fail before locking the identity auth method.
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+}
-// ListSecretsV4500JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
-type ListSecretsV4500JSONResponseBodyStatusCode float32
+// AttachUniversalAuth400JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth400JSONResponseBodyStatusCode float32
-// GetSecretByNameV4Params defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4Params struct {
- // ProjectId The ID of the project to get the secret from.
- ProjectId string `form:"projectId" json:"projectId"`
+// AttachUniversalAuth401JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth401JSONResponseBodyStatusCode float32
- // Environment The slug of the environment to get the secret from.
- Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
+// AttachUniversalAuth403JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth403JSONResponseBodyStatusCode float32
- // SecretPath The path of the secret to get.
- SecretPath *string `form:"secretPath,omitempty" json:"secretPath,omitempty"`
+// AttachUniversalAuth404JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth404JSONResponseBodyStatusCode float32
- // Version The version of the secret to get.
- Version *float32 `form:"version,omitempty" json:"version,omitempty"`
+// AttachUniversalAuth422JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth422JSONResponseBodyStatusCode float32
- // Type The type of the secret to get.
- Type *GetSecretByNameV4ParamsType `form:"type,omitempty" json:"type,omitempty"`
+// AttachUniversalAuth500JSONResponseBodyStatusCode defines parameters for AttachUniversalAuth.
+type AttachUniversalAuth500JSONResponseBodyStatusCode float32
- // ViewSecretValue Whether or not to retrieve the secret value.
- ViewSecretValue *GetSecretByNameV4ParamsViewSecretValue `form:"viewSecretValue,omitempty" json:"viewSecretValue,omitempty"`
+// CreateUniversalAuthClientSecretJSONBody defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecretJSONBody struct {
+ // Description The description of the client secret.
+ Description *string `json:"description,omitempty"`
- // ExpandSecretReferences Whether or not to expand secret references.
- ExpandSecretReferences *GetSecretByNameV4ParamsExpandSecretReferences `form:"expandSecretReferences,omitempty" json:"expandSecretReferences,omitempty"`
+ // NumUsesLimit The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.
+ NumUsesLimit *float32 `json:"numUsesLimit,omitempty"`
- // IncludeImports Weather to include imported secrets or not.
- IncludeImports *GetSecretByNameV4ParamsIncludeImports `form:"includeImports,omitempty" json:"includeImports,omitempty"`
+ // Ttl The lifetime for the client secret in seconds.
+ Ttl *float32 `json:"ttl,omitempty"`
}
-// GetSecretByNameV4ParamsType defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4ParamsType string
+// CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode float32
-// GetSecretByNameV4ParamsViewSecretValue defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4ParamsViewSecretValue string
+// CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode float32
-// GetSecretByNameV4ParamsExpandSecretReferences defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4ParamsExpandSecretReferences string
+// CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode float32
-// GetSecretByNameV4ParamsIncludeImports defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4ParamsIncludeImports string
+// CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode float32
-// GetSecretByNameV4400JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4400JSONResponseBodyStatusCode float32
+// CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode float32
-// GetSecretByNameV4401JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4401JSONResponseBodyStatusCode float32
+// CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode defines parameters for CreateUniversalAuthClientSecret.
+type CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode float32
-// GetSecretByNameV4403JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4403JSONResponseBodyStatusCode float32
+// LoginWithUniversalAuthJSONBody defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuthJSONBody struct {
+ // ClientId Your Machine Identity Client ID.
+ ClientId string `json:"clientId"`
-// GetSecretByNameV4404JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4404JSONResponseBodyStatusCode float32
+ // ClientSecret Your Machine Identity Client Secret.
+ ClientSecret string `json:"clientSecret"`
-// GetSecretByNameV4422JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4422JSONResponseBodyStatusCode float32
+ // OrganizationSlug When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.
+ OrganizationSlug *string `json:"organizationSlug,omitempty"`
+}
-// GetSecretByNameV4500JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
-type GetSecretByNameV4500JSONResponseBodyStatusCode float32
+// LoginWithUniversalAuth200JSONResponseBodyTokenType defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth200JSONResponseBodyTokenType string
-// CreateSecretV4JSONBody defines parameters for CreateSecretV4.
-type CreateSecretV4JSONBody struct {
- // Environment The slug of the environment to create the secret in.
- Environment string `json:"environment"`
+// LoginWithUniversalAuth400JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth400JSONResponseBodyStatusCode float32
- // ProjectId The ID of the project to create the secret in.
- ProjectId string `json:"projectId"`
+// LoginWithUniversalAuth401JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth401JSONResponseBodyStatusCode float32
- // SecretComment Attach a comment to the secret.
- SecretComment *string `json:"secretComment,omitempty"`
- SecretMetadata *[]struct {
- IsEncrypted *bool `json:"isEncrypted,omitempty"`
- Key string `json:"key"`
- Value *string `json:"value,omitempty"`
- } `json:"secretMetadata,omitempty"`
+// LoginWithUniversalAuth403JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth403JSONResponseBodyStatusCode float32
- // SecretPath The path to create the secret in.
- SecretPath *string `json:"secretPath,omitempty"`
+// LoginWithUniversalAuth404JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth404JSONResponseBodyStatusCode float32
- // SecretReminderNote Note to be attached in notification email.
- SecretReminderNote *string `json:"secretReminderNote,omitempty"`
+// LoginWithUniversalAuth422JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32
- // SecretReminderRepeatDays Interval for secret rotation notifications, measured in days.
- SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
+// LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.
+type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32
- // SecretValue The value of the secret to create.
- SecretValue string `json:"secretValue"`
+// CreateMachineIdentityJSONBody defines parameters for CreateMachineIdentity.
+type CreateMachineIdentityJSONBody struct {
+ // HasDeleteProtection Prevents deletion of the identity when enabled.
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Metadata *[]struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
- // SkipMultilineEncoding Skip multiline encoding for the secret value.
- SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
+ // Name The name of the identity to create.
+ Name string `json:"name"`
- // TagIds The ID of the tags to be attached to the created secret.
- TagIds *[]string `json:"tagIds,omitempty"`
+ // OrganizationId The organization ID to which the identity belongs.
+ OrganizationId string `json:"organizationId"`
- // Type The type of the secret to create.
- Type *CreateSecretV4JSONBodyType `json:"type,omitempty"`
+ // Role The role of the identity. Possible values are 'no-access', 'member', and 'admin'.
+ Role *string `json:"role,omitempty"`
}
-// CreateSecretV4JSONBodyType defines parameters for CreateSecretV4.
-type CreateSecretV4JSONBodyType string
+// CreateMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity400JSONResponseBodyStatusCode float32
-// CreateSecretV4200JSONResponseBody0 defines parameters for CreateSecretV4.
-type CreateSecretV4200JSONResponseBody0 struct {
- Secret struct {
- UnderscoreId string `json:"_id"`
- Actor *struct {
- ActorId *string `json:"actorId,omitempty"`
- ActorType *string `json:"actorType,omitempty"`
- GroupId *string `json:"groupId,omitempty"`
- MembershipId *string `json:"membershipId,omitempty"`
- Name *string `json:"name,omitempty"`
- } `json:"actor,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Environment string `json:"environment"`
- Id string `json:"id"`
- IsRotatedSecret *bool `json:"isRotatedSecret,omitempty"`
- RotationId *openapi_types.UUID `json:"rotationId,omitempty"`
- SecretComment string `json:"secretComment"`
- SecretKey string `json:"secretKey"`
- SecretReminderNote *string `json:"secretReminderNote,omitempty"`
- SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
- SecretValue string `json:"secretValue"`
- SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
- Type string `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- Version float32 `json:"version"`
- Workspace string `json:"workspace"`
- } `json:"secret"`
-}
+// CreateMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity401JSONResponseBodyStatusCode float32
-// CreateSecretV4200JSONResponseBody1 defines parameters for CreateSecretV4.
-type CreateSecretV4200JSONResponseBody1 struct {
- Approval struct {
- BypassReason *string `json:"bypassReason,omitempty"`
- CommitMessage *string `json:"commitMessage,omitempty"`
- CommitterIdentityId *openapi_types.UUID `json:"committerIdentityId,omitempty"`
- CommitterUserId *openapi_types.UUID `json:"committerUserId,omitempty"`
- Conflicts interface{} `json:"conflicts,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- FolderId openapi_types.UUID `json:"folderId"`
- HasMerged *bool `json:"hasMerged,omitempty"`
- Id openapi_types.UUID `json:"id"`
- IsReplicated *bool `json:"isReplicated,omitempty"`
- PolicyId openapi_types.UUID `json:"policyId"`
- Slug string `json:"slug"`
- Status *string `json:"status,omitempty"`
- StatusChangedByUserId *openapi_types.UUID `json:"statusChangedByUserId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"approval"`
-}
+// CreateMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity403JSONResponseBodyStatusCode float32
-// CreateSecretV4200JSONResponseBody defines parameters for CreateSecretV4.
-type CreateSecretV4200JSONResponseBody struct {
- union json.RawMessage
-}
+// CreateMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity404JSONResponseBodyStatusCode float32
-// CreateSecretV4400JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
-type CreateSecretV4400JSONResponseBodyStatusCode float32
+// CreateMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity422JSONResponseBodyStatusCode float32
-// CreateSecretV4401JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
-type CreateSecretV4401JSONResponseBodyStatusCode float32
+// CreateMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateMachineIdentity.
+type CreateMachineIdentity500JSONResponseBodyStatusCode float32
-// CreateSecretV4403JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
-type CreateSecretV4403JSONResponseBodyStatusCode float32
+// InviteUsersToOrganizationJSONBody defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganizationJSONBody struct {
+ GrantAgentVaultAccess *bool `json:"grantAgentVaultAccess,omitempty"`
+ GrantPamAccess *bool `json:"grantPamAccess,omitempty"`
+ InviteeEmails []openapi_types.Email `json:"inviteeEmails"`
+ OrganizationId string `json:"organizationId"`
+ OrganizationRoleSlug *string `json:"organizationRoleSlug,omitempty"`
+ ProjectIds *[]string `json:"projectIds,omitempty"`
+}
-// CreateSecretV4404JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
-type CreateSecretV4404JSONResponseBodyStatusCode float32
+// InviteUsersToOrganization400JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization400JSONResponseBodyStatusCode float32
-// CreateSecretV4422JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
-type CreateSecretV4422JSONResponseBodyStatusCode float32
+// InviteUsersToOrganization401JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization401JSONResponseBodyStatusCode float32
-// CreateSecretV4500JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
-type CreateSecretV4500JSONResponseBodyStatusCode float32
+// InviteUsersToOrganization403JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization403JSONResponseBodyStatusCode float32
-// AdminBootstrapJSONRequestBody defines body for AdminBootstrap for application/json ContentType.
-type AdminBootstrapJSONRequestBody AdminBootstrapJSONBody
+// InviteUsersToOrganization404JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization404JSONResponseBodyStatusCode float32
-// UpdateAdminConfigJSONRequestBody defines body for UpdateAdminConfig for application/json ContentType.
-type UpdateAdminConfigJSONRequestBody UpdateAdminConfigJSONBody
+// InviteUsersToOrganization422JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization422JSONResponseBodyStatusCode float32
-// CreateGitHubAppConnectionJSONRequestBody defines body for CreateGitHubAppConnection for application/json ContentType.
-type CreateGitHubAppConnectionJSONRequestBody CreateGitHubAppConnectionJSONBody
+// InviteUsersToOrganization500JSONResponseBodyStatusCode defines parameters for InviteUsersToOrganization.
+type InviteUsersToOrganization500JSONResponseBodyStatusCode float32
-// AttachUniversalAuthJSONRequestBody defines body for AttachUniversalAuth for application/json ContentType.
-type AttachUniversalAuthJSONRequestBody AttachUniversalAuthJSONBody
+// VerifyUserToOrganizationJSONBody defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganizationJSONBody struct {
+ Code string `json:"code"`
+ Email openapi_types.Email `json:"email"`
+ OrganizationId string `json:"organizationId"`
+}
-// CreateUniversalAuthClientSecretJSONRequestBody defines body for CreateUniversalAuthClientSecret for application/json ContentType.
-type CreateUniversalAuthClientSecretJSONRequestBody CreateUniversalAuthClientSecretJSONBody
+// VerifyUserToOrganization400JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization400JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuthJSONRequestBody defines body for LoginWithUniversalAuth for application/json ContentType.
-type LoginWithUniversalAuthJSONRequestBody LoginWithUniversalAuthJSONBody
+// VerifyUserToOrganization401JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization401JSONResponseBodyStatusCode float32
-// CreateMachineIdentityJSONRequestBody defines body for CreateMachineIdentity for application/json ContentType.
-type CreateMachineIdentityJSONRequestBody CreateMachineIdentityJSONBody
+// VerifyUserToOrganization403JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization403JSONResponseBodyStatusCode float32
-// InviteUsersToOrganizationJSONRequestBody defines body for InviteUsersToOrganization for application/json ContentType.
-type InviteUsersToOrganizationJSONRequestBody InviteUsersToOrganizationJSONBody
+// VerifyUserToOrganization404JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization404JSONResponseBodyStatusCode float32
-// VerifyUserToOrganizationJSONRequestBody defines body for VerifyUserToOrganization for application/json ContentType.
-type VerifyUserToOrganizationJSONRequestBody VerifyUserToOrganizationJSONBody
+// VerifyUserToOrganization422JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization422JSONResponseBodyStatusCode float32
-// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
-type CreateProjectJSONRequestBody CreateProjectJSONBody
+// VerifyUserToOrganization500JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.
+type VerifyUserToOrganization500JSONResponseBodyStatusCode float32
-// CreateProjectMachineIdentityJSONRequestBody defines body for CreateProjectMachineIdentity for application/json ContentType.
-type CreateProjectMachineIdentityJSONRequestBody CreateProjectMachineIdentityJSONBody
+// GetOrganizationPlanParams defines parameters for GetOrganizationPlan.
+type GetOrganizationPlanParams struct {
+ RefreshCache *GetOrganizationPlanParamsRefreshCache `form:"refreshCache,omitempty" json:"refreshCache,omitempty"`
+}
-// InviteProjectMembersJSONRequestBody defines body for InviteProjectMembers for application/json ContentType.
-type InviteProjectMembersJSONRequestBody InviteProjectMembersJSONBody
+// GetOrganizationPlanParamsRefreshCache defines parameters for GetOrganizationPlan.
+type GetOrganizationPlanParamsRefreshCache string
-// CreateProjectIdentityMembershipJSONRequestBody defines body for CreateProjectIdentityMembership for application/json ContentType.
-type CreateProjectIdentityMembershipJSONRequestBody CreateProjectIdentityMembershipJSONBody
+// GetOrganizationPlan400JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan400JSONResponseBodyStatusCode float32
-// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
-type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody
+// GetOrganizationPlan401JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan401JSONResponseBodyStatusCode float32
-// LoginV3JSONRequestBody defines body for LoginV3 for application/json ContentType.
-type LoginV3JSONRequestBody LoginV3JSONBody
+// GetOrganizationPlan403JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan403JSONResponseBodyStatusCode float32
-// SelectOrganizationV3JSONRequestBody defines body for SelectOrganizationV3 for application/json ContentType.
-type SelectOrganizationV3JSONRequestBody SelectOrganizationV3JSONBody
+// GetOrganizationPlan404JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan404JSONResponseBodyStatusCode float32
-// CompleteAccountSignupV3JSONRequestBody defines body for CompleteAccountSignupV3 for application/json ContentType.
-type CompleteAccountSignupV3JSONRequestBody CompleteAccountSignupV3JSONBody
+// GetOrganizationPlan422JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan422JSONResponseBodyStatusCode float32
-// BeginEmailSignupV3JSONRequestBody defines body for BeginEmailSignupV3 for application/json ContentType.
-type BeginEmailSignupV3JSONRequestBody BeginEmailSignupV3JSONBody
+// GetOrganizationPlan500JSONResponseBodyStatusCode defines parameters for GetOrganizationPlan.
+type GetOrganizationPlan500JSONResponseBodyStatusCode float32
-// VerifyEmailSignupV3JSONRequestBody defines body for VerifyEmailSignupV3 for application/json ContentType.
-type VerifyEmailSignupV3JSONRequestBody VerifyEmailSignupV3JSONBody
+// CreateProjectJSONBody defines parameters for CreateProject.
+type CreateProjectJSONBody struct {
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ KmsKeyId *string `json:"kmsKeyId,omitempty"`
-// CreateSecretV4JSONRequestBody defines body for CreateSecretV4 for application/json ContentType.
-type CreateSecretV4JSONRequestBody CreateSecretV4JSONBody
+ // ProjectDescription An optional description label for the project.
+ ProjectDescription *string `json:"projectDescription,omitempty"`
-// AsCreateGitHubAppConnectionJSONBody0 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody0
-func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody0() (CreateGitHubAppConnectionJSONBody0, error) {
- var body CreateGitHubAppConnectionJSONBody0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+ // ProjectName The name of the project to create.
+ ProjectName string `json:"projectName"`
+ ShouldCreateDefaultEnvs *bool `json:"shouldCreateDefaultEnvs,omitempty"`
-// FromCreateGitHubAppConnectionJSONBody0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody0
-func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody0(v CreateGitHubAppConnectionJSONBody0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+ // Slug An optional slug for the project.
+ Slug *string `json:"slug,omitempty"`
+
+ // Template The name of the project template, if specified, to apply to this project.
+ Template *string `json:"template,omitempty"`
+ Type *CreateProjectJSONBodyType `json:"type,omitempty"`
}
-// MergeCreateGitHubAppConnectionJSONBody0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody0
-func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody0(v CreateGitHubAppConnectionJSONBody0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateProjectJSONBodyType defines parameters for CreateProject.
+type CreateProjectJSONBodyType string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 struct {
+ Email *string `json:"email"`
+ FirstName *string `json:"firstName"`
+ Id string `json:"id"`
+ LastName *string `json:"lastName"`
+ Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type `json:"type"`
+ Username *string `json:"username"`
}
-// AsCreateGitHubAppConnectionJSONBody1 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody1
-func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody1() (CreateGitHubAppConnectionJSONBody1, error) {
- var body CreateGitHubAppConnectionJSONBody1
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0Type string
+
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type `json:"type"`
}
-// FromCreateGitHubAppConnectionJSONBody1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody1
-func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody1(v CreateGitHubAppConnectionJSONBody1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
-
-// MergeCreateGitHubAppConnectionJSONBody1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody1
-func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody1(v CreateGitHubAppConnectionJSONBody1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
-
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
-
-// AsCreateGitHubAppConnectionJSONBody2 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody2
-func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody2() (CreateGitHubAppConnectionJSONBody2, error) {
- var body CreateGitHubAppConnectionJSONBody2
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
-
-// FromCreateGitHubAppConnectionJSONBody2 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody2
-func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody2(v CreateGitHubAppConnectionJSONBody2) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
-
-// MergeCreateGitHubAppConnectionJSONBody2 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody2
-func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody2(v CreateGitHubAppConnectionJSONBody2) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type defines parameters for CreateProject.
+type CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1Type string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy defines parameters for CreateProject.
+type CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy struct {
+ union json.RawMessage
}
-func (t CreateGitHubAppConnectionJSONBody) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- if err != nil {
- return nil, err
- }
- object := make(map[string]json.RawMessage)
- if t.union != nil {
- err = json.Unmarshal(b, &object)
- if err != nil {
- return nil, err
- }
- }
+// CreateProject400JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject400JSONResponseBodyStatusCode float32
- if t.Description != nil {
- object["description"], err = json.Marshal(t.Description)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'description': %w", err)
- }
- }
+// CreateProject401JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject401JSONResponseBodyStatusCode float32
- if t.GatewayId != nil {
- object["gatewayId"], err = json.Marshal(t.GatewayId)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'gatewayId': %w", err)
- }
- }
+// CreateProject403JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject403JSONResponseBodyStatusCode float32
- if t.GatewayPoolId != nil {
- object["gatewayPoolId"], err = json.Marshal(t.GatewayPoolId)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'gatewayPoolId': %w", err)
- }
- }
+// CreateProject404JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject404JSONResponseBodyStatusCode float32
- if t.IsAutoRotationEnabled != nil {
- object["isAutoRotationEnabled"], err = json.Marshal(t.IsAutoRotationEnabled)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'isAutoRotationEnabled': %w", err)
- }
- }
+// CreateProject422JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject422JSONResponseBodyStatusCode float32
- if t.IsPlatformManagedCredentials != nil {
- object["isPlatformManagedCredentials"], err = json.Marshal(t.IsPlatformManagedCredentials)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'isPlatformManagedCredentials': %w", err)
- }
- }
+// CreateProject500JSONResponseBodyStatusCode defines parameters for CreateProject.
+type CreateProject500JSONResponseBodyStatusCode float32
- object["name"], err = json.Marshal(t.Name)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'name': %w", err)
- }
+// ListProjectMachineIdentitiesParams defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentitiesParams struct {
+ // Offset The offset to start from. If you enter 10, it will start from the 10th identity.
+ Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`
- if t.ProjectId != nil {
- object["projectId"], err = json.Marshal(t.ProjectId)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'projectId': %w", err)
- }
- }
+ // Limit The number of identities to return.
+ Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
- if t.Rotation != nil {
- object["rotation"], err = json.Marshal(t.Rotation)
- if err != nil {
- return nil, fmt.Errorf("error marshaling 'rotation': %w", err)
- }
- }
- b, err = json.Marshal(object)
- return b, err
+ // Search The text string that identity names will be filtered by.
+ Search *string `form:"search,omitempty" json:"search,omitempty"`
}
-func (t *CreateGitHubAppConnectionJSONBody) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- if err != nil {
- return err
- }
- object := make(map[string]json.RawMessage)
- err = json.Unmarshal(b, &object)
- if err != nil {
- return err
- }
-
- if raw, found := object["description"]; found {
- err = json.Unmarshal(raw, &t.Description)
- if err != nil {
- return fmt.Errorf("error reading 'description': %w", err)
- }
- }
+// ListProjectMachineIdentities400JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities400JSONResponseBodyStatusCode float32
- if raw, found := object["gatewayId"]; found {
- err = json.Unmarshal(raw, &t.GatewayId)
- if err != nil {
- return fmt.Errorf("error reading 'gatewayId': %w", err)
- }
- }
+// ListProjectMachineIdentities401JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities401JSONResponseBodyStatusCode float32
- if raw, found := object["gatewayPoolId"]; found {
- err = json.Unmarshal(raw, &t.GatewayPoolId)
- if err != nil {
- return fmt.Errorf("error reading 'gatewayPoolId': %w", err)
- }
- }
+// ListProjectMachineIdentities403JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities403JSONResponseBodyStatusCode float32
- if raw, found := object["isAutoRotationEnabled"]; found {
- err = json.Unmarshal(raw, &t.IsAutoRotationEnabled)
- if err != nil {
- return fmt.Errorf("error reading 'isAutoRotationEnabled': %w", err)
- }
- }
+// ListProjectMachineIdentities404JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities404JSONResponseBodyStatusCode float32
- if raw, found := object["isPlatformManagedCredentials"]; found {
- err = json.Unmarshal(raw, &t.IsPlatformManagedCredentials)
- if err != nil {
- return fmt.Errorf("error reading 'isPlatformManagedCredentials': %w", err)
- }
- }
+// ListProjectMachineIdentities422JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities422JSONResponseBodyStatusCode float32
- if raw, found := object["name"]; found {
- err = json.Unmarshal(raw, &t.Name)
- if err != nil {
- return fmt.Errorf("error reading 'name': %w", err)
- }
- }
+// ListProjectMachineIdentities500JSONResponseBodyStatusCode defines parameters for ListProjectMachineIdentities.
+type ListProjectMachineIdentities500JSONResponseBodyStatusCode float32
- if raw, found := object["projectId"]; found {
- err = json.Unmarshal(raw, &t.ProjectId)
- if err != nil {
- return fmt.Errorf("error reading 'projectId': %w", err)
- }
- }
+// CreateProjectMachineIdentityJSONBody defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBody struct {
+ // HasDeleteProtection Prevents deletion of the identity when enabled.
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- if raw, found := object["rotation"]; found {
- err = json.Unmarshal(raw, &t.Rotation)
- if err != nil {
- return fmt.Errorf("error reading 'rotation': %w", err)
- }
- }
+ // Metadata An optional array of key-value pairs to attach to the identity.
+ Metadata *[]struct {
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
- return err
+ // Name The name of the identity to create.
+ Name string `json:"name"`
+ Roles *[]CreateProjectMachineIdentityJSONBody_Roles_Item `json:"roles,omitempty"`
}
-// AsCreateGitHubAppConnectionJSONBodyRotation0 returns the union data inside the CreateGitHubAppConnectionJSONBody_Rotation as a CreateGitHubAppConnectionJSONBodyRotation0
-func (t CreateGitHubAppConnectionJSONBody_Rotation) AsCreateGitHubAppConnectionJSONBodyRotation0() (CreateGitHubAppConnectionJSONBodyRotation0, error) {
- var body CreateGitHubAppConnectionJSONBodyRotation0
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateProjectMachineIdentityJSONBodyRoles0 defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles0 struct {
+ IsTemporary *CreateProjectMachineIdentityJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
+ Role string `json:"role"`
}
-// FromCreateGitHubAppConnectionJSONBodyRotation0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_Rotation as the provided CreateGitHubAppConnectionJSONBodyRotation0
-func (t *CreateGitHubAppConnectionJSONBody_Rotation) FromCreateGitHubAppConnectionJSONBodyRotation0(v CreateGitHubAppConnectionJSONBodyRotation0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CreateProjectMachineIdentityJSONBodyRoles0IsTemporary defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles0IsTemporary bool
+
+// CreateProjectMachineIdentityJSONBodyRoles1 defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles1 struct {
+ IsTemporary CreateProjectMachineIdentityJSONBodyRoles1IsTemporary `json:"isTemporary"`
+ Role string `json:"role"`
+ TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
+ TemporaryMode CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
+ TemporaryRange string `json:"temporaryRange"`
}
-// MergeCreateGitHubAppConnectionJSONBodyRotation0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_Rotation, using the provided CreateGitHubAppConnectionJSONBodyRotation0
-func (t *CreateGitHubAppConnectionJSONBody_Rotation) MergeCreateGitHubAppConnectionJSONBodyRotation0(v CreateGitHubAppConnectionJSONBodyRotation0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateProjectMachineIdentityJSONBodyRoles1IsTemporary defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles1IsTemporary bool
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBodyRoles1TemporaryMode string
-// AsCreateGitHubAppConnectionJSONBodyRotation1 returns the union data inside the CreateGitHubAppConnectionJSONBody_Rotation as a CreateGitHubAppConnectionJSONBodyRotation1
-func (t CreateGitHubAppConnectionJSONBody_Rotation) AsCreateGitHubAppConnectionJSONBodyRotation1() (CreateGitHubAppConnectionJSONBodyRotation1, error) {
- var body CreateGitHubAppConnectionJSONBodyRotation1
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateProjectMachineIdentityJSONBody_Roles_Item defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentityJSONBody_Roles_Item struct {
+ union json.RawMessage
}
-// FromCreateGitHubAppConnectionJSONBodyRotation1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_Rotation as the provided CreateGitHubAppConnectionJSONBodyRotation1
-func (t *CreateGitHubAppConnectionJSONBody_Rotation) FromCreateGitHubAppConnectionJSONBodyRotation1(v CreateGitHubAppConnectionJSONBodyRotation1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// CreateProjectMachineIdentity400JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity400JSONResponseBodyStatusCode float32
-// MergeCreateGitHubAppConnectionJSONBodyRotation1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_Rotation, using the provided CreateGitHubAppConnectionJSONBodyRotation1
-func (t *CreateGitHubAppConnectionJSONBody_Rotation) MergeCreateGitHubAppConnectionJSONBodyRotation1(v CreateGitHubAppConnectionJSONBodyRotation1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateProjectMachineIdentity401JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity401JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CreateProjectMachineIdentity403JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity403JSONResponseBodyStatusCode float32
-func (t CreateGitHubAppConnectionJSONBody_Rotation) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// CreateProjectMachineIdentity404JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity404JSONResponseBodyStatusCode float32
-func (t *CreateGitHubAppConnectionJSONBody_Rotation) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// CreateProjectMachineIdentity422JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity422JSONResponseBodyStatusCode float32
-// AsCreateGitHubAppConnectionJSONBody0Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as a CreateGitHubAppConnectionJSONBody0Credentials0
-func (t CreateGitHubAppConnectionJSONBody_0_Credentials) AsCreateGitHubAppConnectionJSONBody0Credentials0() (CreateGitHubAppConnectionJSONBody0Credentials0, error) {
- var body CreateGitHubAppConnectionJSONBody0Credentials0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// CreateProjectMachineIdentity500JSONResponseBodyStatusCode defines parameters for CreateProjectMachineIdentity.
+type CreateProjectMachineIdentity500JSONResponseBodyStatusCode float32
-// FromCreateGitHubAppConnectionJSONBody0Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as the provided CreateGitHubAppConnectionJSONBody0Credentials0
-func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) FromCreateGitHubAppConnectionJSONBody0Credentials0(v CreateGitHubAppConnectionJSONBody0Credentials0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// InviteProjectMembersJSONBody defines parameters for InviteProjectMembers.
+type InviteProjectMembersJSONBody struct {
+ // Emails A list of organization member emails to invite to the project.
+ Emails *[]openapi_types.Email `json:"emails,omitempty"`
-// MergeCreateGitHubAppConnectionJSONBody0Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials, using the provided CreateGitHubAppConnectionJSONBody0Credentials0
-func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) MergeCreateGitHubAppConnectionJSONBody0Credentials0(v CreateGitHubAppConnectionJSONBody0Credentials0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+ // RoleSlugs A list of role slugs to assign to the newly created project membership. If nothing is provided, it will default to the Member role.
+ RoleSlugs *[]string `json:"roleSlugs,omitempty"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+ // Usernames A list of usernames to invite to the project.
+ Usernames *[]string `json:"usernames,omitempty"`
}
-// AsCreateGitHubAppConnectionJSONBody0Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as a CreateGitHubAppConnectionJSONBody0Credentials1
-func (t CreateGitHubAppConnectionJSONBody_0_Credentials) AsCreateGitHubAppConnectionJSONBody0Credentials1() (CreateGitHubAppConnectionJSONBody0Credentials1, error) {
- var body CreateGitHubAppConnectionJSONBody0Credentials1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// InviteProjectMembers400JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers400JSONResponseBodyStatusCode float32
-// FromCreateGitHubAppConnectionJSONBody0Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as the provided CreateGitHubAppConnectionJSONBody0Credentials1
-func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) FromCreateGitHubAppConnectionJSONBody0Credentials1(v CreateGitHubAppConnectionJSONBody0Credentials1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// InviteProjectMembers401JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers401JSONResponseBodyStatusCode float32
-// MergeCreateGitHubAppConnectionJSONBody0Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials, using the provided CreateGitHubAppConnectionJSONBody0Credentials1
-func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) MergeCreateGitHubAppConnectionJSONBody0Credentials1(v CreateGitHubAppConnectionJSONBody0Credentials1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// InviteProjectMembers403JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers403JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// InviteProjectMembers404JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers404JSONResponseBodyStatusCode float32
+
+// InviteProjectMembers422JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers422JSONResponseBodyStatusCode float32
+
+// InviteProjectMembers500JSONResponseBodyStatusCode defines parameters for InviteProjectMembers.
+type InviteProjectMembers500JSONResponseBodyStatusCode float32
+
+// CreateProjectIdentityMembershipJSONBody defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBody struct {
+ Role *string `json:"role,omitempty"`
+
+ // Roles A list of role slugs to assign to the newly created identity project membership.
+ Roles *[]CreateProjectIdentityMembershipJSONBody_Roles_Item `json:"roles,omitempty"`
}
-func (t CreateGitHubAppConnectionJSONBody_0_Credentials) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
+// CreateProjectIdentityMembershipJSONBodyRoles0 defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles0 struct {
+ // IsTemporary The role slug to assign to the newly created identity project membership.
+ IsTemporary *CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary `json:"isTemporary,omitempty"`
+
+ // Role The role slug to assign to the newly created identity project membership.
+ Role string `json:"role"`
}
-func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+// CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles0IsTemporary bool
+
+// CreateProjectIdentityMembershipJSONBodyRoles1 defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles1 struct {
+ // IsTemporary The role slug to assign to the newly created identity project membership.
+ IsTemporary CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary `json:"isTemporary"`
+
+ // Role The role slug to assign to the newly created identity project membership.
+ Role string `json:"role"`
+
+ // TemporaryAccessStartTime The role slug to assign to the newly created identity project membership.
+ TemporaryAccessStartTime time.Time `json:"temporaryAccessStartTime"`
+
+ // TemporaryMode The role slug to assign to the newly created identity project membership.
+ TemporaryMode CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode `json:"temporaryMode"`
+
+ // TemporaryRange The role slug to assign to the newly created identity project membership.
+ TemporaryRange string `json:"temporaryRange"`
}
-// AsCreateGitHubAppConnectionJSONBody1Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as a CreateGitHubAppConnectionJSONBody1Credentials0
-func (t CreateGitHubAppConnectionJSONBody_1_Credentials) AsCreateGitHubAppConnectionJSONBody1Credentials0() (CreateGitHubAppConnectionJSONBody1Credentials0, error) {
- var body CreateGitHubAppConnectionJSONBody1Credentials0
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles1IsTemporary bool
+
+// CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBodyRoles1TemporaryMode string
+
+// CreateProjectIdentityMembershipJSONBody_Roles_Item defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembershipJSONBody_Roles_Item struct {
+ union json.RawMessage
}
-// FromCreateGitHubAppConnectionJSONBody1Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as the provided CreateGitHubAppConnectionJSONBody1Credentials0
-func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) FromCreateGitHubAppConnectionJSONBody1Credentials0(v CreateGitHubAppConnectionJSONBody1Credentials0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CreateProjectIdentityMembership400JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership400JSONResponseBodyStatusCode float32
+
+// CreateProjectIdentityMembership401JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership401JSONResponseBodyStatusCode float32
+
+// CreateProjectIdentityMembership403JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership403JSONResponseBodyStatusCode float32
+
+// CreateProjectIdentityMembership404JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership404JSONResponseBodyStatusCode float32
+
+// CreateProjectIdentityMembership422JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership422JSONResponseBodyStatusCode float32
+
+// CreateProjectIdentityMembership500JSONResponseBodyStatusCode defines parameters for CreateProjectIdentityMembership.
+type CreateProjectIdentityMembership500JSONResponseBodyStatusCode float32
+
+// CreateGitHubSecretSyncJSONBody defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBody struct {
+ // ConnectionId The ID of the GitHub Connection to use for syncing.
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+
+ // Description An optional description for the GitHub Sync.
+ Description *string `json:"description,omitempty"`
+ DestinationConfig CreateGitHubSecretSyncJSONBody_DestinationConfig `json:"destinationConfig"`
+
+ // Environment The slug of the project environment to sync secrets from.
+ Environment string `json:"environment"`
+
+ // IsAutoSyncEnabled Whether secrets should be automatically synced when changes occur at the source location or not.
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+
+ // Name The name of the GitHub Sync to create. Must be slug-friendly.
+ Name string `json:"name"`
+
+ // ProjectId The ID of the project to create the sync in.
+ ProjectId string `json:"projectId"`
+
+ // SecretPath The folder path to sync secrets from.
+ SecretPath string `json:"secretPath"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
}
-// MergeCreateGitHubAppConnectionJSONBody1Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials, using the provided CreateGitHubAppConnectionJSONBody1Credentials0
-func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) MergeCreateGitHubAppConnectionJSONBody1Credentials0(v CreateGitHubAppConnectionJSONBody1Credentials0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateGitHubSecretSyncJSONBodyDestinationConfig0 defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig0 struct {
+ // Org The name of the GitHub organization.
+ Org string `json:"org"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope `json:"scope"`
+ SelectedRepositoryIds *[]float32 `json:"selectedRepositoryIds,omitempty"`
+ Visibility CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility `json:"visibility"`
}
-// AsCreateGitHubAppConnectionJSONBody1Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as a CreateGitHubAppConnectionJSONBody1Credentials1
-func (t CreateGitHubAppConnectionJSONBody_1_Credentials) AsCreateGitHubAppConnectionJSONBody1Credentials1() (CreateGitHubAppConnectionJSONBody1Credentials1, error) {
- var body CreateGitHubAppConnectionJSONBody1Credentials1
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig0Scope string
+
+// CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig0Visibility string
+
+// CreateGitHubSecretSyncJSONBodyDestinationConfig1 defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig1 struct {
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
+
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope `json:"scope"`
}
-// FromCreateGitHubAppConnectionJSONBody1Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as the provided CreateGitHubAppConnectionJSONBody1Credentials1
-func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) FromCreateGitHubAppConnectionJSONBody1Credentials1(v CreateGitHubAppConnectionJSONBody1Credentials1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig1Scope string
+
+// CreateGitHubSecretSyncJSONBodyDestinationConfig2 defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig2 struct {
+ // Env The name of the GitHub environment.
+ Env string `json:"env"`
+
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
+
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope `json:"scope"`
}
-// MergeCreateGitHubAppConnectionJSONBody1Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials, using the provided CreateGitHubAppConnectionJSONBody1Credentials1
-func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) MergeCreateGitHubAppConnectionJSONBody1Credentials1(v CreateGitHubAppConnectionJSONBody1Credentials1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodyDestinationConfig2Scope string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// CreateGitHubSecretSyncJSONBody_DestinationConfig defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBody_DestinationConfig struct {
+ union json.RawMessage
}
-func (t CreateGitHubAppConnectionJSONBody_1_Credentials) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
+// CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSyncJSONBodySyncOptionsInitialSyncBehavior string
+
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp string
+
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination string
+
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 struct {
+ // Org The name of the GitHub organization.
+ Org string `json:"org"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope `json:"scope"`
+ SelectedRepositoryIds *[]float32 `json:"selectedRepositoryIds,omitempty"`
+ Visibility CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility `json:"visibility"`
}
-func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope string
+
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility string
+
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 struct {
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
+
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope `json:"scope"`
}
-// AsCreateGitHubAppConnectionJSONBody2Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as a CreateGitHubAppConnectionJSONBody2Credentials0
-func (t CreateGitHubAppConnectionJSONBody_2_Credentials) AsCreateGitHubAppConnectionJSONBody2Credentials0() (CreateGitHubAppConnectionJSONBody2Credentials0, error) {
- var body CreateGitHubAppConnectionJSONBody2Credentials0
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope string
+
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 struct {
+ // Env The name of the GitHub environment.
+ Env string `json:"env"`
+
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
+
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope `json:"scope"`
}
-// FromCreateGitHubAppConnectionJSONBody2Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as the provided CreateGitHubAppConnectionJSONBody2Credentials0
-func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) FromCreateGitHubAppConnectionJSONBody2Credentials0(v CreateGitHubAppConnectionJSONBody2Credentials0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope string
+
+// CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig struct {
+ union json.RawMessage
}
-// MergeCreateGitHubAppConnectionJSONBody2Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials, using the provided CreateGitHubAppConnectionJSONBody2Credentials0
-func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) MergeCreateGitHubAppConnectionJSONBody2Credentials0(v CreateGitHubAppConnectionJSONBody2Credentials0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CreateGitHubSecretSync400JSONResponseBodyStatusCode defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync400JSONResponseBodyStatusCode float32
-// AsCreateGitHubAppConnectionJSONBody2Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as a CreateGitHubAppConnectionJSONBody2Credentials1
-func (t CreateGitHubAppConnectionJSONBody_2_Credentials) AsCreateGitHubAppConnectionJSONBody2Credentials1() (CreateGitHubAppConnectionJSONBody2Credentials1, error) {
- var body CreateGitHubAppConnectionJSONBody2Credentials1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// CreateGitHubSecretSync401JSONResponseBodyStatusCode defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync401JSONResponseBodyStatusCode float32
-// FromCreateGitHubAppConnectionJSONBody2Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as the provided CreateGitHubAppConnectionJSONBody2Credentials1
-func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) FromCreateGitHubAppConnectionJSONBody2Credentials1(v CreateGitHubAppConnectionJSONBody2Credentials1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// CreateGitHubSecretSync403JSONResponseBodyStatusCode defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync403JSONResponseBodyStatusCode float32
-// MergeCreateGitHubAppConnectionJSONBody2Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials, using the provided CreateGitHubAppConnectionJSONBody2Credentials1
-func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) MergeCreateGitHubAppConnectionJSONBody2Credentials1(v CreateGitHubAppConnectionJSONBody2Credentials1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateGitHubSecretSync404JSONResponseBodyStatusCode defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync404JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CreateGitHubSecretSync422JSONResponseBodyStatusCode defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync422JSONResponseBodyStatusCode float32
-func (t CreateGitHubAppConnectionJSONBody_2_Credentials) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// CreateGitHubSecretSync500JSONResponseBodyStatusCode defines parameters for CreateGitHubSecretSync.
+type CreateGitHubSecretSync500JSONResponseBodyStatusCode float32
-func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+// DeleteGitHubSecretSyncParams defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSyncParams struct {
+ // RemoveSecrets Whether previously synced secrets should be removed prior to deletion.
+ RemoveSecrets *DeleteGitHubSecretSyncParamsRemoveSecrets `form:"removeSecrets,omitempty" json:"removeSecrets,omitempty"`
}
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// DeleteGitHubSecretSyncParamsRemoveSecrets defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSyncParamsRemoveSecrets string
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp string
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 struct {
+ // Org The name of the GitHub organization.
+ Org string `json:"org"`
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
- err := json.Unmarshal(t.union, &body)
- return body, err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope `json:"scope"`
+ SelectedRepositoryIds *[]float32 `json:"selectedRepositoryIds,omitempty"`
+ Visibility DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility `json:"visibility"`
}
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope string
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 struct {
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope `json:"scope"`
}
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope string
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 struct {
+ // Env The name of the GitHub environment.
+ Env string `json:"env"`
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
- err := json.Unmarshal(t.union, &body)
- return body, err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope `json:"scope"`
}
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope string
+
+// DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig struct {
+ union json.RawMessage
}
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// DeleteGitHubSecretSync400JSONResponseBodyStatusCode defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync400JSONResponseBodyStatusCode float32
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// DeleteGitHubSecretSync401JSONResponseBodyStatusCode defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync401JSONResponseBodyStatusCode float32
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// DeleteGitHubSecretSync403JSONResponseBodyStatusCode defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync403JSONResponseBodyStatusCode float32
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// DeleteGitHubSecretSync404JSONResponseBodyStatusCode defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync404JSONResponseBodyStatusCode float32
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteGitHubSecretSync422JSONResponseBodyStatusCode defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync422JSONResponseBodyStatusCode float32
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteGitHubSecretSync500JSONResponseBodyStatusCode defines parameters for DeleteGitHubSecretSync.
+type DeleteGitHubSecretSync500JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp string
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestination defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestination string
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 struct {
+ // Org The name of the GitHub organization.
+ Org string `json:"org"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope `json:"scope"`
+ SelectedRepositoryIds *[]float32 `json:"selectedRepositoryIds,omitempty"`
+ Visibility GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility `json:"visibility"`
}
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility string
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 struct {
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0
- err := json.Unmarshal(t.union, &body)
- return body, err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope `json:"scope"`
}
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope string
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 struct {
+ // Env The name of the GitHub environment.
+ Env string `json:"env"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope `json:"scope"`
}
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig struct {
+ union json.RawMessage
}
-// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2, error) {
- var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior string
-// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// GetGitHubSecretSync400JSONResponseBodyStatusCode defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync400JSONResponseBodyStatusCode float32
-// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// GetGitHubSecretSync401JSONResponseBodyStatusCode defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync401JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// GetGitHubSecretSync403JSONResponseBodyStatusCode defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync403JSONResponseBodyStatusCode float32
-func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// GetGitHubSecretSync404JSONResponseBodyStatusCode defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync404JSONResponseBodyStatusCode float32
-func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// GetGitHubSecretSync422JSONResponseBodyStatusCode defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync422JSONResponseBodyStatusCode float32
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// GetGitHubSecretSync500JSONResponseBodyStatusCode defines parameters for GetGitHubSecretSync.
+type GetGitHubSecretSync500JSONResponseBodyStatusCode float32
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp string
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0 defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0 struct {
+ // Org The name of the GitHub organization.
+ Org string `json:"org"`
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
- err := json.Unmarshal(t.union, &body)
- return body, err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope `json:"scope"`
+ SelectedRepositoryIds *[]float32 `json:"selectedRepositoryIds,omitempty"`
+ Visibility RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility `json:"visibility"`
}
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Scope string
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0Visibility string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1 defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1 struct {
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope `json:"scope"`
}
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1Scope string
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2 defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2 struct {
+ // Env The name of the GitHub environment.
+ Env string `json:"env"`
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
- err := json.Unmarshal(t.union, &body)
- return body, err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope `json:"scope"`
}
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2Scope string
+
+// RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig struct {
+ union json.RawMessage
}
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode float32
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode float32
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode float32
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode float32
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode float32
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode defines parameters for RemoveGitHubSecretSyncSecrets.
+type RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp string
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination string
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 struct {
+ // Org The name of the GitHub organization.
+ Org string `json:"org"`
+
+ // Scope The GitHub scope that secrets should be synced to
+ Scope SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope `json:"scope"`
+ SelectedRepositoryIds *[]float32 `json:"selectedRepositoryIds,omitempty"`
+ Visibility SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility `json:"visibility"`
}
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Scope string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0Visibility string
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 struct {
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
- err := json.Unmarshal(t.union, &body)
- return body, err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope `json:"scope"`
}
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1Scope string
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 struct {
+ // Env The name of the GitHub environment.
+ Env string `json:"env"`
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+ // Owner The name of the GitHub account owner of the repository.
+ Owner string `json:"owner"`
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+ // Repo The name of the GitHub repository.
+ Repo string `json:"repo"`
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+ // Scope The GitHub scope that secrets should be synced to
+ Scope SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope `json:"scope"`
}
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2Scope string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
+// SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig struct {
+ union json.RawMessage
}
-// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2, error) {
- var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior string
-// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// SyncGitHubSecretSync400JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync400JSONResponseBodyStatusCode float32
-// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// SyncGitHubSecretSync401JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync401JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// SyncGitHubSecretSync403JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync403JSONResponseBodyStatusCode float32
-func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// SyncGitHubSecretSync404JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync404JSONResponseBodyStatusCode float32
-func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// SyncGitHubSecretSync422JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync422JSONResponseBodyStatusCode float32
-// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0, error) {
- var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// SyncGitHubSecretSync500JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.
+type SyncGitHubSecretSync500JSONResponseBodyStatusCode float32
-// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CreateOrganizationJSONBody defines parameters for CreateOrganization.
+type CreateOrganizationJSONBody struct {
+ Name string `json:"name"`
}
-// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateOrganization400JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization400JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CreateOrganization401JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization401JSONResponseBodyStatusCode float32
-// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1, error) {
- var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// CreateOrganization403JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization403JSONResponseBodyStatusCode float32
-// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// CreateOrganization404JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization404JSONResponseBodyStatusCode float32
-// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CreateOrganization422JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization422JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CreateOrganization500JSONResponseBodyStatusCode defines parameters for CreateOrganization.
+type CreateOrganization500JSONResponseBodyStatusCode float32
-func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// DeleteOrganization400JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization400JSONResponseBodyStatusCode float32
-func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// DeleteOrganization401JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization401JSONResponseBodyStatusCode float32
-// AsCreateProjectMachineIdentityJSONBodyRoles0 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles0
-func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles0() (CreateProjectMachineIdentityJSONBodyRoles0, error) {
- var body CreateProjectMachineIdentityJSONBodyRoles0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// DeleteOrganization403JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization403JSONResponseBodyStatusCode float32
-// FromCreateProjectMachineIdentityJSONBodyRoles0 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles0
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// DeleteOrganization404JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization404JSONResponseBodyStatusCode float32
-// MergeCreateProjectMachineIdentityJSONBodyRoles0 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles0
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// DeleteOrganization422JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization422JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.
+type DeleteOrganization500JSONResponseBodyStatusCode float32
-// AsCreateProjectMachineIdentityJSONBodyRoles1 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles1
-func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles1() (CreateProjectMachineIdentityJSONBodyRoles1, error) {
- var body CreateProjectMachineIdentityJSONBodyRoles1
- err := json.Unmarshal(t.union, &body)
- return body, err
+// LoginV3JSONBody defines parameters for LoginV3.
+type LoginV3JSONBody struct {
+ CaptchaToken *string `json:"captchaToken,omitempty"`
+ Email string `json:"email"`
+ Password string `json:"password"`
}
-// FromCreateProjectMachineIdentityJSONBodyRoles1 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles1
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// LoginV3400JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3400JSONResponseBodyStatusCode float32
-// MergeCreateProjectMachineIdentityJSONBodyRoles1 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles1
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// LoginV3401JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3401JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// LoginV3403JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3403JSONResponseBodyStatusCode float32
-func (t CreateProjectMachineIdentityJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// LoginV3404JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3404JSONResponseBodyStatusCode float32
-func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// LoginV3422JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3422JSONResponseBodyStatusCode float32
-// AsCreateProjectIdentityMembershipJSONBodyRoles0 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles0
-func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles0() (CreateProjectIdentityMembershipJSONBodyRoles0, error) {
- var body CreateProjectIdentityMembershipJSONBodyRoles0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// LoginV3500JSONResponseBodyStatusCode defines parameters for LoginV3.
+type LoginV3500JSONResponseBodyStatusCode float32
-// FromCreateProjectIdentityMembershipJSONBodyRoles0 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles0
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// SelectOrganizationV3JSONBody defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3JSONBody struct {
+ OrganizationId string `json:"organizationId"`
+ UserAgent *SelectOrganizationV3JSONBodyUserAgent `json:"userAgent,omitempty"`
}
-// MergeCreateProjectIdentityMembershipJSONBodyRoles0 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles0
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// SelectOrganizationV3JSONBodyUserAgent defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3JSONBodyUserAgent string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// SelectOrganizationV3400JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3400JSONResponseBodyStatusCode float32
-// AsCreateProjectIdentityMembershipJSONBodyRoles1 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles1
-func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles1() (CreateProjectIdentityMembershipJSONBodyRoles1, error) {
- var body CreateProjectIdentityMembershipJSONBodyRoles1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// SelectOrganizationV3401JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3401JSONResponseBodyStatusCode float32
-// FromCreateProjectIdentityMembershipJSONBodyRoles1 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles1
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// SelectOrganizationV3403JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3403JSONResponseBodyStatusCode float32
-// MergeCreateProjectIdentityMembershipJSONBodyRoles1 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles1
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// SelectOrganizationV3404JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3404JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// SelectOrganizationV3422JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3422JSONResponseBodyStatusCode float32
-func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// SelectOrganizationV3500JSONResponseBodyStatusCode defines parameters for SelectOrganizationV3.
+type SelectOrganizationV3500JSONResponseBodyStatusCode float32
-func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+// CompleteAccountSignupV3JSONBody defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody struct {
+ union json.RawMessage
}
-// AsCompleteAccountSignupV3JSONBody0 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody0
-func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody0() (CompleteAccountSignupV3JSONBody0, error) {
- var body CompleteAccountSignupV3JSONBody0
- err := json.Unmarshal(t.union, &body)
- return body, err
+// CompleteAccountSignupV3JSONBody0 defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody0 struct {
+ AttributionSource *string `json:"attributionSource,omitempty"`
+ Email string `json:"email"`
+ FirstName string `json:"firstName"`
+ HubspotUtk *string `json:"hubspotUtk,omitempty"`
+ LastName *string `json:"lastName,omitempty"`
+ OrganizationName *string `json:"organizationName,omitempty"`
+ Password string `json:"password"`
+ Type CompleteAccountSignupV3JSONBody0Type `json:"type"`
}
-// FromCompleteAccountSignupV3JSONBody0 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody0
-func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// CompleteAccountSignupV3JSONBody0Type defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody0Type string
+
+// CompleteAccountSignupV3JSONBody1 defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody1 struct {
+ Code string `json:"code"`
+ HubspotUtk *string `json:"hubspotUtk,omitempty"`
+ Type CompleteAccountSignupV3JSONBody1Type `json:"type"`
}
-// MergeCompleteAccountSignupV3JSONBody0 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody0
-func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CompleteAccountSignupV3JSONBody1Type defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3JSONBody1Type string
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CompleteAccountSignupV3400JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3400JSONResponseBodyStatusCode float32
-// AsCompleteAccountSignupV3JSONBody1 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody1
-func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody1() (CompleteAccountSignupV3JSONBody1, error) {
- var body CompleteAccountSignupV3JSONBody1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// CompleteAccountSignupV3401JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3401JSONResponseBodyStatusCode float32
-// FromCompleteAccountSignupV3JSONBody1 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody1
-func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// CompleteAccountSignupV3403JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3403JSONResponseBodyStatusCode float32
-// MergeCompleteAccountSignupV3JSONBody1 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody1
-func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// CompleteAccountSignupV3404JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3404JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// CompleteAccountSignupV3422JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3422JSONResponseBodyStatusCode float32
-func (t CompleteAccountSignupV3JSONBody) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// CompleteAccountSignupV3500JSONResponseBodyStatusCode defines parameters for CompleteAccountSignupV3.
+type CompleteAccountSignupV3500JSONResponseBodyStatusCode float32
-func (t *CompleteAccountSignupV3JSONBody) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
+// BeginEmailSignupV3JSONBody defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3JSONBody struct {
+ CaptchaToken *string `json:"captchaToken,omitempty"`
+ Email openapi_types.Email `json:"email"`
}
-// AsCreateSecretV4200JSONResponseBody0 returns the union data inside the CreateSecretV4200JSONResponseBody as a CreateSecretV4200JSONResponseBody0
-func (t CreateSecretV4200JSONResponseBody) AsCreateSecretV4200JSONResponseBody0() (CreateSecretV4200JSONResponseBody0, error) {
- var body CreateSecretV4200JSONResponseBody0
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// BeginEmailSignupV3400JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3400JSONResponseBodyStatusCode float32
-// FromCreateSecretV4200JSONResponseBody0 overwrites any union data inside the CreateSecretV4200JSONResponseBody as the provided CreateSecretV4200JSONResponseBody0
-func (t *CreateSecretV4200JSONResponseBody) FromCreateSecretV4200JSONResponseBody0(v CreateSecretV4200JSONResponseBody0) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
-}
+// BeginEmailSignupV3401JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3401JSONResponseBodyStatusCode float32
-// MergeCreateSecretV4200JSONResponseBody0 performs a merge with any union data inside the CreateSecretV4200JSONResponseBody, using the provided CreateSecretV4200JSONResponseBody0
-func (t *CreateSecretV4200JSONResponseBody) MergeCreateSecretV4200JSONResponseBody0(v CreateSecretV4200JSONResponseBody0) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// BeginEmailSignupV3403JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3403JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// BeginEmailSignupV3404JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3404JSONResponseBodyStatusCode float32
-// AsCreateSecretV4200JSONResponseBody1 returns the union data inside the CreateSecretV4200JSONResponseBody as a CreateSecretV4200JSONResponseBody1
-func (t CreateSecretV4200JSONResponseBody) AsCreateSecretV4200JSONResponseBody1() (CreateSecretV4200JSONResponseBody1, error) {
- var body CreateSecretV4200JSONResponseBody1
- err := json.Unmarshal(t.union, &body)
- return body, err
-}
+// BeginEmailSignupV3422JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3422JSONResponseBodyStatusCode float32
-// FromCreateSecretV4200JSONResponseBody1 overwrites any union data inside the CreateSecretV4200JSONResponseBody as the provided CreateSecretV4200JSONResponseBody1
-func (t *CreateSecretV4200JSONResponseBody) FromCreateSecretV4200JSONResponseBody1(v CreateSecretV4200JSONResponseBody1) error {
- b, err := json.Marshal(v)
- t.union = b
- return err
+// BeginEmailSignupV3500JSONResponseBodyStatusCode defines parameters for BeginEmailSignupV3.
+type BeginEmailSignupV3500JSONResponseBodyStatusCode float32
+
+// VerifyEmailSignupV3JSONBody defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3JSONBody struct {
+ Code string `json:"code"`
+ Email openapi_types.Email `json:"email"`
}
-// MergeCreateSecretV4200JSONResponseBody1 performs a merge with any union data inside the CreateSecretV4200JSONResponseBody, using the provided CreateSecretV4200JSONResponseBody1
-func (t *CreateSecretV4200JSONResponseBody) MergeCreateSecretV4200JSONResponseBody1(v CreateSecretV4200JSONResponseBody1) error {
- b, err := json.Marshal(v)
- if err != nil {
- return err
- }
+// VerifyEmailSignupV3400JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3400JSONResponseBodyStatusCode float32
- merged, err := runtime.JSONMerge(t.union, b)
- t.union = merged
- return err
-}
+// VerifyEmailSignupV3401JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3401JSONResponseBodyStatusCode float32
-func (t CreateSecretV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
- b, err := t.union.MarshalJSON()
- return b, err
-}
+// VerifyEmailSignupV3403JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3403JSONResponseBodyStatusCode float32
-func (t *CreateSecretV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
- err := t.union.UnmarshalJSON(b)
- return err
-}
+// VerifyEmailSignupV3404JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3404JSONResponseBodyStatusCode float32
-// RequestEditorFn is the function signature for the RequestEditor callback function
-type RequestEditorFn func(ctx context.Context, req *http.Request) error
+// VerifyEmailSignupV3422JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3422JSONResponseBodyStatusCode float32
-// Doer performs HTTP requests.
-//
-// The standard http.Client implements this interface.
-type HttpRequestDoer interface {
- Do(req *http.Request) (*http.Response, error)
-}
+// VerifyEmailSignupV3500JSONResponseBodyStatusCode defines parameters for VerifyEmailSignupV3.
+type VerifyEmailSignupV3500JSONResponseBodyStatusCode float32
-// Client which conforms to the OpenAPI3 specification for this service.
-type Client struct {
- // The endpoint of the server conforming to this interface, with scheme,
- // https://api.deepmap.com for example. This can contain a path relative
- // to the server, such as https://api.deepmap.com/dev-test, and all the
- // paths in the swagger spec will be appended to the server.
- Server string
+// ListSecretsV4Params defines parameters for ListSecretsV4.
+type ListSecretsV4Params struct {
+ // MetadataFilter Unencrypted secret metadata key-value pairs used to filter secrets. Only metadata with unencrypted values is supported. When querying for multiple metadata pairs, the query is treated as an AND operation. Secret metadata format is key=value1,value=value2|key=value3,value=value4.
+ MetadataFilter *string `form:"metadataFilter,omitempty" json:"metadataFilter,omitempty"`
- // Doer for performing requests, typically a *http.Client with any
- // customized settings, such as certificate chains.
- Client HttpRequestDoer
+ // ProjectId The ID of the project to list secrets from.
+ ProjectId *string `form:"projectId,omitempty" json:"projectId,omitempty"`
- // A list of callbacks for modifying requests which are generated before sending over
- // the network.
- RequestEditors []RequestEditorFn
-}
+ // Environment The slug of the environment to list secrets from.
+ Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
-// ClientOption allows setting custom parameters during construction
-type ClientOption func(*Client) error
+ // SecretPath The secret path to list secrets from.
+ SecretPath *string `form:"secretPath,omitempty" json:"secretPath,omitempty"`
-// Creates a new Client, with reasonable defaults
-func NewClient(server string, opts ...ClientOption) (*Client, error) {
- // create a client with sane default values
- client := Client{
- Server: server,
- }
- // mutate client and add all optional params
- for _, o := range opts {
- if err := o(&client); err != nil {
- return nil, err
- }
- }
- // ensure the server URL always has a trailing slash
- if !strings.HasSuffix(client.Server, "/") {
- client.Server += "/"
- }
- // create httpClient, if not already present
- if client.Client == nil {
- client.Client = &http.Client{}
- }
- return &client, nil
-}
+ // ViewSecretValue Whether or not to retrieve the secret value.
+ ViewSecretValue *ListSecretsV4ParamsViewSecretValue `form:"viewSecretValue,omitempty" json:"viewSecretValue,omitempty"`
-// WithHTTPClient allows overriding the default Doer, which is
-// automatically created using http.Client. This is useful for tests.
-func WithHTTPClient(doer HttpRequestDoer) ClientOption {
- return func(c *Client) error {
- c.Client = doer
- return nil
- }
-}
+ // ExpandSecretReferences Whether or not to expand secret references.
+ ExpandSecretReferences *ListSecretsV4ParamsExpandSecretReferences `form:"expandSecretReferences,omitempty" json:"expandSecretReferences,omitempty"`
-// WithRequestEditorFn allows setting up a callback function, which will be
-// called right before sending the request. This can be used to mutate the request.
-func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
- return func(c *Client) error {
- c.RequestEditors = append(c.RequestEditors, fn)
- return nil
- }
-}
+ // Recursive Whether or not to fetch all secrets from the specified base path, and all of its subdirectories. Note, the max depth is 20 deep.
+ Recursive *ListSecretsV4ParamsRecursive `form:"recursive,omitempty" json:"recursive,omitempty"`
-// The interface specification for the client above.
-type ClientInterface interface {
+ // IncludePersonalOverrides Whether or not to include personal secrets in the response. When enabled, personal secrets will be included in the response. Shared secrets will still be included, but personal secrets will take priority, and the corresponding shared secrets will be replaced with the personal secrets.
+ IncludePersonalOverrides *ListSecretsV4ParamsIncludePersonalOverrides `form:"includePersonalOverrides,omitempty" json:"includePersonalOverrides,omitempty"`
- // GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
- GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // IncludeImports Weather to include imported secrets or not.
+ IncludeImports *ListSecretsV4ParamsIncludeImports `form:"includeImports,omitempty" json:"includeImports,omitempty"`
- // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
- // with any type of body and a specified content type.
- AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // TagSlugs The comma separated tag slugs to filter secrets.
+ TagSlugs *string `form:"tagSlugs,omitempty" json:"tagSlugs,omitempty"`
+}
- // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type.
- AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4ParamsViewSecretValue defines parameters for ListSecretsV4.
+type ListSecretsV4ParamsViewSecretValue string
- // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
- // with any type of body and a specified content type.
- UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4ParamsExpandSecretReferences defines parameters for ListSecretsV4.
+type ListSecretsV4ParamsExpandSecretReferences string
- // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type.
- UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4ParamsRecursive defines parameters for ListSecretsV4.
+type ListSecretsV4ParamsRecursive string
- // CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a GitHub Connection.
- CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4ParamsIncludePersonalOverrides defines parameters for ListSecretsV4.
+type ListSecretsV4ParamsIncludePersonalOverrides string
- // CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a GitHub Connection.
- CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4ParamsIncludeImports defines parameters for ListSecretsV4.
+type ListSecretsV4ParamsIncludeImports string
- // DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
- //
- // Delete the specified GitHub Connection.
- DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4400JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
+type ListSecretsV4400JSONResponseBodyStatusCode float32
- // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
- RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4401JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
+type ListSecretsV4401JSONResponseBodyStatusCode float32
- // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4403JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
+type ListSecretsV4403JSONResponseBodyStatusCode float32
- // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4404JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
+type ListSecretsV4404JSONResponseBodyStatusCode float32
- // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4422JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
+type ListSecretsV4422JSONResponseBodyStatusCode float32
- // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// ListSecretsV4500JSONResponseBodyStatusCode defines parameters for ListSecretsV4.
+type ListSecretsV4500JSONResponseBodyStatusCode float32
- // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
- // with any type of body and a specified content type.
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4JSONBody defines parameters for DeleteSecretV4.
+type DeleteSecretV4JSONBody struct {
+ // Environment The slug of the environment where the secret is located.
+ Environment string `json:"environment"`
- // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ProjectId The ID of the project where the secret is located.
+ ProjectId string `json:"projectId"`
- // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create machine identity.
- CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // SecretPath The path of the secret.
+ SecretPath *string `json:"secretPath,omitempty"`
- // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create machine identity.
- CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Type The type of the secret to delete.
+ Type *DeleteSecretV4JSONBodyType `json:"type,omitempty"`
+}
- // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
- // with any type of body and a specified content type.
- InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4JSONBodyType defines parameters for DeleteSecretV4.
+type DeleteSecretV4JSONBodyType string
- // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4200JSONResponseBody0 defines parameters for DeleteSecretV4.
+type DeleteSecretV4200JSONResponseBody0 struct {
+ Secret struct {
+ UnderscoreId string `json:"_id"`
+ Actor *struct {
+ ActorId *string `json:"actorId,omitempty"`
+ ActorType *string `json:"actorType,omitempty"`
+ GroupId *string `json:"groupId,omitempty"`
+ MembershipId *string `json:"membershipId,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"actor,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Environment string `json:"environment"`
+ Id string `json:"id"`
+ IsRotatedSecret *bool `json:"isRotatedSecret,omitempty"`
+ RotationId *openapi_types.UUID `json:"rotationId,omitempty"`
+ SecretComment string `json:"secretComment"`
+ SecretKey string `json:"secretKey"`
+ SecretReminderNote *string `json:"secretReminderNote,omitempty"`
+ SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
+ SecretValue string `json:"secretValue"`
+ SecretValueHidden bool `json:"secretValueHidden"`
+ SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version float32 `json:"version"`
+ Workspace string `json:"workspace"`
+ } `json:"secret"`
+}
- // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
- // with any type of body and a specified content type.
- VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4200JSONResponseBody1 defines parameters for DeleteSecretV4.
+type DeleteSecretV4200JSONResponseBody1 struct {
+ Approval struct {
+ BypassReason *string `json:"bypassReason,omitempty"`
+ CommitMessage *string `json:"commitMessage,omitempty"`
+ CommitterIdentityId *openapi_types.UUID `json:"committerIdentityId,omitempty"`
+ CommitterUserId *openapi_types.UUID `json:"committerUserId,omitempty"`
+ Conflicts interface{} `json:"conflicts,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ HasMerged *bool `json:"hasMerged,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsReplicated *bool `json:"isReplicated,omitempty"`
+ PolicyId openapi_types.UUID `json:"policyId"`
+ Slug string `json:"slug"`
+ Status *string `json:"status,omitempty"`
+ StatusChangedByUserId *openapi_types.UUID `json:"statusChangedByUserId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"approval"`
+}
- // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4200JSONResponseBody defines parameters for DeleteSecretV4.
+type DeleteSecretV4200JSONResponseBody struct {
+ union json.RawMessage
+}
- // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
- GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4400JSONResponseBodyStatusCode defines parameters for DeleteSecretV4.
+type DeleteSecretV4400JSONResponseBodyStatusCode float32
- // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4401JSONResponseBodyStatusCode defines parameters for DeleteSecretV4.
+type DeleteSecretV4401JSONResponseBodyStatusCode float32
- // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create a new project.
- CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4403JSONResponseBodyStatusCode defines parameters for DeleteSecretV4.
+type DeleteSecretV4403JSONResponseBodyStatusCode float32
- // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
- //
- // List identities in a project.
- ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4404JSONResponseBodyStatusCode defines parameters for DeleteSecretV4.
+type DeleteSecretV4404JSONResponseBodyStatusCode float32
- // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create an identity in a project.
- CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4422JSONResponseBodyStatusCode defines parameters for DeleteSecretV4.
+type DeleteSecretV4422JSONResponseBodyStatusCode float32
- // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create an identity in a project.
- CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// DeleteSecretV4500JSONResponseBodyStatusCode defines parameters for DeleteSecretV4.
+type DeleteSecretV4500JSONResponseBodyStatusCode float32
- // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
- // with any type of body and a specified content type.
- //
- // Invite members to project.
- InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4Params defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4Params struct {
+ // ProjectId The ID of the project to get the secret from.
+ ProjectId string `form:"projectId" json:"projectId"`
- // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Invite members to project.
- InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Environment The slug of the environment to get the secret from.
+ Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
- // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create project identity membership.
- CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // SecretPath The path of the secret to get.
+ SecretPath *string `form:"secretPath,omitempty" json:"secretPath,omitempty"`
- // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create project identity membership.
- CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Version The version of the secret to get.
+ Version *float32 `form:"version,omitempty" json:"version,omitempty"`
- // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
- // with any type of body and a specified content type.
- CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // Type The type of the secret to get.
+ Type *GetSecretByNameV4ParamsType `form:"type,omitempty" json:"type,omitempty"`
- // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
- // Takes a body of the `application/json` content type.
- CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ViewSecretValue Whether or not to retrieve the secret value.
+ ViewSecretValue *GetSecretByNameV4ParamsViewSecretValue `form:"viewSecretValue,omitempty" json:"viewSecretValue,omitempty"`
- // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
- DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ExpandSecretReferences Whether or not to expand secret references.
+ ExpandSecretReferences *GetSecretByNameV4ParamsExpandSecretReferences `form:"expandSecretReferences,omitempty" json:"expandSecretReferences,omitempty"`
- // LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
- // with any type of body and a specified content type.
- LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // IncludeImports Weather to include imported secrets or not.
+ IncludeImports *GetSecretByNameV4ParamsIncludeImports `form:"includeImports,omitempty" json:"includeImports,omitempty"`
+}
- // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
- // Takes a body of the `application/json` content type.
- LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4ParamsType defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4ParamsType string
- // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
- // with any type of body and a specified content type.
- SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4ParamsViewSecretValue defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4ParamsViewSecretValue string
- // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
- // Takes a body of the `application/json` content type.
- SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4ParamsExpandSecretReferences defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4ParamsExpandSecretReferences string
- // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
- // with any type of body and a specified content type.
- CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4ParamsIncludeImports defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4ParamsIncludeImports string
- // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
- // Takes a body of the `application/json` content type.
- CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4400JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4400JSONResponseBodyStatusCode float32
- // BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
- BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4401JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4401JSONResponseBodyStatusCode float32
- // BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type.
- BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4403JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4403JSONResponseBodyStatusCode float32
- // VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
- VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4404JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4404JSONResponseBodyStatusCode float32
- // VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type.
- VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4422JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4422JSONResponseBodyStatusCode float32
- // ListSecretsV4 performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
- //
- // List secrets.
- ListSecretsV4(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+// GetSecretByNameV4500JSONResponseBodyStatusCode defines parameters for GetSecretByNameV4.
+type GetSecretByNameV4500JSONResponseBodyStatusCode float32
- // GetSecretByNameV4 performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
- //
- // Get a secret by name.
- GetSecretByNameV4(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
+// CreateSecretV4JSONBody defines parameters for CreateSecretV4.
+type CreateSecretV4JSONBody struct {
+ // Environment The slug of the environment to create the secret in.
+ Environment string `json:"environment"`
- // CreateSecretV4WithBody performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create secret.
- CreateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // ProjectId The ID of the project to create the secret in.
+ ProjectId string `json:"projectId"`
- // CreateSecretV4 performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type.
- //
- // Create secret.
- CreateSecretV4(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-}
+ // SecretComment Attach a comment to the secret.
+ SecretComment *string `json:"secretComment,omitempty"`
+ SecretMetadata *[]struct {
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ Key string `json:"key"`
+ Value *string `json:"value,omitempty"`
+ } `json:"secretMetadata,omitempty"`
-// GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
-func (c *Client) GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetServerStatusRequest(c.Server)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+ // SecretPath The path to create the secret in.
+ SecretPath *string `json:"secretPath,omitempty"`
-// AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAdminBootstrapRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+ // SecretReminderNote Note to be attached in notification email.
+ SecretReminderNote *string `json:"secretReminderNote,omitempty"`
-// AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAdminBootstrapRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+ // SecretReminderRepeatDays Interval for secret rotation notifications, measured in days.
+ SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
-// UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAdminConfigRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+ // SecretValue The value of the secret to create.
+ SecretValue string `json:"secretValue"`
-// UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateAdminConfigRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+ // SkipMultilineEncoding Skip multiline encoding for the secret value.
+ SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
-// CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create a GitHub Connection.
-func (c *Client) CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateGitHubAppConnectionRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+ // TagIds The ID of the tags to be attached to the created secret.
+ TagIds *[]string `json:"tagIds,omitempty"`
-// CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create a GitHub Connection.
-func (c *Client) CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateGitHubAppConnectionRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+ // Type The type of the secret to create.
+ Type *CreateSecretV4JSONBodyType `json:"type,omitempty"`
}
-// DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
-//
-// Delete the specified GitHub Connection.
-func (c *Client) DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteGitHubAppConnectionRequest(c.Server, connectionId)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+// CreateSecretV4JSONBodyType defines parameters for CreateSecretV4.
+type CreateSecretV4JSONBodyType string
-// RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
-func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewRefreshAuthTokenRequest(c.Server)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// CreateSecretV4200JSONResponseBody0 defines parameters for CreateSecretV4.
+type CreateSecretV4200JSONResponseBody0 struct {
+ Secret struct {
+ UnderscoreId string `json:"_id"`
+ Actor *struct {
+ ActorId *string `json:"actorId,omitempty"`
+ ActorType *string `json:"actorType,omitempty"`
+ GroupId *string `json:"groupId,omitempty"`
+ MembershipId *string `json:"membershipId,omitempty"`
+ Name *string `json:"name,omitempty"`
+ } `json:"actor,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Environment string `json:"environment"`
+ Id string `json:"id"`
+ IsRotatedSecret *bool `json:"isRotatedSecret,omitempty"`
+ RotationId *openapi_types.UUID `json:"rotationId,omitempty"`
+ SecretComment string `json:"secretComment"`
+ SecretKey string `json:"secretKey"`
+ SecretReminderNote *string `json:"secretReminderNote,omitempty"`
+ SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`
+ SecretValue string `json:"secretValue"`
+ SkipMultilineEncoding *bool `json:"skipMultilineEncoding,omitempty"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version float32 `json:"version"`
+ Workspace string `json:"workspace"`
+ } `json:"secret"`
}
-// AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
-// with any type of body and a specified content type.
-//
-// Attach Universal Auth configuration onto machine identity.
-func (c *Client) AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAttachUniversalAuthRequestWithBody(c.Server, identityId, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// CreateSecretV4200JSONResponseBody1 defines parameters for CreateSecretV4.
+type CreateSecretV4200JSONResponseBody1 struct {
+ Approval struct {
+ BypassReason *string `json:"bypassReason,omitempty"`
+ CommitMessage *string `json:"commitMessage,omitempty"`
+ CommitterIdentityId *openapi_types.UUID `json:"committerIdentityId,omitempty"`
+ CommitterUserId *openapi_types.UUID `json:"committerUserId,omitempty"`
+ Conflicts interface{} `json:"conflicts,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ FolderId openapi_types.UUID `json:"folderId"`
+ HasMerged *bool `json:"hasMerged,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ IsReplicated *bool `json:"isReplicated,omitempty"`
+ PolicyId openapi_types.UUID `json:"policyId"`
+ Slug string `json:"slug"`
+ Status *string `json:"status,omitempty"`
+ StatusChangedByUserId *openapi_types.UUID `json:"statusChangedByUserId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"approval"`
}
-// AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Attach Universal Auth configuration onto machine identity.
-func (c *Client) AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewAttachUniversalAuthRequest(c.Server, identityId, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// CreateSecretV4200JSONResponseBody defines parameters for CreateSecretV4.
+type CreateSecretV4200JSONResponseBody struct {
+ union json.RawMessage
}
-// CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create Universal Auth Client Secret for machine identity.
-func (c *Client) CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateUniversalAuthClientSecretRequestWithBody(c.Server, identityId, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+// CreateSecretV4400JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
+type CreateSecretV4400JSONResponseBodyStatusCode float32
-// CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create Universal Auth Client Secret for machine identity.
-func (c *Client) CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateUniversalAuthClientSecretRequest(c.Server, identityId, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+// CreateSecretV4401JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
+type CreateSecretV4401JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
-// with any type of body and a specified content type.
-//
-// Login with Universal Auth for machine identity.
-func (c *Client) LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginWithUniversalAuthRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
-}
+// CreateSecretV4403JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
+type CreateSecretV4403JSONResponseBodyStatusCode float32
-// LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Login with Universal Auth for machine identity.
-func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginWithUniversalAuthRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// CreateSecretV4404JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
+type CreateSecretV4404JSONResponseBodyStatusCode float32
+
+// CreateSecretV4422JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
+type CreateSecretV4422JSONResponseBodyStatusCode float32
+
+// CreateSecretV4500JSONResponseBodyStatusCode defines parameters for CreateSecretV4.
+type CreateSecretV4500JSONResponseBodyStatusCode float32
+
+// AdminBootstrapJSONRequestBody defines body for AdminBootstrap for application/json ContentType.
+type AdminBootstrapJSONRequestBody AdminBootstrapJSONBody
+
+// UpdateAdminConfigJSONRequestBody defines body for UpdateAdminConfig for application/json ContentType.
+type UpdateAdminConfigJSONRequestBody UpdateAdminConfigJSONBody
+
+// CreateGitHubAppConnectionJSONRequestBody defines body for CreateGitHubAppConnection for application/json ContentType.
+type CreateGitHubAppConnectionJSONRequestBody CreateGitHubAppConnectionJSONBody
+
+// AttachUniversalAuthJSONRequestBody defines body for AttachUniversalAuth for application/json ContentType.
+type AttachUniversalAuthJSONRequestBody AttachUniversalAuthJSONBody
+
+// CreateUniversalAuthClientSecretJSONRequestBody defines body for CreateUniversalAuthClientSecret for application/json ContentType.
+type CreateUniversalAuthClientSecretJSONRequestBody CreateUniversalAuthClientSecretJSONBody
+
+// LoginWithUniversalAuthJSONRequestBody defines body for LoginWithUniversalAuth for application/json ContentType.
+type LoginWithUniversalAuthJSONRequestBody LoginWithUniversalAuthJSONBody
+
+// CreateMachineIdentityJSONRequestBody defines body for CreateMachineIdentity for application/json ContentType.
+type CreateMachineIdentityJSONRequestBody CreateMachineIdentityJSONBody
+
+// InviteUsersToOrganizationJSONRequestBody defines body for InviteUsersToOrganization for application/json ContentType.
+type InviteUsersToOrganizationJSONRequestBody InviteUsersToOrganizationJSONBody
+
+// VerifyUserToOrganizationJSONRequestBody defines body for VerifyUserToOrganization for application/json ContentType.
+type VerifyUserToOrganizationJSONRequestBody VerifyUserToOrganizationJSONBody
+
+// CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
+type CreateProjectJSONRequestBody CreateProjectJSONBody
+
+// CreateProjectMachineIdentityJSONRequestBody defines body for CreateProjectMachineIdentity for application/json ContentType.
+type CreateProjectMachineIdentityJSONRequestBody CreateProjectMachineIdentityJSONBody
+
+// InviteProjectMembersJSONRequestBody defines body for InviteProjectMembers for application/json ContentType.
+type InviteProjectMembersJSONRequestBody InviteProjectMembersJSONBody
+
+// CreateProjectIdentityMembershipJSONRequestBody defines body for CreateProjectIdentityMembership for application/json ContentType.
+type CreateProjectIdentityMembershipJSONRequestBody CreateProjectIdentityMembershipJSONBody
+
+// CreateGitHubSecretSyncJSONRequestBody defines body for CreateGitHubSecretSync for application/json ContentType.
+type CreateGitHubSecretSyncJSONRequestBody CreateGitHubSecretSyncJSONBody
+
+// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
+type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody
+
+// LoginV3JSONRequestBody defines body for LoginV3 for application/json ContentType.
+type LoginV3JSONRequestBody LoginV3JSONBody
+
+// SelectOrganizationV3JSONRequestBody defines body for SelectOrganizationV3 for application/json ContentType.
+type SelectOrganizationV3JSONRequestBody SelectOrganizationV3JSONBody
+
+// CompleteAccountSignupV3JSONRequestBody defines body for CompleteAccountSignupV3 for application/json ContentType.
+type CompleteAccountSignupV3JSONRequestBody CompleteAccountSignupV3JSONBody
+
+// BeginEmailSignupV3JSONRequestBody defines body for BeginEmailSignupV3 for application/json ContentType.
+type BeginEmailSignupV3JSONRequestBody BeginEmailSignupV3JSONBody
+
+// VerifyEmailSignupV3JSONRequestBody defines body for VerifyEmailSignupV3 for application/json ContentType.
+type VerifyEmailSignupV3JSONRequestBody VerifyEmailSignupV3JSONBody
+
+// DeleteSecretV4JSONRequestBody defines body for DeleteSecretV4 for application/json ContentType.
+type DeleteSecretV4JSONRequestBody DeleteSecretV4JSONBody
+
+// CreateSecretV4JSONRequestBody defines body for CreateSecretV4 for application/json ContentType.
+type CreateSecretV4JSONRequestBody CreateSecretV4JSONBody
+
+// AsCreateGitHubAppConnectionJSONBody0 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody0
+func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody0() (CreateGitHubAppConnectionJSONBody0, error) {
+ var body CreateGitHubAppConnectionJSONBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create machine identity.
-func (c *Client) CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateMachineIdentityRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// FromCreateGitHubAppConnectionJSONBody0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody0
+func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody0(v CreateGitHubAppConnectionJSONBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create machine identity.
-func (c *Client) CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateMachineIdentityRequest(c.Server, body)
+// MergeCreateGitHubAppConnectionJSONBody0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody0
+func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody0(v CreateGitHubAppConnectionJSONBody0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return err
}
- return c.Client.Do(req)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteUsersToOrganizationRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// AsCreateGitHubAppConnectionJSONBody1 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody1
+func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody1() (CreateGitHubAppConnectionJSONBody1, error) {
+ var body CreateGitHubAppConnectionJSONBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteUsersToOrganizationRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// FromCreateGitHubAppConnectionJSONBody1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody1
+func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody1(v CreateGitHubAppConnectionJSONBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyUserToOrganizationRequestWithBody(c.Server, contentType, body)
+// MergeCreateGitHubAppConnectionJSONBody1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody1
+func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody1(v CreateGitHubAppConnectionJSONBody1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return err
}
- return c.Client.Do(req)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyUserToOrganizationRequest(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// AsCreateGitHubAppConnectionJSONBody2 returns the union data inside the CreateGitHubAppConnectionJSONBody as a CreateGitHubAppConnectionJSONBody2
+func (t CreateGitHubAppConnectionJSONBody) AsCreateGitHubAppConnectionJSONBody2() (CreateGitHubAppConnectionJSONBody2, error) {
+ var body CreateGitHubAppConnectionJSONBody2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
-func (c *Client) GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrganizationPlanRequest(c.Server, organizationId, params)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// FromCreateGitHubAppConnectionJSONBody2 overwrites any union data inside the CreateGitHubAppConnectionJSONBody as the provided CreateGitHubAppConnectionJSONBody2
+func (t *CreateGitHubAppConnectionJSONBody) FromCreateGitHubAppConnectionJSONBody2(v CreateGitHubAppConnectionJSONBody2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create a new project.
-func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body)
+// MergeCreateGitHubAppConnectionJSONBody2 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody, using the provided CreateGitHubAppConnectionJSONBody2
+func (t *CreateGitHubAppConnectionJSONBody) MergeCreateGitHubAppConnectionJSONBody2(v CreateGitHubAppConnectionJSONBody2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return err
}
- return c.Client.Do(req)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create a new project.
-func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectRequest(c.Server, body)
+func (t CreateGitHubAppConnectionJSONBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
if err != nil {
return nil, err
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ object := make(map[string]json.RawMessage)
+ if t.union != nil {
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return nil, err
+ }
}
- return c.Client.Do(req)
-}
-// ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
-//
-// List identities in a project.
-func (c *Client) ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListProjectMachineIdentitiesRequest(c.Server, projectId, params)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ if t.Description != nil {
+ object["description"], err = json.Marshal(t.Description)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'description': %w", err)
+ }
}
- return c.Client.Do(req)
-}
-// CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create an identity in a project.
-func (c *Client) CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectMachineIdentityRequestWithBody(c.Server, projectId, contentType, body)
- if err != nil {
- return nil, err
+ if t.GatewayId != nil {
+ object["gatewayId"], err = json.Marshal(t.GatewayId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'gatewayId': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if t.GatewayPoolId != nil {
+ object["gatewayPoolId"], err = json.Marshal(t.GatewayPoolId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'gatewayPoolId': %w", err)
+ }
}
- return c.Client.Do(req)
-}
-// CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create an identity in a project.
-func (c *Client) CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectMachineIdentityRequest(c.Server, projectId, body)
- if err != nil {
- return nil, err
+ if t.IsAutoRotationEnabled != nil {
+ object["isAutoRotationEnabled"], err = json.Marshal(t.IsAutoRotationEnabled)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'isAutoRotationEnabled': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if t.IsPlatformManagedCredentials != nil {
+ object["isPlatformManagedCredentials"], err = json.Marshal(t.IsPlatformManagedCredentials)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'isPlatformManagedCredentials': %w", err)
+ }
}
- return c.Client.Do(req)
-}
-// InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
-// with any type of body and a specified content type.
-//
-// Invite members to project.
-func (c *Client) InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteProjectMembersRequestWithBody(c.Server, projectId, contentType, body)
+ object["name"], err = json.Marshal(t.Name)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return nil, fmt.Errorf("error marshaling 'name': %w", err)
}
- return c.Client.Do(req)
-}
-// InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Invite members to project.
-func (c *Client) InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInviteProjectMembersRequest(c.Server, projectId, body)
- if err != nil {
- return nil, err
+ if t.ProjectId != nil {
+ object["projectId"], err = json.Marshal(t.ProjectId)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'projectId': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if t.Rotation != nil {
+ object["rotation"], err = json.Marshal(t.Rotation)
+ if err != nil {
+ return nil, fmt.Errorf("error marshaling 'rotation': %w", err)
+ }
}
- return c.Client.Do(req)
+ b, err = json.Marshal(object)
+ return b, err
}
-// CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create project identity membership.
-func (c *Client) CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectIdentityMembershipRequestWithBody(c.Server, projectId, identityId, contentType, body)
+func (t *CreateGitHubAppConnectionJSONBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
if err != nil {
- return nil, err
+ return err
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ object := make(map[string]json.RawMessage)
+ err = json.Unmarshal(b, &object)
+ if err != nil {
+ return err
}
- return c.Client.Do(req)
-}
-// CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create project identity membership.
-func (c *Client) CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateProjectIdentityMembershipRequest(c.Server, projectId, identityId, body)
- if err != nil {
- return nil, err
+ if raw, found := object["description"]; found {
+ err = json.Unmarshal(raw, &t.Description)
+ if err != nil {
+ return fmt.Errorf("error reading 'description': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if raw, found := object["gatewayId"]; found {
+ err = json.Unmarshal(raw, &t.GatewayId)
+ if err != nil {
+ return fmt.Errorf("error reading 'gatewayId': %w", err)
+ }
}
- return c.Client.Do(req)
-}
-// CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationRequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
+ if raw, found := object["gatewayPoolId"]; found {
+ err = json.Unmarshal(raw, &t.GatewayPoolId)
+ if err != nil {
+ return fmt.Errorf("error reading 'gatewayPoolId': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if raw, found := object["isAutoRotationEnabled"]; found {
+ err = json.Unmarshal(raw, &t.IsAutoRotationEnabled)
+ if err != nil {
+ return fmt.Errorf("error reading 'isAutoRotationEnabled': %w", err)
+ }
}
- return c.Client.Do(req)
-}
-// CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationRequest(c.Server, body)
- if err != nil {
- return nil, err
+ if raw, found := object["isPlatformManagedCredentials"]; found {
+ err = json.Unmarshal(raw, &t.IsPlatformManagedCredentials)
+ if err != nil {
+ return fmt.Errorf("error reading 'isPlatformManagedCredentials': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if raw, found := object["name"]; found {
+ err = json.Unmarshal(raw, &t.Name)
+ if err != nil {
+ return fmt.Errorf("error reading 'name': %w", err)
+ }
}
- return c.Client.Do(req)
-}
-// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
-func (c *Client) DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteOrganizationRequest(c.Server, organizationId)
- if err != nil {
- return nil, err
+ if raw, found := object["projectId"]; found {
+ err = json.Unmarshal(raw, &t.ProjectId)
+ if err != nil {
+ return fmt.Errorf("error reading 'projectId': %w", err)
+ }
}
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+
+ if raw, found := object["rotation"]; found {
+ err = json.Unmarshal(raw, &t.Rotation)
+ if err != nil {
+ return fmt.Errorf("error reading 'rotation': %w", err)
+ }
}
- return c.Client.Do(req)
+
+ return err
}
-// LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginV3RequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// AsCreateGitHubAppConnectionJSONBodyRotation0 returns the union data inside the CreateGitHubAppConnectionJSONBody_Rotation as a CreateGitHubAppConnectionJSONBodyRotation0
+func (t CreateGitHubAppConnectionJSONBody_Rotation) AsCreateGitHubAppConnectionJSONBodyRotation0() (CreateGitHubAppConnectionJSONBodyRotation0, error) {
+ var body CreateGitHubAppConnectionJSONBodyRotation0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewLoginV3Request(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// FromCreateGitHubAppConnectionJSONBodyRotation0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_Rotation as the provided CreateGitHubAppConnectionJSONBodyRotation0
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) FromCreateGitHubAppConnectionJSONBodyRotation0(v CreateGitHubAppConnectionJSONBodyRotation0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewSelectOrganizationV3RequestWithBody(c.Server, contentType, body)
+// MergeCreateGitHubAppConnectionJSONBodyRotation0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_Rotation, using the provided CreateGitHubAppConnectionJSONBodyRotation0
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) MergeCreateGitHubAppConnectionJSONBodyRotation0(v CreateGitHubAppConnectionJSONBodyRotation0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return err
}
- return c.Client.Do(req)
-}
-// SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewSelectOrganizationV3Request(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCompleteAccountSignupV3RequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// AsCreateGitHubAppConnectionJSONBodyRotation1 returns the union data inside the CreateGitHubAppConnectionJSONBody_Rotation as a CreateGitHubAppConnectionJSONBodyRotation1
+func (t CreateGitHubAppConnectionJSONBody_Rotation) AsCreateGitHubAppConnectionJSONBodyRotation1() (CreateGitHubAppConnectionJSONBodyRotation1, error) {
+ var body CreateGitHubAppConnectionJSONBodyRotation1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCompleteAccountSignupV3Request(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// FromCreateGitHubAppConnectionJSONBodyRotation1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_Rotation as the provided CreateGitHubAppConnectionJSONBodyRotation1
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) FromCreateGitHubAppConnectionJSONBodyRotation1(v CreateGitHubAppConnectionJSONBodyRotation1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewBeginEmailSignupV3RequestWithBody(c.Server, contentType, body)
+// MergeCreateGitHubAppConnectionJSONBodyRotation1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_Rotation, using the provided CreateGitHubAppConnectionJSONBodyRotation1
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) MergeCreateGitHubAppConnectionJSONBodyRotation1(v CreateGitHubAppConnectionJSONBodyRotation1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return err
}
- return c.Client.Do(req)
-}
-// BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewBeginEmailSignupV3Request(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
-// with any type of body and a specified content type.
-func (c *Client) VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyEmailSignupV3RequestWithBody(c.Server, contentType, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+func (t CreateGitHubAppConnectionJSONBody_Rotation) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
-// Takes a body of the `application/json` content type.
-func (c *Client) VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewVerifyEmailSignupV3Request(c.Server, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+func (t *CreateGitHubAppConnectionJSONBody_Rotation) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// ListSecretsV4 performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
-//
-// List secrets.
-func (c *Client) ListSecretsV4(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListSecretsV4Request(c.Server, params)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// AsCreateGitHubAppConnectionJSONBody0Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as a CreateGitHubAppConnectionJSONBody0Credentials0
+func (t CreateGitHubAppConnectionJSONBody_0_Credentials) AsCreateGitHubAppConnectionJSONBody0Credentials0() (CreateGitHubAppConnectionJSONBody0Credentials0, error) {
+ var body CreateGitHubAppConnectionJSONBody0Credentials0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// GetSecretByNameV4 performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
-//
-// Get a secret by name.
-func (c *Client) GetSecretByNameV4(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetSecretByNameV4Request(c.Server, secretName, params)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// FromCreateGitHubAppConnectionJSONBody0Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as the provided CreateGitHubAppConnectionJSONBody0Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) FromCreateGitHubAppConnectionJSONBody0Credentials0(v CreateGitHubAppConnectionJSONBody0Credentials0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// CreateSecretV4WithBody performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create secret.
-func (c *Client) CreateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateSecretV4RequestWithBody(c.Server, secretName, contentType, body)
+// MergeCreateGitHubAppConnectionJSONBody0Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials, using the provided CreateGitHubAppConnectionJSONBody0Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) MergeCreateGitHubAppConnectionJSONBody0Credentials0(v CreateGitHubAppConnectionJSONBody0Credentials0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
+ return err
}
- return c.Client.Do(req)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// CreateSecretV4 performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
-// Takes a body of the `application/json` content type.
-//
-// Create secret.
-func (c *Client) CreateSecretV4(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateSecretV4Request(c.Server, secretName, body)
- if err != nil {
- return nil, err
- }
- req = req.WithContext(ctx)
- if err := c.applyEditors(ctx, req, reqEditors); err != nil {
- return nil, err
- }
- return c.Client.Do(req)
+// AsCreateGitHubAppConnectionJSONBody0Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as a CreateGitHubAppConnectionJSONBody0Credentials1
+func (t CreateGitHubAppConnectionJSONBody_0_Credentials) AsCreateGitHubAppConnectionJSONBody0Credentials1() (CreateGitHubAppConnectionJSONBody0Credentials1, error) {
+ var body CreateGitHubAppConnectionJSONBody0Credentials1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewGetServerStatusRequest constructs an http.Request for the GetServerStatus method
-func NewGetServerStatusRequest(server string) (*http.Request, error) {
- var err error
+// FromCreateGitHubAppConnectionJSONBody0Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials as the provided CreateGitHubAppConnectionJSONBody0Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) FromCreateGitHubAppConnectionJSONBody0Credentials1(v CreateGitHubAppConnectionJSONBody0Credentials1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeCreateGitHubAppConnectionJSONBody0Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_0_Credentials, using the provided CreateGitHubAppConnectionJSONBody0Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) MergeCreateGitHubAppConnectionJSONBody0Credentials1(v CreateGitHubAppConnectionJSONBody0Credentials1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/api/status")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
+ return err
}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
+func (t CreateGitHubAppConnectionJSONBody_0_Credentials) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- return req, nil
+func (t *CreateGitHubAppConnectionJSONBody_0_Credentials) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body
-func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewAdminBootstrapRequestWithBody(server, "application/json", bodyReader)
+// AsCreateGitHubAppConnectionJSONBody1Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as a CreateGitHubAppConnectionJSONBody1Credentials0
+func (t CreateGitHubAppConnectionJSONBody_1_Credentials) AsCreateGitHubAppConnectionJSONBody1Credentials0() (CreateGitHubAppConnectionJSONBody1Credentials0, error) {
+ var body CreateGitHubAppConnectionJSONBody1Credentials0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewAdminBootstrapRequestWithBody constructs an http.Request for the AdminBootstrap method, with any body, and a specified content type
-func NewAdminBootstrapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// FromCreateGitHubAppConnectionJSONBody1Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as the provided CreateGitHubAppConnectionJSONBody1Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) FromCreateGitHubAppConnectionJSONBody1Credentials0(v CreateGitHubAppConnectionJSONBody1Credentials0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeCreateGitHubAppConnectionJSONBody1Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials, using the provided CreateGitHubAppConnectionJSONBody1Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) MergeCreateGitHubAppConnectionJSONBody1Credentials0(v CreateGitHubAppConnectionJSONBody1Credentials0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/admin/bootstrap")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnectionJSONBody1Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as a CreateGitHubAppConnectionJSONBody1Credentials1
+func (t CreateGitHubAppConnectionJSONBody_1_Credentials) AsCreateGitHubAppConnectionJSONBody1Credentials1() (CreateGitHubAppConnectionJSONBody1Credentials1, error) {
+ var body CreateGitHubAppConnectionJSONBody1Credentials1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// FromCreateGitHubAppConnectionJSONBody1Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials as the provided CreateGitHubAppConnectionJSONBody1Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) FromCreateGitHubAppConnectionJSONBody1Credentials1(v CreateGitHubAppConnectionJSONBody1Credentials1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnectionJSONBody1Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_1_Credentials, using the provided CreateGitHubAppConnectionJSONBody1Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) MergeCreateGitHubAppConnectionJSONBody1Credentials1(v CreateGitHubAppConnectionJSONBody1Credentials1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+func (t CreateGitHubAppConnectionJSONBody_1_Credentials) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewUpdateAdminConfigRequest calls the generic UpdateAdminConfig builder with application/json body
-func NewUpdateAdminConfigRequest(server string, body UpdateAdminConfigJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewUpdateAdminConfigRequestWithBody(server, "application/json", bodyReader)
+func (t *CreateGitHubAppConnectionJSONBody_1_Credentials) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewUpdateAdminConfigRequestWithBody constructs an http.Request for the UpdateAdminConfig method, with any body, and a specified content type
-func NewUpdateAdminConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// AsCreateGitHubAppConnectionJSONBody2Credentials0 returns the union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as a CreateGitHubAppConnectionJSONBody2Credentials0
+func (t CreateGitHubAppConnectionJSONBody_2_Credentials) AsCreateGitHubAppConnectionJSONBody2Credentials0() (CreateGitHubAppConnectionJSONBody2Credentials0, error) {
+ var body CreateGitHubAppConnectionJSONBody2Credentials0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- serverURL, err := url.Parse(server)
+// FromCreateGitHubAppConnectionJSONBody2Credentials0 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as the provided CreateGitHubAppConnectionJSONBody2Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) FromCreateGitHubAppConnectionJSONBody2Credentials0(v CreateGitHubAppConnectionJSONBody2Credentials0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnectionJSONBody2Credentials0 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials, using the provided CreateGitHubAppConnectionJSONBody2Credentials0
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) MergeCreateGitHubAppConnectionJSONBody2Credentials0(v CreateGitHubAppConnectionJSONBody2Credentials0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/admin/config")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnectionJSONBody2Credentials1 returns the union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as a CreateGitHubAppConnectionJSONBody2Credentials1
+func (t CreateGitHubAppConnectionJSONBody_2_Credentials) AsCreateGitHubAppConnectionJSONBody2Credentials1() (CreateGitHubAppConnectionJSONBody2Credentials1, error) {
+ var body CreateGitHubAppConnectionJSONBody2Credentials1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+// FromCreateGitHubAppConnectionJSONBody2Credentials1 overwrites any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials as the provided CreateGitHubAppConnectionJSONBody2Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) FromCreateGitHubAppConnectionJSONBody2Credentials1(v CreateGitHubAppConnectionJSONBody2Credentials1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnectionJSONBody2Credentials1 performs a merge with any union data inside the CreateGitHubAppConnectionJSONBody_2_Credentials, using the provided CreateGitHubAppConnectionJSONBody2Credentials1
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) MergeCreateGitHubAppConnectionJSONBody2Credentials1(v CreateGitHubAppConnectionJSONBody2Credentials1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+func (t CreateGitHubAppConnectionJSONBody_2_Credentials) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewCreateGitHubAppConnectionRequest calls the generic CreateGitHubAppConnection builder with application/json body
-func NewCreateGitHubAppConnectionRequest(server string, body CreateGitHubAppConnectionJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateGitHubAppConnectionRequestWithBody(server, "application/json", bodyReader)
+func (t *CreateGitHubAppConnectionJSONBody_2_Credentials) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewCreateGitHubAppConnectionRequestWithBody constructs an http.Request for the CreateGitHubAppConnection method, with any body, and a specified content type
-func NewCreateGitHubAppConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- serverURL, err := url.Parse(server)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/app-connections/github")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewDeleteGitHubAppConnectionRequest constructs an http.Request for the DeleteGitHubAppConnection method
-func NewDeleteGitHubAppConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
- var err error
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- var pathParam0 string
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/app-connections/github/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method
-func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {
- var err error
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/auth/token")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewAttachUniversalAuthRequest calls the generic AttachUniversalAuth builder with application/json body
-func NewAttachUniversalAuthRequest(server string, identityId string, body AttachUniversalAuthJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewAttachUniversalAuthRequestWithBody(server, identityId, "application/json", bodyReader)
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewAttachUniversalAuthRequestWithBody constructs an http.Request for the AttachUniversalAuth method, with any body, and a specified content type
-func NewAttachUniversalAuthRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/identities/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection0() (CreateGitHubAppConnection200JSONResponseBodyAppConnection0, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewCreateUniversalAuthClientSecretRequest calls the generic CreateUniversalAuthClientSecret builder with application/json body
-func NewCreateUniversalAuthClientSecretRequest(server string, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection0(v CreateGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewCreateUniversalAuthClientSecretRequestWithBody(server, identityId, "application/json", bodyReader)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewCreateUniversalAuthClientSecretRequestWithBody constructs an http.Request for the CreateUniversalAuthClientSecret method, with any body, and a specified content type
-func NewCreateUniversalAuthClientSecretRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection1() (CreateGitHubAppConnection200JSONResponseBodyAppConnection1, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection1(v CreateGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/identities/%s/client-secrets", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2 returns the union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as a CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) AsCreateGitHubAppConnection200JSONResponseBodyAppConnection2() (CreateGitHubAppConnection200JSONResponseBodyAppConnection2, error) {
+ var body CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2 overwrites any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection as the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) FromCreateGitHubAppConnection200JSONResponseBodyAppConnection2(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2 performs a merge with any union data inside the CreateGitHubAppConnection200JSONResponseBody_AppConnection, using the provided CreateGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) MergeCreateGitHubAppConnection200JSONResponseBodyAppConnection2(v CreateGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewLoginWithUniversalAuthRequest calls the generic LoginWithUniversalAuth builder with application/json body
-func NewLoginWithUniversalAuthRequest(server string, body LoginWithUniversalAuthJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewLoginWithUniversalAuthRequestWithBody(server, "application/json", bodyReader)
+func (t CreateGitHubAppConnection200JSONResponseBody_AppConnection) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewLoginWithUniversalAuthRequestWithBody constructs an http.Request for the LoginWithUniversalAuth method, with any body, and a specified content type
-func NewLoginWithUniversalAuthRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t *CreateGitHubAppConnection200JSONResponseBody_AppConnection) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/login")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewCreateMachineIdentityRequest calls the generic CreateMachineIdentity builder with application/json body
-func NewCreateMachineIdentityRequest(server string, body CreateMachineIdentityJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewCreateMachineIdentityRequestWithBody(server, "application/json", bodyReader)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewCreateMachineIdentityRequestWithBody constructs an http.Request for the CreateMachineIdentity method, with any body, and a specified content type
-func NewCreateMachineIdentityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_0_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/identities")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewInviteUsersToOrganizationRequest calls the generic InviteUsersToOrganization builder with application/json body
-func NewInviteUsersToOrganizationRequest(server string, body InviteUsersToOrganizationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewInviteUsersToOrganizationRequestWithBody(server, "application/json", bodyReader)
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewInviteUsersToOrganizationRequestWithBody constructs an http.Request for the InviteUsersToOrganization method, with any body, and a specified content type
-func NewInviteUsersToOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/invite-org/signup")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_1_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewVerifyUserToOrganizationRequest calls the generic VerifyUserToOrganization builder with application/json body
-func NewVerifyUserToOrganizationRequest(server string, body VerifyUserToOrganizationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewVerifyUserToOrganizationRequestWithBody(server, "application/json", bodyReader)
-}
-// NewVerifyUserToOrganizationRequestWithBody constructs an http.Request for the VerifyUserToOrganization method, with any body, and a specified content type
-func NewVerifyUserToOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v1/invite-org/verify")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2CredentialsInstanceType1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- return req, nil
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection_2_Credentials_InstanceType) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method
-func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*http.Request, error) {
- var err error
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection0() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection0, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection0
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection0(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/organizations/%s/plan", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection1() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection1, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection1
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection1(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
-
- if params.RefreshCache != nil {
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refreshCache", *params.RefreshCache, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
+// AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 returns the union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as a DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) AsDeleteGitHubAppConnection200JSONResponseBodyAppConnection2() (DeleteGitHubAppConnection200JSONResponseBodyAppConnection2, error) {
+ var body DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
+// FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 overwrites any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection as the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) FromDeleteGitHubAppConnection200JSONResponseBodyAppConnection2(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+// MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2 performs a merge with any union data inside the DeleteGitHubAppConnection200JSONResponseBody_AppConnection, using the provided DeleteGitHubAppConnection200JSONResponseBodyAppConnection2
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MergeDeleteGitHubAppConnection200JSONResponseBodyAppConnection2(v DeleteGitHubAppConnection200JSONResponseBodyAppConnection2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewCreateProjectRequest calls the generic CreateProject builder with application/json body
-func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectRequestWithBody(server, "application/json", bodyReader)
+func (t DeleteGitHubAppConnection200JSONResponseBody_AppConnection) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewCreateProjectRequestWithBody constructs an http.Request for the CreateProject method, with any body, and a specified content type
-func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+func (t *DeleteGitHubAppConnection200JSONResponseBody_AppConnection) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/projects")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0, error) {
+ var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewListProjectMachineIdentitiesRequest constructs an http.Request for the ListProjectMachineIdentities method
-func NewListProjectMachineIdentitiesRequest(server string, projectId string, params *ListProjectMachineIdentitiesParams) (*http.Request, error) {
- var err error
+// AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 returns the union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as a CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) AsCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1() (CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1, error) {
+ var body CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 overwrites any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy as the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) FromCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1 performs a merge with any union data inside the CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy, using the provided CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MergeCreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1(v CreateProject200JSONResponseBodyProjectDeletedEnvironmentsDeletedBy1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+func (t CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+func (t *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
+// AsCreateProjectMachineIdentityJSONBodyRoles0 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles0
+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles0() (CreateProjectMachineIdentityJSONBodyRoles0, error) {
+ var body CreateProjectMachineIdentityJSONBodyRoles0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- if params.Offset != nil {
+// FromCreateProjectMachineIdentityJSONBodyRoles0 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles0
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// MergeCreateProjectMachineIdentityJSONBodyRoles0 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles0
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles0(v CreateProjectMachineIdentityJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- if params.Limit != nil {
+// AsCreateProjectMachineIdentityJSONBodyRoles1 returns the union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as a CreateProjectMachineIdentityJSONBodyRoles1
+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) AsCreateProjectMachineIdentityJSONBodyRoles1() (CreateProjectMachineIdentityJSONBodyRoles1, error) {
+ var body CreateProjectMachineIdentityJSONBodyRoles1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// FromCreateProjectMachineIdentityJSONBodyRoles1 overwrites any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item as the provided CreateProjectMachineIdentityJSONBodyRoles1
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) FromCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- }
+// MergeCreateProjectMachineIdentityJSONBodyRoles1 performs a merge with any union data inside the CreateProjectMachineIdentityJSONBody_Roles_Item, using the provided CreateProjectMachineIdentityJSONBodyRoles1
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) MergeCreateProjectMachineIdentityJSONBodyRoles1(v CreateProjectMachineIdentityJSONBodyRoles1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- if params.Search != nil {
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+func (t CreateProjectMachineIdentityJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- }
+func (t *CreateProjectMachineIdentityJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
+// AsCreateProjectIdentityMembershipJSONBodyRoles0 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles0
+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles0() (CreateProjectIdentityMembershipJSONBodyRoles0, error) {
+ var body CreateProjectIdentityMembershipJSONBodyRoles0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+// FromCreateProjectIdentityMembershipJSONBodyRoles0 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles0
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeCreateProjectIdentityMembershipJSONBodyRoles0 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles0
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles0(v CreateProjectIdentityMembershipJSONBodyRoles0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewCreateProjectMachineIdentityRequest calls the generic CreateProjectMachineIdentity builder with application/json body
-func NewCreateProjectMachineIdentityRequest(server string, projectId string, body CreateProjectMachineIdentityJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectMachineIdentityRequestWithBody(server, projectId, "application/json", bodyReader)
+// AsCreateProjectIdentityMembershipJSONBodyRoles1 returns the union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as a CreateProjectIdentityMembershipJSONBodyRoles1
+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) AsCreateProjectIdentityMembershipJSONBodyRoles1() (CreateProjectIdentityMembershipJSONBodyRoles1, error) {
+ var body CreateProjectIdentityMembershipJSONBodyRoles1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewCreateProjectMachineIdentityRequestWithBody constructs an http.Request for the CreateProjectMachineIdentity method, with any body, and a specified content type
-func NewCreateProjectMachineIdentityRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+// FromCreateProjectIdentityMembershipJSONBodyRoles1 overwrites any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item as the provided CreateProjectIdentityMembershipJSONBodyRoles1
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) FromCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeCreateProjectIdentityMembershipJSONBodyRoles1 performs a merge with any union data inside the CreateProjectIdentityMembershipJSONBody_Roles_Item, using the provided CreateProjectIdentityMembershipJSONBodyRoles1
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) MergeCreateProjectIdentityMembershipJSONBodyRoles1(v CreateProjectIdentityMembershipJSONBodyRoles1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+func (t CreateProjectIdentityMembershipJSONBody_Roles_Item) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+func (t *CreateProjectIdentityMembershipJSONBody_Roles_Item) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsCreateGitHubSecretSyncJSONBodyDestinationConfig0 returns the union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig as a CreateGitHubSecretSyncJSONBodyDestinationConfig0
+func (t CreateGitHubSecretSyncJSONBody_DestinationConfig) AsCreateGitHubSecretSyncJSONBodyDestinationConfig0() (CreateGitHubSecretSyncJSONBodyDestinationConfig0, error) {
+ var body CreateGitHubSecretSyncJSONBodyDestinationConfig0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromCreateGitHubSecretSyncJSONBodyDestinationConfig0 overwrites any union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig as the provided CreateGitHubSecretSyncJSONBodyDestinationConfig0
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) FromCreateGitHubSecretSyncJSONBodyDestinationConfig0(v CreateGitHubSecretSyncJSONBodyDestinationConfig0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewInviteProjectMembersRequest calls the generic InviteProjectMembers builder with application/json body
-func NewInviteProjectMembersRequest(server string, projectId string, body InviteProjectMembersJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeCreateGitHubSecretSyncJSONBodyDestinationConfig0 performs a merge with any union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig, using the provided CreateGitHubSecretSyncJSONBodyDestinationConfig0
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) MergeCreateGitHubSecretSyncJSONBodyDestinationConfig0(v CreateGitHubSecretSyncJSONBodyDestinationConfig0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewInviteProjectMembersRequestWithBody(server, projectId, "application/json", bodyReader)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewInviteProjectMembersRequestWithBody constructs an http.Request for the InviteProjectMembers method, with any body, and a specified content type
-func NewInviteProjectMembersRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// AsCreateGitHubSecretSyncJSONBodyDestinationConfig1 returns the union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig as a CreateGitHubSecretSyncJSONBodyDestinationConfig1
+func (t CreateGitHubSecretSyncJSONBody_DestinationConfig) AsCreateGitHubSecretSyncJSONBodyDestinationConfig1() (CreateGitHubSecretSyncJSONBodyDestinationConfig1, error) {
+ var body CreateGitHubSecretSyncJSONBodyDestinationConfig1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateGitHubSecretSyncJSONBodyDestinationConfig1 overwrites any union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig as the provided CreateGitHubSecretSyncJSONBodyDestinationConfig1
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) FromCreateGitHubSecretSyncJSONBodyDestinationConfig1(v CreateGitHubSecretSyncJSONBodyDestinationConfig1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubSecretSyncJSONBodyDestinationConfig1 performs a merge with any union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig, using the provided CreateGitHubSecretSyncJSONBodyDestinationConfig1
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) MergeCreateGitHubSecretSyncJSONBodyDestinationConfig1(v CreateGitHubSecretSyncJSONBodyDestinationConfig1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsCreateGitHubSecretSyncJSONBodyDestinationConfig2 returns the union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig as a CreateGitHubSecretSyncJSONBodyDestinationConfig2
+func (t CreateGitHubSecretSyncJSONBody_DestinationConfig) AsCreateGitHubSecretSyncJSONBodyDestinationConfig2() (CreateGitHubSecretSyncJSONBodyDestinationConfig2, error) {
+ var body CreateGitHubSecretSyncJSONBodyDestinationConfig2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromCreateGitHubSecretSyncJSONBodyDestinationConfig2 overwrites any union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig as the provided CreateGitHubSecretSyncJSONBodyDestinationConfig2
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) FromCreateGitHubSecretSyncJSONBodyDestinationConfig2(v CreateGitHubSecretSyncJSONBodyDestinationConfig2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeCreateGitHubSecretSyncJSONBodyDestinationConfig2 performs a merge with any union data inside the CreateGitHubSecretSyncJSONBody_DestinationConfig, using the provided CreateGitHubSecretSyncJSONBodyDestinationConfig2
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) MergeCreateGitHubSecretSyncJSONBodyDestinationConfig2(v CreateGitHubSecretSyncJSONBodyDestinationConfig2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+func (t CreateGitHubSecretSyncJSONBody_DestinationConfig) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewCreateProjectIdentityMembershipRequest calls the generic CreateProjectIdentityMembership builder with application/json body
-func NewCreateProjectIdentityMembershipRequest(server string, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateProjectIdentityMembershipRequestWithBody(server, projectId, identityId, "application/json", bodyReader)
+func (t *CreateGitHubSecretSyncJSONBody_DestinationConfig) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewCreateProjectIdentityMembershipRequestWithBody constructs an http.Request for the CreateProjectIdentityMembership method, with any body, and a specified content type
-func NewCreateProjectIdentityMembershipRequestWithBody(server string, projectId string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// AsCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 returns the union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0() (CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0, error) {
+ var body CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 overwrites any union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 performs a merge with any union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 returns the union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1() (CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1, error) {
+ var body CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships/identities/%s", pathParam0, pathParam1)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 overwrites any union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 performs a merge with any union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 returns the union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2() (CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2, error) {
+ var body CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 overwrites any union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
-func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 performs a merge with any union data inside the CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeCreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v CreateGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)
+
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type
-func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+func (t *CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- operationPath := fmt.Sprintf("/api/v2/organizations")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 returns the union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0() (DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0, error) {
+ var body DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 overwrites any union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// MergeDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 performs a merge with any union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method
-func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {
- var err error
+// AsDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 returns the union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1() (DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1, error) {
+ var body DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- var pathParam0 string
+// FromDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 overwrites any union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+// MergeDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 performs a merge with any union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// AsDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 returns the union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2() (DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2, error) {
+ var body DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// FromDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 overwrites any union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+// MergeDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 performs a merge with any union data inside the DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeDeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewLoginV3Request calls the generic LoginV3 builder with application/json body
-func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewLoginV3RequestWithBody(server, "application/json", bodyReader)
+func (t DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type
-func NewLoginV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+func (t *DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 returns the union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0() (GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0, error) {
+ var body GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v3/auth/login")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 overwrites any union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 performs a merge with any union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 returns the union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1() (GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1, error) {
+ var body GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 overwrites any union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body
-func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 performs a merge with any union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)
-}
-// NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type
-func NewSelectOrganizationV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 returns the union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2() (GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2, error) {
+ var body GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v3/auth/select-organization")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 overwrites any union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 performs a merge with any union data inside the GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeGetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v GetGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+func (t GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- return req, nil
+func (t *GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
}
-// NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body
-func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)
+// AsRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0 returns the union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig as a RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0
+func (t RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) AsRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0() (RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0, error) {
+ var body RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type
-func NewCompleteAccountSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// FromRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0 overwrites any union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig as the provided RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) FromRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0(v RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0 performs a merge with any union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig, using the provided RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) MergeRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0(v RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v3/signup/complete-account")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+// AsRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1 returns the union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig as a RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1
+func (t RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) AsRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1() (RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1, error) {
+ var body RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+// FromRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1 overwrites any union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig as the provided RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) FromRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1(v RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1 performs a merge with any union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig, using the provided RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) MergeRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1(v RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
}
-// NewBeginEmailSignupV3Request calls the generic BeginEmailSignupV3 builder with application/json body
-func NewBeginEmailSignupV3Request(server string, body BeginEmailSignupV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewBeginEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+// AsRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2 returns the union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig as a RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2
+func (t RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) AsRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2() (RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2, error) {
+ var body RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
}
-// NewBeginEmailSignupV3RequestWithBody constructs an http.Request for the BeginEmailSignupV3 method, with any body, and a specified content type
-func NewBeginEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+// FromRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2 overwrites any union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig as the provided RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) FromRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2(v RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- serverURL, err := url.Parse(server)
+// MergeRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2 performs a merge with any union data inside the RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig, using the provided RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) MergeRemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2(v RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- operationPath := fmt.Sprintf("/api/v3/signup/email/signup")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
+func (t RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
+func (t *RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- req.Header.Add("Content-Type", contentType)
+// AsSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 returns the union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0() (SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0, error) {
+ var body SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- return req, nil
+// FromSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 overwrites any union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
}
-// NewVerifyEmailSignupV3Request calls the generic VerifyEmailSignupV3 builder with application/json body
-func NewVerifyEmailSignupV3Request(server string, body VerifyEmailSignupV3JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
+// MergeSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0 performs a merge with any union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0(v SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- bodyReader = bytes.NewReader(buf)
- return NewVerifyEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
-}
-// NewVerifyEmailSignupV3RequestWithBody constructs an http.Request for the VerifyEmailSignupV3 method, with any body, and a specified content type
-func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 returns the union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1() (SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1, error) {
+ var body SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v3/signup/email/verify")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 overwrites any union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1 performs a merge with any union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1(v SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig1) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
+
+// AsSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 returns the union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as a SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) AsSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2() (SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2, error) {
+ var body SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
+
+// FromSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 overwrites any union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig as the provided SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) FromSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
+
+// MergeSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2 performs a merge with any union data inside the SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig, using the provided SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MergeSyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2(v SyncGitHubSecretSync200JSONResponseBodySecretSyncDestinationConfig2) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- req.Header.Add("Content-Type", contentType)
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- return req, nil
+func (t SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
}
-// NewListSecretsV4Request constructs an http.Request for the ListSecretsV4 method
-func NewListSecretsV4Request(server string, params *ListSecretsV4Params) (*http.Request, error) {
- var err error
+func (t *SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
+// AsCompleteAccountSignupV3JSONBody0 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody0
+func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody0() (CompleteAccountSignupV3JSONBody0, error) {
+ var body CompleteAccountSignupV3JSONBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- operationPath := fmt.Sprintf("/api/v4/secrets")
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
+// FromCompleteAccountSignupV3JSONBody0 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody0
+func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- queryURL, err := serverURL.Parse(operationPath)
+// MergeCompleteAccountSignupV3JSONBody0 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody0
+func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody0(v CompleteAccountSignupV3JSONBody0) error {
+ b, err := json.Marshal(v)
if err != nil {
- return nil, err
+ return err
}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
-
- if params.MetadataFilter != nil {
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metadataFilter", *params.MetadataFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// AsCompleteAccountSignupV3JSONBody1 returns the union data inside the CompleteAccountSignupV3JSONBody as a CompleteAccountSignupV3JSONBody1
+func (t CompleteAccountSignupV3JSONBody) AsCompleteAccountSignupV3JSONBody1() (CompleteAccountSignupV3JSONBody1, error) {
+ var body CompleteAccountSignupV3JSONBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- }
+// FromCompleteAccountSignupV3JSONBody1 overwrites any union data inside the CompleteAccountSignupV3JSONBody as the provided CompleteAccountSignupV3JSONBody1
+func (t *CompleteAccountSignupV3JSONBody) FromCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- if params.ProjectId != nil {
+// MergeCompleteAccountSignupV3JSONBody1 performs a merge with any union data inside the CompleteAccountSignupV3JSONBody, using the provided CompleteAccountSignupV3JSONBody1
+func (t *CompleteAccountSignupV3JSONBody) MergeCompleteAccountSignupV3JSONBody1(v CompleteAccountSignupV3JSONBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", *params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- }
+func (t CompleteAccountSignupV3JSONBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- if params.Environment != nil {
+func (t *CompleteAccountSignupV3JSONBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", *params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// AsDeleteSecretV4200JSONResponseBody0 returns the union data inside the DeleteSecretV4200JSONResponseBody as a DeleteSecretV4200JSONResponseBody0
+func (t DeleteSecretV4200JSONResponseBody) AsDeleteSecretV4200JSONResponseBody0() (DeleteSecretV4200JSONResponseBody0, error) {
+ var body DeleteSecretV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- }
+// FromDeleteSecretV4200JSONResponseBody0 overwrites any union data inside the DeleteSecretV4200JSONResponseBody as the provided DeleteSecretV4200JSONResponseBody0
+func (t *DeleteSecretV4200JSONResponseBody) FromDeleteSecretV4200JSONResponseBody0(v DeleteSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- if params.SecretPath != nil {
+// MergeDeleteSecretV4200JSONResponseBody0 performs a merge with any union data inside the DeleteSecretV4200JSONResponseBody, using the provided DeleteSecretV4200JSONResponseBody0
+func (t *DeleteSecretV4200JSONResponseBody) MergeDeleteSecretV4200JSONResponseBody0(v DeleteSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- }
+// AsDeleteSecretV4200JSONResponseBody1 returns the union data inside the DeleteSecretV4200JSONResponseBody as a DeleteSecretV4200JSONResponseBody1
+func (t DeleteSecretV4200JSONResponseBody) AsDeleteSecretV4200JSONResponseBody1() (DeleteSecretV4200JSONResponseBody1, error) {
+ var body DeleteSecretV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- if params.ViewSecretValue != nil {
+// FromDeleteSecretV4200JSONResponseBody1 overwrites any union data inside the DeleteSecretV4200JSONResponseBody as the provided DeleteSecretV4200JSONResponseBody1
+func (t *DeleteSecretV4200JSONResponseBody) FromDeleteSecretV4200JSONResponseBody1(v DeleteSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "viewSecretValue", *params.ViewSecretValue, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// MergeDeleteSecretV4200JSONResponseBody1 performs a merge with any union data inside the DeleteSecretV4200JSONResponseBody, using the provided DeleteSecretV4200JSONResponseBody1
+func (t *DeleteSecretV4200JSONResponseBody) MergeDeleteSecretV4200JSONResponseBody1(v DeleteSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- if params.ExpandSecretReferences != nil {
+func (t DeleteSecretV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expandSecretReferences", *params.ExpandSecretReferences, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+func (t *DeleteSecretV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- }
+// AsCreateSecretV4200JSONResponseBody0 returns the union data inside the CreateSecretV4200JSONResponseBody as a CreateSecretV4200JSONResponseBody0
+func (t CreateSecretV4200JSONResponseBody) AsCreateSecretV4200JSONResponseBody0() (CreateSecretV4200JSONResponseBody0, error) {
+ var body CreateSecretV4200JSONResponseBody0
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- if params.Recursive != nil {
+// FromCreateSecretV4200JSONResponseBody0 overwrites any union data inside the CreateSecretV4200JSONResponseBody as the provided CreateSecretV4200JSONResponseBody0
+func (t *CreateSecretV4200JSONResponseBody) FromCreateSecretV4200JSONResponseBody0(v CreateSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "recursive", *params.Recursive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// MergeCreateSecretV4200JSONResponseBody0 performs a merge with any union data inside the CreateSecretV4200JSONResponseBody, using the provided CreateSecretV4200JSONResponseBody0
+func (t *CreateSecretV4200JSONResponseBody) MergeCreateSecretV4200JSONResponseBody0(v CreateSecretV4200JSONResponseBody0) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- if params.IncludePersonalOverrides != nil {
+// AsCreateSecretV4200JSONResponseBody1 returns the union data inside the CreateSecretV4200JSONResponseBody as a CreateSecretV4200JSONResponseBody1
+func (t CreateSecretV4200JSONResponseBody) AsCreateSecretV4200JSONResponseBody1() (CreateSecretV4200JSONResponseBody1, error) {
+ var body CreateSecretV4200JSONResponseBody1
+ err := json.Unmarshal(t.union, &body)
+ return body, err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includePersonalOverrides", *params.IncludePersonalOverrides, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
+// FromCreateSecretV4200JSONResponseBody1 overwrites any union data inside the CreateSecretV4200JSONResponseBody as the provided CreateSecretV4200JSONResponseBody1
+func (t *CreateSecretV4200JSONResponseBody) FromCreateSecretV4200JSONResponseBody1(v CreateSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ t.union = b
+ return err
+}
- if params.IncludeImports != nil {
+// MergeCreateSecretV4200JSONResponseBody1 performs a merge with any union data inside the CreateSecretV4200JSONResponseBody, using the provided CreateSecretV4200JSONResponseBody1
+func (t *CreateSecretV4200JSONResponseBody) MergeCreateSecretV4200JSONResponseBody1(v CreateSecretV4200JSONResponseBody1) error {
+ b, err := json.Marshal(v)
+ if err != nil {
+ return err
+ }
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeImports", *params.IncludeImports, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ merged, err := runtime.JSONMerge(t.union, b)
+ t.union = merged
+ return err
+}
- }
+func (t CreateSecretV4200JSONResponseBody) MarshalJSON() ([]byte, error) {
+ b, err := t.union.MarshalJSON()
+ return b, err
+}
- if params.TagSlugs != nil {
+func (t *CreateSecretV4200JSONResponseBody) UnmarshalJSON(b []byte) error {
+ err := t.union.UnmarshalJSON(b)
+ return err
+}
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tagSlugs", *params.TagSlugs, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+// RequestEditorFn is the function signature for the RequestEditor callback function
+type RequestEditorFn func(ctx context.Context, req *http.Request) error
- }
+// Doer performs HTTP requests.
+//
+// The standard http.Client implements this interface.
+type HttpRequestDoer interface {
+ Do(req *http.Request) (*http.Response, error)
+}
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
+// Client which conforms to the OpenAPI3 specification for this service.
+type Client struct {
+ // The endpoint of the server conforming to this interface, with scheme,
+ // https://api.deepmap.com for example. This can contain a path relative
+ // to the server, such as https://api.deepmap.com/dev-test, and all the
+ // paths in the swagger spec will be appended to the server.
+ Server string
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
+ // Doer for performing requests, typically a *http.Client with any
+ // customized settings, such as certificate chains.
+ Client HttpRequestDoer
- return req, nil
+ // A list of callbacks for modifying requests which are generated before sending over
+ // the network.
+ RequestEditors []RequestEditorFn
}
-// NewGetSecretByNameV4Request constructs an http.Request for the GetSecretByNameV4 method
-func NewGetSecretByNameV4Request(server string, secretName string, params *GetSecretByNameV4Params) (*http.Request, error) {
- var err error
-
- var pathParam0 string
+// ClientOption allows setting custom parameters during construction
+type ClientOption func(*Client) error
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
+// Creates a new Client, with reasonable defaults
+func NewClient(server string, opts ...ClientOption) (*Client, error) {
+ // create a client with sane default values
+ client := Client{
+ Server: server,
}
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
+ // mutate client and add all optional params
+ for _, o := range opts {
+ if err := o(&client); err != nil {
+ return nil, err
+ }
+ }
+ // ensure the server URL always has a trailing slash
+ if !strings.HasSuffix(client.Server, "/") {
+ client.Server += "/"
+ }
+ // create httpClient, if not already present
+ if client.Client == nil {
+ client.Client = &http.Client{}
}
+ return &client, nil
+}
- operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
+// WithHTTPClient allows overriding the default Doer, which is
+// automatically created using http.Client. This is useful for tests.
+func WithHTTPClient(doer HttpRequestDoer) ClientOption {
+ return func(c *Client) error {
+ c.Client = doer
+ return nil
}
+}
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
+// WithRequestEditorFn allows setting up a callback function, which will be
+// called right before sending the request. This can be used to mutate the request.
+func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
+ return func(c *Client) error {
+ c.RequestEditors = append(c.RequestEditors, fn)
+ return nil
}
+}
- if params != nil {
- // queryValues collects non-styled parameters (passthrough, JSON)
- // that are safe to round-trip through url.Values.Encode().
- queryValues := queryURL.Query()
- // rawQueryFragments collects pre-encoded query fragments from
- // styled parameters, preserving literal commas as delimiters
- // per the OpenAPI spec (e.g. "color=blue,black,brown").
- var rawQueryFragments []string
+// The interface specification for the client above.
+type ClientInterface interface {
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ // GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
+ GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- if params.Environment != nil {
+ // AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // with any type of body and a specified content type.
+ AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", *params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ // AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+ // Takes a body of the `application/json` content type.
+ AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- }
+ // UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // with any type of body and a specified content type.
+ UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- if params.SecretPath != nil {
+ // UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+ // Takes a body of the `application/json` content type.
+ UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ // CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- }
+ // CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- if params.Version != nil {
+ // DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ //
+ // Delete the specified GitHub Connection.
+ DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "version", *params.Version, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ // RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- }
+ // AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- if params.Type != nil {
+ // AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ // CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- }
+ // CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- if params.ViewSecretValue != nil {
+ // LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "viewSecretValue", *params.ViewSecretValue, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
+ // LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type.
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- }
-
- if params.ExpandSecretReferences != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expandSecretReferences", *params.ExpandSecretReferences, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if params.IncludeImports != nil {
-
- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeImports", *params.IncludeImports, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
- return nil, err
- } else {
- for _, qp := range strings.Split(queryFrag, "&") {
- rawQueryFragments = append(rawQueryFragments, qp)
- }
- }
-
- }
-
- if encoded := queryValues.Encode(); encoded != "" {
- rawQueryFragments = append(rawQueryFragments, encoded)
- }
- queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
- }
-
- req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
- if err != nil {
- return nil, err
- }
-
- return req, nil
-}
-
-// NewCreateSecretV4Request calls the generic CreateSecretV4 builder with application/json body
-func NewCreateSecretV4Request(server string, secretName string, body CreateSecretV4JSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateSecretV4RequestWithBody(server, secretName, "application/json", bodyReader)
-}
-
-// NewCreateSecretV4RequestWithBody constructs an http.Request for the CreateSecretV4 method, with any body, and a specified content type
-func NewCreateSecretV4RequestWithBody(server string, secretName string, contentType string, body io.Reader) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
- if err != nil {
- return nil, err
- }
-
- serverURL, err := url.Parse(server)
- if err != nil {
- return nil, err
- }
-
- operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
- if operationPath[0] == '/' {
- operationPath = "." + operationPath
- }
-
- queryURL, err := serverURL.Parse(operationPath)
- if err != nil {
- return nil, err
- }
-
- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
- if err != nil {
- return nil, err
- }
-
- req.Header.Add("Content-Type", contentType)
-
- return req, nil
-}
-
-func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
- for _, r := range c.RequestEditors {
- if err := r(ctx, req); err != nil {
- return err
- }
- }
- for _, r := range additionalEditors {
- if err := r(ctx, req); err != nil {
- return err
- }
- }
- return nil
-}
-
-// ClientWithResponses builds on ClientInterface to offer response payloads
-type ClientWithResponses struct {
- ClientInterface
-}
-
-// NewClientWithResponses creates a new ClientWithResponses, which wraps
-// Client with return type handling
-func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
- client, err := NewClient(server, opts...)
- if err != nil {
- return nil, err
- }
- return &ClientWithResponses{client}, nil
-}
-
-// WithBaseURL overrides the baseURL.
-func WithBaseURL(baseURL string) ClientOption {
- return func(c *Client) error {
- newBaseURL, err := url.Parse(baseURL)
- if err != nil {
- return err
- }
- c.Server = newBaseURL.String()
- return nil
- }
-}
-
-// ClientWithResponsesInterface is the interface specification for the client with responses above.
-type ClientWithResponsesInterface interface {
+ // CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create machine identity.
+ CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.
+ // CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Returns a wrapper object for the known response body format(s).
- GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error)
+ // Create machine identity.
+ CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
// with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+ InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+ // InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
// with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+ VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+ // VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
// with any type of body and a specified content type.
//
- // Create a GitHub Connection.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+ // Create a new project.
+ CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ // CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Create a GitHub Connection.
- CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+ // Create a new project.
+ CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ // ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
//
- // Delete the specified GitHub Connection.
+ // List identities in a project.
+ ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
//
- // Returns a wrapper object for the known response body format(s).
- DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error)
+ // Create an identity in a project.
+ CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ // CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Returns a wrapper object for the known response body format(s).
- RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)
+ // Create an identity in a project.
+ CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
// with any type of body and a specified content type.
//
- // Attach Universal Auth configuration onto machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+ // Invite members to project.
+ InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ // InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Attach Universal Auth configuration onto machine identity.
- AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+ // Invite members to project.
+ InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
// with any type of body and a specified content type.
//
- // Create Universal Auth Client Secret for machine identity.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+ // Create project identity membership.
+ CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ // CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Create Universal Auth Client Secret for machine identity.
- CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+ // Create project identity membership.
+ CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // CreateGitHubSecretSyncWithBody performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
// with any type of body and a specified content type.
//
- // Login with Universal Auth for machine identity.
+ // Create a GitHub Sync for the specified project environment.
+ CreateGitHubSecretSyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // CreateGitHubSecretSync performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Returns a wrapper object for the known response body format(s).
- LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+ // Create a GitHub Sync for the specified project environment.
+ CreateGitHubSecretSync(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ // DeleteGitHubSecretSync performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
//
- // Login with Universal Auth for machine identity.
- LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+ // Delete the specified GitHub Sync.
+ DeleteGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
- // with any type of body and a specified content type.
+ // GetGitHubSecretSync performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
//
- // Create machine identity.
+ // Get the specified GitHub Sync by ID.
+ GetGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // RemoveGitHubSecretSyncSecrets performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
//
- // Returns a wrapper object for the known response body format(s).
- CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+ // Remove previously synced secrets from the specified GitHub Sync destination.
+ RemoveGitHubSecretSyncSecrets(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ // SyncGitHubSecretSync performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
//
- // Create machine identity.
- CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+ // Trigger a sync for the specified GitHub Sync.
+ SyncGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
-
- // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
-
- // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
- // with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
-
- // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
-
- // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)
-
- // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
- // with any type of body and a specified content type.
- //
- // Create a new project.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
-
- // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create a new project.
- CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
-
- // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
- //
- // List identities in a project.
- //
- // Returns a wrapper object for the known response body format(s).
- ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)
-
- // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
// with any type of body and a specified content type.
- //
- // Create an identity in a project.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
-
- // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create an identity in a project.
- CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+ CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
- // with any type of body and a specified content type.
- //
- // Invite members to project.
- //
- // Returns a wrapper object for the known response body format(s).
- InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+ // CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Invite members to project.
- InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+ // DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+ DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
// with any type of body and a specified content type.
- //
- // Create project identity membership.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+ LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- //
- // Create project identity membership.
- CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+ // LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+ // SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
// with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
-
- // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+ SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
- //
- // Returns a wrapper object for the known response body format(s).
- DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
+ // SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+ // CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
// with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+ CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+ // CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+ // BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
// with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+ BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+ // BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
// with any type of body and a specified content type.
- //
- // Returns a wrapper object for the known response body format(s).
- CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+ VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+ // VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type.
+ VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
- // with any type of body and a specified content type.
+ // ListSecretsV4 performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
//
- // Returns a wrapper object for the known response body format(s).
- BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
-
- // BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+ // List secrets.
+ ListSecretsV4(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
- // VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // DeleteSecretV4WithBody performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
// with any type of body and a specified content type.
//
- // Returns a wrapper object for the known response body format(s).
- VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+ // Delete secret.
+ DeleteSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
- VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
-
- // ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
- //
- // List secrets.
+ // DeleteSecretV4 performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type.
//
- // Returns a wrapper object for the known response body format(s).
- ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error)
+ // Delete secret.
+ DeleteSecretV4(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
+ // GetSecretByNameV4 performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
//
// Get a secret by name.
- //
- // Returns a wrapper object for the known response body format(s).
- GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error)
+ GetSecretByNameV4(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
+ // CreateSecretV4WithBody performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
// with any type of body and a specified content type.
//
// Create secret.
- //
- // Returns a wrapper object for the known response body format(s).
- CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
+ CreateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
- // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ // CreateSecretV4 performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type.
//
// Create secret.
- CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
+ CreateSecretV4(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
-type GetServerStatusResponse struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
- }
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+// GetServerStatus performs a GET /api/status (the `GetServerStatus` operationId) request.
+func (c *Client) GetServerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetServerStatusRequest(c.Server)
+ if err != nil {
+ return nil, err
}
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
}
+ return c.Client.Do(req)
}
-// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r GetServerStatusResponse) GetJSON200() *struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
-} {
- return r.JSON200
+// AdminBootstrapWithBody performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) AdminBootstrapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAdminBootstrapRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r GetServerStatusResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON400
+// AdminBootstrap performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) AdminBootstrap(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAdminBootstrapRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r GetServerStatusResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON401
+// UpdateAdminConfigWithBody performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) UpdateAdminConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAdminConfigRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r GetServerStatusResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON403
+// UpdateAdminConfig performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) UpdateAdminConfig(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUpdateAdminConfigRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r GetServerStatusResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON404
+// CreateGitHubAppConnectionWithBody performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a GitHub Connection.
+func (c *Client) CreateGitHubAppConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateGitHubAppConnectionRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r GetServerStatusResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON422
+// CreateGitHubAppConnection performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create a GitHub Connection.
+func (c *Client) CreateGitHubAppConnection(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateGitHubAppConnectionRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r GetServerStatusResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON500
+// DeleteGitHubAppConnection performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+//
+// Delete the specified GitHub Connection.
+func (c *Client) DeleteGitHubAppConnection(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteGitHubAppConnectionRequest(c.Server, connectionId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetBody returns the raw response body bytes
-func (r GetServerStatusResponse) GetBody() []byte {
- return r.Body
+// RefreshAuthToken performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+func (c *Client) RefreshAuthToken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRefreshAuthTokenRequest(c.Server)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// Status returns HTTPResponse.Status
-func (r GetServerStatusResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// AttachUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+// with any type of body and a specified content type.
+//
+// Attach Universal Auth configuration onto machine identity.
+func (c *Client) AttachUniversalAuthWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAttachUniversalAuthRequestWithBody(c.Server, identityId, contentType, body)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetServerStatusResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// AttachUniversalAuth performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Attach Universal Auth configuration onto machine identity.
+func (c *Client) AttachUniversalAuth(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewAttachUniversalAuthRequest(c.Server, identityId, body)
+ if err != nil {
+ return nil, err
}
- return 0
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetServerStatusResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// CreateUniversalAuthClientSecretWithBody performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create Universal Auth Client Secret for machine identity.
+func (c *Client) CreateUniversalAuthClientSecretWithBody(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateUniversalAuthClientSecretRequestWithBody(c.Server, identityId, contentType, body)
+ if err != nil {
+ return nil, err
}
- return ""
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-type AdminBootstrapResponse struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- Identity struct {
- Credentials struct {
- Token string `json:"token"`
- } `json:"credentials"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"identity"`
- Message string `json:"message"`
- Organization struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"organization"`
- User struct {
- Email *string `json:"email,omitempty"`
- FirstName *string `json:"firstName,omitempty"`
- Id openapi_types.UUID `json:"id"`
- LastName *string `json:"lastName,omitempty"`
- SuperAdmin *bool `json:"superAdmin,omitempty"`
- Username string `json:"username"`
- } `json:"user"`
+// CreateUniversalAuthClientSecret performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create Universal Auth Client Secret for machine identity.
+func (c *Client) CreateUniversalAuthClientSecret(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateUniversalAuthClientSecretRequest(c.Server, identityId, body)
+ if err != nil {
+ return nil, err
}
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
}
+ return c.Client.Do(req)
}
-// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r AdminBootstrapResponse) GetJSON200() *struct {
- Identity struct {
- Credentials struct {
- Token string `json:"token"`
- } `json:"credentials"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"identity"`
- Message string `json:"message"`
- Organization struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"organization"`
- User struct {
- Email *string `json:"email,omitempty"`
- FirstName *string `json:"firstName,omitempty"`
- Id openapi_types.UUID `json:"id"`
- LastName *string `json:"lastName,omitempty"`
- SuperAdmin *bool `json:"superAdmin,omitempty"`
- Username string `json:"username"`
- } `json:"user"`
-} {
- return r.JSON200
-}
-
-// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r AdminBootstrapResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON400
-}
-
-// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r AdminBootstrapResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON401
+// LoginWithUniversalAuthWithBody performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+// with any type of body and a specified content type.
+//
+// Login with Universal Auth for machine identity.
+func (c *Client) LoginWithUniversalAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginWithUniversalAuthRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r AdminBootstrapResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON403
+// LoginWithUniversalAuth performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Login with Universal Auth for machine identity.
+func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginWithUniversalAuthRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r AdminBootstrapResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON404
+// CreateMachineIdentityWithBody performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create machine identity.
+func (c *Client) CreateMachineIdentityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateMachineIdentityRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r AdminBootstrapResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON422
+// CreateMachineIdentity performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create machine identity.
+func (c *Client) CreateMachineIdentity(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateMachineIdentityRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r AdminBootstrapResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON500
+// InviteUsersToOrganizationWithBody performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) InviteUsersToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteUsersToOrganizationRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// GetBody returns the raw response body bytes
-func (r AdminBootstrapResponse) GetBody() []byte {
- return r.Body
+// InviteUsersToOrganization performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) InviteUsersToOrganization(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteUsersToOrganizationRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// Status returns HTTPResponse.Status
-func (r AdminBootstrapResponse) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// VerifyUserToOrganizationWithBody performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) VerifyUserToOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyUserToOrganizationRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r AdminBootstrapResponse) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// VerifyUserToOrganization performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyUserToOrganizationRequest(c.Server, body)
+ if err != nil {
+ return nil, err
}
- return 0
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AdminBootstrapResponse) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// GetOrganizationPlan performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+func (c *Client) GetOrganizationPlan(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetOrganizationPlanRequest(c.Server, organizationId, params)
+ if err != nil {
+ return nil, err
}
- return ""
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
}
-type UpdateAdminConfigResponse struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
+// CreateProjectWithBody performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a new project.
+func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateProject performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create a new project.
+func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// ListProjectMachineIdentities performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+//
+// List identities in a project.
+func (c *Client) ListProjectMachineIdentities(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListProjectMachineIdentitiesRequest(c.Server, projectId, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateProjectMachineIdentityWithBody performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create an identity in a project.
+func (c *Client) CreateProjectMachineIdentityWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectMachineIdentityRequestWithBody(c.Server, projectId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateProjectMachineIdentity performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create an identity in a project.
+func (c *Client) CreateProjectMachineIdentity(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectMachineIdentityRequest(c.Server, projectId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// InviteProjectMembersWithBody performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+// with any type of body and a specified content type.
+//
+// Invite members to project.
+func (c *Client) InviteProjectMembersWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteProjectMembersRequestWithBody(c.Server, projectId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// InviteProjectMembers performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Invite members to project.
+func (c *Client) InviteProjectMembers(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInviteProjectMembersRequest(c.Server, projectId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateProjectIdentityMembershipWithBody performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create project identity membership.
+func (c *Client) CreateProjectIdentityMembershipWithBody(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectIdentityMembershipRequestWithBody(c.Server, projectId, identityId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateProjectIdentityMembership performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create project identity membership.
+func (c *Client) CreateProjectIdentityMembership(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateProjectIdentityMembershipRequest(c.Server, projectId, identityId, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateGitHubSecretSyncWithBody performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a GitHub Sync for the specified project environment.
+func (c *Client) CreateGitHubSecretSyncWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateGitHubSecretSyncRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateGitHubSecretSync performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create a GitHub Sync for the specified project environment.
+func (c *Client) CreateGitHubSecretSync(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateGitHubSecretSyncRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// DeleteGitHubSecretSync performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
+//
+// Delete the specified GitHub Sync.
+func (c *Client) DeleteGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteGitHubSecretSyncRequest(c.Server, syncId, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// GetGitHubSecretSync performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
+//
+// Get the specified GitHub Sync by ID.
+func (c *Client) GetGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetGitHubSecretSyncRequest(c.Server, syncId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// RemoveGitHubSecretSyncSecrets performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
+//
+// Remove previously synced secrets from the specified GitHub Sync destination.
+func (c *Client) RemoveGitHubSecretSyncSecrets(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewRemoveGitHubSecretSyncSecretsRequest(c.Server, syncId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// SyncGitHubSecretSync performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
+//
+// Trigger a sync for the specified GitHub Sync.
+func (c *Client) SyncGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewSyncGitHubSecretSyncRequest(c.Server, syncId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateOrganizationWithBody performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateOrganizationRequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateOrganization performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateOrganizationRequest(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+func (c *Client) DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteOrganizationRequest(c.Server, organizationId)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginV3RequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// LoginV3 performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) LoginV3(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewLoginV3Request(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// SelectOrganizationV3WithBody performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) SelectOrganizationV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewSelectOrganizationV3RequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// SelectOrganizationV3 performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) SelectOrganizationV3(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewSelectOrganizationV3Request(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CompleteAccountSignupV3WithBody performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) CompleteAccountSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCompleteAccountSignupV3RequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CompleteAccountSignupV3 performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) CompleteAccountSignupV3(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCompleteAccountSignupV3Request(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// BeginEmailSignupV3WithBody performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) BeginEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewBeginEmailSignupV3RequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// BeginEmailSignupV3 performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) BeginEmailSignupV3(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewBeginEmailSignupV3Request(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// VerifyEmailSignupV3WithBody performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+// with any type of body and a specified content type.
+func (c *Client) VerifyEmailSignupV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyEmailSignupV3RequestWithBody(c.Server, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// VerifyEmailSignupV3 performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+// Takes a body of the `application/json` content type.
+func (c *Client) VerifyEmailSignupV3(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewVerifyEmailSignupV3Request(c.Server, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// ListSecretsV4 performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
+//
+// List secrets.
+func (c *Client) ListSecretsV4(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewListSecretsV4Request(c.Server, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// DeleteSecretV4WithBody performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
+// with any type of body and a specified content type.
+//
+// Delete secret.
+func (c *Client) DeleteSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteSecretV4RequestWithBody(c.Server, secretName, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// DeleteSecretV4 performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Delete secret.
+func (c *Client) DeleteSecretV4(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewDeleteSecretV4Request(c.Server, secretName, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// GetSecretByNameV4 performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
+//
+// Get a secret by name.
+func (c *Client) GetSecretByNameV4(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewGetSecretByNameV4Request(c.Server, secretName, params)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateSecretV4WithBody performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create secret.
+func (c *Client) CreateSecretV4WithBody(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSecretV4RequestWithBody(c.Server, secretName, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// CreateSecretV4 performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
+// Takes a body of the `application/json` content type.
+//
+// Create secret.
+func (c *Client) CreateSecretV4(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewCreateSecretV4Request(c.Server, secretName, body)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(ctx)
+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {
+ return nil, err
+ }
+ return c.Client.Do(req)
+}
+
+// NewGetServerStatusRequest constructs an http.Request for the GetServerStatus method
+func NewGetServerStatusRequest(server string) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/status")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewAdminBootstrapRequest calls the generic AdminBootstrap builder with application/json body
+func NewAdminBootstrapRequest(server string, body AdminBootstrapJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewAdminBootstrapRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewAdminBootstrapRequestWithBody constructs an http.Request for the AdminBootstrap method, with any body, and a specified content type
+func NewAdminBootstrapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/admin/bootstrap")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewUpdateAdminConfigRequest calls the generic UpdateAdminConfig builder with application/json body
+func NewUpdateAdminConfigRequest(server string, body UpdateAdminConfigJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUpdateAdminConfigRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewUpdateAdminConfigRequestWithBody constructs an http.Request for the UpdateAdminConfig method, with any body, and a specified content type
+func NewUpdateAdminConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/admin/config")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCreateGitHubAppConnectionRequest calls the generic CreateGitHubAppConnection builder with application/json body
+func NewCreateGitHubAppConnectionRequest(server string, body CreateGitHubAppConnectionJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateGitHubAppConnectionRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateGitHubAppConnectionRequestWithBody constructs an http.Request for the CreateGitHubAppConnection method, with any body, and a specified content type
+func NewCreateGitHubAppConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/app-connections/github")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteGitHubAppConnectionRequest constructs an http.Request for the DeleteGitHubAppConnection method
+func NewDeleteGitHubAppConnectionRequest(server string, connectionId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "connectionId", connectionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/app-connections/github/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewRefreshAuthTokenRequest constructs an http.Request for the RefreshAuthToken method
+func NewRefreshAuthTokenRequest(server string) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/auth/token")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewAttachUniversalAuthRequest calls the generic AttachUniversalAuth builder with application/json body
+func NewAttachUniversalAuthRequest(server string, identityId string, body AttachUniversalAuthJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewAttachUniversalAuthRequestWithBody(server, identityId, "application/json", bodyReader)
+}
+
+// NewAttachUniversalAuthRequestWithBody constructs an http.Request for the AttachUniversalAuth method, with any body, and a specified content type
+func NewAttachUniversalAuthRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/identities/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCreateUniversalAuthClientSecretRequest calls the generic CreateUniversalAuthClientSecret builder with application/json body
+func NewCreateUniversalAuthClientSecretRequest(server string, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateUniversalAuthClientSecretRequestWithBody(server, identityId, "application/json", bodyReader)
+}
+
+// NewCreateUniversalAuthClientSecretRequestWithBody constructs an http.Request for the CreateUniversalAuthClientSecret method, with any body, and a specified content type
+func NewCreateUniversalAuthClientSecretRequestWithBody(server string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/identities/%s/client-secrets", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewLoginWithUniversalAuthRequest calls the generic LoginWithUniversalAuth builder with application/json body
+func NewLoginWithUniversalAuthRequest(server string, body LoginWithUniversalAuthJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewLoginWithUniversalAuthRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewLoginWithUniversalAuthRequestWithBody constructs an http.Request for the LoginWithUniversalAuth method, with any body, and a specified content type
+func NewLoginWithUniversalAuthRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/auth/universal-auth/login")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCreateMachineIdentityRequest calls the generic CreateMachineIdentity builder with application/json body
+func NewCreateMachineIdentityRequest(server string, body CreateMachineIdentityJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateMachineIdentityRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateMachineIdentityRequestWithBody constructs an http.Request for the CreateMachineIdentity method, with any body, and a specified content type
+func NewCreateMachineIdentityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/identities")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewInviteUsersToOrganizationRequest calls the generic InviteUsersToOrganization builder with application/json body
+func NewInviteUsersToOrganizationRequest(server string, body InviteUsersToOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewInviteUsersToOrganizationRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewInviteUsersToOrganizationRequestWithBody constructs an http.Request for the InviteUsersToOrganization method, with any body, and a specified content type
+func NewInviteUsersToOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/invite-org/signup")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewVerifyUserToOrganizationRequest calls the generic VerifyUserToOrganization builder with application/json body
+func NewVerifyUserToOrganizationRequest(server string, body VerifyUserToOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewVerifyUserToOrganizationRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewVerifyUserToOrganizationRequestWithBody constructs an http.Request for the VerifyUserToOrganization method, with any body, and a specified content type
+func NewVerifyUserToOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/invite-org/verify")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewGetOrganizationPlanRequest constructs an http.Request for the GetOrganizationPlan method
+func NewGetOrganizationPlanRequest(server string, organizationId string, params *GetOrganizationPlanParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/organizations/%s/plan", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.RefreshCache != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "refreshCache", *params.RefreshCache, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewCreateProjectRequest calls the generic CreateProject builder with application/json body
+func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateProjectRequestWithBody constructs an http.Request for the CreateProject method, with any body, and a specified content type
+func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewListProjectMachineIdentitiesRequest constructs an http.Request for the ListProjectMachineIdentities method
+func NewListProjectMachineIdentitiesRequest(server string, projectId string, params *ListProjectMachineIdentitiesParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.Offset != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Limit != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Search != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewCreateProjectMachineIdentityRequest calls the generic CreateProjectMachineIdentity builder with application/json body
+func NewCreateProjectMachineIdentityRequest(server string, projectId string, body CreateProjectMachineIdentityJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectMachineIdentityRequestWithBody(server, projectId, "application/json", bodyReader)
+}
+
+// NewCreateProjectMachineIdentityRequestWithBody constructs an http.Request for the CreateProjectMachineIdentity method, with any body, and a specified content type
+func NewCreateProjectMachineIdentityRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/identities", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewInviteProjectMembersRequest calls the generic InviteProjectMembers builder with application/json body
+func NewInviteProjectMembersRequest(server string, projectId string, body InviteProjectMembersJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewInviteProjectMembersRequestWithBody(server, projectId, "application/json", bodyReader)
+}
+
+// NewInviteProjectMembersRequestWithBody constructs an http.Request for the InviteProjectMembers method, with any body, and a specified content type
+func NewInviteProjectMembersRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCreateProjectIdentityMembershipRequest calls the generic CreateProjectIdentityMembership builder with application/json body
+func NewCreateProjectIdentityMembershipRequest(server string, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateProjectIdentityMembershipRequestWithBody(server, projectId, identityId, "application/json", bodyReader)
+}
+
+// NewCreateProjectIdentityMembershipRequestWithBody constructs an http.Request for the CreateProjectIdentityMembership method, with any body, and a specified content type
+func NewCreateProjectIdentityMembershipRequestWithBody(server string, projectId string, identityId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectId", projectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "identityId", identityId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/projects/%s/memberships/identities/%s", pathParam0, pathParam1)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCreateGitHubSecretSyncRequest calls the generic CreateGitHubSecretSync builder with application/json body
+func NewCreateGitHubSecretSyncRequest(server string, body CreateGitHubSecretSyncJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateGitHubSecretSyncRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateGitHubSecretSyncRequestWithBody constructs an http.Request for the CreateGitHubSecretSync method, with any body, and a specified content type
+func NewCreateGitHubSecretSyncRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/secret-syncs/github")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteGitHubSecretSyncRequest constructs an http.Request for the DeleteGitHubSecretSync method
+func NewDeleteGitHubSecretSyncRequest(server string, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "syncId", syncId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/secret-syncs/github/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.RemoveSecrets != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "removeSecrets", *params.RemoveSecrets, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewGetGitHubSecretSyncRequest constructs an http.Request for the GetGitHubSecretSync method
+func NewGetGitHubSecretSyncRequest(server string, syncId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "syncId", syncId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/secret-syncs/github/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewRemoveGitHubSecretSyncSecretsRequest constructs an http.Request for the RemoveGitHubSecretSyncSecrets method
+func NewRemoveGitHubSecretSyncSecretsRequest(server string, syncId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "syncId", syncId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/secret-syncs/github/%s/remove-secrets", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewSyncGitHubSecretSyncRequest constructs an http.Request for the SyncGitHubSecretSync method
+func NewSyncGitHubSecretSyncRequest(server string, syncId openapi_types.UUID) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "syncId", syncId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v1/secret-syncs/github/%s/sync-secrets", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
+func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type
+func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v2/organizations")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method
+func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewLoginV3Request calls the generic LoginV3 builder with application/json body
+func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewLoginV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type
+func NewLoginV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/auth/login")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body
+func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type
+func NewSelectOrganizationV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/auth/select-organization")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body
+func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type
+func NewCompleteAccountSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/signup/complete-account")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewBeginEmailSignupV3Request calls the generic BeginEmailSignupV3 builder with application/json body
+func NewBeginEmailSignupV3Request(server string, body BeginEmailSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewBeginEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewBeginEmailSignupV3RequestWithBody constructs an http.Request for the BeginEmailSignupV3 method, with any body, and a specified content type
+func NewBeginEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/signup/email/signup")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewVerifyEmailSignupV3Request calls the generic VerifyEmailSignupV3 builder with application/json body
+func NewVerifyEmailSignupV3Request(server string, body VerifyEmailSignupV3JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewVerifyEmailSignupV3RequestWithBody(server, "application/json", bodyReader)
+}
+
+// NewVerifyEmailSignupV3RequestWithBody constructs an http.Request for the VerifyEmailSignupV3 method, with any body, and a specified content type
+func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v3/signup/email/verify")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewListSecretsV4Request constructs an http.Request for the ListSecretsV4 method
+func NewListSecretsV4Request(server string, params *ListSecretsV4Params) (*http.Request, error) {
+ var err error
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets")
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if params.MetadataFilter != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metadataFilter", *params.MetadataFilter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ProjectId != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", *params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Environment != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", *params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.SecretPath != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ViewSecretValue != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "viewSecretValue", *params.ViewSecretValue, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ExpandSecretReferences != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expandSecretReferences", *params.ExpandSecretReferences, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Recursive != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "recursive", *params.Recursive, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.IncludePersonalOverrides != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includePersonalOverrides", *params.IncludePersonalOverrides, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.IncludeImports != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeImports", *params.IncludeImports, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.TagSlugs != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tagSlugs", *params.TagSlugs, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewDeleteSecretV4Request calls the generic DeleteSecretV4 builder with application/json body
+func NewDeleteSecretV4Request(server string, secretName string, body DeleteSecretV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewDeleteSecretV4RequestWithBody(server, secretName, "application/json", bodyReader)
+}
+
+// NewDeleteSecretV4RequestWithBody constructs an http.Request for the DeleteSecretV4 method, with any body, and a specified content type
+func NewDeleteSecretV4RequestWithBody(server string, secretName string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+// NewGetSecretByNameV4Request constructs an http.Request for the GetSecretByNameV4 method
+func NewGetSecretByNameV4Request(server string, secretName string, params *GetSecretByNameV4Params) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ if params != nil {
+ // queryValues collects non-styled parameters (passthrough, JSON)
+ // that are safe to round-trip through url.Values.Encode().
+ queryValues := queryURL.Query()
+ // rawQueryFragments collects pre-encoded query fragments from
+ // styled parameters, preserving literal commas as delimiters
+ // per the OpenAPI spec (e.g. "color=blue,black,brown").
+ var rawQueryFragments []string
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ if params.Environment != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", *params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.SecretPath != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", *params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Version != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "version", *params.Version, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.Type != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ViewSecretValue != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "viewSecretValue", *params.ViewSecretValue, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.ExpandSecretReferences != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expandSecretReferences", *params.ExpandSecretReferences, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if params.IncludeImports != nil {
+
+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "includeImports", *params.IncludeImports, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
+ return nil, err
+ } else {
+ for _, qp := range strings.Split(queryFrag, "&") {
+ rawQueryFragments = append(rawQueryFragments, qp)
+ }
+ }
+
+ }
+
+ if encoded := queryValues.Encode(); encoded != "" {
+ rawQueryFragments = append(rawQueryFragments, encoded)
+ }
+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
+ }
+
+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+
+ return req, nil
+}
+
+// NewCreateSecretV4Request calls the generic CreateSecretV4 builder with application/json body
+func NewCreateSecretV4Request(server string, secretName string, body CreateSecretV4JSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewCreateSecretV4RequestWithBody(server, secretName, "application/json", bodyReader)
+}
+
+// NewCreateSecretV4RequestWithBody constructs an http.Request for the CreateSecretV4 method, with any body, and a specified content type
+func NewCreateSecretV4RequestWithBody(server string, secretName string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
+
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "secretName", secretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
+ if err != nil {
+ return nil, err
+ }
+
+ serverURL, err := url.Parse(server)
+ if err != nil {
+ return nil, err
+ }
+
+ operationPath := fmt.Sprintf("/api/v4/secrets/%s", pathParam0)
+ if operationPath[0] == '/' {
+ operationPath = "." + operationPath
+ }
+
+ queryURL, err := serverURL.Parse(operationPath)
+ if err != nil {
+ return nil, err
+ }
+
+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Add("Content-Type", contentType)
+
+ return req, nil
+}
+
+func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
+ for _, r := range c.RequestEditors {
+ if err := r(ctx, req); err != nil {
+ return err
+ }
+ }
+ for _, r := range additionalEditors {
+ if err := r(ctx, req); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+// ClientWithResponses builds on ClientInterface to offer response payloads
+type ClientWithResponses struct {
+ ClientInterface
+}
+
+// NewClientWithResponses creates a new ClientWithResponses, which wraps
+// Client with return type handling
+func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
+ client, err := NewClient(server, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &ClientWithResponses{client}, nil
+}
+
+// WithBaseURL overrides the baseURL.
+func WithBaseURL(baseURL string) ClientOption {
+ return func(c *Client) error {
+ newBaseURL, err := url.Parse(baseURL)
+ if err != nil {
+ return err
+ }
+ c.Server = newBaseURL.String()
+ return nil
+ }
+}
+
+// ClientWithResponsesInterface is the interface specification for the client with responses above.
+type ClientWithResponsesInterface interface {
+
+ // GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error)
+
+ // AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+
+ // AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error)
+
+ // UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+
+ // UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error)
+
+ // CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+
+ // CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a GitHub Connection.
+ CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error)
+
+ // DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+ //
+ // Delete the specified GitHub Connection.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error)
+
+ // RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error)
+
+ // AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+
+ // AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Attach Universal Auth configuration onto machine identity.
+ AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error)
+
+ // CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+
+ // CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create Universal Auth Client Secret for machine identity.
+ CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error)
+
+ // LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Login with Universal Auth for machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+
+ // LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Login with Universal Auth for machine identity.
+ LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)
+
+ // CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create machine identity.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+
+ // CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create machine identity.
+ CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error)
+
+ // InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+
+ // InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error)
+
+ // VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+
+ // VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)
+
+ // GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error)
+
+ // CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a new project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+
+ // CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a new project.
+ CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
+
+ // ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+ //
+ // List identities in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error)
+
+ // CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create an identity in a project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+
+ // CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create an identity in a project.
+ CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error)
+
+ // InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Invite members to project.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+
+ // InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Invite members to project.
+ InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error)
+
+ // CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create project identity membership.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+
+ // CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create project identity membership.
+ CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error)
+
+ // CreateGitHubSecretSyncWithBodyWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create a GitHub Sync for the specified project environment.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateGitHubSecretSyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error)
+
+ // CreateGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create a GitHub Sync for the specified project environment.
+ CreateGitHubSecretSyncWithResponse(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error)
+
+ // DeleteGitHubSecretSyncWithResponse performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
+ //
+ // Delete the specified GitHub Sync.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*DeleteGitHubSecretSyncResponse, error)
+
+ // GetGitHubSecretSyncWithResponse performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
+ //
+ // Get the specified GitHub Sync by ID.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGitHubSecretSyncResponse, error)
+
+ // RemoveGitHubSecretSyncSecretsWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
+ //
+ // Remove previously synced secrets from the specified GitHub Sync destination.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ RemoveGitHubSecretSyncSecretsWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveGitHubSecretSyncSecretsResponse, error)
+
+ // SyncGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
+ //
+ // Trigger a sync for the specified GitHub Sync.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ SyncGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SyncGitHubSecretSyncResponse, error)
+
+ // CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+
+ // CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
+
+ // DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
+
+ // LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+
+ // LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error)
+
+ // SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+
+ // SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error)
+
+ // CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+
+ // CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error)
+
+ // BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+
+ // BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error)
+
+ // VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+
+ // VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error)
+
+ // ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
+ //
+ // List secrets.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error)
+
+ // DeleteSecretV4WithBodyWithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Delete secret.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ DeleteSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
+
+ // DeleteSecretV4WithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Delete secret.
+ DeleteSecretV4WithResponse(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error)
+
+ // GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
+ //
+ // Get a secret by name.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error)
+
+ // CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
+ // with any type of body and a specified content type.
+ //
+ // Create secret.
+ //
+ // Returns a wrapper object for the known response body format(s).
+ CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
+
+ // CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+ //
+ // Create secret.
+ CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error)
+}
+
+type GetServerStatusResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
+ Date time.Time `json:"date"`
+ EmailConfigured *bool `json:"emailConfigured,omitempty"`
+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
+ Message *string `json:"message,omitempty"`
+ RedisConfigured *bool `json:"redisConfigured,omitempty"`
+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r GetServerStatusResponse) GetJSON200() *struct {
+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
+ Date time.Time `json:"date"`
+ EmailConfigured *bool `json:"emailConfigured,omitempty"`
+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
+ Message *string `json:"message,omitempty"`
+ RedisConfigured *bool `json:"redisConfigured,omitempty"`
+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r GetServerStatusResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r GetServerStatusResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r GetServerStatusResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r GetServerStatusResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r GetServerStatusResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r GetServerStatusResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r GetServerStatusResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r GetServerStatusResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetServerStatusResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetServerStatusResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AdminBootstrapResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r AdminBootstrapResponse) GetJSON200() *struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r AdminBootstrapResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r AdminBootstrapResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r AdminBootstrapResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r AdminBootstrapResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r AdminBootstrapResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r AdminBootstrapResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r AdminBootstrapResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r AdminBootstrapResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AdminBootstrapResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AdminBootstrapResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type UpdateAdminConfigResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON200() *struct {
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r UpdateAdminConfigResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r UpdateAdminConfigResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r UpdateAdminConfigResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r UpdateAdminConfigResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r UpdateAdminConfigResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateGitHubAppConnectionResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON200() *struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r CreateGitHubAppConnectionResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r CreateGitHubAppConnectionResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r CreateGitHubAppConnectionResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreateGitHubAppConnectionResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CreateGitHubAppConnectionResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type DeleteGitHubAppConnectionResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON200() *struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r DeleteGitHubAppConnectionResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r DeleteGitHubAppConnectionResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r DeleteGitHubAppConnectionResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r DeleteGitHubAppConnectionResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r DeleteGitHubAppConnectionResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type RefreshAuthTokenResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Config struct {
- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- CreatedAt *time.Time `json:"createdAt,omitempty"`
- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
- FipsEnabled *bool `json:"fipsEnabled,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Initialized *bool `json:"initialized,omitempty"`
- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
- PasswordPolicy struct {
- Requirements []struct {
- Code string `json:"code"`
- Flags *string `json:"flags,omitempty"`
- IsPrimary bool `json:"isPrimary"`
- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
- Message string `json:"message"`
- Patterns []string `json:"patterns"`
- ShouldMatch bool `json:"shouldMatch"`
- ValidationMessage string `json:"validationMessage"`
- } `json:"requirements"`
- } `json:"passwordPolicy"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
- } `json:"config"`
+ OrganizationId *string `json:"organizationId,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`
+ Token string `json:"token"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON200() *struct {
+ OrganizationId *string `json:"organizationId,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`
+ Token string `json:"token"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r RefreshAuthTokenResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r RefreshAuthTokenResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r RefreshAuthTokenResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r RefreshAuthTokenResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r RefreshAuthTokenResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type AttachUniversalAuthResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ IdentityUniversalAuth struct {
+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
+ ClientId string `json:"clientId"`
+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityUniversalAuth"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON200() *struct {
- Config struct {
- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- CreatedAt *time.Time `json:"createdAt,omitempty"`
- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
- FipsEnabled *bool `json:"fipsEnabled,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Initialized *bool `json:"initialized,omitempty"`
- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
- PasswordPolicy struct {
- Requirements []struct {
- Code string `json:"code"`
- Flags *string `json:"flags,omitempty"`
- IsPrimary bool `json:"isPrimary"`
- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
- Message string `json:"message"`
- Patterns []string `json:"patterns"`
- ShouldMatch bool `json:"shouldMatch"`
- ValidationMessage string `json:"validationMessage"`
- } `json:"requirements"`
- } `json:"passwordPolicy"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
- } `json:"config"`
+func (r AttachUniversalAuthResponse) GetJSON200() *struct {
+ IdentityUniversalAuth struct {
+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
+ ClientId string `json:"clientId"`
+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityUniversalAuth"`
+} {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r AttachUniversalAuthResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r AttachUniversalAuthResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r AttachUniversalAuthResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r AttachUniversalAuthResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r AttachUniversalAuthResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r AttachUniversalAuthResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r AttachUniversalAuthResponse) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r AttachUniversalAuthResponse) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r AttachUniversalAuthResponse) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r AttachUniversalAuthResponse) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateUniversalAuthClientSecretResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ ClientSecret string `json:"clientSecret"`
+ ClientSecretData struct {
+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
+ ClientSecretPrefix string `json:"clientSecretPrefix"`
+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description string `json:"description"`
+ Id string `json:"id"`
+ IdentityUAId openapi_types.UUID `json:"identityUAId"`
+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"clientSecretData"`
+ }
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r CreateUniversalAuthClientSecretResponse) GetJSON200() *struct {
+ ClientSecret string `json:"clientSecret"`
+ ClientSecretData struct {
+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
+ ClientSecretPrefix string `json:"clientSecretPrefix"`
+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description string `json:"description"`
+ Id string `json:"id"`
+ IdentityUAId openapi_types.UUID `json:"identityUAId"`
+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"clientSecretData"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateUniversalAuthClientSecretResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateUniversalAuthClientSecretResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateUniversalAuthClientSecretResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateUniversalAuthClientSecretResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateUniversalAuthClientSecretResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r UpdateAdminConfigResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateUniversalAuthClientSecretResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r UpdateAdminConfigResponse) GetBody() []byte {
+func (r CreateUniversalAuthClientSecretResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r UpdateAdminConfigResponse) Status() string {
+func (r CreateUniversalAuthClientSecretResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -10048,7 +13753,7 @@ func (r UpdateAdminConfigResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateAdminConfigResponse) StatusCode() int {
+func (r CreateUniversalAuthClientSecretResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -10056,142 +13761,148 @@ func (r UpdateAdminConfigResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r UpdateAdminConfigResponse) ContentType() string {
+func (r CreateUniversalAuthClientSecretResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateGitHubAppConnectionResponse struct {
+type LoginWithUniversalAuthResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ AccessToken string `json:"accessToken"`
+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
+ ExpiresIn float32 `json:"expiresIn"`
+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON200() *struct {
- AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+func (r LoginWithUniversalAuthResponse) GetJSON200() *struct {
+ AccessToken string `json:"accessToken"`
+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
+ ExpiresIn float32 `json:"expiresIn"`
+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r LoginWithUniversalAuthResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r LoginWithUniversalAuthResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r LoginWithUniversalAuthResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r LoginWithUniversalAuthResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r LoginWithUniversalAuthResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateGitHubAppConnectionResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r LoginWithUniversalAuthResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateGitHubAppConnectionResponse) GetBody() []byte {
+func (r LoginWithUniversalAuthResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateGitHubAppConnectionResponse) Status() string {
+func (r LoginWithUniversalAuthResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -10199,7 +13910,7 @@ func (r CreateGitHubAppConnectionResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateGitHubAppConnectionResponse) StatusCode() int {
+func (r LoginWithUniversalAuthResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -10207,142 +13918,172 @@ func (r CreateGitHubAppConnectionResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateGitHubAppConnectionResponse) ContentType() string {
+func (r LoginWithUniversalAuthResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type DeleteGitHubAppConnectionResponse struct {
+type CreateMachineIdentityResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ Identity struct {
+ AuthMethod *string `json:"authMethod,omitempty"`
+ AuthMethods []string `json:"authMethods"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata []struct {
+ Id string `json:"id"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ ProjectId *string `json:"projectId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identity"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON200() *struct {
- AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+func (r CreateMachineIdentityResponse) GetJSON200() *struct {
+ Identity struct {
+ AuthMethod *string `json:"authMethod,omitempty"`
+ AuthMethods []string `json:"authMethods"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata []struct {
+ Id string `json:"id"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ ProjectId *string `json:"projectId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identity"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateMachineIdentityResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateMachineIdentityResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateMachineIdentityResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateMachineIdentityResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateMachineIdentityResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r DeleteGitHubAppConnectionResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateMachineIdentityResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r DeleteGitHubAppConnectionResponse) GetBody() []byte {
+func (r CreateMachineIdentityResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r DeleteGitHubAppConnectionResponse) Status() string {
+func (r CreateMachineIdentityResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -10350,7 +14091,7 @@ func (r DeleteGitHubAppConnectionResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteGitHubAppConnectionResponse) StatusCode() int {
+func (r CreateMachineIdentityResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -10358,148 +14099,160 @@ func (r DeleteGitHubAppConnectionResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r DeleteGitHubAppConnectionResponse) ContentType() string {
+func (r CreateMachineIdentityResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type RefreshAuthTokenResponse struct {
+type InviteUsersToOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- OrganizationId *string `json:"organizationId,omitempty"`
- RefreshToken *string `json:"refreshToken,omitempty"`
- SubOrganizationId *string `json:"subOrganizationId,omitempty"`
- Token string `json:"token"`
+ CompleteInviteLinks *[]struct {
+ Email string `json:"email"`
+ Link string `json:"link"`
+ } `json:"completeInviteLinks,omitempty"`
+ GrantFailures *struct {
+ AgentVaultAccess bool `json:"agentVaultAccess"`
+ PamAccess bool `json:"pamAccess"`
+ ProjectIds []string `json:"projectIds"`
+ } `json:"grantFailures,omitempty"`
+ Message string `json:"message"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON200() *struct {
- OrganizationId *string `json:"organizationId,omitempty"`
- RefreshToken *string `json:"refreshToken,omitempty"`
- SubOrganizationId *string `json:"subOrganizationId,omitempty"`
- Token string `json:"token"`
+func (r InviteUsersToOrganizationResponse) GetJSON200() *struct {
+ CompleteInviteLinks *[]struct {
+ Email string `json:"email"`
+ Link string `json:"link"`
+ } `json:"completeInviteLinks,omitempty"`
+ GrantFailures *struct {
+ AgentVaultAccess bool `json:"agentVaultAccess"`
+ PamAccess bool `json:"pamAccess"`
+ ProjectIds []string `json:"projectIds"`
+ } `json:"grantFailures,omitempty"`
+ Message string `json:"message"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteUsersToOrganizationResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteUsersToOrganizationResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteUsersToOrganizationResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteUsersToOrganizationResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteUsersToOrganizationResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r RefreshAuthTokenResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteUsersToOrganizationResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r RefreshAuthTokenResponse) GetBody() []byte {
+func (r InviteUsersToOrganizationResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r RefreshAuthTokenResponse) Status() string {
+func (r InviteUsersToOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -10507,7 +14260,7 @@ func (r RefreshAuthTokenResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r RefreshAuthTokenResponse) StatusCode() int {
+func (r InviteUsersToOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -10515,174 +14268,150 @@ func (r RefreshAuthTokenResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r RefreshAuthTokenResponse) ContentType() string {
+func (r InviteUsersToOrganizationResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type AttachUniversalAuthResponse struct {
+type VerifyUserToOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- IdentityUniversalAuth struct {
- AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
- AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
- AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
- AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
- AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
- ClientId string `json:"clientId"`
- ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- IdentityId openapi_types.UUID `json:"identityId"`
- LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
- LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
- LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
- LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identityUniversalAuth"`
+ Message string `json:"message"`
+
+ // OrganizationName Name of the organization associated with the verified invitation
+ OrganizationName string `json:"organizationName"`
+ Token *string `json:"token,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON200() *struct {
- IdentityUniversalAuth struct {
- AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
- AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
- AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
- AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
- AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
- ClientId string `json:"clientId"`
- ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- IdentityId openapi_types.UUID `json:"identityId"`
- LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
- LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
- LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
- LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identityUniversalAuth"`
+func (r VerifyUserToOrganizationResponse) GetJSON200() *struct {
+ Message string `json:"message"`
+
+ // OrganizationName Name of the organization associated with the verified invitation
+ OrganizationName string `json:"organizationName"`
+ Token *string `json:"token,omitempty"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyUserToOrganizationResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyUserToOrganizationResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyUserToOrganizationResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyUserToOrganizationResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyUserToOrganizationResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r AttachUniversalAuthResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r VerifyUserToOrganizationResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r AttachUniversalAuthResponse) GetBody() []byte {
+func (r VerifyUserToOrganizationResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r AttachUniversalAuthResponse) Status() string {
+func (r VerifyUserToOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -10690,7 +14419,7 @@ func (r AttachUniversalAuthResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r AttachUniversalAuthResponse) StatusCode() int {
+func (r VerifyUserToOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -10698,166 +14427,142 @@ func (r AttachUniversalAuthResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r AttachUniversalAuthResponse) ContentType() string {
+func (r VerifyUserToOrganizationResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
- return ""
-}
-
-type CreateUniversalAuthClientSecretResponse struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- ClientSecret string `json:"clientSecret"`
- ClientSecretData struct {
- ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
- ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
- ClientSecretPrefix string `json:"clientSecretPrefix"`
- ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Description string `json:"description"`
- Id string `json:"id"`
- IdentityUAId openapi_types.UUID `json:"identityUAId"`
- IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"clientSecretData"`
+ return ""
+}
+
+type GetOrganizationPlanResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ Plan interface{} `json:"plan,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON200() *struct {
- ClientSecret string `json:"clientSecret"`
- ClientSecretData struct {
- ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
- ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
- ClientSecretPrefix string `json:"clientSecretPrefix"`
- ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Description string `json:"description"`
- Id string `json:"id"`
- IdentityUAId openapi_types.UUID `json:"identityUAId"`
- IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"clientSecretData"`
+func (r GetOrganizationPlanResponse) GetJSON200() *struct {
+ Plan interface{} `json:"plan,omitempty"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetOrganizationPlanResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetOrganizationPlanResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetOrganizationPlanResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetOrganizationPlanResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetOrganizationPlanResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateUniversalAuthClientSecretResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetOrganizationPlanResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateUniversalAuthClientSecretResponse) GetBody() []byte {
+func (r GetOrganizationPlanResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateUniversalAuthClientSecretResponse) Status() string {
+func (r GetOrganizationPlanResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -10865,7 +14570,7 @@ func (r CreateUniversalAuthClientSecretResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateUniversalAuthClientSecretResponse) StatusCode() int {
+func (r GetOrganizationPlanResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -10873,148 +14578,214 @@ func (r CreateUniversalAuthClientSecretResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateUniversalAuthClientSecretResponse) ContentType() string {
+func (r GetOrganizationPlanResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type LoginWithUniversalAuthResponse struct {
+type CreateProjectResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- AccessToken string `json:"accessToken"`
- AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
- ExpiresIn float32 `json:"expiresIn"`
- TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
+ Project struct {
+ UnderscoreId string `json:"_id"`
+ AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`
+ AutoCapitalization *bool `json:"autoCapitalization,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ DefaultProduct *string `json:"defaultProduct,omitempty"`
+ DeletedEnvironments []struct {
+ DeleteAfter time.Time `json:"deleteAfter"`
+ DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ SoftDeletedAt time.Time `json:"softDeletedAt"`
+ } `json:"deletedEnvironments"`
+ Description *string `json:"description,omitempty"`
+ EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`
+ Environments []struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environments"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id string `json:"id"`
+ IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`
+ KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`
+ SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`
+ SecretSharing *bool `json:"secretSharing,omitempty"`
+ ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UpgradeStatus *string `json:"upgradeStatus,omitempty"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"project"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON200() *struct {
- AccessToken string `json:"accessToken"`
- AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
- ExpiresIn float32 `json:"expiresIn"`
- TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
+func (r CreateProjectResponse) GetJSON200() *struct {
+ Project struct {
+ UnderscoreId string `json:"_id"`
+ AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`
+ AutoCapitalization *bool `json:"autoCapitalization,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ DefaultProduct *string `json:"defaultProduct,omitempty"`
+ DeletedEnvironments []struct {
+ DeleteAfter time.Time `json:"deleteAfter"`
+ DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ SoftDeletedAt time.Time `json:"softDeletedAt"`
+ } `json:"deletedEnvironments"`
+ Description *string `json:"description,omitempty"`
+ EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`
+ Environments []struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environments"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id string `json:"id"`
+ IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`
+ KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`
+ SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`
+ SecretSharing *bool `json:"secretSharing,omitempty"`
+ ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UpgradeStatus *string `json:"upgradeStatus,omitempty"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"project"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r LoginWithUniversalAuthResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r LoginWithUniversalAuthResponse) GetBody() []byte {
+func (r CreateProjectResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r LoginWithUniversalAuthResponse) Status() string {
+func (r CreateProjectResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -11022,7 +14793,7 @@ func (r LoginWithUniversalAuthResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r LoginWithUniversalAuthResponse) StatusCode() int {
+func (r CreateProjectResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -11030,172 +14801,174 @@ func (r LoginWithUniversalAuthResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r LoginWithUniversalAuthResponse) ContentType() string {
+func (r CreateProjectResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateMachineIdentityResponse struct {
+type ListProjectMachineIdentitiesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Identity struct {
- AuthMethod *string `json:"authMethod,omitempty"`
- AuthMethods []string `json:"authMethods"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata []struct {
+ Identities []struct {
+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata *[]struct {
Id string `json:"id"`
Key string `json:"key"`
Value string `json:"value"`
- } `json:"metadata"`
+ } `json:"metadata,omitempty"`
Name string `json:"name"`
OrgId openapi_types.UUID `json:"orgId"`
ProjectId *string `json:"projectId,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identity"`
+ } `json:"identities"`
+ TotalCount float32 `json:"totalCount"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON200() *struct {
- Identity struct {
- AuthMethod *string `json:"authMethod,omitempty"`
- AuthMethods []string `json:"authMethods"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata []struct {
+func (r ListProjectMachineIdentitiesResponse) GetJSON200() *struct {
+ Identities []struct {
+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata *[]struct {
Id string `json:"id"`
Key string `json:"key"`
Value string `json:"value"`
- } `json:"metadata"`
+ } `json:"metadata,omitempty"`
Name string `json:"name"`
OrgId openapi_types.UUID `json:"orgId"`
ProjectId *string `json:"projectId,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identity"`
+ } `json:"identities"`
+ TotalCount float32 `json:"totalCount"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r ListProjectMachineIdentitiesResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r ListProjectMachineIdentitiesResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r ListProjectMachineIdentitiesResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r ListProjectMachineIdentitiesResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r ListProjectMachineIdentitiesResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateMachineIdentityResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r ListProjectMachineIdentitiesResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateMachineIdentityResponse) GetBody() []byte {
+func (r ListProjectMachineIdentitiesResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateMachineIdentityResponse) Status() string {
+func (r ListProjectMachineIdentitiesResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -11203,7 +14976,7 @@ func (r CreateMachineIdentityResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateMachineIdentityResponse) StatusCode() int {
+func (r ListProjectMachineIdentitiesResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -11211,160 +14984,172 @@ func (r CreateMachineIdentityResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateMachineIdentityResponse) ContentType() string {
+func (r ListProjectMachineIdentitiesResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type InviteUsersToOrganizationResponse struct {
+type CreateProjectMachineIdentityResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- CompleteInviteLinks *[]struct {
- Email string `json:"email"`
- Link string `json:"link"`
- } `json:"completeInviteLinks,omitempty"`
- GrantFailures *struct {
- AgentVaultAccess bool `json:"agentVaultAccess"`
- PamAccess bool `json:"pamAccess"`
- ProjectIds []string `json:"projectIds"`
- } `json:"grantFailures,omitempty"`
- Message string `json:"message"`
+ Identity struct {
+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata *[]struct {
+ Id string `json:"id"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ ProjectId *string `json:"projectId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identity"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON200() *struct {
- CompleteInviteLinks *[]struct {
- Email string `json:"email"`
- Link string `json:"link"`
- } `json:"completeInviteLinks,omitempty"`
- GrantFailures *struct {
- AgentVaultAccess bool `json:"agentVaultAccess"`
- PamAccess bool `json:"pamAccess"`
- ProjectIds []string `json:"projectIds"`
- } `json:"grantFailures,omitempty"`
- Message string `json:"message"`
+func (r CreateProjectMachineIdentityResponse) GetJSON200() *struct {
+ Identity struct {
+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata *[]struct {
+ Id string `json:"id"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ ProjectId *string `json:"projectId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identity"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectMachineIdentityResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectMachineIdentityResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectMachineIdentityResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectMachineIdentityResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectMachineIdentityResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r InviteUsersToOrganizationResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectMachineIdentityResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r InviteUsersToOrganizationResponse) GetBody() []byte {
+func (r CreateProjectMachineIdentityResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r InviteUsersToOrganizationResponse) Status() string {
+func (r CreateProjectMachineIdentityResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -11372,7 +15157,7 @@ func (r InviteUsersToOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InviteUsersToOrganizationResponse) StatusCode() int {
+func (r CreateProjectMachineIdentityResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -11380,150 +15165,154 @@ func (r InviteUsersToOrganizationResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r InviteUsersToOrganizationResponse) ContentType() string {
+func (r CreateProjectMachineIdentityResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type VerifyUserToOrganizationResponse struct {
+type InviteProjectMembersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Message string `json:"message"`
-
- // OrganizationName Name of the organization associated with the verified invitation
- OrganizationName string `json:"organizationName"`
- Token *string `json:"token,omitempty"`
+ Memberships []struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ ProjectId string `json:"projectId"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UserId openapi_types.UUID `json:"userId"`
+ } `json:"memberships"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON200() *struct {
- Message string `json:"message"`
-
- // OrganizationName Name of the organization associated with the verified invitation
- OrganizationName string `json:"organizationName"`
- Token *string `json:"token,omitempty"`
+func (r InviteProjectMembersResponse) GetJSON200() *struct {
+ Memberships []struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ ProjectId string `json:"projectId"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UserId openapi_types.UUID `json:"userId"`
+ } `json:"memberships"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteProjectMembersResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteProjectMembersResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteProjectMembersResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteProjectMembersResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteProjectMembersResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r VerifyUserToOrganizationResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r InviteProjectMembersResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r VerifyUserToOrganizationResponse) GetBody() []byte {
+func (r InviteProjectMembersResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r VerifyUserToOrganizationResponse) Status() string {
+func (r InviteProjectMembersResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -11531,7 +15320,7 @@ func (r VerifyUserToOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r VerifyUserToOrganizationResponse) StatusCode() int {
+func (r InviteProjectMembersResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -11539,142 +15328,154 @@ func (r VerifyUserToOrganizationResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r VerifyUserToOrganizationResponse) ContentType() string {
+func (r InviteProjectMembersResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type GetOrganizationPlanResponse struct {
+type CreateProjectIdentityMembershipResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Plan interface{} `json:"plan,omitempty"`
+ IdentityMembership struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ ProjectId string `json:"projectId"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityMembership"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON200() *struct {
- Plan interface{} `json:"plan,omitempty"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON200() *struct {
+ IdentityMembership struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ ProjectId string `json:"projectId"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityMembership"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r GetOrganizationPlanResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateProjectIdentityMembershipResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r GetOrganizationPlanResponse) GetBody() []byte {
+func (r CreateProjectIdentityMembershipResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r GetOrganizationPlanResponse) Status() string {
+func (r CreateProjectIdentityMembershipResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -11682,7 +15483,7 @@ func (r GetOrganizationPlanResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrganizationPlanResponse) StatusCode() int {
+func (r CreateProjectIdentityMembershipResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -11690,214 +15491,244 @@ func (r GetOrganizationPlanResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetOrganizationPlanResponse) ContentType() string {
+func (r CreateProjectIdentityMembershipResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-
-type CreateProjectResponse struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *struct {
- Project struct {
- UnderscoreId string `json:"_id"`
- AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`
- AutoCapitalization *bool `json:"autoCapitalization,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- DefaultProduct *string `json:"defaultProduct,omitempty"`
- DeletedEnvironments []struct {
- DeleteAfter time.Time `json:"deleteAfter"`
- DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- SoftDeletedAt time.Time `json:"softDeletedAt"`
- } `json:"deletedEnvironments"`
- Description *string `json:"description,omitempty"`
- EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`
- Environments []struct {
+
+type CreateGitHubSecretSyncResponse struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *struct {
+ SecretSync struct {
+ Connection struct {
+ App CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environments"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id string `json:"id"`
- IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`
- KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`
- SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`
- SecretSharing *bool `json:"secretSharing,omitempty"`
- ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- UpgradeStatus *string `json:"upgradeStatus,omitempty"`
- Version *float32 `json:"version,omitempty"`
- } `json:"project"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateProjectResponse) GetJSON200() *struct {
- Project struct {
- UnderscoreId string `json:"_id"`
- AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`
- AutoCapitalization *bool `json:"autoCapitalization,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- DefaultProduct *string `json:"defaultProduct,omitempty"`
- DeletedEnvironments []struct {
- DeleteAfter time.Time `json:"deleteAfter"`
- DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- SoftDeletedAt time.Time `json:"softDeletedAt"`
- } `json:"deletedEnvironments"`
- Description *string `json:"description,omitempty"`
- EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`
- Environments []struct {
+func (r CreateGitHubSecretSyncResponse) GetJSON200() *struct {
+ SecretSync struct {
+ Connection struct {
+ App CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environments"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id string `json:"id"`
- IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`
- KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`
- SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`
- SecretSharing *bool `json:"secretSharing,omitempty"`
- ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- UpgradeStatus *string `json:"upgradeStatus,omitempty"`
- Version *float32 `json:"version,omitempty"`
- } `json:"project"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateProjectResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubSecretSyncResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateProjectResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubSecretSyncResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateProjectResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubSecretSyncResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateProjectResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubSecretSyncResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateProjectResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubSecretSyncResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateProjectResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateGitHubSecretSyncResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateProjectResponse) GetBody() []byte {
+func (r CreateGitHubSecretSyncResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateProjectResponse) Status() string {
+func (r CreateGitHubSecretSyncResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -11905,7 +15736,7 @@ func (r CreateProjectResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectResponse) StatusCode() int {
+func (r CreateGitHubSecretSyncResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -11913,174 +15744,244 @@ func (r CreateProjectResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectResponse) ContentType() string {
+func (r CreateGitHubSecretSyncResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type ListProjectMachineIdentitiesResponse struct {
+type DeleteGitHubSecretSyncResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Identities []struct {
- ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
- AuthMethods *[]string `json:"authMethods,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata *[]struct {
- Id string `json:"id"`
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- ProjectId *string `json:"projectId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identities"`
- TotalCount float32 `json:"totalCount"`
+ SecretSync struct {
+ Connection struct {
+ App DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON200() *struct {
- Identities []struct {
- ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
- AuthMethods *[]string `json:"authMethods,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata *[]struct {
- Id string `json:"id"`
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- ProjectId *string `json:"projectId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identities"`
- TotalCount float32 `json:"totalCount"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON200() *struct {
+ SecretSync struct {
+ Connection struct {
+ App DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r ListProjectMachineIdentitiesResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteGitHubSecretSyncResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r ListProjectMachineIdentitiesResponse) GetBody() []byte {
+func (r DeleteGitHubSecretSyncResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r ListProjectMachineIdentitiesResponse) Status() string {
+func (r DeleteGitHubSecretSyncResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -12088,7 +15989,7 @@ func (r ListProjectMachineIdentitiesResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListProjectMachineIdentitiesResponse) StatusCode() int {
+func (r DeleteGitHubSecretSyncResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -12096,172 +15997,244 @@ func (r ListProjectMachineIdentitiesResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListProjectMachineIdentitiesResponse) ContentType() string {
+func (r DeleteGitHubSecretSyncResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateProjectMachineIdentityResponse struct {
+type GetGitHubSecretSyncResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Identity struct {
- ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
- AuthMethods *[]string `json:"authMethods,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata *[]struct {
- Id string `json:"id"`
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- ProjectId *string `json:"projectId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identity"`
+ SecretSync struct {
+ Connection struct {
+ App GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination GetGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON200() *struct {
- Identity struct {
- ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
- AuthMethods *[]string `json:"authMethods,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata *[]struct {
- Id string `json:"id"`
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- ProjectId *string `json:"projectId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identity"`
+func (r GetGitHubSecretSyncResponse) GetJSON200() *struct {
+ SecretSync struct {
+ Connection struct {
+ App GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination GetGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetGitHubSecretSyncResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetGitHubSecretSyncResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetGitHubSecretSyncResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetGitHubSecretSyncResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetGitHubSecretSyncResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateProjectMachineIdentityResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetGitHubSecretSyncResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateProjectMachineIdentityResponse) GetBody() []byte {
+func (r GetGitHubSecretSyncResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateProjectMachineIdentityResponse) Status() string {
+func (r GetGitHubSecretSyncResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -12269,7 +16242,7 @@ func (r CreateProjectMachineIdentityResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectMachineIdentityResponse) StatusCode() int {
+func (r GetGitHubSecretSyncResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -12277,154 +16250,244 @@ func (r CreateProjectMachineIdentityResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectMachineIdentityResponse) ContentType() string {
+func (r GetGitHubSecretSyncResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type InviteProjectMembersResponse struct {
+type RemoveGitHubSecretSyncSecretsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- Memberships []struct {
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- ProjectId string `json:"projectId"`
- UpdatedAt time.Time `json:"updatedAt"`
- UserId openapi_types.UUID `json:"userId"`
- } `json:"memberships"`
+ SecretSync struct {
+ Connection struct {
+ App RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`
- }
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`
- }
-}
-
-// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON200() *struct {
- Memberships []struct {
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- ProjectId string `json:"projectId"`
- UpdatedAt time.Time `json:"updatedAt"`
- UserId openapi_types.UUID `json:"userId"`
- } `json:"memberships"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON200() *struct {
+ SecretSync struct {
+ Connection struct {
+ App RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r InviteProjectMembersResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r RemoveGitHubSecretSyncSecretsResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r InviteProjectMembersResponse) GetBody() []byte {
+func (r RemoveGitHubSecretSyncSecretsResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r InviteProjectMembersResponse) Status() string {
+func (r RemoveGitHubSecretSyncSecretsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -12432,7 +16495,7 @@ func (r InviteProjectMembersResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InviteProjectMembersResponse) StatusCode() int {
+func (r RemoveGitHubSecretSyncSecretsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -12440,154 +16503,244 @@ func (r InviteProjectMembersResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r InviteProjectMembersResponse) ContentType() string {
+func (r RemoveGitHubSecretSyncSecretsResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
-type CreateProjectIdentityMembershipResponse struct {
+type SyncGitHubSecretSyncResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
- IdentityMembership struct {
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- IdentityId openapi_types.UUID `json:"identityId"`
- ProjectId string `json:"projectId"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identityMembership"`
+ SecretSync struct {
+ Connection struct {
+ App SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON200() *struct {
- IdentityMembership struct {
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- IdentityId openapi_types.UUID `json:"identityId"`
- ProjectId string `json:"projectId"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identityMembership"`
+func (r SyncGitHubSecretSyncResponse) GetJSON200() *struct {
+ SecretSync struct {
+ Connection struct {
+ App SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
} {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SyncGitHubSecretSyncResponse) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SyncGitHubSecretSyncResponse) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SyncGitHubSecretSyncResponse) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SyncGitHubSecretSyncResponse) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SyncGitHubSecretSyncResponse) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateProjectIdentityMembershipResponse) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r SyncGitHubSecretSyncResponse) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r CreateProjectIdentityMembershipResponse) GetBody() []byte {
+func (r SyncGitHubSecretSyncResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r CreateProjectIdentityMembershipResponse) Status() string {
+func (r SyncGitHubSecretSyncResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -12595,7 +16748,7 @@ func (r CreateProjectIdentityMembershipResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateProjectIdentityMembershipResponse) StatusCode() int {
+func (r SyncGitHubSecretSyncResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -12603,7 +16756,7 @@ func (r CreateProjectIdentityMembershipResponse) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateProjectIdentityMembershipResponse) ContentType() string {
+func (r SyncGitHubSecretSyncResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
@@ -14053,80 +18206,227 @@ func (r ListSecretsV4Response) GetJSON200() *struct {
return r.JSON200
}
-// GetJSON304 returns the response for an HTTP 304 `application/json` response
-func (r ListSecretsV4Response) GetJSON304() *interface{} {
- return r.JSON304
+// GetJSON304 returns the response for an HTTP 304 `application/json` response
+func (r ListSecretsV4Response) GetJSON304() *interface{} {
+ return r.JSON304
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r ListSecretsV4Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListSecretsV4400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r ListSecretsV4Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListSecretsV4401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r ListSecretsV4Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListSecretsV4403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r ListSecretsV4Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListSecretsV4404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r ListSecretsV4Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListSecretsV4422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r ListSecretsV4Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListSecretsV4500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r ListSecretsV4Response) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r ListSecretsV4Response) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r ListSecretsV4Response) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r ListSecretsV4Response) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type DeleteSecretV4Response struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *DeleteSecretV4200JSONResponseBody
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r DeleteSecretV4Response) GetJSON200() *DeleteSecretV4200JSONResponseBody {
+ return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r ListSecretsV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListSecretsV4400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteSecretV4Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r ListSecretsV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListSecretsV4401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteSecretV4Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r ListSecretsV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListSecretsV4403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteSecretV4Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r ListSecretsV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListSecretsV4404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteSecretV4Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r ListSecretsV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode ListSecretsV4422JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteSecretV4Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON422
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r ListSecretsV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListSecretsV4500JSONResponseBodyStatusCode `json:"statusCode"`
+func (r DeleteSecretV4Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON500
}
// GetBody returns the raw response body bytes
-func (r ListSecretsV4Response) GetBody() []byte {
+func (r DeleteSecretV4Response) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
-func (r ListSecretsV4Response) Status() string {
+func (r DeleteSecretV4Response) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -14134,7 +18434,7 @@ func (r ListSecretsV4Response) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListSecretsV4Response) StatusCode() int {
+func (r DeleteSecretV4Response) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -14142,7 +18442,7 @@ func (r ListSecretsV4Response) StatusCode() int {
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r ListSecretsV4Response) ContentType() string {
+func (r DeleteSecretV4Response) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
@@ -14284,828 +18584,1508 @@ func (r GetSecretByNameV4Response) GetJSON200() *struct {
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r GetSecretByNameV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretByNameV4400JSONResponseBodyStatusCode `json:"statusCode"`
+func (r GetSecretByNameV4Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetSecretByNameV4400JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON400
+}
+
+// GetJSON401 returns the response for an HTTP 401 `application/json` response
+func (r GetSecretByNameV4Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetSecretByNameV4401JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON401
+}
+
+// GetJSON403 returns the response for an HTTP 403 `application/json` response
+func (r GetSecretByNameV4Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetSecretByNameV4403JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON403
+}
+
+// GetJSON404 returns the response for an HTTP 404 `application/json` response
+func (r GetSecretByNameV4Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetSecretByNameV4404JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON404
+}
+
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r GetSecretByNameV4Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetSecretByNameV4422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r GetSecretByNameV4Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetSecretByNameV4500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r GetSecretByNameV4Response) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r GetSecretByNameV4Response) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r GetSecretByNameV4Response) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r GetSecretByNameV4Response) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+type CreateSecretV4Response struct {
+ Body []byte
+ HTTPResponse *http.Response
+ // JSON200 the response for an HTTP 200 `application/json` response
+ JSON200 *CreateSecretV4200JSONResponseBody
+ // JSON400 the response for an HTTP 400 `application/json` response
+ JSON400 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON401 the response for an HTTP 401 `application/json` response
+ JSON401 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON403 the response for an HTTP 403 `application/json` response
+ JSON403 *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON404 the response for an HTTP 404 `application/json` response
+ JSON404 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON422 the response for an HTTP 422 `application/json` response
+ JSON422 *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ // JSON500 the response for an HTTP 500 `application/json` response
+ JSON500 *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+}
+
+// GetJSON200 returns the response for an HTTP 200 `application/json` response
+func (r CreateSecretV4Response) GetJSON200() *CreateSecretV4200JSONResponseBody {
+ return r.JSON200
+}
+
+// GetJSON400 returns the response for an HTTP 400 `application/json` response
+func (r CreateSecretV4Response) GetJSON400() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON400
}
// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r GetSecretByNameV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretByNameV4401JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateSecretV4Response) GetJSON401() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON401
}
// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r GetSecretByNameV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretByNameV4403JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateSecretV4Response) GetJSON403() *struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON403
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r GetSecretByNameV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretByNameV4404JSONResponseBodyStatusCode `json:"statusCode"`
+func (r CreateSecretV4Response) GetJSON404() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
} {
return r.JSON404
}
-// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r GetSecretByNameV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretByNameV4422JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON422
+// GetJSON422 returns the response for an HTTP 422 `application/json` response
+func (r CreateSecretV4Response) GetJSON422() *struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON422
+}
+
+// GetJSON500 returns the response for an HTTP 500 `application/json` response
+func (r CreateSecretV4Response) GetJSON500() *struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
+} {
+ return r.JSON500
+}
+
+// GetBody returns the raw response body bytes
+func (r CreateSecretV4Response) GetBody() []byte {
+ return r.Body
+}
+
+// Status returns HTTPResponse.Status
+func (r CreateSecretV4Response) Status() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Status
+ }
+ return http.StatusText(0)
+}
+
+// StatusCode returns HTTPResponse.StatusCode
+func (r CreateSecretV4Response) StatusCode() int {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.StatusCode
+ }
+ return 0
+}
+
+// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
+func (r CreateSecretV4Response) ContentType() string {
+ if r.HTTPResponse != nil {
+ return r.HTTPResponse.Header.Get("Content-Type")
+ }
+ return ""
+}
+
+// GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error) {
+ rsp, err := c.GetServerStatus(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseGetServerStatusResponse(rsp)
+}
+
+// AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+// with any type of body and a specified content type.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {
+ rsp, err := c.AdminBootstrapWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAdminBootstrapResponse(rsp)
+}
+
+// AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {
+ rsp, err := c.AdminBootstrap(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAdminBootstrapResponse(rsp)
+}
+
+// UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+// with any type of body and a specified content type.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {
+ rsp, err := c.UpdateAdminConfigWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateAdminConfigResponse(rsp)
+}
+
+// UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {
+ rsp, err := c.UpdateAdminConfig(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUpdateAdminConfigResponse(rsp)
+}
+
+// CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a GitHub Connection.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
+ rsp, err := c.CreateGitHubAppConnectionWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubAppConnectionResponse(rsp)
+}
+
+// CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create a GitHub Connection.
+func (c *ClientWithResponses) CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
+ rsp, err := c.CreateGitHubAppConnection(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubAppConnectionResponse(rsp)
+}
+
+// DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
+//
+// Delete the specified GitHub Connection.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error) {
+ rsp, err := c.DeleteGitHubAppConnection(ctx, connectionId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDeleteGitHubAppConnectionResponse(rsp)
+}
+
+// RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error) {
+ rsp, err := c.RefreshAuthToken(ctx, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseRefreshAuthTokenResponse(rsp)
+}
+
+// AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+// with any type of body and a specified content type.
+//
+// Attach Universal Auth configuration onto machine identity.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {
+ rsp, err := c.AttachUniversalAuthWithBody(ctx, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAttachUniversalAuthResponse(rsp)
+}
+
+// AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Attach Universal Auth configuration onto machine identity.
+func (c *ClientWithResponses) AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {
+ rsp, err := c.AttachUniversalAuth(ctx, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseAttachUniversalAuthResponse(rsp)
+}
+
+// CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create Universal Auth Client Secret for machine identity.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {
+ rsp, err := c.CreateUniversalAuthClientSecretWithBody(ctx, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateUniversalAuthClientSecretResponse(rsp)
+}
+
+// CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create Universal Auth Client Secret for machine identity.
+func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {
+ rsp, err := c.CreateUniversalAuthClientSecret(ctx, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateUniversalAuthClientSecretResponse(rsp)
+}
+
+// LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+// with any type of body and a specified content type.
+//
+// Login with Universal Auth for machine identity.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {
+ rsp, err := c.LoginWithUniversalAuthWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseLoginWithUniversalAuthResponse(rsp)
}
-// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r GetSecretByNameV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetSecretByNameV4500JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON500
+// LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Login with Universal Auth for machine identity.
+func (c *ClientWithResponses) LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {
+ rsp, err := c.LoginWithUniversalAuth(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseLoginWithUniversalAuthResponse(rsp)
}
-// GetBody returns the raw response body bytes
-func (r GetSecretByNameV4Response) GetBody() []byte {
- return r.Body
+// CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create machine identity.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {
+ rsp, err := c.CreateMachineIdentityWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateMachineIdentityResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r GetSecretByNameV4Response) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create machine identity.
+func (c *ClientWithResponses) CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {
+ rsp, err := c.CreateMachineIdentity(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseCreateMachineIdentityResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r GetSecretByNameV4Response) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
+// with any type of body and a specified content type.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {
+ rsp, err := c.InviteUsersToOrganizationWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseInviteUsersToOrganizationResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r GetSecretByNameV4Response) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {
+ rsp, err := c.InviteUsersToOrganization(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseInviteUsersToOrganizationResponse(rsp)
}
-type CreateSecretV4Response struct {
- Body []byte
- HTTPResponse *http.Response
- // JSON200 the response for an HTTP 200 `application/json` response
- JSON200 *CreateSecretV4200JSONResponseBody
- // JSON400 the response for an HTTP 400 `application/json` response
- JSON400 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
+// VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
+// with any type of body and a specified content type.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {
+ rsp, err := c.VerifyUserToOrganizationWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON401 the response for an HTTP 401 `application/json` response
- JSON401 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseVerifyUserToOrganizationResponse(rsp)
+}
+
+// VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {
+ rsp, err := c.VerifyUserToOrganization(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON403 the response for an HTTP 403 `application/json` response
- JSON403 *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseVerifyUserToOrganizationResponse(rsp)
+}
+
+// GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error) {
+ rsp, err := c.GetOrganizationPlan(ctx, organizationId, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON404 the response for an HTTP 404 `application/json` response
- JSON404 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseGetOrganizationPlanResponse(rsp)
+}
+
+// CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a new project.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {
+ rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON422 the response for an HTTP 422 `application/json` response
- JSON422 *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseCreateProjectResponse(rsp)
+}
+
+// CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create a new project.
+func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {
+ rsp, err := c.CreateProject(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
}
- // JSON500 the response for an HTTP 500 `application/json` response
- JSON500 *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ return ParseCreateProjectResponse(rsp)
+}
+
+// ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
+//
+// List identities in a project.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error) {
+ rsp, err := c.ListProjectMachineIdentities(ctx, projectId, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
+ return ParseListProjectMachineIdentitiesResponse(rsp)
}
-// GetJSON200 returns the response for an HTTP 200 `application/json` response
-func (r CreateSecretV4Response) GetJSON200() *CreateSecretV4200JSONResponseBody {
- return r.JSON200
+// CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create an identity in a project.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {
+ rsp, err := c.CreateProjectMachineIdentityWithBody(ctx, projectId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectMachineIdentityResponse(rsp)
}
-// GetJSON400 returns the response for an HTTP 400 `application/json` response
-func (r CreateSecretV4Response) GetJSON400() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON400
+// CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create an identity in a project.
+func (c *ClientWithResponses) CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {
+ rsp, err := c.CreateProjectMachineIdentity(ctx, projectId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectMachineIdentityResponse(rsp)
}
-// GetJSON401 returns the response for an HTTP 401 `application/json` response
-func (r CreateSecretV4Response) GetJSON401() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON401
+// InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
+// with any type of body and a specified content type.
+//
+// Invite members to project.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {
+ rsp, err := c.InviteProjectMembersWithBody(ctx, projectId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseInviteProjectMembersResponse(rsp)
}
-// GetJSON403 returns the response for an HTTP 403 `application/json` response
-func (r CreateSecretV4Response) GetJSON403() *struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON403
+// InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Invite members to project.
+func (c *ClientWithResponses) InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {
+ rsp, err := c.InviteProjectMembers(ctx, projectId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseInviteProjectMembersResponse(rsp)
}
-// GetJSON404 returns the response for an HTTP 404 `application/json` response
-func (r CreateSecretV4Response) GetJSON404() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON404
+// CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create project identity membership.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {
+ rsp, err := c.CreateProjectIdentityMembershipWithBody(ctx, projectId, identityId, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectIdentityMembershipResponse(rsp)
}
-// GetJSON422 returns the response for an HTTP 422 `application/json` response
-func (r CreateSecretV4Response) GetJSON422() *struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON422
+// CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create project identity membership.
+func (c *ClientWithResponses) CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {
+ rsp, err := c.CreateProjectIdentityMembership(ctx, projectId, identityId, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateProjectIdentityMembershipResponse(rsp)
}
-// GetJSON500 returns the response for an HTTP 500 `application/json` response
-func (r CreateSecretV4Response) GetJSON500() *struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
-} {
- return r.JSON500
+// CreateGitHubSecretSyncWithBodyWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request,
+// with any type of body and a specified content type.
+//
+// Create a GitHub Sync for the specified project environment.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateGitHubSecretSyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error) {
+ rsp, err := c.CreateGitHubSecretSyncWithBody(ctx, contentType, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubSecretSyncResponse(rsp)
}
-// GetBody returns the raw response body bytes
-func (r CreateSecretV4Response) GetBody() []byte {
- return r.Body
+// CreateGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github (the `CreateGitHubSecretSync` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+//
+// Create a GitHub Sync for the specified project environment.
+func (c *ClientWithResponses) CreateGitHubSecretSyncWithResponse(ctx context.Context, body CreateGitHubSecretSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubSecretSyncResponse, error) {
+ rsp, err := c.CreateGitHubSecretSync(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseCreateGitHubSecretSyncResponse(rsp)
}
-// Status returns HTTPResponse.Status
-func (r CreateSecretV4Response) Status() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Status
+// DeleteGitHubSecretSyncWithResponse performs a DELETE /api/v1/secret-syncs/github/{syncId} (the `DeleteGitHubSecretSync` operationId) request.
+//
+// Delete the specified GitHub Sync.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) DeleteGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, params *DeleteGitHubSecretSyncParams, reqEditors ...RequestEditorFn) (*DeleteGitHubSecretSyncResponse, error) {
+ rsp, err := c.DeleteGitHubSecretSync(ctx, syncId, params, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return http.StatusText(0)
+ return ParseDeleteGitHubSecretSyncResponse(rsp)
}
-// StatusCode returns HTTPResponse.StatusCode
-func (r CreateSecretV4Response) StatusCode() int {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.StatusCode
+// GetGitHubSecretSyncWithResponse performs a GET /api/v1/secret-syncs/github/{syncId} (the `GetGitHubSecretSync` operationId) request.
+//
+// Get the specified GitHub Sync by ID.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) GetGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetGitHubSecretSyncResponse, error) {
+ rsp, err := c.GetGitHubSecretSync(ctx, syncId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return 0
+ return ParseGetGitHubSecretSyncResponse(rsp)
}
-// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
-func (r CreateSecretV4Response) ContentType() string {
- if r.HTTPResponse != nil {
- return r.HTTPResponse.Header.Get("Content-Type")
+// RemoveGitHubSecretSyncSecretsWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/remove-secrets (the `RemoveGitHubSecretSyncSecrets` operationId) request.
+//
+// Remove previously synced secrets from the specified GitHub Sync destination.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) RemoveGitHubSecretSyncSecretsWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveGitHubSecretSyncSecretsResponse, error) {
+ rsp, err := c.RemoveGitHubSecretSyncSecrets(ctx, syncId, reqEditors...)
+ if err != nil {
+ return nil, err
}
- return ""
+ return ParseRemoveGitHubSecretSyncSecretsResponse(rsp)
}
-// GetServerStatusWithResponse performs a GET /api/status (the `GetServerStatus` operationId) request.
+// SyncGitHubSecretSyncWithResponse performs a POST /api/v1/secret-syncs/github/{syncId}/sync-secrets (the `SyncGitHubSecretSync` operationId) request.
+//
+// Trigger a sync for the specified GitHub Sync.
//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) GetServerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServerStatusResponse, error) {
- rsp, err := c.GetServerStatus(ctx, reqEditors...)
+func (c *ClientWithResponses) SyncGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SyncGitHubSecretSyncResponse, error) {
+ rsp, err := c.SyncGitHubSecretSync(ctx, syncId, reqEditors...)
if err != nil {
return nil, err
}
- return ParseGetServerStatusResponse(rsp)
+ return ParseSyncGitHubSecretSyncResponse(rsp)
}
-// AdminBootstrapWithBodyWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request,
+// CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) AdminBootstrapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {
- rsp, err := c.AdminBootstrapWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {
+ rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAdminBootstrapResponse(rsp)
+ return ParseCreateOrganizationResponse(rsp)
}
-// AdminBootstrapWithResponse performs a POST /api/v1/admin/bootstrap (the `AdminBootstrap` operationId) request.
+// CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) AdminBootstrapWithResponse(ctx context.Context, body AdminBootstrapJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBootstrapResponse, error) {
- rsp, err := c.AdminBootstrap(ctx, body, reqEditors...)
+func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {
+ rsp, err := c.CreateOrganization(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAdminBootstrapResponse(rsp)
+ return ParseCreateOrganizationResponse(rsp)
}
-// UpdateAdminConfigWithBodyWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request,
+// DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) {
+ rsp, err := c.DeleteOrganization(ctx, organizationId, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseDeleteOrganizationResponse(rsp)
+}
+
+// LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) UpdateAdminConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {
- rsp, err := c.UpdateAdminConfigWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {
+ rsp, err := c.LoginV3WithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateAdminConfigResponse(rsp)
+ return ParseLoginV3Response(rsp)
}
-// UpdateAdminConfigWithResponse performs a PATCH /api/v1/admin/config (the `UpdateAdminConfig` operationId) request.
+// LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) UpdateAdminConfigWithResponse(ctx context.Context, body UpdateAdminConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAdminConfigResponse, error) {
- rsp, err := c.UpdateAdminConfig(ctx, body, reqEditors...)
+func (c *ClientWithResponses) LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {
+ rsp, err := c.LoginV3(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseUpdateAdminConfigResponse(rsp)
+ return ParseLoginV3Response(rsp)
}
-// CreateGitHubAppConnectionWithBodyWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request,
+// SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
// with any type of body and a specified content type.
//
-// Create a GitHub Connection.
-//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateGitHubAppConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
- rsp, err := c.CreateGitHubAppConnectionWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {
+ rsp, err := c.SelectOrganizationV3WithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateGitHubAppConnectionResponse(rsp)
+ return ParseSelectOrganizationV3Response(rsp)
}
-// CreateGitHubAppConnectionWithResponse performs a POST /api/v1/app-connections/github (the `CreateGitHubAppConnection` operationId) request.
+// SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Create a GitHub Connection.
-func (c *ClientWithResponses) CreateGitHubAppConnectionWithResponse(ctx context.Context, body CreateGitHubAppConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubAppConnectionResponse, error) {
- rsp, err := c.CreateGitHubAppConnection(ctx, body, reqEditors...)
+func (c *ClientWithResponses) SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {
+ rsp, err := c.SelectOrganizationV3(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateGitHubAppConnectionResponse(rsp)
+ return ParseSelectOrganizationV3Response(rsp)
}
-// DeleteGitHubAppConnectionWithResponse performs a DELETE /api/v1/app-connections/github/{connectionId} (the `DeleteGitHubAppConnection` operationId) request.
-//
-// Delete the specified GitHub Connection.
+// CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
+// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) DeleteGitHubAppConnectionWithResponse(ctx context.Context, connectionId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteGitHubAppConnectionResponse, error) {
- rsp, err := c.DeleteGitHubAppConnection(ctx, connectionId, reqEditors...)
+func (c *ClientWithResponses) CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {
+ rsp, err := c.CompleteAccountSignupV3WithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseDeleteGitHubAppConnectionResponse(rsp)
+ return ParseCompleteAccountSignupV3Response(rsp)
}
-// RefreshAuthTokenWithResponse performs a POST /api/v1/auth/token (the `RefreshAuthToken` operationId) request.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) RefreshAuthTokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RefreshAuthTokenResponse, error) {
- rsp, err := c.RefreshAuthToken(ctx, reqEditors...)
+// CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {
+ rsp, err := c.CompleteAccountSignupV3(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseRefreshAuthTokenResponse(rsp)
+ return ParseCompleteAccountSignupV3Response(rsp)
}
-// AttachUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request,
+// BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
// with any type of body and a specified content type.
//
-// Attach Universal Auth configuration onto machine identity.
-//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) AttachUniversalAuthWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {
- rsp, err := c.AttachUniversalAuthWithBody(ctx, identityId, contentType, body, reqEditors...)
+func (c *ClientWithResponses) BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
+ rsp, err := c.BeginEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAttachUniversalAuthResponse(rsp)
+ return ParseBeginEmailSignupV3Response(rsp)
}
-// AttachUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId} (the `AttachUniversalAuth` operationId) request.
+// BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Attach Universal Auth configuration onto machine identity.
-func (c *ClientWithResponses) AttachUniversalAuthWithResponse(ctx context.Context, identityId string, body AttachUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachUniversalAuthResponse, error) {
- rsp, err := c.AttachUniversalAuth(ctx, identityId, body, reqEditors...)
+func (c *ClientWithResponses) BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
+ rsp, err := c.BeginEmailSignupV3(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseAttachUniversalAuthResponse(rsp)
+ return ParseBeginEmailSignupV3Response(rsp)
}
-// CreateUniversalAuthClientSecretWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request,
+// VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
// with any type of body and a specified content type.
//
-// Create Universal Auth Client Secret for machine identity.
-//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithBodyWithResponse(ctx context.Context, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {
- rsp, err := c.CreateUniversalAuthClientSecretWithBody(ctx, identityId, contentType, body, reqEditors...)
+func (c *ClientWithResponses) VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
+ rsp, err := c.VerifyEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateUniversalAuthClientSecretResponse(rsp)
+ return ParseVerifyEmailSignupV3Response(rsp)
}
-// CreateUniversalAuthClientSecretWithResponse performs a POST /api/v1/auth/universal-auth/identities/{identityId}/client-secrets (the `CreateUniversalAuthClientSecret` operationId) request.
+// VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
+ rsp, err := c.VerifyEmailSignupV3(ctx, body, reqEditors...)
+ if err != nil {
+ return nil, err
+ }
+ return ParseVerifyEmailSignupV3Response(rsp)
+}
+
+// ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
//
-// Create Universal Auth Client Secret for machine identity.
-func (c *ClientWithResponses) CreateUniversalAuthClientSecretWithResponse(ctx context.Context, identityId string, body CreateUniversalAuthClientSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUniversalAuthClientSecretResponse, error) {
- rsp, err := c.CreateUniversalAuthClientSecret(ctx, identityId, body, reqEditors...)
+// List secrets.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error) {
+ rsp, err := c.ListSecretsV4(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateUniversalAuthClientSecretResponse(rsp)
+ return ParseListSecretsV4Response(rsp)
}
-// LoginWithUniversalAuthWithBodyWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request,
+// DeleteSecretV4WithBodyWithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request,
// with any type of body and a specified content type.
//
-// Login with Universal Auth for machine identity.
+// Delete secret.
//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) LoginWithUniversalAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {
- rsp, err := c.LoginWithUniversalAuthWithBody(ctx, contentType, body, reqEditors...)
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) DeleteSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error) {
+ rsp, err := c.DeleteSecretV4WithBody(ctx, secretName, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseLoginWithUniversalAuthResponse(rsp)
+ return ParseDeleteSecretV4Response(rsp)
}
-// LoginWithUniversalAuthWithResponse performs a POST /api/v1/auth/universal-auth/login (the `LoginWithUniversalAuth` operationId) request.
+// DeleteSecretV4WithResponse performs a DELETE /api/v4/secrets/{secretName} (the `DeleteSecretV4` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
-// Login with Universal Auth for machine identity.
-func (c *ClientWithResponses) LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error) {
- rsp, err := c.LoginWithUniversalAuth(ctx, body, reqEditors...)
+// Delete secret.
+func (c *ClientWithResponses) DeleteSecretV4WithResponse(ctx context.Context, secretName string, body DeleteSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSecretV4Response, error) {
+ rsp, err := c.DeleteSecretV4(ctx, secretName, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseLoginWithUniversalAuthResponse(rsp)
+ return ParseDeleteSecretV4Response(rsp)
}
-// CreateMachineIdentityWithBodyWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request,
-// with any type of body and a specified content type.
+// GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
//
-// Create machine identity.
+// Get a secret by name.
//
// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateMachineIdentityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {
- rsp, err := c.CreateMachineIdentityWithBody(ctx, contentType, body, reqEditors...)
+func (c *ClientWithResponses) GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error) {
+ rsp, err := c.GetSecretByNameV4(ctx, secretName, params, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateMachineIdentityResponse(rsp)
+ return ParseGetSecretByNameV4Response(rsp)
}
-// CreateMachineIdentityWithResponse performs a POST /api/v1/identities (the `CreateMachineIdentity` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
+// CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
+// with any type of body and a specified content type.
//
-// Create machine identity.
-func (c *ClientWithResponses) CreateMachineIdentityWithResponse(ctx context.Context, body CreateMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMachineIdentityResponse, error) {
- rsp, err := c.CreateMachineIdentity(ctx, body, reqEditors...)
+// Create secret.
+//
+// Returns a wrapper object for the known response body format(s).
+func (c *ClientWithResponses) CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error) {
+ rsp, err := c.CreateSecretV4WithBody(ctx, secretName, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseCreateMachineIdentityResponse(rsp)
+ return ParseCreateSecretV4Response(rsp)
}
-// InviteUsersToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request,
-// with any type of body and a specified content type.
+// CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) InviteUsersToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {
- rsp, err := c.InviteUsersToOrganizationWithBody(ctx, contentType, body, reqEditors...)
+// Create secret.
+func (c *ClientWithResponses) CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error) {
+ rsp, err := c.CreateSecretV4(ctx, secretName, body, reqEditors...)
if err != nil {
return nil, err
}
- return ParseInviteUsersToOrganizationResponse(rsp)
+ return ParseCreateSecretV4Response(rsp)
}
-// InviteUsersToOrganizationWithResponse performs a POST /api/v1/invite-org/signup (the `InviteUsersToOrganization` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) InviteUsersToOrganizationWithResponse(ctx context.Context, body InviteUsersToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteUsersToOrganizationResponse, error) {
- rsp, err := c.InviteUsersToOrganization(ctx, body, reqEditors...)
+// ParseGetServerStatusResponse parses an HTTP response from a GetServerStatusWithResponse call
+func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseInviteUsersToOrganizationResponse(rsp)
+
+ response := &GetServerStatusResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
+ Date time.Time `json:"date"`
+ EmailConfigured *bool `json:"emailConfigured,omitempty"`
+ InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
+ MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
+ Message *string `json:"message,omitempty"`
+ RedisConfigured *bool `json:"redisConfigured,omitempty"`
+ SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
+ SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
}
-// VerifyUserToOrganizationWithBodyWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) VerifyUserToOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {
- rsp, err := c.VerifyUserToOrganizationWithBody(ctx, contentType, body, reqEditors...)
+// ParseAdminBootstrapResponse parses an HTTP response from a AdminBootstrapWithResponse call
+func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseVerifyUserToOrganizationResponse(rsp)
-}
-// VerifyUserToOrganizationWithResponse performs a POST /api/v1/invite-org/verify (the `VerifyUserToOrganization` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error) {
- rsp, err := c.VerifyUserToOrganization(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseVerifyUserToOrganizationResponse(rsp)
-}
+ response := &AdminBootstrapResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Identity struct {
+ Credentials struct {
+ Token string `json:"token"`
+ } `json:"credentials"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"identity"`
+ Message string `json:"message"`
+ Organization struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"organization"`
+ User struct {
+ Email *string `json:"email,omitempty"`
+ FirstName *string `json:"firstName,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ LastName *string `json:"lastName,omitempty"`
+ SuperAdmin *bool `json:"superAdmin,omitempty"`
+ Username string `json:"username"`
+ } `json:"user"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
-// GetOrganizationPlanWithResponse performs a GET /api/v1/organizations/{organizationId}/plan (the `GetOrganizationPlan` operationId) request.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) GetOrganizationPlanWithResponse(ctx context.Context, organizationId string, params *GetOrganizationPlanParams, reqEditors ...RequestEditorFn) (*GetOrganizationPlanResponse, error) {
- rsp, err := c.GetOrganizationPlan(ctx, organizationId, params, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseGetOrganizationPlanResponse(rsp)
-}
-// CreateProjectWithBodyWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create a new project.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {
- rsp, err := c.CreateProjectWithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectResponse(rsp)
+ return response, nil
}
-// CreateProjectWithResponse performs a POST /api/v1/projects (the `CreateProject` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Create a new project.
-func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) {
- rsp, err := c.CreateProject(ctx, body, reqEditors...)
+// ParseUpdateAdminConfigResponse parses an HTTP response from a UpdateAdminConfigWithResponse call
+func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseCreateProjectResponse(rsp)
-}
-// ListProjectMachineIdentitiesWithResponse performs a GET /api/v1/projects/{projectId}/identities (the `ListProjectMachineIdentities` operationId) request.
-//
-// List identities in a project.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) ListProjectMachineIdentitiesWithResponse(ctx context.Context, projectId string, params *ListProjectMachineIdentitiesParams, reqEditors ...RequestEditorFn) (*ListProjectMachineIdentitiesResponse, error) {
- rsp, err := c.ListProjectMachineIdentities(ctx, projectId, params, reqEditors...)
- if err != nil {
- return nil, err
+ response := &UpdateAdminConfigResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseListProjectMachineIdentitiesResponse(rsp)
-}
-// CreateProjectMachineIdentityWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create an identity in a project.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateProjectMachineIdentityWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {
- rsp, err := c.CreateProjectMachineIdentityWithBody(ctx, projectId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectMachineIdentityResponse(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ Config struct {
+ AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
+ AllowSignUp *bool `json:"allowSignUp,omitempty"`
+ AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
+ AuthConsentContent *string `json:"authConsentContent,omitempty"`
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+ DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
+ DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
+ DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
+ DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
+ EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
+ FipsEnabled *bool `json:"fipsEnabled,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Initialized *bool `json:"initialized,omitempty"`
+ InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
+ IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
+ IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
+ IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
+ IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
+ IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
+ KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
+ LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
+ OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
+ PageFrameContent *string `json:"pageFrameContent,omitempty"`
+ ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
+ PasswordPolicy struct {
+ Requirements []struct {
+ Code string `json:"code"`
+ Flags *string `json:"flags,omitempty"`
+ IsPrimary bool `json:"isPrimary"`
+ MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
+ Message string `json:"message"`
+ Patterns []string `json:"patterns"`
+ ShouldMatch bool `json:"shouldMatch"`
+ ValidationMessage string `json:"validationMessage"`
+ } `json:"requirements"`
+ } `json:"passwordPolicy"`
+ TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
+ } `json:"config"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
-// CreateProjectMachineIdentityWithResponse performs a POST /api/v1/projects/{projectId}/identities (the `CreateProjectMachineIdentity` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Create an identity in a project.
-func (c *ClientWithResponses) CreateProjectMachineIdentityWithResponse(ctx context.Context, projectId string, body CreateProjectMachineIdentityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectMachineIdentityResponse, error) {
- rsp, err := c.CreateProjectMachineIdentity(ctx, projectId, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectMachineIdentityResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
-// InviteProjectMembersWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request,
-// with any type of body and a specified content type.
-//
-// Invite members to project.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) InviteProjectMembersWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {
- rsp, err := c.InviteProjectMembersWithBody(ctx, projectId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseInviteProjectMembersResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
-// InviteProjectMembersWithResponse performs a POST /api/v1/projects/{projectId}/memberships (the `InviteProjectMembers` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Invite members to project.
-func (c *ClientWithResponses) InviteProjectMembersWithResponse(ctx context.Context, projectId string, body InviteProjectMembersJSONRequestBody, reqEditors ...RequestEditorFn) (*InviteProjectMembersResponse, error) {
- rsp, err := c.InviteProjectMembers(ctx, projectId, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseInviteProjectMembersResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
-// CreateProjectIdentityMembershipWithBodyWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create project identity membership.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateProjectIdentityMembershipWithBodyWithResponse(ctx context.Context, projectId string, identityId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {
- rsp, err := c.CreateProjectIdentityMembershipWithBody(ctx, projectId, identityId, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectIdentityMembershipResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-// CreateProjectIdentityMembershipWithResponse performs a POST /api/v1/projects/{projectId}/memberships/identities/{identityId} (the `CreateProjectIdentityMembership` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Create project identity membership.
-func (c *ClientWithResponses) CreateProjectIdentityMembershipWithResponse(ctx context.Context, projectId string, identityId string, body CreateProjectIdentityMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectIdentityMembershipResponse, error) {
- rsp, err := c.CreateProjectIdentityMembership(ctx, projectId, identityId, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateProjectIdentityMembershipResponse(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
-// CreateOrganizationWithBodyWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {
- rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseCreateOrganizationResponse(rsp)
-}
-// CreateOrganizationWithResponse performs a POST /api/v2/organizations (the `CreateOrganization` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error) {
- rsp, err := c.CreateOrganization(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateOrganizationResponse(rsp)
+ return response, nil
}
-// DeleteOrganizationWithResponse performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) {
- rsp, err := c.DeleteOrganization(ctx, organizationId, reqEditors...)
+// ParseCreateGitHubAppConnectionResponse parses an HTTP response from a CreateGitHubAppConnectionWithResponse call
+func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAppConnectionResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseDeleteOrganizationResponse(rsp)
-}
-// LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) LoginV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {
- rsp, err := c.LoginV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &CreateGitHubAppConnectionResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseLoginV3Response(rsp)
-}
-// LoginV3WithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) LoginV3WithResponse(ctx context.Context, body LoginV3JSONRequestBody, reqEditors ...RequestEditorFn) (*LoginV3Response, error) {
- rsp, err := c.LoginV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseLoginV3Response(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
-// SelectOrganizationV3WithBodyWithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) SelectOrganizationV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {
- rsp, err := c.SelectOrganizationV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseSelectOrganizationV3Response(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
-// SelectOrganizationV3WithResponse performs a POST /api/v3/auth/select-organization (the `SelectOrganizationV3` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) SelectOrganizationV3WithResponse(ctx context.Context, body SelectOrganizationV3JSONRequestBody, reqEditors ...RequestEditorFn) (*SelectOrganizationV3Response, error) {
- rsp, err := c.SelectOrganizationV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseSelectOrganizationV3Response(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
-// CompleteAccountSignupV3WithBodyWithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CompleteAccountSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {
- rsp, err := c.CompleteAccountSignupV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCompleteAccountSignupV3Response(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
-// CompleteAccountSignupV3WithResponse performs a POST /api/v3/signup/complete-account (the `CompleteAccountSignupV3` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CompleteAccountSignupV3WithResponse(ctx context.Context, body CompleteAccountSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteAccountSignupV3Response, error) {
- rsp, err := c.CompleteAccountSignupV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCompleteAccountSignupV3Response(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
-// BeginEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) BeginEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
- rsp, err := c.BeginEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseBeginEmailSignupV3Response(rsp)
+
+ return response, nil
}
-// BeginEmailSignupV3WithResponse performs a POST /api/v3/signup/email/signup (the `BeginEmailSignupV3` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) BeginEmailSignupV3WithResponse(ctx context.Context, body BeginEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*BeginEmailSignupV3Response, error) {
- rsp, err := c.BeginEmailSignupV3(ctx, body, reqEditors...)
+// ParseDeleteGitHubAppConnectionResponse parses an HTTP response from a DeleteGitHubAppConnectionWithResponse call
+func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAppConnectionResponse, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- return ParseBeginEmailSignupV3Response(rsp)
-}
-// VerifyEmailSignupV3WithBodyWithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request,
-// with any type of body and a specified content type.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) VerifyEmailSignupV3WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
- rsp, err := c.VerifyEmailSignupV3WithBody(ctx, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
+ response := &DeleteGitHubAppConnectionResponse{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
}
- return ParseVerifyEmailSignupV3Response(rsp)
-}
-// VerifyEmailSignupV3WithResponse performs a POST /api/v3/signup/email/verify (the `VerifyEmailSignupV3` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) VerifyEmailSignupV3WithResponse(ctx context.Context, body VerifyEmailSignupV3JSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailSignupV3Response, error) {
- rsp, err := c.VerifyEmailSignupV3(ctx, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseVerifyEmailSignupV3Response(rsp)
-}
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest struct {
+ AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
-// ListSecretsV4WithResponse performs a GET /api/v4/secrets (the `ListSecretsV4` operationId) request.
-//
-// List secrets.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) ListSecretsV4WithResponse(ctx context.Context, params *ListSecretsV4Params, reqEditors ...RequestEditorFn) (*ListSecretsV4Response, error) {
- rsp, err := c.ListSecretsV4(ctx, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseListSecretsV4Response(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
-// GetSecretByNameV4WithResponse performs a GET /api/v4/secrets/{secretName} (the `GetSecretByNameV4` operationId) request.
-//
-// Get a secret by name.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) GetSecretByNameV4WithResponse(ctx context.Context, secretName string, params *GetSecretByNameV4Params, reqEditors ...RequestEditorFn) (*GetSecretByNameV4Response, error) {
- rsp, err := c.GetSecretByNameV4(ctx, secretName, params, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseGetSecretByNameV4Response(rsp)
-}
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
-// CreateSecretV4WithBodyWithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request,
-// with any type of body and a specified content type.
-//
-// Create secret.
-//
-// Returns a wrapper object for the known response body format(s).
-func (c *ClientWithResponses) CreateSecretV4WithBodyWithResponse(ctx context.Context, secretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error) {
- rsp, err := c.CreateSecretV4WithBody(ctx, secretName, contentType, body, reqEditors...)
- if err != nil {
- return nil, err
}
- return ParseCreateSecretV4Response(rsp)
-}
-// CreateSecretV4WithResponse performs a POST /api/v4/secrets/{secretName} (the `CreateSecretV4` operationId) request.
-// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
-//
-// Create secret.
-func (c *ClientWithResponses) CreateSecretV4WithResponse(ctx context.Context, secretName string, body CreateSecretV4JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretV4Response, error) {
- rsp, err := c.CreateSecretV4(ctx, secretName, body, reqEditors...)
- if err != nil {
- return nil, err
- }
- return ParseCreateSecretV4Response(rsp)
+ return response, nil
}
-// ParseGetServerStatusResponse parses an HTTP response from a GetServerStatusWithResponse call
-func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse, error) {
+// ParseRefreshAuthTokenResponse parses an HTTP response from a RefreshAuthTokenWithResponse call
+func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetServerStatusResponse{
+ response := &RefreshAuthTokenResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15113,15 +20093,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- AuditLogStorageDisabled *bool `json:"auditLogStorageDisabled,omitempty"`
- Date time.Time `json:"date"`
- EmailConfigured *bool `json:"emailConfigured,omitempty"`
- InviteOnlySignup *bool `json:"inviteOnlySignup,omitempty"`
- MaxIdentityAccessTokenTTL *float32 `json:"maxIdentityAccessTokenTTL,omitempty"`
- Message *string `json:"message,omitempty"`
- RedisConfigured *bool `json:"redisConfigured,omitempty"`
- SamlDefaultOrgSlug *string `json:"samlDefaultOrgSlug,omitempty"`
- SecretScanningConfigured *bool `json:"secretScanningConfigured,omitempty"`
+ OrganizationId *string `json:"organizationId,omitempty"`
+ RefreshToken *string `json:"refreshToken,omitempty"`
+ SubOrganizationId *string `json:"subOrganizationId,omitempty"`
+ Token string `json:"token"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15130,11 +20105,11 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15143,10 +20118,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15155,11 +20130,11 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15168,10 +20143,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15180,10 +20155,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15192,10 +20167,10 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetServerStatus500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15207,15 +20182,15 @@ func ParseGetServerStatusResponse(rsp *http.Response) (*GetServerStatusResponse,
return response, nil
}
-// ParseAdminBootstrapResponse parses an HTTP response from a AdminBootstrapWithResponse call
-func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, error) {
+// ParseAttachUniversalAuthResponse parses an HTTP response from a AttachUniversalAuthWithResponse call
+func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AdminBootstrapResponse{
+ response := &AttachUniversalAuthResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15223,27 +20198,23 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Identity struct {
- Credentials struct {
- Token string `json:"token"`
- } `json:"credentials"`
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- } `json:"identity"`
- Message string `json:"message"`
- Organization struct {
- Id openapi_types.UUID `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"organization"`
- User struct {
- Email *string `json:"email,omitempty"`
- FirstName *string `json:"firstName,omitempty"`
- Id openapi_types.UUID `json:"id"`
- LastName *string `json:"lastName,omitempty"`
- SuperAdmin *bool `json:"superAdmin,omitempty"`
- Username string `json:"username"`
- } `json:"user"`
+ IdentityUniversalAuth struct {
+ AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
+ AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
+ AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
+ AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
+ AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
+ ClientId string `json:"clientId"`
+ ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
+ LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
+ LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
+ LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityUniversalAuth"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15252,11 +20223,11 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15265,10 +20236,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15277,11 +20248,11 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15290,10 +20261,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15302,10 +20273,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15314,10 +20285,10 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AdminBootstrap500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15329,15 +20300,15 @@ func ParseAdminBootstrapResponse(rsp *http.Response) (*AdminBootstrapResponse, e
return response, nil
}
-// ParseUpdateAdminConfigResponse parses an HTTP response from a UpdateAdminConfigWithResponse call
-func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigResponse, error) {
+// ParseCreateUniversalAuthClientSecretResponse parses an HTTP response from a CreateUniversalAuthClientSecretWithResponse call
+func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUniversalAuthClientSecretResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &UpdateAdminConfigResponse{
+ response := &CreateUniversalAuthClientSecretResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15345,45 +20316,19 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Config struct {
- AdminIdentityIds *[]string `json:"adminIdentityIds,omitempty"`
- AllowSignUp *bool `json:"allowSignUp,omitempty"`
- AllowedSignUpDomain *string `json:"allowedSignUpDomain,omitempty"`
- AuthConsentContent *string `json:"authConsentContent,omitempty"`
- CreatedAt *time.Time `json:"createdAt,omitempty"`
- DefaultAuthOrgAuthEnforced *bool `json:"defaultAuthOrgAuthEnforced,omitempty"`
- DefaultAuthOrgAuthMethod *string `json:"defaultAuthOrgAuthMethod,omitempty"`
- DefaultAuthOrgId *openapi_types.UUID `json:"defaultAuthOrgId,omitempty"`
- DefaultAuthOrgSlug *string `json:"defaultAuthOrgSlug"`
- EnabledLoginMethods *[]string `json:"enabledLoginMethods,omitempty"`
- FipsEnabled *bool `json:"fipsEnabled,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Initialized *bool `json:"initialized,omitempty"`
- InstanceId *openapi_types.UUID `json:"instanceId,omitempty"`
- IsClickhouseAuditLogEnabled *bool `json:"isClickhouseAuditLogEnabled,omitempty"`
- IsMigrationModeOn *bool `json:"isMigrationModeOn,omitempty"`
- IsOfflineUsageReportsEnabled *bool `json:"isOfflineUsageReportsEnabled,omitempty"`
- IsPublicSecretSharingDisabled *bool `json:"isPublicSecretSharingDisabled,omitempty"`
- IsSecretScanningDisabled *bool `json:"isSecretScanningDisabled,omitempty"`
- KubernetesAutoFetchServiceAccountToken *bool `json:"kubernetesAutoFetchServiceAccountToken,omitempty"`
- LatestAvailableVersion *string `json:"latestAvailableVersion,omitempty"`
- OnboardingCompleted *bool `json:"onboardingCompleted,omitempty"`
- PageFrameContent *string `json:"pageFrameContent,omitempty"`
- ParamsFolderSecretDetectionEnabled *bool `json:"paramsFolderSecretDetectionEnabled,omitempty"`
- PasswordPolicy struct {
- Requirements []struct {
- Code string `json:"code"`
- Flags *string `json:"flags,omitempty"`
- IsPrimary bool `json:"isPrimary"`
- MaxConsecutiveCharacters *int `json:"maxConsecutiveCharacters,omitempty"`
- Message string `json:"message"`
- Patterns []string `json:"patterns"`
- ShouldMatch bool `json:"shouldMatch"`
- ValidationMessage string `json:"validationMessage"`
- } `json:"requirements"`
- } `json:"passwordPolicy"`
- TrustLdapEmails *bool `json:"trustLdapEmails,omitempty"`
- } `json:"config"`
+ ClientSecret string `json:"clientSecret"`
+ ClientSecretData struct {
+ ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
+ ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
+ ClientSecretPrefix string `json:"clientSecretPrefix"`
+ ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description string `json:"description"`
+ Id string `json:"id"`
+ IdentityUAId openapi_types.UUID `json:"identityUAId"`
+ IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"clientSecretData"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15392,11 +20337,11 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15405,10 +20350,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15417,11 +20362,11 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15430,10 +20375,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15442,10 +20387,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15454,10 +20399,10 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode UpdateAdminConfig500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15469,15 +20414,15 @@ func ParseUpdateAdminConfigResponse(rsp *http.Response) (*UpdateAdminConfigRespo
return response, nil
}
-// ParseCreateGitHubAppConnectionResponse parses an HTTP response from a CreateGitHubAppConnectionWithResponse call
-func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAppConnectionResponse, error) {
+// ParseLoginWithUniversalAuthResponse parses an HTTP response from a LoginWithUniversalAuthWithResponse call
+func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversalAuthResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateGitHubAppConnectionResponse{
+ response := &LoginWithUniversalAuthResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15485,7 +20430,10 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- AppConnection CreateGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ AccessToken string `json:"accessToken"`
+ AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
+ ExpiresIn float32 `json:"expiresIn"`
+ TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15494,11 +20442,11 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15507,10 +20455,10 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15519,11 +20467,11 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15532,10 +20480,10 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15544,10 +20492,10 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15556,10 +20504,10 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15571,15 +20519,15 @@ func ParseCreateGitHubAppConnectionResponse(rsp *http.Response) (*CreateGitHubAp
return response, nil
}
-// ParseDeleteGitHubAppConnectionResponse parses an HTTP response from a DeleteGitHubAppConnectionWithResponse call
-func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAppConnectionResponse, error) {
+// ParseCreateMachineIdentityResponse parses an HTTP response from a CreateMachineIdentityWithResponse call
+func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdentityResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &DeleteGitHubAppConnectionResponse{
+ response := &CreateMachineIdentityResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15587,7 +20535,22 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- AppConnection DeleteGitHubAppConnection200JSONResponseBody_AppConnection `json:"appConnection"`
+ Identity struct {
+ AuthMethod *string `json:"authMethod,omitempty"`
+ AuthMethods []string `json:"authMethods"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata []struct {
+ Id string `json:"id"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ ProjectId *string `json:"projectId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identity"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15596,11 +20559,11 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15609,10 +20572,10 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15621,11 +20584,11 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15634,10 +20597,10 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15646,10 +20609,10 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15658,10 +20621,10 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode DeleteGitHubAppConnection500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15673,15 +20636,15 @@ func ParseDeleteGitHubAppConnectionResponse(rsp *http.Response) (*DeleteGitHubAp
return response, nil
}
-// ParseRefreshAuthTokenResponse parses an HTTP response from a RefreshAuthTokenWithResponse call
-func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenResponse, error) {
+// ParseInviteUsersToOrganizationResponse parses an HTTP response from a InviteUsersToOrganizationWithResponse call
+func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToOrganizationResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &RefreshAuthTokenResponse{
+ response := &InviteUsersToOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15689,10 +20652,16 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- OrganizationId *string `json:"organizationId,omitempty"`
- RefreshToken *string `json:"refreshToken,omitempty"`
- SubOrganizationId *string `json:"subOrganizationId,omitempty"`
- Token string `json:"token"`
+ CompleteInviteLinks *[]struct {
+ Email string `json:"email"`
+ Link string `json:"link"`
+ } `json:"completeInviteLinks,omitempty"`
+ GrantFailures *struct {
+ AgentVaultAccess bool `json:"agentVaultAccess"`
+ PamAccess bool `json:"pamAccess"`
+ ProjectIds []string `json:"projectIds"`
+ } `json:"grantFailures,omitempty"`
+ Message string `json:"message"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15701,11 +20670,11 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15714,10 +20683,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15726,11 +20695,11 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15739,10 +20708,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15751,10 +20720,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15763,10 +20732,10 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode RefreshAuthToken500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15778,15 +20747,15 @@ func ParseRefreshAuthTokenResponse(rsp *http.Response) (*RefreshAuthTokenRespons
return response, nil
}
-// ParseAttachUniversalAuthResponse parses an HTTP response from a AttachUniversalAuthWithResponse call
-func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthResponse, error) {
+// ParseVerifyUserToOrganizationResponse parses an HTTP response from a VerifyUserToOrganizationWithResponse call
+func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrganizationResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &AttachUniversalAuthResponse{
+ response := &VerifyUserToOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15794,23 +20763,11 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- IdentityUniversalAuth struct {
- AccessTokenMaxTTL *float32 `json:"accessTokenMaxTTL,omitempty"`
- AccessTokenNumUsesLimit *float32 `json:"accessTokenNumUsesLimit,omitempty"`
- AccessTokenPeriod *float32 `json:"accessTokenPeriod,omitempty"`
- AccessTokenTTL *float32 `json:"accessTokenTTL,omitempty"`
- AccessTokenTrustedIps interface{} `json:"accessTokenTrustedIps,omitempty"`
- ClientId string `json:"clientId"`
- ClientSecretTrustedIps interface{} `json:"clientSecretTrustedIps,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- IdentityId openapi_types.UUID `json:"identityId"`
- LockoutCounterResetSeconds *float32 `json:"lockoutCounterResetSeconds,omitempty"`
- LockoutDurationSeconds *float32 `json:"lockoutDurationSeconds,omitempty"`
- LockoutEnabled *bool `json:"lockoutEnabled,omitempty"`
- LockoutThreshold *float32 `json:"lockoutThreshold,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identityUniversalAuth"`
+ Message string `json:"message"`
+
+ // OrganizationName Name of the organization associated with the verified invitation
+ OrganizationName string `json:"organizationName"`
+ Token *string `json:"token,omitempty"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15819,11 +20776,11 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15832,10 +20789,10 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15844,11 +20801,11 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15857,10 +20814,10 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15869,10 +20826,10 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15881,10 +20838,10 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode AttachUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15896,15 +20853,15 @@ func ParseAttachUniversalAuthResponse(rsp *http.Response) (*AttachUniversalAuthR
return response, nil
}
-// ParseCreateUniversalAuthClientSecretResponse parses an HTTP response from a CreateUniversalAuthClientSecretWithResponse call
-func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUniversalAuthClientSecretResponse, error) {
+// ParseGetOrganizationPlanResponse parses an HTTP response from a GetOrganizationPlanWithResponse call
+func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateUniversalAuthClientSecretResponse{
+ response := &GetOrganizationPlanResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -15912,19 +20869,7 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- ClientSecret string `json:"clientSecret"`
- ClientSecretData struct {
- ClientSecretNumUses *float32 `json:"clientSecretNumUses,omitempty"`
- ClientSecretNumUsesLimit *float32 `json:"clientSecretNumUsesLimit,omitempty"`
- ClientSecretPrefix string `json:"clientSecretPrefix"`
- ClientSecretTTL *float32 `json:"clientSecretTTL,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- Description string `json:"description"`
- Id string `json:"id"`
- IdentityUAId openapi_types.UUID `json:"identityUAId"`
- IsClientSecretRevoked *bool `json:"isClientSecretRevoked,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"clientSecretData"`
+ Plan interface{} `json:"plan,omitempty"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15933,11 +20878,11 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15946,10 +20891,10 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15958,11 +20903,11 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15971,10 +20916,10 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15983,10 +20928,10 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -15995,10 +20940,10 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateUniversalAuthClientSecret500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16010,15 +20955,15 @@ func ParseCreateUniversalAuthClientSecretResponse(rsp *http.Response) (*CreateUn
return response, nil
}
-// ParseLoginWithUniversalAuthResponse parses an HTTP response from a LoginWithUniversalAuthWithResponse call
-func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversalAuthResponse, error) {
+// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call
+func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &LoginWithUniversalAuthResponse{
+ response := &CreateProjectResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16026,10 +20971,43 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- AccessToken string `json:"accessToken"`
- AccessTokenMaxTTL float32 `json:"accessTokenMaxTTL"`
- ExpiresIn float32 `json:"expiresIn"`
- TokenType LoginWithUniversalAuth200JSONResponseBodyTokenType `json:"tokenType"`
+ Project struct {
+ UnderscoreId string `json:"_id"`
+ AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`
+ AutoCapitalization *bool `json:"autoCapitalization,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ DefaultProduct *string `json:"defaultProduct,omitempty"`
+ DeletedEnvironments []struct {
+ DeleteAfter time.Time `json:"deleteAfter"`
+ DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ SoftDeletedAt time.Time `json:"softDeletedAt"`
+ } `json:"deletedEnvironments"`
+ Description *string `json:"description,omitempty"`
+ EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`
+ Environments []struct {
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environments"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id string `json:"id"`
+ IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`
+ KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`
+ SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`
+ SecretSharing *bool `json:"secretSharing,omitempty"`
+ ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`
+ Slug string `json:"slug"`
+ Type string `json:"type"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UpgradeStatus *string `json:"upgradeStatus,omitempty"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"project"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16038,11 +21016,11 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16051,10 +21029,10 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16063,11 +21041,11 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16076,10 +21054,10 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16088,10 +21066,10 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16100,10 +21078,10 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode LoginWithUniversalAuth500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16115,15 +21093,15 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversa
return response, nil
}
-// ParseCreateMachineIdentityResponse parses an HTTP response from a CreateMachineIdentityWithResponse call
-func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdentityResponse, error) {
+// ParseListProjectMachineIdentitiesResponse parses an HTTP response from a ListProjectMachineIdentitiesWithResponse call
+func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProjectMachineIdentitiesResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateMachineIdentityResponse{
+ response := &ListProjectMachineIdentitiesResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16131,22 +21109,23 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Identity struct {
- AuthMethod *string `json:"authMethod,omitempty"`
- AuthMethods []string `json:"authMethods"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata []struct {
+ Identities []struct {
+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata *[]struct {
Id string `json:"id"`
Key string `json:"key"`
Value string `json:"value"`
- } `json:"metadata"`
+ } `json:"metadata,omitempty"`
Name string `json:"name"`
OrgId openapi_types.UUID `json:"orgId"`
ProjectId *string `json:"projectId,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identity"`
+ } `json:"identities"`
+ TotalCount float32 `json:"totalCount"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16155,11 +21134,11 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16168,10 +21147,10 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16180,11 +21159,11 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16193,10 +21172,10 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16205,10 +21184,10 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16217,10 +21196,10 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16232,15 +21211,15 @@ func ParseCreateMachineIdentityResponse(rsp *http.Response) (*CreateMachineIdent
return response, nil
}
-// ParseInviteUsersToOrganizationResponse parses an HTTP response from a InviteUsersToOrganizationWithResponse call
-func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToOrganizationResponse, error) {
+// ParseCreateProjectMachineIdentityResponse parses an HTTP response from a CreateProjectMachineIdentityWithResponse call
+func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProjectMachineIdentityResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &InviteUsersToOrganizationResponse{
+ response := &CreateProjectMachineIdentityResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16248,16 +21227,22 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- CompleteInviteLinks *[]struct {
- Email string `json:"email"`
- Link string `json:"link"`
- } `json:"completeInviteLinks,omitempty"`
- GrantFailures *struct {
- AgentVaultAccess bool `json:"agentVaultAccess"`
- PamAccess bool `json:"pamAccess"`
- ProjectIds []string `json:"projectIds"`
- } `json:"grantFailures,omitempty"`
- Message string `json:"message"`
+ Identity struct {
+ ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
+ AuthMethods *[]string `json:"authMethods,omitempty"`
+ CreatedAt time.Time `json:"createdAt"`
+ HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ Metadata *[]struct {
+ Id string `json:"id"`
+ Key string `json:"key"`
+ Value string `json:"value"`
+ } `json:"metadata,omitempty"`
+ Name string `json:"name"`
+ OrgId openapi_types.UUID `json:"orgId"`
+ ProjectId *string `json:"projectId,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identity"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16266,11 +21251,11 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16279,10 +21264,10 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16291,11 +21276,11 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16304,10 +21289,10 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16316,10 +21301,10 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16328,10 +21313,10 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteUsersToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16343,15 +21328,15 @@ func ParseInviteUsersToOrganizationResponse(rsp *http.Response) (*InviteUsersToO
return response, nil
}
-// ParseVerifyUserToOrganizationResponse parses an HTTP response from a VerifyUserToOrganizationWithResponse call
-func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrganizationResponse, error) {
+// ParseInviteProjectMembersResponse parses an HTTP response from a InviteProjectMembersWithResponse call
+func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMembersResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &VerifyUserToOrganizationResponse{
+ response := &InviteProjectMembersResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16359,11 +21344,13 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Message string `json:"message"`
-
- // OrganizationName Name of the organization associated with the verified invitation
- OrganizationName string `json:"organizationName"`
- Token *string `json:"token,omitempty"`
+ Memberships []struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ ProjectId string `json:"projectId"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ UserId openapi_types.UUID `json:"userId"`
+ } `json:"memberships"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16372,11 +21359,11 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16385,10 +21372,10 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16397,11 +21384,11 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16410,10 +21397,10 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16422,10 +21409,10 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16434,10 +21421,10 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode VerifyUserToOrganization500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16449,15 +21436,15 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrg
return response, nil
}
-// ParseGetOrganizationPlanResponse parses an HTTP response from a GetOrganizationPlanWithResponse call
-func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanResponse, error) {
+// ParseCreateProjectIdentityMembershipResponse parses an HTTP response from a CreateProjectIdentityMembershipWithResponse call
+func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreateProjectIdentityMembershipResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &GetOrganizationPlanResponse{
+ response := &CreateProjectIdentityMembershipResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16465,7 +21452,13 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Plan interface{} `json:"plan,omitempty"`
+ IdentityMembership struct {
+ CreatedAt time.Time `json:"createdAt"`
+ Id openapi_types.UUID `json:"id"`
+ IdentityId openapi_types.UUID `json:"identityId"`
+ ProjectId string `json:"projectId"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ } `json:"identityMembership"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16474,11 +21467,11 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16487,10 +21480,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16499,11 +21492,11 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16512,10 +21505,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16524,10 +21517,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16536,10 +21529,10 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode GetOrganizationPlan500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16551,15 +21544,15 @@ func ParseGetOrganizationPlanResponse(rsp *http.Response) (*GetOrganizationPlanR
return response, nil
}
-// ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call
-func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error) {
+// ParseCreateGitHubSecretSyncResponse parses an HTTP response from a CreateGitHubSecretSyncWithResponse call
+func ParseCreateGitHubSecretSyncResponse(rsp *http.Response) (*CreateGitHubSecretSyncResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateProjectResponse{
+ response := &CreateGitHubSecretSyncResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16567,43 +21560,58 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Project struct {
- UnderscoreId string `json:"_id"`
- AuditLogsRetentionDays *float32 `json:"auditLogsRetentionDays,omitempty"`
- AutoCapitalization *bool `json:"autoCapitalization,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- DefaultProduct *string `json:"defaultProduct,omitempty"`
- DeletedEnvironments []struct {
- DeleteAfter time.Time `json:"deleteAfter"`
- DeletedBy *CreateProject200JSONResponseBody_Project_DeletedEnvironments_DeletedBy `json:"deletedBy"`
- Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- SoftDeletedAt time.Time `json:"softDeletedAt"`
- } `json:"deletedEnvironments"`
- Description *string `json:"description,omitempty"`
- EnforceEncryptedSecretManagerSecretMetadata *bool `json:"enforceEncryptedSecretManagerSecretMetadata,omitempty"`
- Environments []struct {
+ SecretSync struct {
+ Connection struct {
+ App CreateGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination CreateGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig CreateGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
Id string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
- } `json:"environments"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id string `json:"id"`
- IsLegacyAdditionalPrivilegesEnabled *bool `json:"isLegacyAdditionalPrivilegesEnabled,omitempty"`
- KmsCertificateKeyId *openapi_types.UUID `json:"kmsCertificateKeyId,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- PitVersionLimit *float32 `json:"pitVersionLimit,omitempty"`
- SecretDetectionIgnoreValues *[]string `json:"secretDetectionIgnoreValues,omitempty"`
- SecretSharing *bool `json:"secretSharing,omitempty"`
- ShowSnapshotsLegacy *bool `json:"showSnapshotsLegacy,omitempty"`
- Slug string `json:"slug"`
- Type string `json:"type"`
- UpdatedAt time.Time `json:"updatedAt"`
- UpgradeStatus *string `json:"upgradeStatus,omitempty"`
- Version *float32 `json:"version,omitempty"`
- } `json:"project"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior CreateGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16612,11 +21620,11 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16625,10 +21633,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16637,11 +21645,11 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16650,10 +21658,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16662,10 +21670,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16674,10 +21682,10 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProject500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode CreateGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16689,15 +21697,15 @@ func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, err
return response, nil
}
-// ParseListProjectMachineIdentitiesResponse parses an HTTP response from a ListProjectMachineIdentitiesWithResponse call
-func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProjectMachineIdentitiesResponse, error) {
+// ParseDeleteGitHubSecretSyncResponse parses an HTTP response from a DeleteGitHubSecretSyncWithResponse call
+func ParseDeleteGitHubSecretSyncResponse(rsp *http.Response) (*DeleteGitHubSecretSyncResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &ListProjectMachineIdentitiesResponse{
+ response := &DeleteGitHubSecretSyncResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16705,23 +21713,58 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Identities []struct {
- ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
- AuthMethods *[]string `json:"authMethods,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata *[]struct {
- Id string `json:"id"`
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- ProjectId *string `json:"projectId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identities"`
- TotalCount float32 `json:"totalCount"`
+ SecretSync struct {
+ Connection struct {
+ App DeleteGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination DeleteGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig DeleteGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior DeleteGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16730,11 +21773,11 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16743,10 +21786,10 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16755,11 +21798,11 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16768,10 +21811,10 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16780,22 +21823,22 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON422 = &dest
-
- case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
- var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode ListProjectMachineIdentities500JSONResponseBodyStatusCode `json:"statusCode"`
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16807,15 +21850,15 @@ func ParseListProjectMachineIdentitiesResponse(rsp *http.Response) (*ListProject
return response, nil
}
-// ParseCreateProjectMachineIdentityResponse parses an HTTP response from a CreateProjectMachineIdentityWithResponse call
-func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProjectMachineIdentityResponse, error) {
+// ParseGetGitHubSecretSyncResponse parses an HTTP response from a GetGitHubSecretSyncWithResponse call
+func ParseGetGitHubSecretSyncResponse(rsp *http.Response) (*GetGitHubSecretSyncResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateProjectMachineIdentityResponse{
+ response := &GetGitHubSecretSyncResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16823,22 +21866,58 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Identity struct {
- ActiveLockoutAuthMethods *[]string `json:"activeLockoutAuthMethods,omitempty"`
- AuthMethods *[]string `json:"authMethods,omitempty"`
- CreatedAt time.Time `json:"createdAt"`
- HasDeleteProtection *bool `json:"hasDeleteProtection,omitempty"`
- Id openapi_types.UUID `json:"id"`
- Metadata *[]struct {
- Id string `json:"id"`
- Key string `json:"key"`
- Value string `json:"value"`
- } `json:"metadata,omitempty"`
- Name string `json:"name"`
- OrgId openapi_types.UUID `json:"orgId"`
- ProjectId *string `json:"projectId,omitempty"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identity"`
+ SecretSync struct {
+ Connection struct {
+ App GetGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination GetGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig GetGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior GetGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16847,11 +21926,11 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16860,10 +21939,10 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16872,11 +21951,11 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16885,10 +21964,10 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16897,10 +21976,10 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16909,10 +21988,10 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectMachineIdentity500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode GetGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16924,15 +22003,15 @@ func ParseCreateProjectMachineIdentityResponse(rsp *http.Response) (*CreateProje
return response, nil
}
-// ParseInviteProjectMembersResponse parses an HTTP response from a InviteProjectMembersWithResponse call
-func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMembersResponse, error) {
+// ParseRemoveGitHubSecretSyncSecretsResponse parses an HTTP response from a RemoveGitHubSecretSyncSecretsWithResponse call
+func ParseRemoveGitHubSecretSyncSecretsResponse(rsp *http.Response) (*RemoveGitHubSecretSyncSecretsResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &InviteProjectMembersResponse{
+ response := &RemoveGitHubSecretSyncSecretsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -16940,13 +22019,58 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- Memberships []struct {
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- ProjectId string `json:"projectId"`
- UpdatedAt time.Time `json:"updatedAt"`
- UserId openapi_types.UUID `json:"userId"`
- } `json:"memberships"`
+ SecretSync struct {
+ Connection struct {
+ App RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig RemoveGitHubSecretSyncSecrets200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior RemoveGitHubSecretSyncSecrets200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16955,11 +22079,11 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16968,10 +22092,10 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16980,11 +22104,11 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -16993,10 +22117,10 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17005,10 +22129,10 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17017,10 +22141,10 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode InviteProjectMembers500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode RemoveGitHubSecretSyncSecrets500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17032,15 +22156,15 @@ func ParseInviteProjectMembersResponse(rsp *http.Response) (*InviteProjectMember
return response, nil
}
-// ParseCreateProjectIdentityMembershipResponse parses an HTTP response from a CreateProjectIdentityMembershipWithResponse call
-func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreateProjectIdentityMembershipResponse, error) {
+// ParseSyncGitHubSecretSyncResponse parses an HTTP response from a SyncGitHubSecretSyncWithResponse call
+func ParseSyncGitHubSecretSyncResponse(rsp *http.Response) (*SyncGitHubSecretSyncResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
- response := &CreateProjectIdentityMembershipResponse{
+ response := &SyncGitHubSecretSyncResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
@@ -17048,13 +22172,58 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest struct {
- IdentityMembership struct {
- CreatedAt time.Time `json:"createdAt"`
- Id openapi_types.UUID `json:"id"`
- IdentityId openapi_types.UUID `json:"identityId"`
- ProjectId string `json:"projectId"`
- UpdatedAt time.Time `json:"updatedAt"`
- } `json:"identityMembership"`
+ SecretSync struct {
+ Connection struct {
+ App SyncGitHubSecretSync200JSONResponseBodySecretSyncConnectionApp `json:"app"`
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ } `json:"connection"`
+ ConnectionId openapi_types.UUID `json:"connectionId"`
+ CreatedAt time.Time `json:"createdAt"`
+ Description *string `json:"description,omitempty"`
+ Destination SyncGitHubSecretSync200JSONResponseBodySecretSyncDestination `json:"destination"`
+ DestinationConfig SyncGitHubSecretSync200JSONResponseBody_SecretSync_DestinationConfig `json:"destinationConfig"`
+ Environment *struct {
+ Id openapi_types.UUID `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ } `json:"environment"`
+ Folder *struct {
+ Id string `json:"id"`
+ Path string `json:"path"`
+ } `json:"folder"`
+ FolderId *openapi_types.UUID `json:"folderId,omitempty"`
+ Id openapi_types.UUID `json:"id"`
+ ImportStatus *string `json:"importStatus,omitempty"`
+ IsAutoSyncEnabled *bool `json:"isAutoSyncEnabled,omitempty"`
+ LastImportJobId *string `json:"lastImportJobId,omitempty"`
+ LastImportMessage *string `json:"lastImportMessage,omitempty"`
+ LastImportedAt *time.Time `json:"lastImportedAt,omitempty"`
+ LastRemoveJobId *string `json:"lastRemoveJobId,omitempty"`
+ LastRemoveMessage *string `json:"lastRemoveMessage,omitempty"`
+ LastRemovedAt *time.Time `json:"lastRemovedAt,omitempty"`
+ LastSyncJobId *string `json:"lastSyncJobId,omitempty"`
+ LastSyncMessage *string `json:"lastSyncMessage,omitempty"`
+ LastSyncedAt *time.Time `json:"lastSyncedAt,omitempty"`
+ Name string `json:"name"`
+ ProjectId string `json:"projectId"`
+ RemoveStatus *string `json:"removeStatus,omitempty"`
+
+ // SyncOptions Optional parameters to modify how secrets are synced.
+ SyncOptions struct {
+ // DisableSecretDeletion Enable this flag to prevent removal of secrets from the GitHub destination when syncing.
+ DisableSecretDeletion *bool `json:"disableSecretDeletion,omitempty"`
+
+ // InitialSyncBehavior Specify how Infisical should resolve the initial sync to the GitHub destination.
+ InitialSyncBehavior SyncGitHubSecretSync200JSONResponseBodySecretSyncSyncOptionsInitialSyncBehavior `json:"initialSyncBehavior"`
+
+ // KeySchema Specify the format to use for structuring secret keys in the GitHub destination.
+ KeySchema *string `json:"keySchema,omitempty"`
+ } `json:"syncOptions"`
+ SyncStatus *string `json:"syncStatus,omitempty"`
+ UpdatedAt time.Time `json:"updatedAt"`
+ Version *float32 `json:"version,omitempty"`
+ } `json:"secretSync"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17063,11 +22232,11 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership400JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync400JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17076,10 +22245,10 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership401JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync401JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17088,11 +22257,11 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
var dest struct {
- Details interface{} `json:"details,omitempty"`
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership403JSONResponseBodyStatusCode `json:"statusCode"`
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync403JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17101,10 +22270,10 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership404JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync404JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17113,10 +22282,10 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
var dest struct {
- Error string `json:"error"`
- Message interface{} `json:"message,omitempty"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership422JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync422JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -17125,10 +22294,10 @@ func ParseCreateProjectIdentityMembershipResponse(rsp *http.Response) (*CreatePr
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest struct {
- Error string `json:"error"`
- Message string `json:"message"`
- ReqId string `json:"reqId"`
- StatusCode CreateProjectIdentityMembership500JSONResponseBodyStatusCode `json:"statusCode"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode SyncGitHubSecretSync500JSONResponseBodyStatusCode `json:"statusCode"`
}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
@@ -18125,6 +23294,106 @@ func ParseListSecretsV4Response(rsp *http.Response) (*ListSecretsV4Response, err
return response, nil
}
+// ParseDeleteSecretV4Response parses an HTTP response from a DeleteSecretV4WithResponse call
+func ParseDeleteSecretV4Response(rsp *http.Response) (*DeleteSecretV4Response, error) {
+ bodyBytes, err := io.ReadAll(rsp.Body)
+ defer func() { _ = rsp.Body.Close() }()
+ if err != nil {
+ return nil, err
+ }
+
+ response := &DeleteSecretV4Response{
+ Body: bodyBytes,
+ HTTPResponse: rsp,
+ }
+
+ switch {
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
+ var dest DeleteSecretV4200JSONResponseBody
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON200 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4400JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON400 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4401JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON401 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:
+ var dest struct {
+ Details interface{} `json:"details,omitempty"`
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4403JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON403 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4404JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON404 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:
+ var dest struct {
+ Error string `json:"error"`
+ Message interface{} `json:"message,omitempty"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4422JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON422 = &dest
+
+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
+ var dest struct {
+ Error string `json:"error"`
+ Message string `json:"message"`
+ ReqId string `json:"reqId"`
+ StatusCode DeleteSecretV4500JSONResponseBodyStatusCode `json:"statusCode"`
+ }
+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {
+ return nil, err
+ }
+ response.JSON500 = &dest
+
+ }
+
+ return response, nil
+}
+
// ParseGetSecretByNameV4Response parses an HTTP response from a GetSecretByNameV4WithResponse call
func ParseGetSecretByNameV4Response(rsp *http.Response) (*GetSecretByNameV4Response, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
diff --git a/tests/clients/api/oapi-codegen.yaml b/tests/clients/api/oapi-codegen.yaml
index 4c02f63ba9..53943183d2 100644
--- a/tests/clients/api/oapi-codegen.yaml
+++ b/tests/clients/api/oapi-codegen.yaml
@@ -37,10 +37,16 @@ output-options:
- createProjectIdentityMembership
- listProjectMachineIdentities
- createGitHubAppConnection
+ - createGitHubSecretSync
+ - getGitHubSecretSync
+ - deleteGitHubSecretSync
+ - syncGitHubSecretSync
+ - removeGitHubSecretSyncSecrets
- deleteGitHubAppConnection
- attachUniversalAuth
- createUniversalAuthClientSecret
- loginWithUniversalAuth
- createSecretV4
+ - deleteSecretV4
- getSecretByNameV4
- listSecretsV4
diff --git a/tests/fixture/appconnection/appconnection.go b/tests/fixture/appconnection/appconnection.go
index 7fa9e4b7cd..a14117d304 100644
--- a/tests/fixture/appconnection/appconnection.go
+++ b/tests/fixture/appconnection/appconnection.go
@@ -79,7 +79,7 @@ func Try(tt *testing.T, tn *harness.Tenant, p provider.Provider, opts ...Option)
// already knows, so the rule is in place before the first call carries it.
if cfg.rejectWith != 0 {
fakenet.Open[any](tt, conn.FakenetAdmin(tt), p.Host, conn.nonce).
- Fail(tt, "", "*", cfg.rejectWith, 0)
+ Fail(tt, "", "*", cfg.rejectWith)
}
connID, err := p.Create(tt.Context(), tn.Admin.API, conn.Name, conn.nonce)
diff --git a/tests/fixture/secret/secret.go b/tests/fixture/secret/secret.go
new file mode 100644
index 0000000000..295a2f2414
--- /dev/null
+++ b/tests/fixture/secret/secret.go
@@ -0,0 +1,146 @@
+// Package secret creates and reads secrets in a project.
+//
+// Environment, name and value are positional because the API refuses a request
+// without them. Everything the schema marks optional is an option, so a test that
+// needs metadata, a different path or a different actor adds one rather than
+// changing every call site.
+package secret
+
+import (
+ "fmt"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/clients/api"
+ "github.com/Infisical/infisical/tests/fixture/project"
+ "github.com/Infisical/infisical/tests/harness"
+ "github.com/Infisical/infisical/tests/internal/apierr"
+)
+
+// Value is what a read returns.
+//
+// A narrowed view rather than the generated struct, because the response is a union
+// and the fields worth asserting on are few. SecretValueHidden is one of them: a
+// value that came back hidden is useless to anything downstream, and reads as empty
+// rather than as an error.
+type Value struct {
+ Value string
+ ValueHidden bool
+ Path string
+ Version float32
+}
+
+// Option adjusts a secret operation.
+type Option func(*config)
+
+type config struct {
+ path string
+ as *harness.Principal
+}
+
+// Path places the secret somewhere other than the project root.
+func Path(p string) Option { return func(c *config) { c.path = p } }
+
+// As performs the operation as a principal other than the tenant administrator.
+//
+// Required for any test about what a member may do. Reaching for tn.Admin because it
+// is to hand makes the claim vacuous, which is why this exists before anything needs
+// it.
+func As(p *harness.Principal) Option { return func(c *config) { c.as = p } }
+
+func resolve(p *project.Project, opts []Option) (config, *api.ClientWithResponses) {
+ cfg := config{path: "/"}
+ for _, o := range opts {
+ o(&cfg)
+ }
+ client := p.Tenant().Admin.API
+ if cfg.as != nil {
+ client = cfg.as.API
+ }
+ return cfg, client
+}
+
+// Create adds a secret and returns what the API reported.
+func Create(tt *testing.T, p *project.Project, env, name, value string, opts ...Option) Value {
+ tt.Helper()
+ cfg, client := resolve(p, opts)
+
+ body := api.CreateSecretV4JSONRequestBody{
+ ProjectId: p.ID,
+ Environment: env,
+ SecretPath: &cfg.path,
+ SecretValue: value,
+ }
+ res, err := client.CreateSecretV4WithResponse(tt.Context(), name, body)
+ if err != nil {
+ tt.Fatalf("secret: creating %s: %v", name, err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("secret: creating %s returned %d: %s", name, res.StatusCode(), apierr.Body(res.Body))
+ }
+
+ // The response is a union: a secret, or an approval request when a change policy
+ // applies. A tenant has no policy unless a test adds one, so anything else means
+ // the request took a path the test did not intend.
+ created, err := res.JSON200.AsCreateSecretV4200JSONResponseBody0()
+ if err != nil {
+ tt.Fatalf("secret: creating %s returned an approval request, not a secret: %s", name, res.Body)
+ }
+ return Value{
+ Value: created.Secret.SecretValue,
+ Path: cfg.path,
+ Version: created.Secret.Version,
+ }
+}
+
+// Get reads a secret back, failing the test if it is not there.
+func Get(tt *testing.T, p *project.Project, env, name string, opts ...Option) Value {
+ tt.Helper()
+ v, err := TryGet(tt, p, env, name, opts...)
+ if err != nil {
+ tt.Fatalf("secret: %v", err)
+ }
+ return v
+}
+
+// TryGet is Get without failing, for asserting that a secret is absent.
+func TryGet(tt *testing.T, p *project.Project, env, name string, opts ...Option) (Value, error) {
+ tt.Helper()
+ cfg, client := resolve(p, opts)
+
+ res, err := client.GetSecretByNameV4WithResponse(tt.Context(), name, &api.GetSecretByNameV4Params{
+ ProjectId: p.ID,
+ Environment: &env,
+ SecretPath: &cfg.path,
+ ViewSecretValue: new(api.GetSecretByNameV4ParamsViewSecretValue("true")),
+ })
+ if err != nil {
+ return Value{}, err
+ }
+ if res.JSON200 == nil {
+ return Value{}, fmt.Errorf("reading secret %s returned %d: %s", name, res.StatusCode(), apierr.Body(res.Body))
+ }
+ return Value{
+ Value: res.JSON200.Secret.SecretValue,
+ ValueHidden: res.JSON200.Secret.SecretValueHidden,
+ Path: res.JSON200.Secret.SecretPath,
+ Version: res.JSON200.Secret.Version,
+ }, nil
+}
+
+// Delete removes a secret.
+func Delete(tt *testing.T, p *project.Project, env, name string, opts ...Option) {
+ tt.Helper()
+ cfg, client := resolve(p, opts)
+
+ res, err := client.DeleteSecretV4WithResponse(tt.Context(), name, api.DeleteSecretV4JSONRequestBody{
+ ProjectId: p.ID,
+ Environment: env,
+ SecretPath: &cfg.path,
+ })
+ if err != nil {
+ tt.Fatalf("secret: deleting %s: %v", name, err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("secret: deleting %s returned %d: %s", name, res.StatusCode(), apierr.Body(res.Body))
+ }
+}
diff --git a/tests/infra/fakenet/client.go b/tests/infra/fakenet/client.go
index 1ad5bb9b9c..9e15caeed9 100644
--- a/tests/infra/fakenet/client.go
+++ b/tests/infra/fakenet/client.go
@@ -63,13 +63,30 @@ func (s *Scope[S]) Seed(tt *testing.T, fragments ...any) {
}
}
+// RuleOption narrows how a failure is injected.
+type RuleOption func(*Rule)
+
+// Times limits a rule to the next n matching requests. Without it the rule applies
+// to every one.
+func Times(n int) RuleOption { return func(r *Rule) { r.Times = n } }
+
+// Body sets what the refusal answers with, for a destination whose error shape the
+// product parses.
+func Body(s string) RuleOption { return func(r *Rule) { r.Body = s } }
+
// Fail makes matching requests answer with status instead of reaching the fake.
-// times of 0 applies to every matching request. Path may end in * to match a prefix.
-func (s *Scope[S]) Fail(tt *testing.T, method, path string, status, times int) {
+//
+// Method, path and status are required because a rule without them refuses nothing
+// in particular. Path may end in * to match a prefix, and an empty method matches
+// any.
+func (s *Scope[S]) Fail(tt *testing.T, method, path string, status int, opts ...RuleOption) {
tt.Helper()
- if err := s.do(http.MethodPost, "/rules", Rule{
- Method: method, Path: path, Status: status, Times: times,
- }, nil); err != nil {
+
+ rule := Rule{Method: method, Path: path, Status: status}
+ for _, o := range opts {
+ o(&rule)
+ }
+ if err := s.do(http.MethodPost, "/rules", rule, nil); err != nil {
tt.Fatalf("fakenet: adding a rule: %v", err)
}
}
diff --git a/tests/internal/mail/mail.go b/tests/internal/mail/mail.go
index b0dfdb4af6..8d0617bf9c 100644
--- a/tests/internal/mail/mail.go
+++ b/tests/internal/mail/mail.go
@@ -13,6 +13,8 @@ import (
"net/url"
"strings"
"time"
+
+ "github.com/Infisical/infisical/tests/internal/wait"
)
// Message is the part of a Mailpit message the harness cares about.
@@ -60,35 +62,38 @@ func (in *Inbox) Await(ctx context.Context, addr string, filters ...Filter) (Mes
in.domain, addr)
}
- deadline := time.Now().Add(20 * time.Second)
- var lastErr error
- for {
+ // Tracked across attempts so the timeout can say how many arrived and matched
+ // nothing, which is a different bug from none arriving at all.
+ delivered := 0
+
+ msg, err := wait.For(ctx, func(ctx context.Context) (Message, bool, error) {
msgs, err := in.search(ctx, "to:"+addr)
if err != nil {
- lastErr = err
+ return Message{}, false, err
}
+ delivered = len(msgs)
+
+ // One unreadable message does not abandon the rest of the round: Mailpit can
+ // report an id before the body is retrievable, and the match may be the
+ // message after it.
+ var lastErr error
for _, m := range msgs {
- full, err := in.message(ctx, m.ID)
- if err != nil {
- lastErr = err
+ full, mErr := in.message(ctx, m.ID)
+ if mErr != nil {
+ lastErr = mErr
continue
}
if matches(full, filters) {
- return full, nil
- }
- }
- if time.Now().After(deadline) {
- if lastErr != nil {
- return Message{}, fmt.Errorf("mail: no message for %s within 20s, last error: %w", addr, lastErr)
+ return full, true, nil
}
- return Message{}, fmt.Errorf("mail: no message for %s within 20s (%d delivered, none matched)", addr, len(msgs))
- }
- select {
- case <-ctx.Done():
- return Message{}, ctx.Err()
- case <-time.After(200 * time.Millisecond):
}
+ return Message{}, false, lastErr
+ }, wait.Timeout(20*time.Second))
+
+ if err != nil {
+ return Message{}, fmt.Errorf("mail: no message for %s (%d delivered, none matched): %w", addr, delivered, err)
}
+ return msg, nil
}
func matches(m Message, filters []Filter) bool {
diff --git a/tests/internal/wait/wait.go b/tests/internal/wait/wait.go
new file mode 100644
index 0000000000..539ef5edd5
--- /dev/null
+++ b/tests/internal/wait/wait.go
@@ -0,0 +1,94 @@
+// Package wait polls for something to become true.
+//
+// Almost everything worth asserting after a mutation lands asynchronously: a secret
+// sync runs on a queue, an email is delivered by a worker, an audit log is written
+// after the response returns. Sleeping for a fixed duration is how a suite becomes
+// slow and flaky at the same time, so nothing here sleeps for longer than one
+// interval before checking again.
+package wait
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "testing"
+ "time"
+)
+
+const (
+ defaultTimeout = 30 * time.Second
+ defaultInterval = 200 * time.Millisecond
+)
+
+// ErrTimeout is returned by For when the condition never held. Callers wrap it with
+// what they were waiting for, since only they know how to describe it usefully.
+var ErrTimeout = errors.New("condition not met before the deadline")
+
+// Option adjusts how long and how often to poll. Both have defaults, so neither is
+// positional.
+type Option func(*config)
+
+type config struct {
+ timeout time.Duration
+ interval time.Duration
+}
+
+// Timeout caps the wait. Keep it under the budget rule: no test in a Shared package
+// should wait more than about a minute, and one that needs to is using the wrong
+// lever.
+func Timeout(d time.Duration) Option { return func(c *config) { c.timeout = d } }
+
+// Interval is how often the condition is checked.
+func Interval(d time.Duration) Option { return func(c *config) { c.interval = d } }
+
+// For polls fn until it reports done, and returns what it produced.
+//
+// fn returns (value, done, err). An error does not stop the polling, because the
+// usual case is a resource that does not exist yet; the last one is attached to the
+// timeout so a persistent failure is visible rather than silently retried away.
+func For[T any](ctx context.Context, fn func(context.Context) (T, bool, error), opts ...Option) (T, error) {
+ cfg := config{timeout: defaultTimeout, interval: defaultInterval}
+ for _, o := range opts {
+ o(&cfg)
+ }
+
+ var zero T
+ deadline := time.Now().Add(cfg.timeout)
+ var lastErr error
+
+ for {
+ value, done, err := fn(ctx)
+ if err != nil {
+ lastErr = err
+ }
+ if done {
+ return value, nil
+ }
+ if time.Now().After(deadline) {
+ if lastErr != nil {
+ return zero, fmt.Errorf("%w after %s, last error: %w", ErrTimeout, cfg.timeout, lastErr)
+ }
+ return zero, fmt.Errorf("%w after %s", ErrTimeout, cfg.timeout)
+ }
+ select {
+ case <-ctx.Done():
+ return zero, ctx.Err()
+ case <-time.After(cfg.interval):
+ }
+ }
+}
+
+// Until polls until cond holds, and fails the test naming what never happened.
+//
+// what is required and is phrased as the thing being waited for, because it is the
+// entire failure message: "waited 30s for the sync to reach a terminal status".
+func Until(tt *testing.T, what string, cond func() bool, opts ...Option) {
+ tt.Helper()
+
+ _, err := For(tt.Context(), func(context.Context) (struct{}, bool, error) {
+ return struct{}{}, cond(), nil
+ }, opts...)
+ if err != nil {
+ tt.Fatalf("waited for %s: %v", what, err)
+ }
+}
diff --git a/tests/suites/secretmanager/secrets/create_test.go b/tests/suites/secretmanager/secrets/create_test.go
index 1304311f27..fb3e8a06e3 100644
--- a/tests/suites/secretmanager/secrets/create_test.go
+++ b/tests/suites/secretmanager/secrets/create_test.go
@@ -6,6 +6,7 @@ import (
"github.com/Infisical/infisical/tests/clients/api"
"github.com/Infisical/infisical/tests/fixture/project"
+ "github.com/Infisical/infisical/tests/fixture/secret"
"github.com/Infisical/infisical/tests/harness"
"github.com/Infisical/infisical/tests/internal/spec"
)
@@ -20,20 +21,20 @@ func TestSecret_Create(t *testing.T) {
tn := h.NewTenant(t)
proj := project.New(t, tn, project.WithType("secret-manager"))
- created := createSecret(t, tn, proj.ID, "dev", "/", "DB_URL", "postgres://localhost/app")
- if created.Secret.SecretKey != "DB_URL" {
- t.Errorf("created secret is named %q, want DB_URL", created.Secret.SecretKey)
+ created := secret.Create(t, proj, "dev", "DB_URL", "postgres://localhost/app")
+ if created.Version != 1 {
+ t.Errorf("a new secret is at version %v, want 1", created.Version)
}
- got := getSecret(t, tn, proj.ID, "dev", "/", "DB_URL")
- if got.SecretValue != "postgres://localhost/app" {
- t.Errorf("secret read back as %q, want postgres://localhost/app", got.SecretValue)
+ got := secret.Get(t, proj, "dev", "DB_URL")
+ if got.Value != "postgres://localhost/app" {
+ t.Errorf("secret read back as %q, want postgres://localhost/app", got.Value)
}
- if got.SecretValueHidden {
+ if got.ValueHidden {
t.Error("the value came back hidden, so nothing downstream could use it")
}
- if got.SecretPath != "/" {
- t.Errorf("secret is at path %q, want /", got.SecretPath)
+ if got.Path != "/" {
+ t.Errorf("secret is at path %q, want /", got.Path)
}
})
@@ -45,14 +46,14 @@ func TestSecret_Create(t *testing.T) {
tn := h.NewTenant(t)
proj := project.New(t, tn, project.WithType("secret-manager"))
- createSecret(t, tn, proj.ID, "dev", "/", "API_KEY", "dev-value")
- createSecret(t, tn, proj.ID, "prod", "/", "API_KEY", "prod-value")
+ secret.Create(t, proj, "dev", "API_KEY", "dev-value")
+ secret.Create(t, proj, "prod", "API_KEY", "prod-value")
- if got := getSecret(t, tn, proj.ID, "dev", "/", "API_KEY"); got.SecretValue != "dev-value" {
- t.Errorf("dev holds %q, want dev-value", got.SecretValue)
+ if got := secret.Get(t, proj, "dev", "API_KEY"); got.Value != "dev-value" {
+ t.Errorf("dev holds %q, want dev-value", got.Value)
}
- if got := getSecret(t, tn, proj.ID, "prod", "/", "API_KEY"); got.SecretValue != "prod-value" {
- t.Errorf("prod holds %q, want prod-value", got.SecretValue)
+ if got := secret.Get(t, proj, "prod", "API_KEY"); got.Value != "prod-value" {
+ t.Errorf("prod holds %q, want prod-value", got.Value)
}
})
@@ -64,7 +65,7 @@ func TestSecret_Create(t *testing.T) {
tn := h.NewTenant(t)
proj := project.New(t, tn, project.WithType("secret-manager"))
- createSecret(t, tn, proj.ID, "dev", "/", "TOKEN", "first")
+ secret.Create(t, proj, "dev", "TOKEN", "first")
res, err := tn.Admin.API.CreateSecretV4WithResponse(t.Context(), "TOKEN",
api.CreateSecretV4JSONRequestBody{
@@ -79,8 +80,8 @@ func TestSecret_Create(t *testing.T) {
if res.StatusCode() == http.StatusOK {
t.Fatal("creating a secret that already exists was allowed")
}
- if got := getSecret(t, tn, proj.ID, "dev", "/", "TOKEN"); got.SecretValue != "first" {
- t.Errorf("the refused create still changed the value to %q", got.SecretValue)
+ if got := secret.Get(t, proj, "dev", "TOKEN"); got.Value != "first" {
+ t.Errorf("the refused create still changed the value to %q", got.Value)
}
})
@@ -126,62 +127,3 @@ func TestSecret_Create(t *testing.T) {
}
})
}
-
-// createSecret writes a secret and fails the test if the API refused it.
-//
-// A local helper rather than a fixture: only this file needs it, and the conventions
-// keep suite-local helpers next to the tests that use them.
-func createSecret(t *testing.T, tn *harness.Tenant, projectID, env, path, name, value string) api.CreateSecretV4200JSONResponseBody0 {
- t.Helper()
-
- res, err := tn.Admin.API.CreateSecretV4WithResponse(t.Context(), name,
- api.CreateSecretV4JSONRequestBody{
- ProjectId: projectID,
- Environment: env,
- SecretPath: new(path),
- SecretValue: value,
- })
- if err != nil {
- t.Fatalf("creating secret %s: %v", name, err)
- }
- if res.JSON200 == nil {
- t.Fatalf("creating secret %s returned %d: %s", name, res.StatusCode(), res.Body)
- }
-
- // The response is a union: a secret, or an approval request when a change policy
- // applies. A tenant has no policy unless a test adds one, so anything else here
- // means the request took a path this test did not intend.
- created, err := res.JSON200.AsCreateSecretV4200JSONResponseBody0()
- if err != nil {
- t.Fatalf("creating secret %s returned an approval request, not a secret: %s", name, res.Body)
- }
- return created
-}
-
-func getSecret(t *testing.T, tn *harness.Tenant, projectID, env, path, name string) secretValue {
- t.Helper()
-
- res, err := tn.Admin.API.GetSecretByNameV4WithResponse(t.Context(), name, &api.GetSecretByNameV4Params{
- ProjectId: projectID,
- Environment: new(env),
- SecretPath: new(path),
- ViewSecretValue: new(api.GetSecretByNameV4ParamsViewSecretValue("true")),
- })
- if err != nil {
- t.Fatalf("reading secret %s: %v", name, err)
- }
- if res.JSON200 == nil {
- t.Fatalf("reading secret %s returned %d: %s", name, res.StatusCode(), res.Body)
- }
- return secretValue{
- SecretValue: res.JSON200.Secret.SecretValue,
- SecretValueHidden: res.JSON200.Secret.SecretValueHidden,
- SecretPath: res.JSON200.Secret.SecretPath,
- }
-}
-
-type secretValue struct {
- SecretValue string
- SecretValueHidden bool
- SecretPath string
-}
diff --git a/tests/suites/secretmanager/syncs/github_test.go b/tests/suites/secretmanager/syncs/github_test.go
new file mode 100644
index 0000000000..5947b09106
--- /dev/null
+++ b/tests/suites/secretmanager/syncs/github_test.go
@@ -0,0 +1,214 @@
+package syncs_test
+
+import (
+ "fmt"
+ "strings"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/fakes/github"
+ "github.com/Infisical/infisical/tests/fixture/appconnection"
+ "github.com/Infisical/infisical/tests/fixture/project"
+ "github.com/Infisical/infisical/tests/fixture/secret"
+ "github.com/Infisical/infisical/tests/harness"
+ "github.com/Infisical/infisical/tests/internal/spec"
+ "github.com/Infisical/infisical/tests/provider"
+)
+
+// setup is the arrangement every subtest starts from: a project, a GitHub connection,
+// and a handle on the GitHub account that connection addresses.
+func setup(t *testing.T) (*project.Project, *appconnection.Connection, *github.Handle) {
+ t.Helper()
+
+ tn := harness.From(t).NewTenant(t)
+ proj := project.New(t, tn, project.WithType("secret-manager"))
+ conn := appconnection.New(t, tn, provider.GitHub)
+ return proj, conn, github.Open(t, conn.FakenetAdmin(t), conn.Nonce())
+}
+
+func TestGitHubSync_SyncSecrets(t *testing.T) {
+ t.Parallel()
+
+ t.Run("ok/a secret reaches the destination with its value intact", func(t *testing.T) {
+ t.Parallel()
+
+ proj, conn, gh := setup(t)
+ s := newSync(t, proj, conn, repoScope("acme", "app"))
+
+ secret.Create(t, proj, "dev", "DB_URL", "postgres://db/app")
+ s.trigger(t)
+
+ got := gh.Repo(t, "acme/app").Secrets
+ if got["DB_URL"].Value != "postgres://db/app" {
+ t.Errorf("GitHub holds %q for DB_URL, want postgres://db/app", got["DB_URL"].Value)
+ }
+ })
+
+ t.Run("ok/a secret removed in Infisical is pruned at the destination", func(t *testing.T) {
+ t.Parallel()
+
+ proj, conn, gh := setup(t)
+ s := newSync(t, proj, conn, repoScope("acme", "app"))
+
+ secret.Create(t, proj, "dev", "KEEP", "1")
+ secret.Create(t, proj, "dev", "DROP", "2")
+ s.trigger(t)
+
+ secret.Delete(t, proj, "dev", "DROP")
+ s.trigger(t)
+
+ got := gh.Repo(t, "acme/app").Secrets
+ if got["KEEP"].Value != "1" {
+ t.Errorf("KEEP holds %q, want 1", got["KEEP"].Value)
+ }
+ if _, still := got["DROP"]; still {
+ t.Error("DROP was deleted in Infisical but is still at the destination")
+ }
+ })
+
+ t.Run("ok/a secret outside the key schema is left alone", func(t *testing.T) {
+ t.Parallel()
+
+ proj, conn, gh := setup(t)
+ gh.Seed(t, github.RepoSecret("acme/app", "SOMEONE_ELSES", "do not touch"))
+
+ s := newSync(t, proj, conn, repoScope("acme", "app"), keySchema("INFISICAL_{{secretKey}}"))
+
+ secret.Create(t, proj, "dev", "A", "1")
+ s.trigger(t)
+
+ got := gh.Repo(t, "acme/app").Secrets
+ if got["SOMEONE_ELSES"].Value != "do not touch" {
+ t.Errorf("a secret outside the key schema was modified or deleted: %#v", got["SOMEONE_ELSES"])
+ }
+ if _, ok := got["INFISICAL_A"]; !ok {
+ t.Errorf("the managed secret did not arrive under the key schema: %v", keys(got))
+ }
+ })
+
+ t.Run("ok/disableSecretDeletion keeps an orphan at the destination", func(t *testing.T) {
+ t.Parallel()
+
+ proj, conn, gh := setup(t)
+ s := newSync(t, proj, conn, repoScope("acme", "app"), disableSecretDeletion())
+
+ secret.Create(t, proj, "dev", "ORPHAN", "1")
+ s.trigger(t)
+
+ secret.Delete(t, proj, "dev", "ORPHAN")
+ s.trigger(t)
+
+ if got := gh.Repo(t, "acme/app").Secrets; got["ORPHAN"].Value != "1" {
+ t.Errorf("ORPHAN was pruned despite disableSecretDeletion: %#v", got["ORPHAN"])
+ }
+ })
+
+ t.Run("ok/keys are upper-cased on the way out", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `syncSecrets upper-cases every key before sending it, because GitHub
+ does. A test asserting on the request path would pass either way; only the
+ destination's own key set shows which name it was actually stored under.`)
+
+ proj, conn, gh := setup(t)
+ s := newSync(t, proj, conn, repoScope("acme", "app"))
+
+ secret.Create(t, proj, "dev", "lower_case", "v")
+ s.trigger(t)
+
+ got := gh.Repo(t, "acme/app").Secrets
+ if _, ok := got["LOWER_CASE"]; !ok {
+ t.Errorf("secret was not stored upper-cased: %v", keys(got))
+ }
+ })
+
+ t.Run("ok/a sync spanning several pages sends every secret", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `The client asks for 100 per page, reads the Link header, parses
+ rel="last" for a page count and fetches the rest concurrently. A destination
+ that answered everything on one page would leave that loop untested, and it is
+ the loop that decides what gets pruned. Organization scope because the
+ repository cap is 100, which is one page.`)
+
+ proj, conn, gh := setup(t)
+ s := newSync(t, proj, conn, orgScope("acme"))
+
+ const n = 120
+ for i := range n {
+ secret.Create(t, proj, "dev", fmt.Sprintf("BULK_%03d", i), fmt.Sprintf("v%d", i))
+ }
+ s.trigger(t)
+
+ // Again, so the run has to list what is already there. That is the call that
+ // paginates, and its result is what the prune decision is built from.
+ s.trigger(t)
+
+ if got := gh.OrgSecrets(t, "acme").Secrets; len(got) != n {
+ t.Errorf("the destination holds %d secrets, want %d", len(got), n)
+ }
+ })
+
+ t.Run("invalid/more than 100 secrets at repository scope is refused", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `GitHub caps repository secrets at 100 and Infisical checks before
+ sending anything, so the sync fails with a message naming the limit rather than
+ writing 100 and silently dropping the rest. Found by writing the pagination
+ test above against the wrong scope.`)
+
+ proj, conn, _ := setup(t)
+ s := newSync(t, proj, conn, repoScope("acme", "app"))
+
+ for i := range 101 {
+ secret.Create(t, proj, "dev", fmt.Sprintf("BULK_%03d", i), "v")
+ }
+
+ status, message := s.triggerExpectingFailure(t)
+ if status != "failed" {
+ t.Fatalf("a sync of 101 secrets to a repository reported %q, want failed", status)
+ }
+ if !strings.Contains(message, "100") {
+ t.Errorf("the failure does not name the limit, so nobody can act on it: %s", message)
+ }
+ })
+}
+
+func TestGitHubSync_Create(t *testing.T) {
+ t.Parallel()
+
+ t.Run("ok/creating a sync with auto-sync on pushes immediately", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `isAutoSyncEnabled defaults to true and queues a sync at creation, so
+ a secret that already exists arrives without anyone triggering anything.`)
+
+ proj, conn, gh := setup(t)
+ secret.Create(t, proj, "dev", "PRESENT", "1")
+
+ s := newSync(t, proj, conn, repoScope("acme", "app"), autoSync(true))
+ s.awaitTerminal(t)
+
+ if got := gh.Repo(t, "acme/app").Secrets; got["PRESENT"].Value != "1" {
+ t.Errorf("auto-sync did not push an existing secret: %#v", got)
+ }
+ })
+
+ t.Run("ok/creating a sync with auto-sync off leaves the destination untouched", func(t *testing.T) {
+ t.Parallel()
+ spec.Why(t, `The inverse, and the one a response body cannot show: proving a write
+ did not happen needs somewhere to look that would have recorded it.`)
+
+ proj, conn, gh := setup(t)
+ secret.Create(t, proj, "dev", "PRESENT", "1")
+
+ newSync(t, proj, conn, repoScope("acme", "app"), autoSync(false))
+
+ if store := gh.Repo(t, "acme/app"); store != nil && len(store.Secrets) > 0 {
+ t.Errorf("a sync created with auto-sync off wrote to the destination: %v", keys(store.Secrets))
+ }
+ })
+}
+
+func keys[V any](m map[string]V) []string {
+ out := make([]string, 0, len(m))
+ for k := range m {
+ out = append(out, k)
+ }
+ return out
+}
diff --git a/tests/suites/secretmanager/syncs/helpers_test.go b/tests/suites/secretmanager/syncs/helpers_test.go
new file mode 100644
index 0000000000..fec8347826
--- /dev/null
+++ b/tests/suites/secretmanager/syncs/helpers_test.go
@@ -0,0 +1,192 @@
+package syncs_test
+
+import (
+ "context"
+ "testing"
+
+ "github.com/Infisical/infisical/tests/clients/api"
+ "github.com/Infisical/infisical/tests/fixture/appconnection"
+ "github.com/Infisical/infisical/tests/fixture/project"
+ "github.com/Infisical/infisical/tests/internal/apierr"
+ "github.com/Infisical/infisical/tests/internal/wait"
+ "github.com/google/uuid"
+)
+
+// Suite-local rather than a fixture: only this package creates a sync. It moves under
+// fixture/ when a second one does.
+
+type sync struct {
+ ID uuid.UUID
+ proj *project.Project
+}
+
+type syncConfig struct {
+ autoSync bool
+ keySchema string
+ disableSecretDeletion bool
+ environment string
+ secretPath string
+}
+
+// syncOption adjusts a new sync. The destination is positional because the API has no
+// default for it; everything else has one.
+type syncOption func(*syncConfig)
+
+// autoSync controls whether creating the sync immediately pushes.
+//
+// isAutoSyncEnabled defaults to true in the schema, so a test that wants to choose
+// when the first push happens has to turn it off.
+func autoSync(on bool) syncOption { return func(c *syncConfig) { c.autoSync = on } }
+
+func keySchema(s string) syncOption { return func(c *syncConfig) { c.keySchema = s } }
+
+func disableSecretDeletion() syncOption {
+ return func(c *syncConfig) { c.disableSecretDeletion = true }
+}
+
+// destination is where a sync writes. Required, because the API has no default, and
+// the scopes differ enough that each gets its own constructor.
+type destination func(*testing.T) api.CreateGitHubSecretSyncJSONBody_DestinationConfig
+
+// repoScope syncs to one repository. Capped at 100 secrets by GitHub.
+func repoScope(owner, repo string) destination {
+ return func(tt *testing.T) api.CreateGitHubSecretSyncJSONBody_DestinationConfig {
+ var d api.CreateGitHubSecretSyncJSONBody_DestinationConfig
+ if err := d.FromCreateGitHubSecretSyncJSONBodyDestinationConfig1(
+ api.CreateGitHubSecretSyncJSONBodyDestinationConfig1{
+ Owner: owner, Repo: repo, Scope: "repository",
+ }); err != nil {
+ tt.Fatalf("syncs: building a repository destination: %v", err)
+ }
+ return d
+ }
+}
+
+// orgScope syncs to an organization, where the cap is 1000 rather than 100.
+func orgScope(org string) destination {
+ return func(tt *testing.T) api.CreateGitHubSecretSyncJSONBody_DestinationConfig {
+ var d api.CreateGitHubSecretSyncJSONBody_DestinationConfig
+ if err := d.FromCreateGitHubSecretSyncJSONBodyDestinationConfig0(
+ api.CreateGitHubSecretSyncJSONBodyDestinationConfig0{
+ Org: org, Scope: "organization", Visibility: "all",
+ }); err != nil {
+ tt.Fatalf("syncs: building an organization destination: %v", err)
+ }
+ return d
+ }
+}
+
+// newSync creates a GitHub sync.
+func newSync(tt *testing.T, p *project.Project, conn *appconnection.Connection,
+ dest destination, opts ...syncOption) *sync {
+ tt.Helper()
+
+ cfg := syncConfig{autoSync: false, environment: "dev", secretPath: "/"}
+ for _, o := range opts {
+ o(&cfg)
+ }
+
+ body := api.CreateGitHubSecretSyncJSONRequestBody{
+ Name: "sync-" + uuid.NewString()[:8],
+ ProjectId: p.ID,
+ ConnectionId: conn.ID,
+ Environment: cfg.environment,
+ SecretPath: cfg.secretPath,
+ DestinationConfig: dest(tt),
+ IsAutoSyncEnabled: &cfg.autoSync,
+ }
+ // GitHub cannot import, so the schema pins this to the one legal value.
+ body.SyncOptions.InitialSyncBehavior = "overwrite-destination"
+ if cfg.keySchema != "" {
+ body.SyncOptions.KeySchema = &cfg.keySchema
+ }
+ if cfg.disableSecretDeletion {
+ body.SyncOptions.DisableSecretDeletion = &cfg.disableSecretDeletion
+ }
+
+ res, err := p.Tenant().Admin.API.CreateGitHubSecretSyncWithResponse(tt.Context(), body)
+ if err != nil {
+ tt.Fatalf("syncs: creating a sync: %v", err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("syncs: creating a sync returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
+ }
+ return &sync{ID: res.JSON200.SecretSync.Id, proj: p}
+}
+
+// trigger runs the sync and waits for it to reach a terminal status.
+//
+// Waiting on the sync rather than on the destination is the difference between a
+// useful failure and a mystery. A sync that fails records why on the row, so a broken
+// one reports the product's own message instead of timing out with nothing arriving.
+func (s *sync) trigger(tt *testing.T) {
+ tt.Helper()
+
+ res, err := s.proj.Tenant().Admin.API.SyncGitHubSecretSyncWithResponse(tt.Context(), s.ID)
+ if err != nil {
+ tt.Fatalf("syncs: triggering: %v", err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("syncs: triggering returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
+ }
+ s.awaitTerminal(tt)
+}
+
+type outcome struct {
+ status string
+ message string
+}
+
+// awaitTerminal blocks until the sync has succeeded or failed, and fails the test on
+// failure with what the product reported.
+func (s *sync) awaitTerminal(tt *testing.T) {
+ tt.Helper()
+ if got := s.awaitOutcome(tt); got.status == "failed" {
+ tt.Fatalf("syncs: the sync failed: %s", got.message)
+ }
+}
+
+// awaitOutcome blocks until the sync reaches a terminal status and reports it.
+func (s *sync) awaitOutcome(tt *testing.T) outcome {
+ tt.Helper()
+
+ got, err := wait.For(tt.Context(), func(ctx context.Context) (outcome, bool, error) {
+ res, rErr := s.proj.Tenant().Admin.API.GetGitHubSecretSyncWithResponse(ctx, s.ID)
+ if rErr != nil {
+ return outcome{}, false, rErr
+ }
+ if res.JSON200 == nil {
+ return outcome{}, false, nil
+ }
+
+ out := outcome{}
+ if v := res.JSON200.SecretSync.SyncStatus; v != nil {
+ out.status = *v
+ }
+ if v := res.JSON200.SecretSync.LastSyncMessage; v != nil {
+ out.message = *v
+ }
+ return out, out.status == "succeeded" || out.status == "failed", nil
+ })
+ if err != nil {
+ tt.Fatalf("syncs: %v", err)
+ }
+ return got
+}
+
+// triggerExpectingFailure runs the sync and returns how it ended, for the cases where
+// failing is the behaviour under test.
+func (s *sync) triggerExpectingFailure(tt *testing.T) (status, message string) {
+ tt.Helper()
+
+ res, err := s.proj.Tenant().Admin.API.SyncGitHubSecretSyncWithResponse(tt.Context(), s.ID)
+ if err != nil {
+ tt.Fatalf("syncs: triggering: %v", err)
+ }
+ if res.JSON200 == nil {
+ tt.Fatalf("syncs: triggering returned %d: %s", res.StatusCode(), apierr.Body(res.Body))
+ }
+
+ got := s.awaitOutcome(tt)
+ return got.status, got.message
+}
diff --git a/tests/suites/secretmanager/syncs/main_test.go b/tests/suites/secretmanager/syncs/main_test.go
new file mode 100644
index 0000000000..dc589050c4
--- /dev/null
+++ b/tests/suites/secretmanager/syncs/main_test.go
@@ -0,0 +1,9 @@
+package syncs_test
+
+import (
+ "testing"
+
+ "github.com/Infisical/infisical/tests/harness"
+)
+
+func TestMain(m *testing.M) { harness.Main(m, harness.Shared) }