From 1f603e7ba69bcb904cc660bbe40e7f3b27047a30 Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Wed, 16 Sep 2026 11:29:17 +0200 Subject: [PATCH] fix: update base image and dependencies to remediate coreutils, glib2, and libxml2 vulnerabilities --- .github/workflows/publish.yaml | 18 +- .github/workflows/pull-request-ci.yaml | 14 +- docker-base-aarch64.nix | 4 +- docker-base-amd64.nix | 4 +- flake.lock | 47 +- go.mod | 18 +- go.sum | 36 +- internal/infra/sysdig/client.gen.go | 33114 ++++++++++------ .../infra/sysdig/mocks/client_extension.go | 440 + package.nix | 4 +- 10 files changed, 21141 insertions(+), 12558 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a6b4022..7aa1abd 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -79,12 +79,12 @@ jobs: - name: Install Nix # Pinned to v21 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/nix-installer-action.git - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 + uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - name: Enable Nix cache # Pinned to v13 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/magic-nix-cache-action.git - uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 + uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 with: use-flakehub: false @@ -97,7 +97,7 @@ jobs: echo "FROM base" > /tmp/Dockerfile.push - name: Set up Docker Buildx - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Log in to GitHub Container Registry uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 @@ -108,7 +108,7 @@ jobs: - name: Push image by digest id: push - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: file: /tmp/Dockerfile.push build-contexts: | @@ -149,7 +149,7 @@ jobs: merge-multiple: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Log in to GitHub Container Registry uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 @@ -202,12 +202,12 @@ jobs: - name: Install Nix # Pinned to v21 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/nix-installer-action.git - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 + uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - name: Enable Nix cache # Pinned to v13 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/magic-nix-cache-action.git - uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 + uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 with: use-flakehub: false @@ -249,12 +249,12 @@ jobs: - name: Install Nix # Pinned to v21 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/nix-installer-action.git - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 + uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - name: Enable Nix cache # Pinned to v13 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/magic-nix-cache-action.git - uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 + uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 with: use-flakehub: false diff --git a/.github/workflows/pull-request-ci.yaml b/.github/workflows/pull-request-ci.yaml index 0ce3e3a..b57c5c0 100644 --- a/.github/workflows/pull-request-ci.yaml +++ b/.github/workflows/pull-request-ci.yaml @@ -27,12 +27,12 @@ jobs: - name: Install Nix # Pinned to v21 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/nix-installer-action.git - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 + uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - name: Enable Nix cache # Pinned to v13 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/magic-nix-cache-action.git - uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 + uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 with: use-flakehub: false @@ -75,12 +75,12 @@ jobs: - name: Install Nix # Pinned to v21 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/nix-installer-action.git - uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22 + uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 - name: Enable Nix cache # Pinned to v13 commit SHA for supply-chain safety. # To update: git ls-remote https://github.com/DeterminateSystems/magic-nix-cache-action.git - uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14 + uses: DeterminateSystems/magic-nix-cache-action@84c0677f58dcedf3b91f8223ce36a9ea5b3c84b7 # v15 with: use-flakehub: false @@ -112,7 +112,7 @@ jobs: echo "FROM base" > /tmp/Dockerfile.push - name: Set up Docker Buildx - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Log in to GitHub Container Registry uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 @@ -123,7 +123,7 @@ jobs: - name: Push image by digest id: push - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: file: /tmp/Dockerfile.push build-contexts: | @@ -165,7 +165,7 @@ jobs: merge-multiple: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Log in to GitHub Container Registry uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 diff --git a/docker-base-aarch64.nix b/docker-base-aarch64.nix index dd8199b..d6409ec 100644 --- a/docker-base-aarch64.nix +++ b/docker-base-aarch64.nix @@ -1,7 +1,7 @@ { imageName = "quay.io/sysdig/sysdig-mini-ubi9"; - imageDigest = "sha256:edfcc37c71bf9cf6e11558ce2d048091efa958e835c88fb17f77ae1335b3bdc4"; - hash = "sha256-9zLKWHrWd9p0YGPsKPUlr412lQnyfwBaRUEm70jsQTo="; + imageDigest = "sha256:76c8f4926d609f2197819db6cc6363509ceb1f4adaca9f16db0fe6189e5fa9b7"; + hash = "sha256-hH/BWXpGRwD6V3zT9ncNHVcpYKW6D7Jud8TOxq7rBow="; finalImageName = "quay.io/sysdig/sysdig-mini-ubi9"; finalImageTag = "1"; } diff --git a/docker-base-amd64.nix b/docker-base-amd64.nix index ac5496a..98f7086 100644 --- a/docker-base-amd64.nix +++ b/docker-base-amd64.nix @@ -1,7 +1,7 @@ { imageName = "quay.io/sysdig/sysdig-mini-ubi9"; - imageDigest = "sha256:edfcc37c71bf9cf6e11558ce2d048091efa958e835c88fb17f77ae1335b3bdc4"; - hash = "sha256-Y9rUyClpAM8c59p/bQkGPgv6wBXE8bSruGaL6f1+cxE="; + imageDigest = "sha256:76c8f4926d609f2197819db6cc6363509ceb1f4adaca9f16db0fe6189e5fa9b7"; + hash = "sha256-QyBvHYQ4krRqHGwBKEG2+qcl5SG3Y2cAvi/nBJRYOtk="; finalImageName = "quay.io/sysdig/sysdig-mini-ubi9"; finalImageTag = "1"; } diff --git a/flake.lock b/flake.lock index a15d3f3..1fe6146 100644 --- a/flake.lock +++ b/flake.lock @@ -55,18 +55,17 @@ "git-hooks": { "inputs": { "flake-compat": "flake-compat", - "gitignore": "gitignore", "nixpkgs": [ "go-overlay", "nixpkgs" ] }, "locked": { - "lastModified": 1778507602, - "narHash": "sha256-kTwur1wV+01SdqskVMSo6JMEpg71ps3HpbFY2GsflKs=", + "lastModified": 1788267358, + "narHash": "sha256-nt+lUqYVpc9Y6JeMd2WmXzCDojasdadKo0mWcluvY2Y=", "owner": "cachix", "repo": "git-hooks.nix", - "rev": "61ab0e80d9c7ab14c256b5b453d8b3fb0189ba0a", + "rev": "27555e2624241fb116b49095df4caaee85a25691", "type": "github" }, "original": { @@ -75,28 +74,6 @@ "type": "github" } }, - "gitignore": { - "inputs": { - "nixpkgs": [ - "go-overlay", - "git-hooks", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1709087332, - "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, "go-overlay": { "inputs": { "flake-utils": "flake-utils_2", @@ -104,11 +81,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1787906838, - "narHash": "sha256-BVoCD5auserFdtRIvXkALWYtrFMrXJS/8JDsEEiH44Y=", + "lastModified": 1789535523, + "narHash": "sha256-3ojLhdyz0DT9bpl+5EWddqWOyX0lLvTHUk231Tozr4E=", "owner": "purpleclay", "repo": "go-overlay", - "rev": "34bdca05fbef02ce7dd69873fbe45197d6fdd2c4", + "rev": "8b5b73a7053eef9750b1fe302169127f6c5f2fac", "type": "github" }, "original": { @@ -119,11 +96,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1778869304, - "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", + "lastModified": 1789286504, + "narHash": "sha256-eiEK7cKZORNEvX0GeF3RtNEF/JXhgf2RqSp3230q13E=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d233902339c02a9c334e7e593de68855ad26c4cb", + "rev": "ef34387ddd751e1ab8857adf4676492d32eb24ec", "type": "github" }, "original": { @@ -135,11 +112,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1787964612, - "narHash": "sha256-0N9nghg3nwzX6b6qc77EzjR9cu/Z+UR66FlfsCqiURs=", + "lastModified": 1789370336, + "narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e8be7818e19ada32105a8af937a6a473b38167ca", + "rev": "c7def046b9a883d46974757852106483d741586f", "type": "github" }, "original": { diff --git a/go.mod b/go.mod index c9317d3..fb29732 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/sysdiglabs/sysdig-mcp-server go 1.27 require ( - github.com/mark3labs/mcp-go v0.58.0 + github.com/mark3labs/mcp-go v1.1.0 github.com/oapi-codegen/runtime v1.7.0 - github.com/onsi/ginkgo/v2 v2.32.1 + github.com/onsi/ginkgo/v2 v2.32.2 github.com/onsi/gomega v1.43.0 github.com/spf13/cobra v1.10.2 go.uber.org/mock v0.6.0 @@ -19,17 +19,17 @@ require ( github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/jsonschema-go v0.4.3 // indirect - github.com/google/pprof v0.0.0-20260830191439-4932ad3515ea // indirect + github.com/google/pprof v0.0.0-20260906184651-6331bc6350fe // indirect github.com/google/uuid v1.6.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 // indirect github.com/spf13/cast v1.10.0 // indirect github.com/spf13/pflag v1.0.10 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect - golang.org/x/mod v0.40.0 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sync v0.22.0 // indirect - golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.41.0 // indirect - golang.org/x/tools v0.49.0 // indirect + golang.org/x/mod v0.41.0 // indirect + golang.org/x/net v0.59.0 // indirect + golang.org/x/sync v0.23.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/text v0.42.0 // indirect + golang.org/x/tools v0.50.0 // indirect ) diff --git a/go.sum b/go.sum index 8c46051..a51280f 100644 --- a/go.sum +++ b/go.sum @@ -28,8 +28,8 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/jsonschema-go v0.4.3 h1:/DBOLZTfDow7pe2GmaJNhltueGTtDKICi8V8p+DQPd0= github.com/google/jsonschema-go v0.4.3/go.mod h1:r5quNTdLOYEz95Ru18zA0ydNbBuYoo9tgaYcxEYhJVE= -github.com/google/pprof v0.0.0-20260830191439-4932ad3515ea h1:nItRa0lOM9n5+PZiNPdBI2RjLCZoBrhWqKDJuB3+gSU= -github.com/google/pprof v0.0.0-20260830191439-4932ad3515ea/go.mod h1:jl5iWTm0/hd5PjEYEOuwAJ57L/CibdZfrqZ5XA5GrCk= +github.com/google/pprof v0.0.0-20260906184651-6331bc6350fe h1:QAinXoAFJdGQYztXn3VpFey7KCwpedbZ/EkzbplQ0cY= +github.com/google/pprof v0.0.0-20260906184651-6331bc6350fe/go.mod h1:jl5iWTm0/hd5PjEYEOuwAJ57L/CibdZfrqZ5XA5GrCk= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= @@ -41,8 +41,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mark3labs/mcp-go v0.58.0 h1:AWfBk8lgRR0KZYve7PaLbR2MIjpw1oK2eGpBApaNS+Q= -github.com/mark3labs/mcp-go v0.58.0/go.mod h1:+8WclSK1ZUweCP3hvktSji8n8ABG/95QaEkeVE/Uwas= +github.com/mark3labs/mcp-go v1.1.0 h1:9kZwJreq58QIaM+5h+k4JXbG0f0y0j9+DJCV5rGBkJA= +github.com/mark3labs/mcp-go v1.1.0/go.mod h1:r2fW4o3wsoJ7IMsx1Wuq5xeP8PRGXPDfNveoGAYbb/s= github.com/maruel/natural v1.1.1 h1:Hja7XhhmvEFhcByqDoHz9QZbkWey+COd9xWfCfn1ioo= github.com/maruel/natural v1.1.1/go.mod h1:v+Rfd79xlw1AgVBjbO0BEQmptqb5HvL/k9GRHB7ZKEg= github.com/mfridman/tparse v0.18.0 h1:wh6dzOKaIwkUGyKgOntDW4liXSo37qg5AXbIhkMV3vE= @@ -51,8 +51,8 @@ github.com/oapi-codegen/nullable v1.1.0 h1:eAh8JVc5430VtYVnq00Hrbpag9PFRGWLjxR1/ github.com/oapi-codegen/nullable v1.1.0/go.mod h1:KUZ3vUzkmEKY90ksAmit2+5juDIhIZhfDl+0PwOQlFY= github.com/oapi-codegen/runtime v1.7.0 h1:t7358VYPvNbWJ9gdAkIK/smVeHpBf6yp8VTsaZsb/7k= github.com/oapi-codegen/runtime v1.7.0/go.mod h1:GwV7hC2hviaMzj+ITfHVRESK5J2W/GefVwIND/bMGvU= -github.com/onsi/ginkgo/v2 v2.32.1 h1:6tlvcDm/3sE8lGJbZ4+d4mO3RLy24/tQWOFzVSQNIfw= -github.com/onsi/ginkgo/v2 v2.32.1/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44= +github.com/onsi/ginkgo/v2 v2.32.2 h1:2o6vyFvR6snrJWgRVztC+OwuqqPEMI1UzYl2s2iU7Cg= +github.com/onsi/ginkgo/v2 v2.32.2/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44= github.com/onsi/gomega v1.43.0 h1:VlG/1FxqNxhSO+lq/OHBNaaqwiBK/mO8JbVkX9Y+FeU= github.com/onsi/gomega v1.43.0/go.mod h1:REff/hsDsodHoKlWsP2mAPhu1+5/6hVYNf9rIEBpeSg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -89,18 +89,18 @@ go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/mod v0.40.0 h1:hUv+3cXcdRHz08UmSiOob7sadHig73uo5bkXxQ/tvUs= -golang.org/x/mod v0.40.0/go.mod h1:0/weTWkPWGBikyTWAX3dkjVztMmBA5hM0DH6BElSupE= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= -golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek= -golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= -golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI= -golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo= +golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c= +golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o= +golang.org/x/net v0.59.0 h1:5zfYln+w5XCxwrnMMJPufRgNoXEaGxl0wo5GqPXyues= +golang.org/x/net v0.59.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= +golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk= +golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= +golang.org/x/tools v0.50.0 h1:c2ifzfcuY7L90lZ2aKd8S4K2NpASF08SZx9ZuJkHmSU= +golang.org/x/tools v0.50.0/go.mod h1:7ulVMw3831Mwi5EZD6RomGyffr4VFjuNYXf2BbCEAV0= google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/internal/infra/sysdig/client.gen.go b/internal/infra/sysdig/client.gen.go index 235e836..d90170b 100644 --- a/internal/infra/sysdig/client.gen.go +++ b/internal/infra/sysdig/client.gen.go @@ -78,6 +78,57 @@ func (e ActionType) Valid() bool { } } +// Defines values for AffectedComponentV1Beta1Ecosystem. +const ( + AffectedComponentV1Beta1EcosystemApk AffectedComponentV1Beta1Ecosystem = "apk" + AffectedComponentV1Beta1EcosystemApplication AffectedComponentV1Beta1Ecosystem = "application" + AffectedComponentV1Beta1EcosystemCargo AffectedComponentV1Beta1Ecosystem = "cargo" + AffectedComponentV1Beta1EcosystemComposer AffectedComponentV1Beta1Ecosystem = "composer" + AffectedComponentV1Beta1EcosystemDeb AffectedComponentV1Beta1Ecosystem = "deb" + AffectedComponentV1Beta1EcosystemGem AffectedComponentV1Beta1Ecosystem = "gem" + AffectedComponentV1Beta1EcosystemGo AffectedComponentV1Beta1Ecosystem = "go" + AffectedComponentV1Beta1EcosystemMaven AffectedComponentV1Beta1Ecosystem = "maven" + AffectedComponentV1Beta1EcosystemNpm AffectedComponentV1Beta1Ecosystem = "npm" + AffectedComponentV1Beta1EcosystemNuget AffectedComponentV1Beta1Ecosystem = "nuget" + AffectedComponentV1Beta1EcosystemOci AffectedComponentV1Beta1Ecosystem = "oci" + AffectedComponentV1Beta1EcosystemPypi AffectedComponentV1Beta1Ecosystem = "pypi" + AffectedComponentV1Beta1EcosystemRpm AffectedComponentV1Beta1Ecosystem = "rpm" +) + +// Valid indicates whether the value is a known member of the AffectedComponentV1Beta1Ecosystem enum. +func (e AffectedComponentV1Beta1Ecosystem) Valid() bool { + switch e { + case AffectedComponentV1Beta1EcosystemApk: + return true + case AffectedComponentV1Beta1EcosystemApplication: + return true + case AffectedComponentV1Beta1EcosystemCargo: + return true + case AffectedComponentV1Beta1EcosystemComposer: + return true + case AffectedComponentV1Beta1EcosystemDeb: + return true + case AffectedComponentV1Beta1EcosystemGem: + return true + case AffectedComponentV1Beta1EcosystemGo: + return true + case AffectedComponentV1Beta1EcosystemMaven: + return true + case AffectedComponentV1Beta1EcosystemNpm: + return true + case AffectedComponentV1Beta1EcosystemNuget: + return true + case AffectedComponentV1Beta1EcosystemOci: + return true + case AffectedComponentV1Beta1EcosystemPypi: + return true + case AffectedComponentV1Beta1EcosystemRpm: + return true + default: + return false + } +} + // Defines values for AgentlessRuntimeDetectionContentIntegrationType. const ( AgentlessRuntimeDetectionContentIntegrationTypeAzure AgentlessRuntimeDetectionContentIntegrationType = "azure" @@ -552,6 +603,261 @@ func (e AuthenticatedConnectionInfoWebhookTimestampFormat) Valid() bool { } } +// Defines values for AutomationActionNodeV1Alpha1Type. +const ( + AutomationActionNodeV1Alpha1TypeAction AutomationActionNodeV1Alpha1Type = "action" +) + +// Valid indicates whether the value is a known member of the AutomationActionNodeV1Alpha1Type enum. +func (e AutomationActionNodeV1Alpha1Type) Valid() bool { + switch e { + case AutomationActionNodeV1Alpha1TypeAction: + return true + default: + return false + } +} + +// Defines values for AutomationConditionNodeV1Alpha1Type. +const ( + AutomationConditionNodeV1Alpha1TypeCondition AutomationConditionNodeV1Alpha1Type = "condition" +) + +// Valid indicates whether the value is a known member of the AutomationConditionNodeV1Alpha1Type enum. +func (e AutomationConditionNodeV1Alpha1Type) Valid() bool { + switch e { + case AutomationConditionNodeV1Alpha1TypeCondition: + return true + default: + return false + } +} + +// Defines values for AutomationExecutionOverviewV1Alpha1Status. +const ( + AutomationExecutionOverviewV1Alpha1StatusDone AutomationExecutionOverviewV1Alpha1Status = "done" + AutomationExecutionOverviewV1Alpha1StatusFailed AutomationExecutionOverviewV1Alpha1Status = "failed" + AutomationExecutionOverviewV1Alpha1StatusPending AutomationExecutionOverviewV1Alpha1Status = "pending" + AutomationExecutionOverviewV1Alpha1StatusRunning AutomationExecutionOverviewV1Alpha1Status = "running" + AutomationExecutionOverviewV1Alpha1StatusSkipped AutomationExecutionOverviewV1Alpha1Status = "skipped" + AutomationExecutionOverviewV1Alpha1StatusWaitingResponse AutomationExecutionOverviewV1Alpha1Status = "waiting_response" +) + +// Valid indicates whether the value is a known member of the AutomationExecutionOverviewV1Alpha1Status enum. +func (e AutomationExecutionOverviewV1Alpha1Status) Valid() bool { + switch e { + case AutomationExecutionOverviewV1Alpha1StatusDone: + return true + case AutomationExecutionOverviewV1Alpha1StatusFailed: + return true + case AutomationExecutionOverviewV1Alpha1StatusPending: + return true + case AutomationExecutionOverviewV1Alpha1StatusRunning: + return true + case AutomationExecutionOverviewV1Alpha1StatusSkipped: + return true + case AutomationExecutionOverviewV1Alpha1StatusWaitingResponse: + return true + default: + return false + } +} + +// Defines values for AutomationExecutionV1Alpha1Status. +const ( + AutomationExecutionV1Alpha1StatusDone AutomationExecutionV1Alpha1Status = "done" + AutomationExecutionV1Alpha1StatusFailed AutomationExecutionV1Alpha1Status = "failed" + AutomationExecutionV1Alpha1StatusPending AutomationExecutionV1Alpha1Status = "pending" + AutomationExecutionV1Alpha1StatusRunning AutomationExecutionV1Alpha1Status = "running" + AutomationExecutionV1Alpha1StatusSkipped AutomationExecutionV1Alpha1Status = "skipped" + AutomationExecutionV1Alpha1StatusWaitingResponse AutomationExecutionV1Alpha1Status = "waiting_response" +) + +// Valid indicates whether the value is a known member of the AutomationExecutionV1Alpha1Status enum. +func (e AutomationExecutionV1Alpha1Status) Valid() bool { + switch e { + case AutomationExecutionV1Alpha1StatusDone: + return true + case AutomationExecutionV1Alpha1StatusFailed: + return true + case AutomationExecutionV1Alpha1StatusPending: + return true + case AutomationExecutionV1Alpha1StatusRunning: + return true + case AutomationExecutionV1Alpha1StatusSkipped: + return true + case AutomationExecutionV1Alpha1StatusWaitingResponse: + return true + default: + return false + } +} + +// Defines values for AutomationNodeExecutionOverviewV1Alpha1Status. +const ( + AutomationNodeExecutionOverviewV1Alpha1StatusDone AutomationNodeExecutionOverviewV1Alpha1Status = "done" + AutomationNodeExecutionOverviewV1Alpha1StatusFailed AutomationNodeExecutionOverviewV1Alpha1Status = "failed" + AutomationNodeExecutionOverviewV1Alpha1StatusPending AutomationNodeExecutionOverviewV1Alpha1Status = "pending" + AutomationNodeExecutionOverviewV1Alpha1StatusRunning AutomationNodeExecutionOverviewV1Alpha1Status = "running" + AutomationNodeExecutionOverviewV1Alpha1StatusSkipped AutomationNodeExecutionOverviewV1Alpha1Status = "skipped" + AutomationNodeExecutionOverviewV1Alpha1StatusWaitingResponse AutomationNodeExecutionOverviewV1Alpha1Status = "waiting_response" +) + +// Valid indicates whether the value is a known member of the AutomationNodeExecutionOverviewV1Alpha1Status enum. +func (e AutomationNodeExecutionOverviewV1Alpha1Status) Valid() bool { + switch e { + case AutomationNodeExecutionOverviewV1Alpha1StatusDone: + return true + case AutomationNodeExecutionOverviewV1Alpha1StatusFailed: + return true + case AutomationNodeExecutionOverviewV1Alpha1StatusPending: + return true + case AutomationNodeExecutionOverviewV1Alpha1StatusRunning: + return true + case AutomationNodeExecutionOverviewV1Alpha1StatusSkipped: + return true + case AutomationNodeExecutionOverviewV1Alpha1StatusWaitingResponse: + return true + default: + return false + } +} + +// Defines values for AutomationNodeTypeV1Alpha1. +const ( + AutomationNodeTypeV1Alpha1Action AutomationNodeTypeV1Alpha1 = "action" + AutomationNodeTypeV1Alpha1Condition AutomationNodeTypeV1Alpha1 = "condition" +) + +// Valid indicates whether the value is a known member of the AutomationNodeTypeV1Alpha1 enum. +func (e AutomationNodeTypeV1Alpha1) Valid() bool { + switch e { + case AutomationNodeTypeV1Alpha1Action: + return true + case AutomationNodeTypeV1Alpha1Condition: + return true + default: + return false + } +} + +// Defines values for AutomationTriggerV1Alpha1On. +const ( + AlertOccurrence AutomationTriggerV1Alpha1On = "alert_occurrence" + NewFindings AutomationTriggerV1Alpha1On = "new_findings" + NewFindingsGroupedByImage AutomationTriggerV1Alpha1On = "new_findings_grouped_by_image" + NewFindingsGroupedByResource AutomationTriggerV1Alpha1On = "new_findings_grouped_by_resource" + NewRisk AutomationTriggerV1Alpha1On = "new_risk" + NewThreat AutomationTriggerV1Alpha1On = "new_threat" + PlanSlaComplianceBreach AutomationTriggerV1Alpha1On = "plan_sla_compliance_breach" + PlanSlaComplianceWarning AutomationTriggerV1Alpha1On = "plan_sla_compliance_warning" + RiskUpdate AutomationTriggerV1Alpha1On = "risk_update" + RuntimePolicy AutomationTriggerV1Alpha1On = "runtime_policy" + ShieldStatusChange AutomationTriggerV1Alpha1On = "shield_status_change" + VmExceptionAboutToExpire AutomationTriggerV1Alpha1On = "vm_exception_about_to_expire" + VmExceptionCreated AutomationTriggerV1Alpha1On = "vm_exception_created" + VmExceptionDeleted AutomationTriggerV1Alpha1On = "vm_exception_deleted" + VmExceptionExpired AutomationTriggerV1Alpha1On = "vm_exception_expired" + VmExceptionUpdated AutomationTriggerV1Alpha1On = "vm_exception_updated" +) + +// Valid indicates whether the value is a known member of the AutomationTriggerV1Alpha1On enum. +func (e AutomationTriggerV1Alpha1On) Valid() bool { + switch e { + case AlertOccurrence: + return true + case NewFindings: + return true + case NewFindingsGroupedByImage: + return true + case NewFindingsGroupedByResource: + return true + case NewRisk: + return true + case NewThreat: + return true + case PlanSlaComplianceBreach: + return true + case PlanSlaComplianceWarning: + return true + case RiskUpdate: + return true + case RuntimePolicy: + return true + case ShieldStatusChange: + return true + case VmExceptionAboutToExpire: + return true + case VmExceptionCreated: + return true + case VmExceptionDeleted: + return true + case VmExceptionExpired: + return true + case VmExceptionUpdated: + return true + default: + return false + } +} + +// Defines values for AutomationValidationErrorV1Alpha1ErrorType. +const ( + AutomationActionInputInvalid AutomationValidationErrorV1Alpha1ErrorType = "automation_action_input_invalid" + AutomationActionNotAllowed AutomationValidationErrorV1Alpha1ErrorType = "automation_action_not_allowed" + AutomationAlreadyExecuted AutomationValidationErrorV1Alpha1ErrorType = "automation_already_executed" + AutomationBelongsToAnotherTeam AutomationValidationErrorV1Alpha1ErrorType = "automation_belongs_to_another_team" + AutomationConditionExprInvalid AutomationValidationErrorV1Alpha1ErrorType = "automation_condition_expr_invalid" + AutomationFeatureNotAllowed AutomationValidationErrorV1Alpha1ErrorType = "automation_feature_not_allowed" + AutomationNameNotUniquePerTeam AutomationValidationErrorV1Alpha1ErrorType = "automation_name_not_unique_per_team" + AutomationNotFound AutomationValidationErrorV1Alpha1ErrorType = "automation_not_found" + AutomationTriggerHasNoActionDescendants AutomationValidationErrorV1Alpha1ErrorType = "automation_trigger_has_no_action_descendants" + AutomationTriggerWhenInvalid AutomationValidationErrorV1Alpha1ErrorType = "automation_trigger_when_invalid" + ExecutionBelongsToAnotherCustomer AutomationValidationErrorV1Alpha1ErrorType = "execution_belongs_to_another_customer" + ExecutionBelongsToAnotherTeam AutomationValidationErrorV1Alpha1ErrorType = "execution_belongs_to_another_team" + ExecutionContextMissing AutomationValidationErrorV1Alpha1ErrorType = "execution_context_missing" + ExecutionNotFound AutomationValidationErrorV1Alpha1ErrorType = "execution_not_found" + InvalidPayload AutomationValidationErrorV1Alpha1ErrorType = "invalid_payload" +) + +// Valid indicates whether the value is a known member of the AutomationValidationErrorV1Alpha1ErrorType enum. +func (e AutomationValidationErrorV1Alpha1ErrorType) Valid() bool { + switch e { + case AutomationActionInputInvalid: + return true + case AutomationActionNotAllowed: + return true + case AutomationAlreadyExecuted: + return true + case AutomationBelongsToAnotherTeam: + return true + case AutomationConditionExprInvalid: + return true + case AutomationFeatureNotAllowed: + return true + case AutomationNameNotUniquePerTeam: + return true + case AutomationNotFound: + return true + case AutomationTriggerHasNoActionDescendants: + return true + case AutomationTriggerWhenInvalid: + return true + case ExecutionBelongsToAnotherCustomer: + return true + case ExecutionBelongsToAnotherTeam: + return true + case ExecutionContextMissing: + return true + case ExecutionNotFound: + return true + case InvalidPayload: + return true + default: + return false + } +} + // Defines values for BaseConnectionInfoChronicleRegion. const ( BaseConnectionInfoChronicleRegionAsiaSoutheast1 BaseConnectionInfoChronicleRegion = "asia-southeast1" @@ -1233,6 +1539,156 @@ func (e CreateRiskAcceptedRequestStages) Valid() bool { } } +// Defines values for CveScoreCvss2V1Beta1Type. +const ( + CveScoreCvss2V1Beta1TypeN20 CveScoreCvss2V1Beta1Type = "2.0" +) + +// Valid indicates whether the value is a known member of the CveScoreCvss2V1Beta1Type enum. +func (e CveScoreCvss2V1Beta1Type) Valid() bool { + switch e { + case CveScoreCvss2V1Beta1TypeN20: + return true + default: + return false + } +} + +// Defines values for CveScoreCvss3V1Beta1Type. +const ( + CveScoreCvss3V1Beta1TypeN30 CveScoreCvss3V1Beta1Type = "3.0" + CveScoreCvss3V1Beta1TypeN31 CveScoreCvss3V1Beta1Type = "3.1" +) + +// Valid indicates whether the value is a known member of the CveScoreCvss3V1Beta1Type enum. +func (e CveScoreCvss3V1Beta1Type) Valid() bool { + switch e { + case CveScoreCvss3V1Beta1TypeN30: + return true + case CveScoreCvss3V1Beta1TypeN31: + return true + default: + return false + } +} + +// Defines values for CveScoreCvss4V1Beta1Type. +const ( + CveScoreCvss4V1Beta1TypeN40 CveScoreCvss4V1Beta1Type = "4.0" +) + +// Valid indicates whether the value is a known member of the CveScoreCvss4V1Beta1Type enum. +func (e CveScoreCvss4V1Beta1Type) Valid() bool { + switch e { + case CveScoreCvss4V1Beta1TypeN40: + return true + default: + return false + } +} + +// Defines values for CveScoreV1Beta1Type. +const ( + CveScoreV1Beta1TypeN20 CveScoreV1Beta1Type = "2.0" + CveScoreV1Beta1TypeN30 CveScoreV1Beta1Type = "3.0" + CveScoreV1Beta1TypeN31 CveScoreV1Beta1Type = "3.1" + CveScoreV1Beta1TypeN40 CveScoreV1Beta1Type = "4.0" +) + +// Valid indicates whether the value is a known member of the CveScoreV1Beta1Type enum. +func (e CveScoreV1Beta1Type) Valid() bool { + switch e { + case CveScoreV1Beta1TypeN20: + return true + case CveScoreV1Beta1TypeN30: + return true + case CveScoreV1Beta1TypeN31: + return true + case CveScoreV1Beta1TypeN40: + return true + default: + return false + } +} + +// Defines values for CveSummaryV1Beta1Ecosystems. +const ( + CveSummaryV1Beta1EcosystemsApk CveSummaryV1Beta1Ecosystems = "apk" + CveSummaryV1Beta1EcosystemsApplication CveSummaryV1Beta1Ecosystems = "application" + CveSummaryV1Beta1EcosystemsCargo CveSummaryV1Beta1Ecosystems = "cargo" + CveSummaryV1Beta1EcosystemsComposer CveSummaryV1Beta1Ecosystems = "composer" + CveSummaryV1Beta1EcosystemsDeb CveSummaryV1Beta1Ecosystems = "deb" + CveSummaryV1Beta1EcosystemsGem CveSummaryV1Beta1Ecosystems = "gem" + CveSummaryV1Beta1EcosystemsGo CveSummaryV1Beta1Ecosystems = "go" + CveSummaryV1Beta1EcosystemsMaven CveSummaryV1Beta1Ecosystems = "maven" + CveSummaryV1Beta1EcosystemsNpm CveSummaryV1Beta1Ecosystems = "npm" + CveSummaryV1Beta1EcosystemsNuget CveSummaryV1Beta1Ecosystems = "nuget" + CveSummaryV1Beta1EcosystemsOci CveSummaryV1Beta1Ecosystems = "oci" + CveSummaryV1Beta1EcosystemsPypi CveSummaryV1Beta1Ecosystems = "pypi" + CveSummaryV1Beta1EcosystemsRpm CveSummaryV1Beta1Ecosystems = "rpm" +) + +// Valid indicates whether the value is a known member of the CveSummaryV1Beta1Ecosystems enum. +func (e CveSummaryV1Beta1Ecosystems) Valid() bool { + switch e { + case CveSummaryV1Beta1EcosystemsApk: + return true + case CveSummaryV1Beta1EcosystemsApplication: + return true + case CveSummaryV1Beta1EcosystemsCargo: + return true + case CveSummaryV1Beta1EcosystemsComposer: + return true + case CveSummaryV1Beta1EcosystemsDeb: + return true + case CveSummaryV1Beta1EcosystemsGem: + return true + case CveSummaryV1Beta1EcosystemsGo: + return true + case CveSummaryV1Beta1EcosystemsMaven: + return true + case CveSummaryV1Beta1EcosystemsNpm: + return true + case CveSummaryV1Beta1EcosystemsNuget: + return true + case CveSummaryV1Beta1EcosystemsOci: + return true + case CveSummaryV1Beta1EcosystemsPypi: + return true + case CveSummaryV1Beta1EcosystemsRpm: + return true + default: + return false + } +} + +// Defines values for CveSummaryV1Beta1Severity. +const ( + CveSummaryV1Beta1SeverityCritical CveSummaryV1Beta1Severity = "critical" + CveSummaryV1Beta1SeverityHigh CveSummaryV1Beta1Severity = "high" + CveSummaryV1Beta1SeverityLow CveSummaryV1Beta1Severity = "low" + CveSummaryV1Beta1SeverityMedium CveSummaryV1Beta1Severity = "medium" + CveSummaryV1Beta1SeverityNegligible CveSummaryV1Beta1Severity = "negligible" +) + +// Valid indicates whether the value is a known member of the CveSummaryV1Beta1Severity enum. +func (e CveSummaryV1Beta1Severity) Valid() bool { + switch e { + case CveSummaryV1Beta1SeverityCritical: + return true + case CveSummaryV1Beta1SeverityHigh: + return true + case CveSummaryV1Beta1SeverityLow: + return true + case CveSummaryV1Beta1SeverityMedium: + return true + case CveSummaryV1Beta1SeverityNegligible: + return true + default: + return false + } +} + // Defines values for DenyCveType. const ( DenyCVE DenyCveType = "denyCVE" @@ -4662,6 +5118,150 @@ func (e VulnerabilitySeverity) Valid() bool { } } +// Defines values for AutomationExecutionSort. +const ( + AutomationExecutionSortStartedAt AutomationExecutionSort = "startedAt" + AutomationExecutionSortStartedAtAsc AutomationExecutionSort = "startedAt:asc" + AutomationExecutionSortStartedAtDesc AutomationExecutionSort = "startedAt:desc" + AutomationExecutionSortStatusState AutomationExecutionSort = "status.state" + AutomationExecutionSortStatusStateAsc AutomationExecutionSort = "status.state:asc" + AutomationExecutionSortStatusStateDesc AutomationExecutionSort = "status.state:desc" +) + +// Valid indicates whether the value is a known member of the AutomationExecutionSort enum. +func (e AutomationExecutionSort) Valid() bool { + switch e { + case AutomationExecutionSortStartedAt: + return true + case AutomationExecutionSortStartedAtAsc: + return true + case AutomationExecutionSortStartedAtDesc: + return true + case AutomationExecutionSortStatusState: + return true + case AutomationExecutionSortStatusStateAsc: + return true + case AutomationExecutionSortStatusStateDesc: + return true + default: + return false + } +} + +// Defines values for AutomationExecutionStatus. +const ( + AutomationExecutionStatusDone AutomationExecutionStatus = "done" + AutomationExecutionStatusFailed AutomationExecutionStatus = "failed" + AutomationExecutionStatusPending AutomationExecutionStatus = "pending" + AutomationExecutionStatusRunning AutomationExecutionStatus = "running" + AutomationExecutionStatusSkipped AutomationExecutionStatus = "skipped" + AutomationExecutionStatusWaitingResponse AutomationExecutionStatus = "waiting_response" +) + +// Valid indicates whether the value is a known member of the AutomationExecutionStatus enum. +func (e AutomationExecutionStatus) Valid() bool { + switch e { + case AutomationExecutionStatusDone: + return true + case AutomationExecutionStatusFailed: + return true + case AutomationExecutionStatusPending: + return true + case AutomationExecutionStatusRunning: + return true + case AutomationExecutionStatusSkipped: + return true + case AutomationExecutionStatusWaitingResponse: + return true + default: + return false + } +} + +// Defines values for AutomationsSort. +const ( + AutomationsSortAuthor AutomationsSort = "author" + AutomationsSortAuthorAsc AutomationsSort = "author:asc" + AutomationsSortAuthorDesc AutomationsSort = "author:desc" + AutomationsSortCreatedAt AutomationsSort = "createdAt" + AutomationsSortCreatedAtAsc AutomationsSort = "createdAt:asc" + AutomationsSortCreatedAtDesc AutomationsSort = "createdAt:desc" + AutomationsSortEnabled AutomationsSort = "enabled" + AutomationsSortEnabledAsc AutomationsSort = "enabled:asc" + AutomationsSortEnabledDesc AutomationsSort = "enabled:desc" + AutomationsSortGroup AutomationsSort = "group" + AutomationsSortGroupAsc AutomationsSort = "group:asc" + AutomationsSortGroupDesc AutomationsSort = "group:desc" + AutomationsSortName AutomationsSort = "name" + AutomationsSortNameAsc AutomationsSort = "name:asc" + AutomationsSortNameDesc AutomationsSort = "name:desc" + AutomationsSortStatusState AutomationsSort = "status.state" + AutomationsSortStatusStateAsc AutomationsSort = "status.state:asc" + AutomationsSortStatusStateDesc AutomationsSort = "status.state:desc" + AutomationsSortTriggerOn AutomationsSort = "trigger.on" + AutomationsSortTriggerOnAsc AutomationsSort = "trigger.on:asc" + AutomationsSortTriggerOnDesc AutomationsSort = "trigger.on:desc" + AutomationsSortUpdatedAt AutomationsSort = "updatedAt" + AutomationsSortUpdatedAtAsc AutomationsSort = "updatedAt:asc" + AutomationsSortUpdatedAtDesc AutomationsSort = "updatedAt:desc" +) + +// Valid indicates whether the value is a known member of the AutomationsSort enum. +func (e AutomationsSort) Valid() bool { + switch e { + case AutomationsSortAuthor: + return true + case AutomationsSortAuthorAsc: + return true + case AutomationsSortAuthorDesc: + return true + case AutomationsSortCreatedAt: + return true + case AutomationsSortCreatedAtAsc: + return true + case AutomationsSortCreatedAtDesc: + return true + case AutomationsSortEnabled: + return true + case AutomationsSortEnabledAsc: + return true + case AutomationsSortEnabledDesc: + return true + case AutomationsSortGroup: + return true + case AutomationsSortGroupAsc: + return true + case AutomationsSortGroupDesc: + return true + case AutomationsSortName: + return true + case AutomationsSortNameAsc: + return true + case AutomationsSortNameDesc: + return true + case AutomationsSortStatusState: + return true + case AutomationsSortStatusStateAsc: + return true + case AutomationsSortStatusStateDesc: + return true + case AutomationsSortTriggerOn: + return true + case AutomationsSortTriggerOnAsc: + return true + case AutomationsSortTriggerOnDesc: + return true + case AutomationsSortUpdatedAt: + return true + case AutomationsSortUpdatedAtAsc: + return true + case AutomationsSortUpdatedAtDesc: + return true + default: + return false + } +} + // Defines values for RoleDisplayNamePath. const ( RoleDisplayNamePathAdvancedUser RoleDisplayNamePath = "Advanced User" @@ -4866,6 +5466,150 @@ func (e UpdateGlobalSsoSettingsV1ParamsSsoProductId) Valid() bool { } } +// Defines values for ListAutomationExecutionsParamsSort. +const ( + ListAutomationExecutionsParamsSortStartedAt ListAutomationExecutionsParamsSort = "startedAt" + ListAutomationExecutionsParamsSortStartedAtAsc ListAutomationExecutionsParamsSort = "startedAt:asc" + ListAutomationExecutionsParamsSortStartedAtDesc ListAutomationExecutionsParamsSort = "startedAt:desc" + ListAutomationExecutionsParamsSortStatusState ListAutomationExecutionsParamsSort = "status.state" + ListAutomationExecutionsParamsSortStatusStateAsc ListAutomationExecutionsParamsSort = "status.state:asc" + ListAutomationExecutionsParamsSortStatusStateDesc ListAutomationExecutionsParamsSort = "status.state:desc" +) + +// Valid indicates whether the value is a known member of the ListAutomationExecutionsParamsSort enum. +func (e ListAutomationExecutionsParamsSort) Valid() bool { + switch e { + case ListAutomationExecutionsParamsSortStartedAt: + return true + case ListAutomationExecutionsParamsSortStartedAtAsc: + return true + case ListAutomationExecutionsParamsSortStartedAtDesc: + return true + case ListAutomationExecutionsParamsSortStatusState: + return true + case ListAutomationExecutionsParamsSortStatusStateAsc: + return true + case ListAutomationExecutionsParamsSortStatusStateDesc: + return true + default: + return false + } +} + +// Defines values for ListAutomationExecutionsParamsStatus. +const ( + ListAutomationExecutionsParamsStatusDone ListAutomationExecutionsParamsStatus = "done" + ListAutomationExecutionsParamsStatusFailed ListAutomationExecutionsParamsStatus = "failed" + ListAutomationExecutionsParamsStatusPending ListAutomationExecutionsParamsStatus = "pending" + ListAutomationExecutionsParamsStatusRunning ListAutomationExecutionsParamsStatus = "running" + ListAutomationExecutionsParamsStatusSkipped ListAutomationExecutionsParamsStatus = "skipped" + ListAutomationExecutionsParamsStatusWaitingResponse ListAutomationExecutionsParamsStatus = "waiting_response" +) + +// Valid indicates whether the value is a known member of the ListAutomationExecutionsParamsStatus enum. +func (e ListAutomationExecutionsParamsStatus) Valid() bool { + switch e { + case ListAutomationExecutionsParamsStatusDone: + return true + case ListAutomationExecutionsParamsStatusFailed: + return true + case ListAutomationExecutionsParamsStatusPending: + return true + case ListAutomationExecutionsParamsStatusRunning: + return true + case ListAutomationExecutionsParamsStatusSkipped: + return true + case ListAutomationExecutionsParamsStatusWaitingResponse: + return true + default: + return false + } +} + +// Defines values for ListAutomationsParamsSort. +const ( + ListAutomationsParamsSortAuthor ListAutomationsParamsSort = "author" + ListAutomationsParamsSortAuthorAsc ListAutomationsParamsSort = "author:asc" + ListAutomationsParamsSortAuthorDesc ListAutomationsParamsSort = "author:desc" + ListAutomationsParamsSortCreatedAt ListAutomationsParamsSort = "createdAt" + ListAutomationsParamsSortCreatedAtAsc ListAutomationsParamsSort = "createdAt:asc" + ListAutomationsParamsSortCreatedAtDesc ListAutomationsParamsSort = "createdAt:desc" + ListAutomationsParamsSortEnabled ListAutomationsParamsSort = "enabled" + ListAutomationsParamsSortEnabledAsc ListAutomationsParamsSort = "enabled:asc" + ListAutomationsParamsSortEnabledDesc ListAutomationsParamsSort = "enabled:desc" + ListAutomationsParamsSortGroup ListAutomationsParamsSort = "group" + ListAutomationsParamsSortGroupAsc ListAutomationsParamsSort = "group:asc" + ListAutomationsParamsSortGroupDesc ListAutomationsParamsSort = "group:desc" + ListAutomationsParamsSortName ListAutomationsParamsSort = "name" + ListAutomationsParamsSortNameAsc ListAutomationsParamsSort = "name:asc" + ListAutomationsParamsSortNameDesc ListAutomationsParamsSort = "name:desc" + ListAutomationsParamsSortStatusState ListAutomationsParamsSort = "status.state" + ListAutomationsParamsSortStatusStateAsc ListAutomationsParamsSort = "status.state:asc" + ListAutomationsParamsSortStatusStateDesc ListAutomationsParamsSort = "status.state:desc" + ListAutomationsParamsSortTriggerOn ListAutomationsParamsSort = "trigger.on" + ListAutomationsParamsSortTriggerOnAsc ListAutomationsParamsSort = "trigger.on:asc" + ListAutomationsParamsSortTriggerOnDesc ListAutomationsParamsSort = "trigger.on:desc" + ListAutomationsParamsSortUpdatedAt ListAutomationsParamsSort = "updatedAt" + ListAutomationsParamsSortUpdatedAtAsc ListAutomationsParamsSort = "updatedAt:asc" + ListAutomationsParamsSortUpdatedAtDesc ListAutomationsParamsSort = "updatedAt:desc" +) + +// Valid indicates whether the value is a known member of the ListAutomationsParamsSort enum. +func (e ListAutomationsParamsSort) Valid() bool { + switch e { + case ListAutomationsParamsSortAuthor: + return true + case ListAutomationsParamsSortAuthorAsc: + return true + case ListAutomationsParamsSortAuthorDesc: + return true + case ListAutomationsParamsSortCreatedAt: + return true + case ListAutomationsParamsSortCreatedAtAsc: + return true + case ListAutomationsParamsSortCreatedAtDesc: + return true + case ListAutomationsParamsSortEnabled: + return true + case ListAutomationsParamsSortEnabledAsc: + return true + case ListAutomationsParamsSortEnabledDesc: + return true + case ListAutomationsParamsSortGroup: + return true + case ListAutomationsParamsSortGroupAsc: + return true + case ListAutomationsParamsSortGroupDesc: + return true + case ListAutomationsParamsSortName: + return true + case ListAutomationsParamsSortNameAsc: + return true + case ListAutomationsParamsSortNameDesc: + return true + case ListAutomationsParamsSortStatusState: + return true + case ListAutomationsParamsSortStatusStateAsc: + return true + case ListAutomationsParamsSortStatusStateDesc: + return true + case ListAutomationsParamsSortTriggerOn: + return true + case ListAutomationsParamsSortTriggerOnAsc: + return true + case ListAutomationsParamsSortTriggerOnDesc: + return true + case ListAutomationsParamsSortUpdatedAt: + return true + case ListAutomationsParamsSortUpdatedAtAsc: + return true + case ListAutomationsParamsSortUpdatedAtDesc: + return true + default: + return false + } +} + // Defines values for GetRulesV1ParamsType. const ( GetRulesV1ParamsTypeAlert GetRulesV1ParamsType = "alert" @@ -5037,6 +5781,33 @@ func (e GetAcceptedRisksV1ParamsSort) Valid() bool { } } +// Defines values for ListCveCatalogV1beta1ParamsSeverity. +const ( + ListCveCatalogV1beta1ParamsSeverityCritical ListCveCatalogV1beta1ParamsSeverity = "critical" + ListCveCatalogV1beta1ParamsSeverityHigh ListCveCatalogV1beta1ParamsSeverity = "high" + ListCveCatalogV1beta1ParamsSeverityLow ListCveCatalogV1beta1ParamsSeverity = "low" + ListCveCatalogV1beta1ParamsSeverityMedium ListCveCatalogV1beta1ParamsSeverity = "medium" + ListCveCatalogV1beta1ParamsSeverityNegligible ListCveCatalogV1beta1ParamsSeverity = "negligible" +) + +// Valid indicates whether the value is a known member of the ListCveCatalogV1beta1ParamsSeverity enum. +func (e ListCveCatalogV1beta1ParamsSeverity) Valid() bool { + switch e { + case ListCveCatalogV1beta1ParamsSeverityCritical: + return true + case ListCveCatalogV1beta1ParamsSeverityHigh: + return true + case ListCveCatalogV1beta1ParamsSeverityLow: + return true + case ListCveCatalogV1beta1ParamsSeverityMedium: + return true + case ListCveCatalogV1beta1ParamsSeverityNegligible: + return true + default: + return false + } +} + // Defines values for GetSBOMV1beta1ParamsAssetType. const ( GetSBOMV1beta1ParamsAssetTypeContainerImage GetSBOMV1beta1ParamsAssetType = "container-image" @@ -5340,6 +6111,77 @@ type AdditionalTeamPermissionsV1 struct { HasSysdigCaptures *bool `json:"hasSysdigCaptures,omitempty"` } +// AffectedComponentV1Beta1 A component, within one ecosystem, affected by this CVE. +type AffectedComponentV1Beta1 struct { + // ComponentName Name of the affected component, within its ecosystem. For `application`/`oci` ecosystems, this is the application or image name rather than a package name. + // + // + // Example: org.apache.logging.log4j:log4j-core + ComponentName string `json:"componentName"` + + // ComponentType Component type as reported by the source vendor. Omitted when unavailable. + // + // Example: maven + ComponentType *string `json:"componentType,omitempty"` + + // Ecosystem Sysdig-normalized component ecosystem, one of a closed set of known values. `application` and `oci` mark a whole-application or whole-image entry rather than a package within a language or OS package manager; `componentName`/`ranges` still apply, scoped to that application or image as a unit. + // + // + // Example: maven + Ecosystem AffectedComponentV1Beta1Ecosystem `json:"ecosystem"` + + // EcosystemVersion Ecosystem-specific version qualifier (e.g. the Linux distribution release). Omitted when not applicable. + // + // + // Example: 11 + EcosystemVersion *string `json:"ecosystemVersion,omitempty"` + + // Ranges Version ranges affected by this CVE, one entry per vendor-reported range. + Ranges []AffectedRangeV1Beta1 `json:"ranges"` +} + +// AffectedComponentV1Beta1Ecosystem Sysdig-normalized component ecosystem, one of a closed set of known values. `application` and `oci` mark a whole-application or whole-image entry rather than a package within a language or OS package manager; `componentName`/`ranges` still apply, scoped to that application or image as a unit. +// +// Example: maven +type AffectedComponentV1Beta1Ecosystem string + +// AffectedRangeV1Beta1 A single vendor-reported version range for an affected component. +type AffectedRangeV1Beta1 struct { + // Aliases Vendor advisory identifiers for this range (e.g. RHSA, ELSA, GLSA IDs). + Aliases *[]string `json:"aliases,omitempty"` + + // FixSource Source of the `fixedAt` timestamp. Omitted when unavailable. + // + // Example: nvd + FixSource *string `json:"fixSource,omitempty"` + + // Fixed Version at which the vulnerability was fixed. Omitted when no fix is known. + // + // Example: 2.17.1 + Fixed *string `json:"fixed,omitempty"` + + // FixedAt When the `fixed` version was released, according to `fixSource`. Omitted when unknown. + // + // Example: 2021-12-13T00:00:00Z + FixedAt *time.Time `json:"fixedAt,omitempty"` + + // Introduced Version at which the vulnerability was introduced. Omitted when unknown. + // + // Example: 2.0-beta9 + Introduced *string `json:"introduced,omitempty"` + + // LastAffected Last known affected version, for ranges reported without an explicit fixed version. Omitted when unknown. + // + // + // Example: 2.14.1 + LastAffected *string `json:"lastAffected,omitempty"` + + // SourceVendor Vendor that reported this range. Omitted when unavailable. + // + // Example: nvd + SourceVendor *string `json:"sourceVendor,omitempty"` +} + // AgentlessMlRuntimeDetectionContent Agentless ML event content type AgentlessMlRuntimeDetectionContent struct { Fields map[string]string `json:"fields"` @@ -6325,6 +7167,546 @@ type AuthenticatedConnectionInfoWebhookOutput string // Example: seconds type AuthenticatedConnectionInfoWebhookTimestampFormat string +// AutomationActionNodeV1Alpha1 A node that executes an action. Only the properties declared here are accepted; a stray `condition` (or any other unknown property) is rejected rather than ignored. +type AutomationActionNodeV1Alpha1 struct { + // Action The action executed by an automation node. + Action AutomationActionV1Alpha1 `json:"action"` + + // OnError Identifiers of nodes to execute if this node errors. + // + // Example: [] + OnError []string `json:"onError"` + + // OutboundEdges The nodes to execute next. + // + // Example: [] + OutboundEdges []AutomationOutboundEdgesV1Alpha1 `json:"outboundEdges"` + + // Type The node type discriminator. Always `action` for this variant. + // + // Example: action + Type AutomationActionNodeV1Alpha1Type `json:"type"` +} + +// AutomationActionNodeV1Alpha1Type The node type discriminator. Always `action` for this variant. +// +// Example: action +type AutomationActionNodeV1Alpha1Type string + +// AutomationActionV1Alpha1 The action executed by an automation node. +type AutomationActionV1Alpha1 struct { + // Inputs Action-specific input parameters. This is an object whose structure depends on the action `type`. + // + // + // Example: {"integrationId":"8215","issueTypes":{"33083":{"customFields":{},"standardFields":{"assignee":"6161884f7e6c170167e4e4ac","labels":["/dev/master","10s_flush"],"reporter":"6161884f7e6c170167e4e4ac"}}}} + Inputs map[string]interface{} `json:"inputs"` + + // Type The action type. The currently accepted values are grouped below. Which types an + // automation may use depends on its `trigger.on` event; an action type that is not + // valid for the automation's trigger is rejected with `422 Unprocessable Content`. + // New values may be added in future minor versions; clients must handle unknown + // values defensively. + // + // Notification channels, accepted on every trigger: + // - `slack` + // - `email` + // - `ms_teams` + // - `pager_duty` + // - `webhook` + // - `amazon_sns` + // + // Notification channels accepted only on the `alert_occurrence` trigger: + // - `gchat` + // - `ibm_event_notifications` + // - `victorops` + // - `opsgenie` + // - `team_email` + // - `prometheus_alert_manager` + // - `custom_webhook` + // + // Ticketing, accepted on the risk_update and new_findings triggers: + // - `jira` + // + // Response actions, accepted primarily on the `runtime_policy` trigger: + // - `kill_container` + // - `kill_process` + // - `stop_container` + // - `pause_container` + // - `file_acquire` + // - `file_quarantine` + // - `capture` + // - `k8s_isolate_network` + // - `k8s_volume_snapshot` + // - `k8s_get_logs` + // - `k8s_rollout_restart` + // - `k8s_delete_pod` + // - `cloud_make_private_resource` + // - `cloud_volume_snapshot` + // - `cloud_iam_quarantine` + // - `cloud_fetch_logs` + // + // + // Example: jira + Type string `json:"type"` +} + +// AutomationConditionNodeV1Alpha1 A node that evaluates a condition to control the automation flow. Only the properties declared here are accepted; a stray `action` (or any other unknown property) is rejected rather than ignored. +type AutomationConditionNodeV1Alpha1 struct { + // Condition The condition evaluated by an automation node. + Condition AutomationConditionV1Alpha1 `json:"condition"` + + // OnError Identifiers of nodes to execute if this node errors. + // + // Example: [] + OnError []string `json:"onError"` + + // OutboundEdges The nodes to execute next. + // + // Example: [] + OutboundEdges []AutomationOutboundEdgesV1Alpha1 `json:"outboundEdges"` + + // Type The node type discriminator. Always `condition` for this variant. + // + // Example: condition + Type AutomationConditionNodeV1Alpha1Type `json:"type"` +} + +// AutomationConditionNodeV1Alpha1Type The node type discriminator. Always `condition` for this variant. +// +// Example: condition +type AutomationConditionNodeV1Alpha1Type string + +// AutomationConditionV1Alpha1 The condition evaluated by an automation node. +type AutomationConditionV1Alpha1 struct { + // Else Identifiers of nodes to execute when the expression evaluates to false. + Else *[]string `json:"else,omitempty"` + + // If Expression that must evaluate to true for the condition to pass. + // + // Example: trigger.finding.hasExploit = true + If string `json:"if"` + + // Then Identifiers of nodes to execute when the expression evaluates to true. + Then *[]string `json:"then,omitempty"` +} + +// AutomationExecutionOverviewV1Alpha1 A single execution of an automation. Read-only; produced by the server. +type AutomationExecutionOverviewV1Alpha1 struct { + // AutomationId The automation this execution belongs to. + // + // Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 + AutomationId *openapi_types.UUID `json:"automationId,omitempty"` + + // Id UUIDv7 of the execution. + // + // Example: 0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50 + Id *openapi_types.UUID `json:"id,omitempty"` + + // Nodes Per-node execution records, keyed by node identifier. Each key mirrors a key of the automation's `nodes` map (for example `Condition_1` or `Send_Slack_1`). The labels are assigned by the server and are stable for the lifetime of the automation. + // + // + // Example: {"Condition_1":{"executionId":"0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50","finishedAt":"2026-08-11T04:00:16Z","id":"Condition_1","startedAt":"2026-08-11T04:00:16Z","status":"done"},"Send_Slack_1":{"executionId":"0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50","id":"Send_Slack_1","status":"skipped"},"Send_Slack_2":{"executionId":"0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50","finishedAt":"2026-08-11T04:00:16Z","id":"Send_Slack_2","inputs":{"channelId":"293660"},"outputs":{},"startedAt":"2026-08-11T04:00:16Z","status":"done"}} + Nodes *map[string]AutomationNodeExecutionOverviewV1Alpha1 `json:"nodes,omitempty"` + + // StartedAt When the execution started. + // + // Example: 2026-08-11T04:00:00.000Z + StartedAt *time.Time `json:"startedAt,omitempty"` + + // Status Overall execution status. + // + // Example: done + Status *AutomationExecutionOverviewV1Alpha1Status `json:"status,omitempty"` +} + +// AutomationExecutionOverviewV1Alpha1Status Overall execution status. +// +// Example: done +type AutomationExecutionOverviewV1Alpha1Status string + +// AutomationExecutionV1Alpha1 A single execution of an automation: the automation definition as it stood when the execution ran, the per-node results, and the trigger event payload that drove it. Read-only; produced by the server. +type AutomationExecutionV1Alpha1 struct { + // AutomationId The automation this execution belongs to. + // + // Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 + AutomationId *openapi_types.UUID `json:"automationId,omitempty"` + + // AutomationSnapshot The automation definition as it stood at the moment this execution ran. Held separately from the live automation so that historical executions stay interpretable after the automation is edited or deleted. + AutomationSnapshot *AutomationSnapshotV1Alpha1 `json:"automationSnapshot,omitempty"` + + // CustomerId ID of customer that owns the automation. + // + // Example: 123 + CustomerId int32 `json:"customerId"` + + // EventId UUIDv7 of the event that triggered this execution, as minted by the originating event stream. Use it to correlate the execution with the source record in the API that owns the event. + // + // + // Example: 0191a8b0-30a2-7a4e-8b3c-1f2e3d4c5ba2 + EventId *openapi_types.UUID `json:"eventId,omitempty"` + + // EventType Class of the event that triggered this execution, in `EVENT_TYPE_*` form. Corresponds to the automation's `trigger.on` value and determines both which API owns the event and the shape of `variables`. New values may be added in future minor versions; clients must handle unknown values defensively. + // + // + // Example: EVENT_TYPE_NEW_RISK_RESOURCE + EventType *string `json:"eventType,omitempty"` + + // ExecutionId UUIDv7 of the execution. + // + // Example: 0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50 + ExecutionId *openapi_types.UUID `json:"executionId,omitempty"` + + // FinishedAt When the execution finished. Omitted while the execution is still in progress. + // + // + // Example: 2026-08-24T06:01:29.898251Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` + + // Nodes Per-node execution records, keyed by node identifier. Each key mirrors a key of `automationSnapshot.nodes` (for example `Condition_1` or `Send_Slack_1`). The labels are assigned by the server and are stable for the lifetime of the automation. + // + // + // Example: {"Condition_1":{"executionId":"0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50","finishedAt":"2026-08-24T06:01:29Z","id":"Condition_1","startedAt":"2026-08-24T06:01:29Z","status":"done"},"Send_Slack_1":{"executionId":"0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50","id":"Send_Slack_1","status":"skipped"},"Send_Slack_2":{"executionId":"0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50","finishedAt":"2026-08-24T06:01:29Z","id":"Send_Slack_2","inputs":{"channelId":"293660"},"outputs":{},"startedAt":"2026-08-24T06:01:29Z","status":"done"}} + Nodes *map[string]AutomationNodeExecutionOverviewV1Alpha1 `json:"nodes,omitempty"` + + // StartedAt When the execution started. + // + // Example: 2026-08-24T06:01:28.501096Z + StartedAt *time.Time `json:"startedAt,omitempty"` + + // Status Overall execution status. New values may be added in future minor versions; clients must handle unknown values defensively. + // + // + // Example: done + Status *AutomationExecutionV1Alpha1Status `json:"status,omitempty"` + + // TruncatedVariablesCount Number of entries dropped from `variables` because the payload exceeded the size the server retains, serialized as a decimal string. `"0"` when nothing was dropped. + // + // + // Example: 0 + TruncatedVariablesCount *string `json:"truncatedVariablesCount,omitempty"` + + // Variables Snapshot of the trigger event payload, exposed to node templates through the `trigger.*` namespace. + // + // The contents are not defined by this API. They are the resource representation returned by whichever Sysdig API owns the triggering event, reproduced verbatim, so the shape varies with `eventType` (and correspondingly with the automation's `trigger.on`). An `EVENT_TYPE_NEW_RISK_RESOURCE` execution — the example below — carries `variables.resource` as a resource-and-risk record from the Risks API; a findings trigger carries a Vulnerability Management finding instead, and so on. + // + // Treat the contents as opaque and resolve field semantics against the documentation of the API that owns the event rather than against this schema. That API may add or change fields without a version bump here. Oversized payloads are trimmed; see `truncatedVariablesCount`. + // + // + // Example: {"resource":{"category":"Compute","hash":"4194fddb9f4a9113228b97bd1d536c552855e7a42ad375f5e2b05333","labels":["AutoTag_Creator: GitHubActions","instance: alma-8-x86_64"],"name":"i-0c57aa981866969c5","platform":"AWS","risk":{"hasExploit":true,"hash":"7b9107de9ca55ae92abc5f85ec86899cca73e5d01e42b134cf5d702c","isLive":true,"name":"Exposed EC2 with Critical Exploitable Vulnerability","platform":"AWS","policy":"0","resourceCategory":"Compute","resourceType":"EC2 Instance","resources":["a1c52220e210abc6","5e84f76c08b00173"],"severity":"High","type":"EC2 Instance","zones":["39001597","11641"]},"riskLastChange":"RISK_LAST_CHANGE_INCREASE","type":"EC2 Instance","zones":["1","39001597"]}} + Variables *map[string]interface{} `json:"variables,omitempty"` +} + +// AutomationExecutionV1Alpha1Status Overall execution status. New values may be added in future minor versions; clients must handle unknown values defensively. +// +// Example: done +type AutomationExecutionV1Alpha1Status string + +// AutomationNodeExecutionOverviewV1Alpha1 The execution record of a single node within an automation execution. Read-only; produced by the server. +type AutomationNodeExecutionOverviewV1Alpha1 struct { + // ExecutionId UUIDv7 of the execution this node belongs to. + // + // Example: 0191a8b0-3050-7a4e-8b3c-1f2e3d4c5b50 + ExecutionId *openapi_types.UUID `json:"executionId,omitempty"` + + // FinishedAt When the node finished executing. Omitted while the node is still running and when it never started. + // + // + // Example: 2026-08-24T06:01:29Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` + + // Id Identifier of the node within the automation flow. Matches both the key this object is filed under in `nodes` and the corresponding key of the automation's `nodes` map. + // + // + // Example: Send_Slack_2 + Id *string `json:"id,omitempty"` + + // Inputs Resolved input values passed to the node, keyed by input name. Shape depends on the node's action or condition. Omitted when the node takes no inputs or was never executed. + // + // + // Example: {"channelId":"293660"} + Inputs *map[string]interface{} `json:"inputs,omitempty"` + + // Outputs Values produced by the node, keyed by output name. Shape depends on the node's action or condition. Omitted when the node was never executed, and an empty object when the node executed but produced no outputs. + // + // + // Example: {} + Outputs *map[string]interface{} `json:"outputs,omitempty"` + + // StartedAt When the node started executing. Omitted when the node never started, for example when its status is `skipped` or `pending`. + // + // + // Example: 2026-08-24T06:01:29Z + StartedAt *time.Time `json:"startedAt,omitempty"` + + // Status Status of this node within the execution. New values may be added in future minor versions; clients must handle unknown values defensively. + // + // + // Example: done + Status *AutomationNodeExecutionOverviewV1Alpha1Status `json:"status,omitempty"` +} + +// AutomationNodeExecutionOverviewV1Alpha1Status Status of this node within the execution. New values may be added in future minor versions; clients must handle unknown values defensively. +// +// Example: done +type AutomationNodeExecutionOverviewV1Alpha1Status string + +// AutomationNodeTypeV1Alpha1 The node type discriminator. +// +// Example: action +type AutomationNodeTypeV1Alpha1 string + +// AutomationNodeV1Alpha1 A single node in the automation flow. A node is either an action node or a condition node, distinguished by the `type` discriminator. +type AutomationNodeV1Alpha1 struct { + // Type The node type discriminator. + // + // Example: action + Type AutomationNodeTypeV1Alpha1 `json:"type"` + union json.RawMessage +} + +// AutomationOutboundEdgesV1Alpha1 Node that is an outbound edge in an automation graph. +type AutomationOutboundEdgesV1Alpha1 struct { + // Node Action that this node represents. + // + // Example: Create_Jira_Tickets_1 + Node *string `json:"node,omitempty"` +} + +// AutomationSnapshotV1Alpha1 The automation definition as captured at the moment an execution ran. Read-only; produced by the server. Because it is a point-in-time copy it keeps historical executions interpretable after the live automation is edited or deleted, and it may therefore differ from the current automation returned by the automations endpoints. +type AutomationSnapshotV1Alpha1 struct { + // Author Author of the automation. + // + // Example: johndoe@example.com + Author *string `json:"author,omitempty"` + + // CreatedAt Timestamp when the automation was created in the system. + // + // Example: 2025-11-21T14:07:03.484154Z + CreatedAt *time.Time `json:"createdAt,omitempty"` + + // CustomerId ID of customer that owns the automation. + // + // Example: 123 + CustomerId int32 `json:"customerId"` + + // Enabled Indicates whether the automation was enabled when the execution ran. + // + // Example: true + Enabled *bool `json:"enabled,omitempty"` + + // Group The automation group. + // + // Example: default + Group *string `json:"group,omitempty"` + + // Id The automation ID. + // + // Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 + Id *openapi_types.UUID `json:"id,omitempty"` + + // Name The automation name. + // + // Example: SECOPS - Update Production Risks + Name *string `json:"name,omitempty"` + + // Nodes Map of node identifiers to their definitions, as configured when the execution ran, in the same shape the automations `nodes` map. + Nodes *map[string]AutomationNodeV1Alpha1 `json:"nodes,omitempty"` + + // Status Server-computed status of the automation at snapshot time, in the same shape the automations endpoints return. + Status *AutomationStatusV1Alpha1 `json:"status,omitempty"` + + // TeamId ID of team that owns the automation. Minted by the Teams/IAM platform API; treated as an opaque foreign reference. + // + // Example: 12 + TeamId int32 `json:"teamId"` + + // Trigger The trigger the automation was configured with when the execution ran. + Trigger *AutomationTriggerV1Alpha1 `json:"trigger,omitempty"` + + // UpdatedAt Timestamp when the automation was last updated in the system. + // + // Example: 2025-11-28T11:14:54.241962Z + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + + // Version Version of the automation. + // + // Example: v1 + Version *string `json:"version,omitempty"` +} + +// AutomationStatusV1Alpha1 Server-computed status of the automation. +type AutomationStatusV1Alpha1 struct { + // State Current lifecycle state of the automation. One of: `error`, `warning`, `active`, `inactive`. New values may be added in future minor versions; clients must handle unknown values defensively. + // + // + // Example: error + State *string `json:"state,omitempty"` + + // ValidationError Details of the validation error found for the automation, if any. + ValidationError *AutomationValidationErrorV1Alpha1 `json:"validationError,omitempty"` +} + +// AutomationTriggerV1Alpha1 Automation trigger. +type AutomationTriggerV1Alpha1 struct { + // On Event that triggers the automation. New values may be added in future minor versions; clients must handle unknown + // values defensively. + // + // + // Example: new_findings + On AutomationTriggerV1Alpha1On `json:"on"` + + // OutboundEdges The list of automation trigger outbound edges. + OutboundEdges []AutomationOutboundEdgesV1Alpha1 `json:"outboundEdges"` + + // When Condition that needs to be met to trigger the automation. + // + // Example: finding.severity in (0, 1, 2) + When string `json:"when"` +} + +// AutomationTriggerV1Alpha1On Event that triggers the automation. New values may be added in future minor versions; clients must handle unknown +// values defensively. +// +// Example: new_findings +type AutomationTriggerV1Alpha1On string + +// AutomationV1Alpha1 Automation. +type AutomationV1Alpha1 struct { + // Author Author of the automation. + // + // Example: johndoe@example.com + Author *string `json:"author,omitempty"` + + // CreatedAt Timestamp when the automation was created in the system. + // + // Example: 2025-11-18T21:19:11.411128Z + CreatedAt *time.Time `json:"createdAt,omitempty"` + + // CustomerId ID of customer that owns the automation. + // + // Example: 123 + CustomerId *int32 `json:"customerId,omitempty"` + + // Enabled Indicates if the automation is enabled or not. + // + // Example: false + Enabled bool `json:"enabled"` + + // Group The automation group. + // + // Example: default + Group string `json:"group"` + + // Id The automation ID. + // + // Example: 01913d2e-2c8a-7a4e-b9c2-3f5e8a1d9b00 + Id *openapi_types.UUID `json:"id,omitempty"` + + // Name The automation name. + // + // Example: High-Sev VM to Slack + Name string `json:"name"` + + // Nodes Map of node identifiers to their definitions. Each key is a unique node name within the automation flow. + Nodes map[string]AutomationNodeV1Alpha1 `json:"nodes"` + + // Status Server-computed status of the automation. + Status *AutomationStatusV1Alpha1 `json:"status,omitempty"` + + // TeamId ID of team that owns the automation. Minted by the Teams/IAM platform API; treated as an opaque foreign reference. + // + // Example: 12 + TeamId *int32 `json:"teamId,omitempty"` + + // Trigger Automation trigger. + Trigger AutomationTriggerV1Alpha1 `json:"trigger"` + + // UpdatedAt Timestamp when the automation was last updated in the system. + // + // Example: 2025-11-18T21:19:11.411128Z + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + + // Version Version of the automation. + // + // Example: v1 + Version *string `json:"version,omitempty"` +} + +// AutomationValidationErrorV1Alpha1 Details of the error found while validating the automation. +type AutomationValidationErrorV1Alpha1 struct { + // Details Additional error details as key-value string pairs. + // + // Example: {} + Details map[string]string `json:"details"` + + // ErrorType Identifier of the validation error. New values may be added in future minor versions; clients must handle unknown + // values defensively. + // + // + // Example: automation_action_input_invalid + ErrorType AutomationValidationErrorV1Alpha1ErrorType `json:"errorType"` + + // Message Description of the validation error. + // + // Example: Invalid automation: Action input 'integrationId' must be an integer. + Message string `json:"message"` +} + +// AutomationValidationErrorV1Alpha1ErrorType Identifier of the validation error. New values may be added in future minor versions; clients must handle unknown +// values defensively. +// +// Example: automation_action_input_invalid +type AutomationValidationErrorV1Alpha1ErrorType string + +// AutomationWritableV1Alpha1 Writable fields of an automation (client-supplied, non read-only). +type AutomationWritableV1Alpha1 struct { + // Enabled Indicates if the automation is enabled or not. + // + // Example: false + Enabled bool `json:"enabled"` + + // Group The automation group. + // + // Example: default + Group string `json:"group"` + + // Name The automation name. + // + // Example: High-Sev VM to Slack + Name string `json:"name"` + + // Nodes Map of node identifiers to their definitions. Each key is a unique node name within the automation flow. + Nodes map[string]AutomationNodeV1Alpha1 `json:"nodes"` + + // Trigger Automation trigger. + Trigger AutomationTriggerV1Alpha1 `json:"trigger"` +} + +// AutomationsPageV1Alpha1 Pagination information. +type AutomationsPageV1Alpha1 struct { + // Next `next` is a string pointing to the next page of data. + // Use this as the `cursor` to scroll paginated results and get the next page of data. + // If not included, the current response is the last page. + // + // + // Example: KzltNGUybXIwdWkzZThhMjE1bjRn + Next *string `json:"next,omitempty"` + + // Previous `prev` is a string pointing to the previous page of data. + // Use this as the `cursor` to get the previous page of data. + // + // + // Example: LTltNGUybXIwdWkzZThhMjE1bjRn + Previous *string `json:"previous,omitempty"` + + // Total The total number of items (automations) matching the search criteria. This number is always + // greater than or equal to the number of automations returned in the current page. + // + // + // Example: 10 + Total *int64 `json:"total,omitempty"` +} + // BaseAction defines model for BaseAction. type BaseAction struct { // Type Action type. @@ -7594,6 +8976,12 @@ type CreateAmazonSqsIntegrationRequest struct { Type IntegrationType `json:"type"` } +// CreateAutomationRequestV1Alpha1 Request body to create an automation. +type CreateAutomationRequestV1Alpha1 = AutomationWritableV1Alpha1 + +// CreateAutomationResponseV1Alpha1 The newly created automation. +type CreateAutomationResponseV1Alpha1 = AutomationV1Alpha1 + // CreateBundleRequest Bundle definition type CreateBundleRequest struct { // Description Human readable description of this Bundle @@ -8808,6 +10196,348 @@ type CustomJobsEnablementV1 struct { EnablementByCluster *map[string]bool `json:"enablementByCluster,omitempty"` } +// CveDetailV1Beta1 Full catalog record for a single CVE, as returned by the single-item endpoint. This is intentionally richer than the list endpoint's item shape (`CveSummaryV1Beta1`) — see the `vendors` and `affected` properties below. +type CveDetailV1Beta1 struct { + // Affected Components affected by this CVE with the version ranges reported for each. + Affected []AffectedComponentV1Beta1 `json:"affected"` + + // Summary Summary view of a single CVE in the Sysdig catalog, as returned by the list endpoint. + Summary CveSummaryV1Beta1 `json:"summary"` + + // Vendors Per-vendor metadata for this CVE. One entry per vendor that reports on it. + Vendors []CveVendorMetadataV1Beta1 `json:"vendors"` +} + +// CveExploitV1Beta1 A known public exploit reported by a vendor. +type CveExploitV1Beta1 struct { + // Links URLs with more information about this exploit. + Links []string `json:"links"` + + // PublishedAt When this exploit was published. Omitted when unknown. + // + // Example: 2021-12-10T00:00:00Z + PublishedAt *time.Time `json:"publishedAt,omitempty"` + + // Source Vendor or source reporting this exploit. + // + // Example: vulndb + Source string `json:"source"` +} + +// CveReferenceV1Beta1 An external reference link reported by a vendor. +type CveReferenceV1Beta1 struct { + // Source Vendor providing this reference. Omitted when unavailable. + // + // Example: nvd + Source *string `json:"source,omitempty"` + + // Type Category of this reference in the reporting vendor's vocabulary (e.g. `Patch`, `Third Party Advisory`). Omitted when unavailable. + // + // + // Example: Patch + Type *string `json:"type,omitempty"` + + // Url The reference URL. + // + // Example: https://logging.apache.org/log4j/2.x/security.html + Url string `json:"url"` +} + +// CveScoreCvss2V1Beta1 A CVSS v2.0 score reported by a vendor. +type CveScoreCvss2V1Beta1 struct { + // BaseScore CVSS base score, from 0 to 10. + // + // Example: 10 + BaseScore float64 `json:"baseScore"` + + // ExploitabilityScore CVSS exploitability sub-score, from 0 to 10. Omitted when not computed. + // + // Example: 10 + ExploitabilityScore *float64 `json:"exploitabilityScore,omitempty"` + + // ImpactScore CVSS impact sub-score, from 0 to 10. Omitted when not computed. + // + // Example: 10 + ImpactScore *float64 `json:"impactScore,omitempty"` + + // Source Name of the vendor that computed this score. + // + // Example: nvd + Source string `json:"source"` + + // TemporalScore CVSS temporal score, adjusting the base score for exploit maturity and remediation availability. Omitted when not computed. + // + // + // Example: 9.5 + TemporalScore *float64 `json:"temporalScore,omitempty"` + + // Type CVSS specification version discriminator. Always `2.0` for this variant. + // + // Example: 2.0 + Type CveScoreCvss2V1Beta1Type `json:"type"` + + // Vector CVSS vector string. + // + // Example: AV:N/AC:L/Au:N/C:C/I:C/A:C + Vector string `json:"vector"` +} + +// CveScoreCvss2V1Beta1Type CVSS specification version discriminator. Always `2.0` for this variant. +// +// Example: 2.0 +type CveScoreCvss2V1Beta1Type string + +// CveScoreCvss3V1Beta1 A CVSS v3.0 or v3.1 score reported by a vendor. +type CveScoreCvss3V1Beta1 struct { + // BaseScore CVSS base score, from 0 to 10. + // + // Example: 10 + BaseScore float64 `json:"baseScore"` + + // ExploitabilityScore CVSS exploitability sub-score. CVSS v3.x caps this at 3.9. Omitted when not computed. + // + // Example: 3.9 + ExploitabilityScore *float64 `json:"exploitabilityScore,omitempty"` + + // ImpactScore CVSS impact sub-score. CVSS v3.x caps this at 6.0. Omitted when not computed. + // + // Example: 6 + ImpactScore *float64 `json:"impactScore,omitempty"` + + // Source Vendor that computed this score. + // + // Example: nvd + Source string `json:"source"` + + // TemporalScore CVSS temporal score, adjusting the base score for exploit maturity and remediation availability. Omitted when not computed. + // + // + // Example: 9.5 + TemporalScore *float64 `json:"temporalScore,omitempty"` + + // Type CVSS specification version discriminator. + // + // Example: 3.1 + Type CveScoreCvss3V1Beta1Type `json:"type"` + + // Vector CVSS vector string. + // + // Example: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H + Vector string `json:"vector"` +} + +// CveScoreCvss3V1Beta1Type CVSS specification version discriminator. +// +// Example: 3.1 +type CveScoreCvss3V1Beta1Type string + +// CveScoreCvss4V1Beta1 A CVSS v4.0 score reported by a vendor. CVSS v4.0 restructured its metric groups and does not define `exploitabilityScore`/`impactScore` sub-scores. This variant omits them. +type CveScoreCvss4V1Beta1 struct { + // BaseScore CVSS base score, from 0 to 10. + // + // Example: 10 + BaseScore float64 `json:"baseScore"` + + // Source Vendor that computed this score. + // + // Example: nvd + Source string `json:"source"` + + // TemporalScore CVSS temporal score, adjusting the base score for exploit maturity and remediation availability. Omitted when not computed. + // + // + // Example: 9.5 + TemporalScore *float64 `json:"temporalScore,omitempty"` + + // Type CVSS specification version discriminator. Always `4.0` for this variant. + // + // Example: 4.0 + Type CveScoreCvss4V1Beta1Type `json:"type"` + + // Vector CVSS vector string. + // + // Example: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N + Vector string `json:"vector"` +} + +// CveScoreCvss4V1Beta1Type CVSS specification version discriminator. Always `4.0` for this variant. +// +// Example: 4.0 +type CveScoreCvss4V1Beta1Type string + +// CveScoreV1Beta1 A CVSS score reported by a vendor. The shape of `exploitabilityScore`/`impactScore` (bounds, and whether they're present at all) varies by CVSS specification `type`, per the FIRST.org CVSS specification (https://www.first.org/cvss/). These bounds are also enforced server-side. A value inside a variant's schema range can still be internally inconsistent (e.g. not matching `vector`); the schema constrains the range, not full CVSS correctness. +type CveScoreV1Beta1 struct { + // Type CVSS specification version used to compute this score. + // + // Example: 3.1 + Type CveScoreV1Beta1Type `json:"type"` + union json.RawMessage +} + +// CveScoreV1Beta1Type CVSS specification version used to compute this score. +// +// Example: 3.1 +type CveScoreV1Beta1Type string + +// CveSummaryV1Beta1 Summary view of a single CVE in the Sysdig catalog, as returned by the list endpoint. +type CveSummaryV1Beta1 struct { + // AffectedComponents Names of components affected by this CVE, across all ecosystems. + AffectedComponents []string `json:"affectedComponents"` + + // Description Human-readable description of the vulnerability. + // + // Example: Apache Log4j2 JNDI features used in configuration, log messages, and parameters do not protect against attacker-controlled LDAP and other JNDI related endpoints. + Description string `json:"description"` + + // Ecosystems Sysdig-normalized component ecosystems affected by this CVE, from a closed set of known values. Includes `application`/`oci` when a whole application or image is affected, not just a package. + Ecosystems []CveSummaryV1Beta1Ecosystems `json:"ecosystems"` + + // EpssPercentile Percentile rank of `epssScore` among all scored CVEs, from 0 to 1. Omitted when not available. + // + // Example: 0.99 + EpssPercentile *float64 `json:"epssPercentile,omitempty"` + + // EpssScore EPSS score (probability of exploitation in the next 30 days), from 0 to 1. Omitted when not available. + // + // Example: 0.94 + EpssScore *float64 `json:"epssScore,omitempty"` + + // EpssScoreVendor Source of the EPSS score. Omitted when unavailable. + // + // Example: first.org + EpssScoreVendor *string `json:"epssScoreVendor,omitempty"` + + // HasExploit Whether a public exploit is known for this CVE. + // + // Example: true + HasExploit bool `json:"hasExploit"` + + // HasExploitVendor Which vendor reported the exploit referenced by `hasExploit`. Omitted when unavailable. + // + // Example: vulndb + HasExploitVendor *string `json:"hasExploitVendor,omitempty"` + + // HasFix Whether at least one affected component has a known fixed version. + // + // Example: true + HasFix bool `json:"hasFix"` + + // HasKev Whether this CVE is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. + // + // Example: true + HasKev bool `json:"hasKev"` + + // Id The CVE identifier. + // + // Example: CVE-2021-44228 + Id *string `json:"id,omitempty"` + + // PublishDateVendor Which vendor's publish date `publishedAt` reflects. Omitted when unavailable. + // + // Example: nvd + PublishDateVendor *string `json:"publishDateVendor,omitempty"` + + // PublishedAt When the CVE was published. Omitted when unknown. + // + // Example: 2021-12-10T10:15:00Z + PublishedAt *time.Time `json:"publishedAt,omitempty"` + + // Severity Sysdig-normalized severity. Omitted when no vendor score was available to derive it. + // + // Example: critical + Severity *CveSummaryV1Beta1Severity `json:"severity,omitempty"` + + // SeverityVendor Which vendor's score `severity` was derived from. Not a fixed set: any vendor Sysdig currently or in the future ingests scores from (e.g. `nvd`, `vulndb`, `first.org`, `cisa`, or a per-distro security tracker). Omitted when unavailable. + // + // + // Example: nvd + SeverityVendor *string `json:"severityVendor,omitempty"` +} + +// CveSummaryV1Beta1Ecosystems Example: maven +type CveSummaryV1Beta1Ecosystems string + +// CveSummaryV1Beta1Severity Sysdig-normalized severity. Omitted when no vendor score was available to derive it. +// +// Example: critical +type CveSummaryV1Beta1Severity string + +// CveVendorMetadataV1Beta1 A single vendor's report about a CVE. +type CveVendorMetadataV1Beta1 struct { + // Description Vendor's description of the vulnerability. Omitted when the vendor doesn't supply one. + // + // Example: Apache Log4j2 JNDI features used in configuration, log messages, and parameters do not protect against attacker-controlled LDAP and other JNDI related endpoints. + Description *string `json:"description,omitempty"` + + // Details Extended vendor-supplied details beyond `description`. Omitted when unavailable. + // + // Example: By default, when using a Java naming and directory interface (JNDI) lookup... + Details *string `json:"details,omitempty"` + + // Epss Exploit Prediction Scoring System (EPSS) assessment. + Epss *EpssScoreV1Beta1 `json:"epss,omitempty"` + + // Exploits Known public exploits reported by this vendor. + Exploits *[]CveExploitV1Beta1 `json:"exploits,omitempty"` + + // FixedAt When a fix became available according to this vendor. Omitted when unknown. + // + // Example: 2021-12-13T00:00:00Z + FixedAt *time.Time `json:"fixedAt,omitempty"` + + // Kev CISA Known Exploited Vulnerabilities (KEV) catalog details. + Kev *KevInfoV1Beta1 `json:"kev,omitempty"` + + // PublishedAt When the vendor published this CVE. Omitted when unknown. + // + // Example: 2021-12-10T10:15:00Z + PublishedAt *time.Time `json:"publishedAt,omitempty"` + + // References External reference links reported by this vendor. + References *[]CveReferenceV1Beta1 `json:"references,omitempty"` + + // Scores CVSS scores reported by this vendor. + Scores *[]CveScoreV1Beta1 `json:"scores,omitempty"` + + // Severity Vendor-reported severity label, in the vendor's own vocabulary (not normalized). Omitted when unavailable. + // + // + // Example: CRITICAL + Severity *string `json:"severity,omitempty"` + + // Solution Vendor-recommended remediation. Omitted when unavailable. + // + // Example: Upgrade to version 2.17.1 or later. + Solution *string `json:"solution,omitempty"` + + // Summary Vendor-supplied short summary, distinct from `description`. Omitted when unavailable. + // + // Example: Remote code execution via crafted JNDI lookups. + Summary *string `json:"summary,omitempty"` + + // Vendor Name of the reporting vendor. + // + // Example: nvd + Vendor string `json:"vendor"` + + // Weaknesses CWE weaknesses associated with this CVE by this vendor. + Weaknesses *[]CveWeaknessV1Beta1 `json:"weaknesses,omitempty"` +} + +// CveWeaknessV1Beta1 A CWE weakness associated with this CVE by a vendor. +type CveWeaknessV1Beta1 struct { + // Id Common Weakness Enumeration (CWE) identifier (https://cwe.mitre.org/). + // + // + // Example: CWE-502 + Id *string `json:"id,omitempty"` + + // Source Vendor reporting this weakness. + // + // Example: nvd + Source string `json:"source"` +} + // CvssScore defines model for CvssScore. type CvssScore struct { // Score CVSS score @@ -9024,6 +10754,29 @@ type EntryResponse struct { union json.RawMessage } +// EpssScoreV1Beta1 Exploit Prediction Scoring System (EPSS) assessment. +type EpssScoreV1Beta1 struct { + // Percentile Percentile rank of `score` among all scored CVEs, from 0 to 1. Omitted when not available. + // + // Example: 0.99 + Percentile *float64 `json:"percentile,omitempty"` + + // Score Probability of exploitation in the next 30 days, from 0 to 1. + // + // Example: 0.94 + Score float64 `json:"score"` + + // ScoredAt When this EPSS score was computed. Omitted when unavailable. + // + // Example: 2024-01-01T00:00:00Z + ScoredAt *time.Time `json:"scoredAt,omitempty"` + + // Version EPSS model version used to compute `score`. Omitted when unavailable. + // + // Example: 2023.03.01 + Version *string `json:"version,omitempty"` +} + // Error defines model for Error. type Error struct { // Details A list of details related to the error. @@ -9460,6 +11213,15 @@ type GetAmazonSqsIntegrationResponse struct { Type IntegrationType `json:"type"` } +// GetAutomationByIdResponseV1Alpha1 The automation with given ID. +type GetAutomationByIdResponseV1Alpha1 = AutomationV1Alpha1 + +// GetAutomationExecutionResponseV1Alpha1 The requested automation execution. +type GetAutomationExecutionResponseV1Alpha1 struct { + // ExecutionHistory The automation execution, including its automation snapshot and node results. + ExecutionHistory *AutomationExecutionV1Alpha1 `json:"executionHistory,omitempty"` +} + // GetBundleResponse Bundle definition type GetBundleResponse struct { // BundleType Specifies whether the Bundle was defined by the Customer or by Sysdig @@ -12130,6 +13892,19 @@ type KafkaTlsEncryptedV1 struct { // KafkaTlsEncryptedV1IsTlsEnabled Example: true type KafkaTlsEncryptedV1IsTlsEnabled bool +// KevInfoV1Beta1 CISA Known Exploited Vulnerabilities (KEV) catalog details. +type KevInfoV1Beta1 struct { + // DueAt Remediation due date assigned by CISA BOD 22-01. Omitted when this CVE has no CISA-assigned due date. + // + // Example: 2022-01-18T00:00:00Z + DueAt *time.Time `json:"dueAt,omitempty"` + + // HasKnownRansomwareCampaignUse Whether CISA has flagged this CVE as used in ransomware campaigns. + // + // Example: false + HasKnownRansomwareCampaignUse bool `json:"hasKnownRansomwareCampaignUse"` +} + // KeyValueObject defines model for KeyValueObject. type KeyValueObject struct { // Key The key @@ -12336,6 +14111,24 @@ type ListAuditEventsResponse struct { Page AuditPage `json:"page"` } +// ListAutomationExecutionsPaginatedResponseV1Alpha1 A page of automation executions. +type ListAutomationExecutionsPaginatedResponseV1Alpha1 struct { + // Data The executions in this page. + Data []AutomationExecutionOverviewV1Alpha1 `json:"data"` + + // Page Pagination information. + Page *AutomationsPageV1Alpha1 `json:"page,omitempty"` +} + +// ListAutomationsPaginatedResponseV1Alpha1 The list of automations matching a search criteria. +type ListAutomationsPaginatedResponseV1Alpha1 struct { + // Data The list of automations. + Data []AutomationV1Alpha1 `json:"data"` + + // Page Pagination information. + Page AutomationsPageV1Alpha1 `json:"page"` +} + // ListBundlesResponse Bundles list response type ListBundlesResponse struct { // Data Bundles collection @@ -12345,6 +14138,27 @@ type ListBundlesResponse struct { Page PoliciesPage `json:"page"` } +// ListCveCatalogResponseV1Beta1 A page of CVEs matching the given filters. +type ListCveCatalogResponseV1Beta1 struct { + // Data The list of CVEs in this page. + Data []CveSummaryV1Beta1 `json:"data"` + + // Page Page information. + Page *struct { + // Next Opaque cursor pointing to the next page of results. Use it as the `cursor` query parameter to continue paging. Absent on the last page. + // + // + // Example: MTI0MjM0Cg== + Next *string `json:"next,omitempty"` + + // Total The total number of items (CVEs) matching the given filters. Always greater than or equal to the number of CVEs returned in the current page. Omitted when computing it would be too costly for the given filters. + // + // + // Example: 10000 + Total *int64 `json:"total,omitempty"` + } `json:"page,omitempty"` +} + // ListEfoIntegrationsResponseV1 defines model for ListEfoIntegrationsResponseV1. type ListEfoIntegrationsResponseV1 struct { Data []EfoIntegrationResponseV1 `json:"data"` @@ -12913,11 +14727,20 @@ type Package struct { // Example: l-123124 LayerRef *string `json:"layerRef,omitempty"` - // License license of the package + // License license of the package. (deprecated, refer to `licenses` field) // // Example: MIT + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set License *string `json:"license,omitempty"` + // Licenses List of licenses detected for the package. The list is empty if no license is detected. + // Licenses that cannot be identified are marked as "unknown". + // The relationship between multiple license entries (e.g., whether they represent an AND or OR relationship) is not determined. + // + // + // Example: ["MIT","Apache-2.0"] + Licenses *[]string `json:"licenses,omitempty"` + // Name name of the package // // Example: openssl @@ -14764,7 +16587,7 @@ type ScanResultResponse struct { // Metadata metadata of the scan result Metadata ScanResultResponse_Metadata `json:"metadata"` - // Packages Example: {"2772f8a6c73fa17":{"category":"package","endOfLifeDate":"2020-04-21T16:08:08.845336507Z","isRemoved":true,"isRunning":true,"layerRef":"f95aa9ae66563e7e808b","license":"MIT","name":"openssl","path":"/usr/local/bin/openssl","riskAcceptRefs":["acb4b0d2565bfef"],"suggestedFix":"1.2.3","type":"os","version":"1.2.3","vulnerabilitiesRefs":["71af37c6a8f2772"]}} + // Packages Example: {"2772f8a6c73fa17":{"category":"package","endOfLifeDate":"2020-04-21T16:08:08.845336507Z","isRemoved":true,"isRunning":true,"layerRef":"f95aa9ae66563e7e808b","license":"MIT","licenses":["MIT","Apache-2.0"],"name":"openssl","path":"/usr/local/bin/openssl","riskAcceptRefs":["acb4b0d2565bfef"],"suggestedFix":"1.2.3","type":"os","version":"1.2.3","vulnerabilitiesRefs":["71af37c6a8f2772"]}} Packages map[string]Package `json:"packages"` Policies *Policies `json:"policies,omitempty"` Producer *Producer `json:"producer,omitempty"` @@ -15862,6 +17685,12 @@ type UpdateAmazonSqsIntegrationRequest struct { Type IntegrationType `json:"type"` } +// UpdateAutomationRequestV1Alpha1 Request body to update an existing automation. +type UpdateAutomationRequestV1Alpha1 = AutomationWritableV1Alpha1 + +// UpdateAutomationResponseV1Alpha1 The updated automation. +type UpdateAutomationResponseV1Alpha1 = AutomationV1Alpha1 + // UpdateChronicleIntegrationConnInfo Update Chronicle Integration Connection Info type UpdateChronicleIntegrationConnInfo struct { // ApiKey The Chronicle v2 API key @@ -18043,6 +19872,42 @@ type AccessKeyIdPath = UnlimitedLong // ActionExecutionId Example: 1234567890123456789012345678901234567890123456789012345678901234 type ActionExecutionId = string +// AutomationExecutionID Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 +type AutomationExecutionID = openapi_types.UUID + +// AutomationExecutionSort Example: startedAt:asc +type AutomationExecutionSort string + +// AutomationExecutionStatus Example: done +type AutomationExecutionStatus string + +// AutomationID Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 +type AutomationID = openapi_types.UUID + +// AutomationsCursor Example: LTltNGUybXIwdWkzZThhMjE1bjRn +type AutomationsCursor = string + +// AutomationsEnabled Example: true +type AutomationsEnabled = bool + +// AutomationsGroup Example: production +type AutomationsGroup = string + +// AutomationsIfMatch Example: "334181ea7fe6d58180cf6b4e9d1bf524" +type AutomationsIfMatch = string + +// AutomationsLimit Example: 100 +type AutomationsLimit = int32 + +// AutomationsSearch Example: high-cpu +type AutomationsSearch = string + +// AutomationsSort Example: name:asc +type AutomationsSort string + +// AutomationsTriggerOn Example: new_risk +type AutomationsTriggerOn = string + // Enabled Example: false type Enabled = bool @@ -18057,6 +19922,9 @@ type Filter = string // Example: 1 type GroupMappingIdPath = UnlimitedLong +// IdempotencyKey Example: 01913d2e-2c8a-7a4e-b9c2-3f5e8a1d9b00 +type IdempotencyKey = openapi_types.UUID + // InhibitionRulePath // // Example: 1 @@ -18271,6 +20139,9 @@ type Conflict = Error // ConflictV2 defines model for ConflictV2. type ConflictV2 = ErrorV2 +// CveCatalogInternalServerErrorV2 defines model for CveCatalogInternalServerErrorV2. +type CveCatalogInternalServerErrorV2 = ErrorV2 + // Forbidden defines model for Forbidden. type Forbidden = Error @@ -18786,6 +20657,75 @@ type ListZonesV1Params struct { Orderby *MultiOrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` } +// ListAutomationExecutionsParams defines parameters for ListAutomationExecutions. +type ListAutomationExecutionsParams struct { + // AutomationId Filter executions by the automation they belong to. + AutomationId openapi_types.UUID `form:"automationId" json:"automationId"` + + // Limit The maximum number of automations to return in a single page. + Limit *AutomationsLimit `form:"limit,omitempty" json:"limit,omitempty"` + + // Sort Sort the automation execution list by a single field, in the form `[:asc|desc]` (direction defaults to `asc`). + Sort *ListAutomationExecutionsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + + // Status Filters automations with a given status. + Status *ListAutomationExecutionsParamsStatus `form:"status,omitempty" json:"status,omitempty"` + + // Cursor Opaque cursor used to retrieve a page of results. Use the `next`/`prev` value returned by the previous list response; omit it to fetch the first page. + Cursor *AutomationsCursor `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// ListAutomationExecutionsParamsSort defines parameters for ListAutomationExecutions. +type ListAutomationExecutionsParamsSort string + +// ListAutomationExecutionsParamsStatus defines parameters for ListAutomationExecutions. +type ListAutomationExecutionsParamsStatus string + +// ListAutomationsParams defines parameters for ListAutomations. +type ListAutomationsParams struct { + // Enabled When set, returns only automations whose enabled state matches this value. + Enabled *AutomationsEnabled `form:"enabled,omitempty" json:"enabled,omitempty"` + + // Group Filters automations belonging to the given group. + Group *AutomationsGroup `form:"group,omitempty" json:"group,omitempty"` + + // Sort Sort the automations list by a single field, in the form `[:asc|desc]` (direction defaults to `asc`). + Sort *ListAutomationsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + + // Search Free-text term used to filter automations by name or description. + Search *AutomationsSearch `form:"search,omitempty" json:"search,omitempty"` + + // TriggerOn Filters automations by the event type they are triggered on. + TriggerOn *AutomationsTriggerOn `form:"triggerOn,omitempty" json:"triggerOn,omitempty"` + + // Limit The maximum number of automations to return in a single page. + Limit *AutomationsLimit `form:"limit,omitempty" json:"limit,omitempty"` + + // Cursor Opaque cursor used to retrieve a page of results. Use the `next`/`prev` value returned by the previous list response; omit it to fetch the first page. + Cursor *AutomationsCursor `form:"cursor,omitempty" json:"cursor,omitempty"` +} + +// ListAutomationsParamsSort defines parameters for ListAutomations. +type ListAutomationsParamsSort string + +// CreateAutomationParams defines parameters for CreateAutomation. +type CreateAutomationParams struct { + // IdempotencyKey Unique key chosen by the client to safely retry a creation request without creating duplicate resources. Replaying the same key with an identical body returns the original result; a different body for the same key is rejected. + IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"` +} + +// DeleteAutomationByIdParams defines parameters for DeleteAutomationById. +type DeleteAutomationByIdParams struct { + // IfMatch ETag from a prior GET. Guards the write against lost updates; the server returns 412 Precondition Failed if the configuration changed in the meantime. + IfMatch AutomationsIfMatch `json:"If-Match"` +} + +// UpdateAutomationParams defines parameters for UpdateAutomation. +type UpdateAutomationParams struct { + // IfMatch ETag from a prior GET. Guards the write against lost updates; the server returns 412 Precondition Failed if the configuration changed in the meantime. + IfMatch AutomationsIfMatch `json:"If-Match"` +} + // ListZonesV2Params defines parameters for ListZonesV2. type ListZonesV2Params struct { // Filter Filters to apply in the form of `key:value`.\ @@ -19462,6 +21402,48 @@ type GetAcceptedRisksV1ParamsOrder string // GetAcceptedRisksV1ParamsSort defines parameters for GetAcceptedRisksV1. type GetAcceptedRisksV1ParamsSort string +// ListCveCatalogV1beta1Params defines parameters for ListCveCatalogV1beta1. +type ListCveCatalogV1beta1Params struct { + // Query Free-text substring match against the CVE ID or an affected component name. + Query *string `form:"query,omitempty" json:"query,omitempty"` + + // ComponentName Restrict results to CVEs affecting a component with exactly this name. + ComponentName *string `form:"componentName,omitempty" json:"componentName,omitempty"` + + // Severity Restrict results to one or more Sysdig-normalized severities. Repeat the parameter to match any of several severities (OR). + Severity *[]ListCveCatalogV1beta1ParamsSeverity `form:"severity,omitempty" json:"severity,omitempty"` + + // CvssMin Restrict results to CVEs with a base CVSS score greater than or equal to this value. Must be less than or equal to `cvssMax` when both are given, otherwise the request is rejected with `400 Bad Request`. + CvssMin *float64 `form:"cvssMin,omitempty" json:"cvssMin,omitempty"` + + // CvssMax Restrict results to CVEs with a base CVSS score less than or equal to this value. Must be greater than or equal to `cvssMin` when both are given, otherwise the request is rejected with `400 Bad Request`. + CvssMax *float64 `form:"cvssMax,omitempty" json:"cvssMax,omitempty"` + + // PublishedAfter Restrict results to CVEs published at or after this timestamp. Must be earlier than or equal to `publishedBefore` when both are given, otherwise the request is rejected with `400 Bad Request`. + PublishedAfter *time.Time `form:"publishedAfter,omitempty" json:"publishedAfter,omitempty"` + + // PublishedBefore Restrict results to CVEs published at or before this timestamp. Must be later than or equal to `publishedAfter` when both are given, otherwise the request is rejected with `400 Bad Request`. + PublishedBefore *time.Time `form:"publishedBefore,omitempty" json:"publishedBefore,omitempty"` + + // HasExploit Restrict results to CVEs with (`true`) or without (`false`) a known public exploit. + HasExploit *bool `form:"hasExploit,omitempty" json:"hasExploit,omitempty"` + + // HasKev Restrict results to CVEs that are (`true`) or are not (`false`) listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. + HasKev *bool `form:"hasKev,omitempty" json:"hasKev,omitempty"` + + // HasFix Restrict results to CVEs that do (`true`) or do not (`false`) have a known fix. + HasFix *bool `form:"hasFix,omitempty" json:"hasFix,omitempty"` + + // Cursor Opaque cursor used to retrieve a page of results. Use the `next` value returned by the previous list response; omit it to fetch the first page. + Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"` + + // Limit The maximum number of CVEs to return in a single page. + Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +} + +// ListCveCatalogV1beta1ParamsSeverity defines parameters for ListCveCatalogV1beta1. +type ListCveCatalogV1beta1ParamsSeverity string + // GetSBOMV1beta1Params defines parameters for GetSBOMV1beta1. type GetSBOMV1beta1Params struct { // AssetId The ID of the asset for which we want to retrieve the SBOM. It's the imageId for container-image and the hostId for hosts @@ -19632,6 +21614,12 @@ type CreateZoneV1JSONRequestBody = CreateZoneRequestV1 // Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set type EditZoneV1JSONRequestBody = CreateZoneRequestV1 +// CreateAutomationJSONRequestBody defines body for CreateAutomation for application/json ContentType. +type CreateAutomationJSONRequestBody = CreateAutomationRequestV1Alpha1 + +// UpdateAutomationJSONRequestBody defines body for UpdateAutomation for application/json ContentType. +type UpdateAutomationJSONRequestBody = UpdateAutomationRequestV1Alpha1 + // CreateZoneV2JSONRequestBody defines body for CreateZoneV2 for application/json ContentType. type CreateZoneV2JSONRequestBody = CreateZoneRequestV2 @@ -20501,6 +22489,144 @@ func (t *AuthenticatedConnectionInfoKafkaV1) UnmarshalJSON(b []byte) error { return err } +// AsAutomationActionNodeV1Alpha1 returns the union data inside the AutomationNodeV1Alpha1 as a AutomationActionNodeV1Alpha1 +func (t AutomationNodeV1Alpha1) AsAutomationActionNodeV1Alpha1() (AutomationActionNodeV1Alpha1, error) { + var body AutomationActionNodeV1Alpha1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromAutomationActionNodeV1Alpha1 overwrites any union data inside the AutomationNodeV1Alpha1 as the provided AutomationActionNodeV1Alpha1 +func (t *AutomationNodeV1Alpha1) FromAutomationActionNodeV1Alpha1(v AutomationActionNodeV1Alpha1) error { + t.Type = "action" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"action"}`)) + t.union = b + return err +} + +// MergeAutomationActionNodeV1Alpha1 performs a merge with any union data inside the AutomationNodeV1Alpha1, using the provided AutomationActionNodeV1Alpha1 +func (t *AutomationNodeV1Alpha1) MergeAutomationActionNodeV1Alpha1(v AutomationActionNodeV1Alpha1) error { + t.Type = "action" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"action"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsAutomationConditionNodeV1Alpha1 returns the union data inside the AutomationNodeV1Alpha1 as a AutomationConditionNodeV1Alpha1 +func (t AutomationNodeV1Alpha1) AsAutomationConditionNodeV1Alpha1() (AutomationConditionNodeV1Alpha1, error) { + var body AutomationConditionNodeV1Alpha1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromAutomationConditionNodeV1Alpha1 overwrites any union data inside the AutomationNodeV1Alpha1 as the provided AutomationConditionNodeV1Alpha1 +func (t *AutomationNodeV1Alpha1) FromAutomationConditionNodeV1Alpha1(v AutomationConditionNodeV1Alpha1) error { + t.Type = "condition" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"condition"}`)) + t.union = b + return err +} + +// MergeAutomationConditionNodeV1Alpha1 performs a merge with any union data inside the AutomationNodeV1Alpha1, using the provided AutomationConditionNodeV1Alpha1 +func (t *AutomationNodeV1Alpha1) MergeAutomationConditionNodeV1Alpha1(v AutomationConditionNodeV1Alpha1) error { + t.Type = "condition" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"condition"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t AutomationNodeV1Alpha1) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t AutomationNodeV1Alpha1) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "action": + return t.AsAutomationActionNodeV1Alpha1() + case "condition": + return t.AsAutomationConditionNodeV1Alpha1() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t AutomationNodeV1Alpha1) 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 + } + } + + object["type"], err = json.Marshal(t.Type) + if err != nil { + return nil, fmt.Errorf("error marshaling 'type': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *AutomationNodeV1Alpha1) 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["type"]; found { + err = json.Unmarshal(raw, &t.Type) + if err != nil { + return fmt.Errorf("error reading 'type': %w", err) + } + } + + return err +} + // AsKafkaPlaintext returns the union data inside the BaseConnectionInfoKafka as a KafkaPlaintext func (t BaseConnectionInfoKafka) AsKafkaPlaintext() (KafkaPlaintext, error) { var body KafkaPlaintext @@ -22603,6 +24729,154 @@ func (t *CreateWebhookIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) return err } +// AsCveScoreCvss2V1Beta1 returns the union data inside the CveScoreV1Beta1 as a CveScoreCvss2V1Beta1 +func (t CveScoreV1Beta1) AsCveScoreCvss2V1Beta1() (CveScoreCvss2V1Beta1, error) { + var body CveScoreCvss2V1Beta1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCveScoreCvss2V1Beta1 overwrites any union data inside the CveScoreV1Beta1 as the provided CveScoreCvss2V1Beta1 +func (t *CveScoreV1Beta1) FromCveScoreCvss2V1Beta1(v CveScoreCvss2V1Beta1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCveScoreCvss2V1Beta1 performs a merge with any union data inside the CveScoreV1Beta1, using the provided CveScoreCvss2V1Beta1 +func (t *CveScoreV1Beta1) MergeCveScoreCvss2V1Beta1(v CveScoreCvss2V1Beta1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCveScoreCvss3V1Beta1 returns the union data inside the CveScoreV1Beta1 as a CveScoreCvss3V1Beta1 +func (t CveScoreV1Beta1) AsCveScoreCvss3V1Beta1() (CveScoreCvss3V1Beta1, error) { + var body CveScoreCvss3V1Beta1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCveScoreCvss3V1Beta1 overwrites any union data inside the CveScoreV1Beta1 as the provided CveScoreCvss3V1Beta1 +func (t *CveScoreV1Beta1) FromCveScoreCvss3V1Beta1(v CveScoreCvss3V1Beta1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCveScoreCvss3V1Beta1 performs a merge with any union data inside the CveScoreV1Beta1, using the provided CveScoreCvss3V1Beta1 +func (t *CveScoreV1Beta1) MergeCveScoreCvss3V1Beta1(v CveScoreCvss3V1Beta1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCveScoreCvss4V1Beta1 returns the union data inside the CveScoreV1Beta1 as a CveScoreCvss4V1Beta1 +func (t CveScoreV1Beta1) AsCveScoreCvss4V1Beta1() (CveScoreCvss4V1Beta1, error) { + var body CveScoreCvss4V1Beta1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCveScoreCvss4V1Beta1 overwrites any union data inside the CveScoreV1Beta1 as the provided CveScoreCvss4V1Beta1 +func (t *CveScoreV1Beta1) FromCveScoreCvss4V1Beta1(v CveScoreCvss4V1Beta1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCveScoreCvss4V1Beta1 performs a merge with any union data inside the CveScoreV1Beta1, using the provided CveScoreCvss4V1Beta1 +func (t *CveScoreV1Beta1) MergeCveScoreCvss4V1Beta1(v CveScoreCvss4V1Beta1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t CveScoreV1Beta1) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t CveScoreV1Beta1) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "2.0": + return t.AsCveScoreCvss2V1Beta1() + case "3.0": + return t.AsCveScoreCvss3V1Beta1() + case "3.1": + return t.AsCveScoreCvss3V1Beta1() + case "4.0": + return t.AsCveScoreCvss4V1Beta1() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t CveScoreV1Beta1) 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 + } + } + + object["type"], err = json.Marshal(t.Type) + if err != nil { + return nil, fmt.Errorf("error marshaling 'type': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *CveScoreV1Beta1) 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["type"]; found { + err = json.Unmarshal(raw, &t.Type) + if err != nil { + return fmt.Errorf("error reading 'type': %w", err) + } + } + + return err +} + // AsGetAmazonSqsIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetAmazonSqsIntegrationResponse func (t EfoIntegrationResponseV1) AsGetAmazonSqsIntegrationResponse() (GetAmazonSqsIntegrationResponse, error) { var body GetAmazonSqsIntegrationResponse @@ -31389,6 +33663,95 @@ type ClientInterface interface { // Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set EditZoneV1(ctx context.Context, zoneId ZoneId, body EditZoneV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListAutomationExecutions List Automation Executions + // + // Retrieve a paginated list of automation executions (history).\ + // \ + // **Required permissions:** _automations.read_ + // + // Corresponds with GET /platform/v1alpha1/automation-executions (the `ListAutomationExecutions` operationId). + ListAutomationExecutions(ctx context.Context, params *ListAutomationExecutionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAutomationExecution Get Automation Execution By Id + // + // Retrieve a single automation execution.\ + // \ + // **Required permissions:** _automations.read_ + // + // Corresponds with GET /platform/v1alpha1/automation-executions/{automationExecutionId} (the `GetAutomationExecution` operationId). + GetAutomationExecution(ctx context.Context, automationExecutionID AutomationExecutionID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListAutomations List Automations + // + // Retrieve the list of automations.\ + // \ + // **Required permissions:** _automations.read_ + // + // Corresponds with GET /platform/v1alpha1/automations (the `ListAutomations` operationId). + ListAutomations(ctx context.Context, params *ListAutomationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAutomationWithBody Create Automation + // + // Create an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes any type of body and a specified content type. + // + // Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). + CreateAutomationWithBody(ctx context.Context, params *CreateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAutomation Create Automation + // + // Create an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes a body of the `application/json` content type. + // + // Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). + CreateAutomation(ctx context.Context, params *CreateAutomationParams, body CreateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAutomationById Delete Automation + // + // Delete an automation by its ID.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Corresponds with DELETE /platform/v1alpha1/automations/{automationId} (the `DeleteAutomationById` operationId). + DeleteAutomationById(ctx context.Context, automationID AutomationID, params *DeleteAutomationByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAutomationById Get Automation + // + // Retrieve an automation by ID.\ + // \ + // **Required permissions:** _automations.read_ + // + // Corresponds with GET /platform/v1alpha1/automations/{automationId} (the `GetAutomationById` operationId). + GetAutomationById(ctx context.Context, automationID AutomationID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAutomationWithBody Update Automation + // + // Update an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes any type of body and a specified content type. + // + // Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). + UpdateAutomationWithBody(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAutomation Update Automation + // + // Update an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes a body of the `application/json` content type. + // + // Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). + UpdateAutomation(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, body UpdateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListZonesV2 List Zones // // Retrieve a paginated list of Zones. @@ -32356,6 +34719,27 @@ type ClientInterface interface { // Corresponds with PUT /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `UpdateAcceptedRiskV1` operationId). UpdateAcceptedRiskV1(ctx context.Context, acceptedRiskID AcceptedRiskID, body UpdateAcceptedRiskV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListCveCatalogV1beta1 List CVEs + // + // List CVEs in the Sysdig vulnerability catalog. Supports free-text search plus dedicated + // equality filters for severity, CVSS score range, publish date range, and exploit/KEV/fix + // availability. Filters are combined with AND.\ + // \ + // **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ + // + // Corresponds with GET /secure/vulnerability/v1beta1/cves (the `ListCveCatalogV1beta1` operationId). + ListCveCatalogV1beta1(ctx context.Context, params *ListCveCatalogV1beta1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCveCatalogEntryV1beta1 Get CVE + // + // Retrieve the full catalog record for a single CVE, including per-vendor metadata and the + // affected component ranges across ecosystems.\ + // \ + // **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ + // + // Corresponds with GET /secure/vulnerability/v1beta1/cves/{cveId} (the `GetCveCatalogEntryV1beta1` operationId). + GetCveCatalogEntryV1beta1(ctx context.Context, cveId string, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetSBOMV1beta1 Get SBOM // // Retrieve a SBOM (Software Bill Of Material) in CycloneDX format. @@ -36108,6 +38492,185 @@ func (c *Client) EditZoneV1(ctx context.Context, zoneId ZoneId, body EditZoneV1J return c.Client.Do(req) } +// ListAutomationExecutions List Automation Executions +// +// Retrieve a paginated list of automation executions (history).\ +// \ +// **Required permissions:** _automations.read_ +// +// Corresponds with GET /platform/v1alpha1/automation-executions (the `ListAutomationExecutions` operationId). +func (c *Client) ListAutomationExecutions(ctx context.Context, params *ListAutomationExecutionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAutomationExecutionsRequest(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) +} + +// GetAutomationExecution Get Automation Execution By Id +// +// Retrieve a single automation execution.\ +// \ +// **Required permissions:** _automations.read_ +// +// Corresponds with GET /platform/v1alpha1/automation-executions/{automationExecutionId} (the `GetAutomationExecution` operationId). +func (c *Client) GetAutomationExecution(ctx context.Context, automationExecutionID AutomationExecutionID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAutomationExecutionRequest(c.Server, automationExecutionID) + 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) +} + +// ListAutomations List Automations +// +// Retrieve the list of automations.\ +// \ +// **Required permissions:** _automations.read_ +// +// Corresponds with GET /platform/v1alpha1/automations (the `ListAutomations` operationId). +func (c *Client) ListAutomations(ctx context.Context, params *ListAutomationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListAutomationsRequest(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) +} + +// CreateAutomationWithBody Create Automation +// +// Create an automation.\ +// \ +// **Required permissions:** _automations.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). +func (c *Client) CreateAutomationWithBody(ctx context.Context, params *CreateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAutomationRequestWithBody(c.Server, params, 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) +} + +// CreateAutomation Create Automation +// +// Create an automation.\ +// \ +// **Required permissions:** _automations.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). +func (c *Client) CreateAutomation(ctx context.Context, params *CreateAutomationParams, body CreateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAutomationRequest(c.Server, params, 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) +} + +// DeleteAutomationById Delete Automation +// +// Delete an automation by its ID.\ +// \ +// **Required permissions:** _automations.edit_ +// +// Corresponds with DELETE /platform/v1alpha1/automations/{automationId} (the `DeleteAutomationById` operationId). +func (c *Client) DeleteAutomationById(ctx context.Context, automationID AutomationID, params *DeleteAutomationByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAutomationByIdRequest(c.Server, automationID, 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) +} + +// GetAutomationById Get Automation +// +// Retrieve an automation by ID.\ +// \ +// **Required permissions:** _automations.read_ +// +// Corresponds with GET /platform/v1alpha1/automations/{automationId} (the `GetAutomationById` operationId). +func (c *Client) GetAutomationById(ctx context.Context, automationID AutomationID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAutomationByIdRequest(c.Server, automationID) + 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) +} + +// UpdateAutomationWithBody Update Automation +// +// Update an automation.\ +// \ +// **Required permissions:** _automations.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). +func (c *Client) UpdateAutomationWithBody(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAutomationRequestWithBody(c.Server, automationID, params, 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) +} + +// UpdateAutomation Update Automation +// +// Update an automation.\ +// \ +// **Required permissions:** _automations.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). +func (c *Client) UpdateAutomation(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, body UpdateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAutomationRequest(c.Server, automationID, params, 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) +} + // ListZonesV2 List Zones // // Retrieve a paginated list of Zones. @@ -38135,13 +40698,17 @@ func (c *Client) UpdateAcceptedRiskV1(ctx context.Context, acceptedRiskID Accept return c.Client.Do(req) } -// GetSBOMV1beta1 Get SBOM +// ListCveCatalogV1beta1 List CVEs // -// Retrieve a SBOM (Software Bill Of Material) in CycloneDX format. +// List CVEs in the Sysdig vulnerability catalog. Supports free-text search plus dedicated +// equality filters for severity, CVSS score range, publish date range, and exploit/KEV/fix +// availability. Filters are combined with AND.\ +// \ +// **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ // -// Corresponds with GET /secure/vulnerability/v1beta1/sboms (the `GetSBOMV1beta1` operationId). -func (c *Client) GetSBOMV1beta1(ctx context.Context, params *GetSBOMV1beta1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSBOMV1beta1Request(c.Server, params) +// Corresponds with GET /secure/vulnerability/v1beta1/cves (the `ListCveCatalogV1beta1` operationId). +func (c *Client) ListCveCatalogV1beta1(ctx context.Context, params *ListCveCatalogV1beta1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListCveCatalogV1beta1Request(c.Server, params) if err != nil { return nil, err } @@ -38152,134 +40719,171 @@ func (c *Client) GetSBOMV1beta1(ctx context.Context, params *GetSBOMV1beta1Param return c.Client.Do(req) } -// NewDeleteZonePolicyAssociationRequest constructs an http.Request for the DeleteZonePolicyAssociation method -func NewDeleteZonePolicyAssociationRequest(server string, zoneId ZoneId) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cspm/v1/zones/%s/policies", 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 -} - -// NewGetZonePolicyAssociationRequest constructs an http.Request for the GetZonePolicyAssociation method -func NewGetZonePolicyAssociationRequest(server string, zoneId ZoneId) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cspm/v1/zones/%s/policies", 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) +// GetCveCatalogEntryV1beta1 Get CVE +// +// Retrieve the full catalog record for a single CVE, including per-vendor metadata and the +// affected component ranges across ecosystems.\ +// \ +// **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ +// +// Corresponds with GET /secure/vulnerability/v1beta1/cves/{cveId} (the `GetCveCatalogEntryV1beta1` operationId). +func (c *Client) GetCveCatalogEntryV1beta1(ctx context.Context, cveId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCveCatalogEntryV1beta1Request(c.Server, cveId) if err != nil { return nil, err } - - return req, nil -} - -// NewCreateZonePolicyAssociationRequest calls the generic CreateZonePolicyAssociation builder with application/json body -func NewCreateZonePolicyAssociationRequest(server string, zoneId ZoneId, body CreateZonePolicyAssociationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateZonePolicyAssociationRequestWithBody(server, zoneId, "application/json", bodyReader) + return c.Client.Do(req) } -// NewCreateZonePolicyAssociationRequestWithBody constructs an http.Request for the CreateZonePolicyAssociation method, with any body, and a specified content type -func NewCreateZonePolicyAssociationRequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/api/cspm/v1/zones/%s/policies", 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) +// GetSBOMV1beta1 Get SBOM +// +// Retrieve a SBOM (Software Bill Of Material) in CycloneDX format. +// +// Corresponds with GET /secure/vulnerability/v1beta1/sboms (the `GetSBOMV1beta1` operationId). +func (c *Client) GetSBOMV1beta1(ctx context.Context, params *GetSBOMV1beta1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSBOMV1beta1Request(c.Server, params) if err != nil { return nil, err } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewUpdateZonePolicyAssociationRequest calls the generic UpdateZonePolicyAssociation builder with application/json body -func NewUpdateZonePolicyAssociationRequest(server string, zoneId ZoneId, body UpdateZonePolicyAssociationJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewUpdateZonePolicyAssociationRequestWithBody(server, zoneId, "application/json", bodyReader) + return c.Client.Do(req) } -// NewUpdateZonePolicyAssociationRequestWithBody constructs an http.Request for the UpdateZonePolicyAssociation method, with any body, and a specified content type -func NewUpdateZonePolicyAssociationRequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteZonePolicyAssociationRequest constructs an http.Request for the DeleteZonePolicyAssociation method +func NewDeleteZonePolicyAssociationRequest(server string, zoneId ZoneId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/cspm/v1/zones/%s/policies", 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 +} + +// NewGetZonePolicyAssociationRequest constructs an http.Request for the GetZonePolicyAssociation method +func NewGetZonePolicyAssociationRequest(server string, zoneId ZoneId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/cspm/v1/zones/%s/policies", 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 +} + +// NewCreateZonePolicyAssociationRequest calls the generic CreateZonePolicyAssociation builder with application/json body +func NewCreateZonePolicyAssociationRequest(server string, zoneId ZoneId, body CreateZonePolicyAssociationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateZonePolicyAssociationRequestWithBody(server, zoneId, "application/json", bodyReader) +} + +// NewCreateZonePolicyAssociationRequestWithBody constructs an http.Request for the CreateZonePolicyAssociation method, with any body, and a specified content type +func NewCreateZonePolicyAssociationRequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/cspm/v1/zones/%s/policies", 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 +} + +// NewUpdateZonePolicyAssociationRequest calls the generic UpdateZonePolicyAssociation builder with application/json body +func NewUpdateZonePolicyAssociationRequest(server string, zoneId ZoneId, body UpdateZonePolicyAssociationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateZonePolicyAssociationRequestWithBody(server, zoneId, "application/json", bodyReader) +} + +// NewUpdateZonePolicyAssociationRequestWithBody constructs an http.Request for the UpdateZonePolicyAssociation method, with any body, and a specified content type +func NewUpdateZonePolicyAssociationRequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string @@ -44436,8 +47040,8 @@ func NewEditZoneV1RequestWithBody(server string, zoneId ZoneId, contentType stri return req, nil } -// NewListZonesV2Request constructs an http.Request for the ListZonesV2 method -func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Request, error) { +// NewListAutomationExecutionsRequest constructs an http.Request for the ListAutomationExecutions method +func NewListAutomationExecutionsRequest(server string, params *ListAutomationExecutionsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44445,7 +47049,7 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/platform/v2/zones") + operationPath := fmt.Sprintf("/platform/v1alpha1/automation-executions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44464,9 +47068,17 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Filter != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "automationId", params.AutomationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -44476,9 +47088,9 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ } - if params.Limit != nil { + if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -44488,9 +47100,9 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ } - if params.Offset != nil { + if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -44500,9 +47112,9 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ } - if params.Orderby != nil { + if params.Cursor != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -44526,19 +47138,179 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ return req, nil } -// NewCreateZoneV2Request calls the generic CreateZoneV2 builder with application/json body -func NewCreateZoneV2Request(server string, body CreateZoneV2JSONRequestBody) (*http.Request, error) { +// NewGetAutomationExecutionRequest constructs an http.Request for the GetAutomationExecution method +func NewGetAutomationExecutionRequest(server string, automationExecutionID AutomationExecutionID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationExecutionId", automationExecutionID, 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("/platform/v1alpha1/automation-executions/%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 +} + +// NewListAutomationsRequest constructs an http.Request for the ListAutomations method +func NewListAutomationsRequest(server string, params *ListAutomationsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/platform/v1alpha1/automations") + 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.Enabled != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "enabled", *params.Enabled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Group != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "group", *params.Group, 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.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, 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.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 params.TriggerOn != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "triggerOn", *params.TriggerOn, 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.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Cursor != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, 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 +} + +// NewCreateAutomationRequest calls the generic CreateAutomation builder with application/json body +func NewCreateAutomationRequest(server string, params *CreateAutomationParams, body CreateAutomationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateZoneV2RequestWithBody(server, "application/json", bodyReader) + return NewCreateAutomationRequestWithBody(server, params, "application/json", bodyReader) } -// NewCreateZoneV2RequestWithBody constructs an http.Request for the CreateZoneV2 method, with any body, and a specified content type -func NewCreateZoneV2RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateAutomationRequestWithBody constructs an http.Request for the CreateAutomation method, with any body, and a specified content type +func NewCreateAutomationRequestWithBody(server string, params *CreateAutomationParams, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44546,7 +47318,7 @@ func NewCreateZoneV2RequestWithBody(server string, contentType string, body io.R return nil, err } - operationPath := fmt.Sprintf("/platform/v2/zones") + operationPath := fmt.Sprintf("/platform/v1alpha1/automations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44563,16 +47335,31 @@ func NewCreateZoneV2RequestWithBody(server string, contentType string, body io.R req.Header.Add("Content-Type", contentType) + if params != nil { + + if params.IdempotencyKey != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "Idempotency-Key", *params.IdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: "uuid"}) + if err != nil { + return nil, err + } + + req.Header.Set("Idempotency-Key", headerParam0) + } + + } + return req, nil } -// NewDeleteZoneV2Request constructs an http.Request for the DeleteZoneV2 method -func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) { +// NewDeleteAutomationByIdRequest constructs an http.Request for the DeleteAutomationById method +func NewDeleteAutomationByIdRequest(server string, automationID AutomationID, params *DeleteAutomationByIdParams) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -44582,7 +47369,7 @@ func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) return nil, err } - operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44597,16 +47384,29 @@ func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) return nil, err } + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-Match", params.IfMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("If-Match", headerParam0) + + } + return req, nil } -// NewGetZoneByIdV2Request constructs an http.Request for the GetZoneByIdV2 method -func NewGetZoneByIdV2Request(server string, zoneId ZoneId) (*http.Request, error) { +// NewGetAutomationByIdRequest constructs an http.Request for the GetAutomationById method +func NewGetAutomationByIdRequest(server string, automationID AutomationID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -44616,7 +47416,7 @@ func NewGetZoneByIdV2Request(server string, zoneId ZoneId) (*http.Request, error return nil, err } - operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44634,24 +47434,24 @@ func NewGetZoneByIdV2Request(server string, zoneId ZoneId) (*http.Request, error return req, nil } -// NewEditZoneV2Request calls the generic EditZoneV2 builder with application/json body -func NewEditZoneV2Request(server string, zoneId ZoneId, body EditZoneV2JSONRequestBody) (*http.Request, error) { +// NewUpdateAutomationRequest calls the generic UpdateAutomation builder with application/json body +func NewUpdateAutomationRequest(server string, automationID AutomationID, params *UpdateAutomationParams, body UpdateAutomationJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewEditZoneV2RequestWithBody(server, zoneId, "application/json", bodyReader) + return NewUpdateAutomationRequestWithBody(server, automationID, params, "application/json", bodyReader) } -// NewEditZoneV2RequestWithBody constructs an http.Request for the EditZoneV2 method, with any body, and a specified content type -func NewEditZoneV2RequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateAutomationRequestWithBody constructs an http.Request for the UpdateAutomation method, with any body, and a specified content type +func NewUpdateAutomationRequestWithBody(server string, automationID AutomationID, params *UpdateAutomationParams, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -44661,7 +47461,7 @@ func NewEditZoneV2RequestWithBody(server string, zoneId ZoneId, contentType stri return nil, err } - operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44678,11 +47478,24 @@ func NewEditZoneV2RequestWithBody(server string, zoneId ZoneId, contentType stri req.Header.Add("Content-Type", contentType) + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-Match", params.IfMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + req.Header.Set("If-Match", headerParam0) + + } + return req, nil } -// NewGetAdminTsdbCleanTombstonesV1Request constructs an http.Request for the GetAdminTsdbCleanTombstonesV1 method -func NewGetAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, error) { +// NewListZonesV2Request constructs an http.Request for the ListZonesV2 method +func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44690,7 +47503,7 @@ func NewGetAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, erro return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/clean_tombstones") + operationPath := fmt.Sprintf("/platform/v2/zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44700,7 +47513,70 @@ func NewGetAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, erro return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), 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 + + if params.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", 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: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Orderby != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", 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 } @@ -44708,8 +47584,19 @@ func NewGetAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, erro return req, nil } -// NewPostAdminTsdbCleanTombstonesV1Request constructs an http.Request for the PostAdminTsdbCleanTombstonesV1 method -func NewPostAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, error) { +// NewCreateZoneV2Request calls the generic CreateZoneV2 builder with application/json body +func NewCreateZoneV2Request(server string, body CreateZoneV2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateZoneV2RequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateZoneV2RequestWithBody constructs an http.Request for the CreateZoneV2 method, with any body, and a specified content type +func NewCreateZoneV2RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44717,7 +47604,7 @@ func NewPostAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, err return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/clean_tombstones") + operationPath := fmt.Sprintf("/platform/v2/zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44727,24 +47614,33 @@ func NewPostAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, err return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetAdminTsdbDeleteSeriesV1Request constructs an http.Request for the GetAdminTsdbDeleteSeriesV1 method -func NewGetAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) { +// NewDeleteZoneV2Request constructs an http.Request for the DeleteZoneV2 method +func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/delete_series") + operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44754,7 +47650,7 @@ func NewGetAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -44762,16 +47658,23 @@ func NewGetAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) return req, nil } -// NewPostAdminTsdbDeleteSeriesV1Request constructs an http.Request for the PostAdminTsdbDeleteSeriesV1 method -func NewPostAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) { +// NewGetZoneByIdV2Request constructs an http.Request for the GetZoneByIdV2 method +func NewGetZoneByIdV2Request(server string, zoneId ZoneId) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/delete_series") + operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44781,7 +47684,7 @@ func NewPostAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -44789,16 +47692,34 @@ func NewPostAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) return req, nil } -// NewGetAdminTsdbSnapshotV1Request constructs an http.Request for the GetAdminTsdbSnapshotV1 method -func NewGetAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { +// NewEditZoneV2Request calls the generic EditZoneV2 builder with application/json body +func NewEditZoneV2Request(server string, zoneId ZoneId, body EditZoneV2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditZoneV2RequestWithBody(server, zoneId, "application/json", bodyReader) +} + +// NewEditZoneV2RequestWithBody constructs an http.Request for the EditZoneV2 method, with any body, and a specified content type +func NewEditZoneV2RequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/snapshot") + operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44808,16 +47729,18 @@ func NewGetAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewPostAdminTsdbSnapshotV1Request constructs an http.Request for the PostAdminTsdbSnapshotV1 method -func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { +// NewGetAdminTsdbCleanTombstonesV1Request constructs an http.Request for the GetAdminTsdbCleanTombstonesV1 method +func NewGetAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44825,7 +47748,7 @@ func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/snapshot") + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/clean_tombstones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44835,7 +47758,7 @@ func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -44843,8 +47766,143 @@ func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetAlertManagersV1Request constructs an http.Request for the GetAlertManagersV1 method -func NewGetAlertManagersV1Request(server string) (*http.Request, error) { +// NewPostAdminTsdbCleanTombstonesV1Request constructs an http.Request for the PostAdminTsdbCleanTombstonesV1 method +func NewPostAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/clean_tombstones") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAdminTsdbDeleteSeriesV1Request constructs an http.Request for the GetAdminTsdbDeleteSeriesV1 method +func NewGetAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/delete_series") + 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 +} + +// NewPostAdminTsdbDeleteSeriesV1Request constructs an http.Request for the PostAdminTsdbDeleteSeriesV1 method +func NewPostAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/delete_series") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAdminTsdbSnapshotV1Request constructs an http.Request for the GetAdminTsdbSnapshotV1 method +func NewGetAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/snapshot") + 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 +} + +// NewPostAdminTsdbSnapshotV1Request constructs an http.Request for the PostAdminTsdbSnapshotV1 method +func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/snapshot") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAlertManagersV1Request constructs an http.Request for the GetAlertManagersV1 method +func NewGetAlertManagersV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -48940,6 +51998,226 @@ func NewUpdateAcceptedRiskV1RequestWithBody(server string, acceptedRiskID Accept return req, nil } +// NewListCveCatalogV1beta1Request constructs an http.Request for the ListCveCatalogV1beta1 method +func NewListCveCatalogV1beta1Request(server string, params *ListCveCatalogV1beta1Params) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/vulnerability/v1beta1/cves") + 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.Query != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "query", *params.Query, 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.ComponentName != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "componentName", *params.ComponentName, 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.Severity != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "severity", *params.Severity, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.CvssMin != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cvssMin", *params.CvssMin, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: "double"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.CvssMax != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cvssMax", *params.CvssMax, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "number", Format: "double"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.PublishedAfter != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "publishedAfter", *params.PublishedAfter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.PublishedBefore != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "publishedBefore", *params.PublishedBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.HasExploit != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "hasExploit", *params.HasExploit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.HasKev != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "hasKev", *params.HasKev, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.HasFix != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "hasFix", *params.HasFix, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Cursor != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, 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.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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 +} + +// NewGetCveCatalogEntryV1beta1Request constructs an http.Request for the GetCveCatalogEntryV1beta1 method +func NewGetCveCatalogEntryV1beta1Request(server string, cveId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "cveId", cveId, 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("/secure/vulnerability/v1beta1/cves/%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 +} + // NewGetSBOMV1beta1Request constructs an http.Request for the GetSBOMV1beta1 method func NewGetSBOMV1beta1Request(server string, params *GetSBOMV1beta1Params) (*http.Request, error) { var err error @@ -51153,6 +54431,105 @@ type ClientWithResponsesInterface interface { // Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set EditZoneV1WithResponse(ctx context.Context, zoneId ZoneId, body EditZoneV1JSONRequestBody, reqEditors ...RequestEditorFn) (*EditZoneV1Response, error) + // ListAutomationExecutionsWithResponse List Automation Executions + // + // Retrieve a paginated list of automation executions (history).\ + // \ + // **Required permissions:** _automations.read_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/v1alpha1/automation-executions (the `ListAutomationExecutions` operationId). + ListAutomationExecutionsWithResponse(ctx context.Context, params *ListAutomationExecutionsParams, reqEditors ...RequestEditorFn) (*ListAutomationExecutionsResponse, error) + + // GetAutomationExecutionWithResponse Get Automation Execution By Id + // + // Retrieve a single automation execution.\ + // \ + // **Required permissions:** _automations.read_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/v1alpha1/automation-executions/{automationExecutionId} (the `GetAutomationExecution` operationId). + GetAutomationExecutionWithResponse(ctx context.Context, automationExecutionID AutomationExecutionID, reqEditors ...RequestEditorFn) (*GetAutomationExecutionResponse, error) + + // ListAutomationsWithResponse List Automations + // + // Retrieve the list of automations.\ + // \ + // **Required permissions:** _automations.read_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/v1alpha1/automations (the `ListAutomations` operationId). + ListAutomationsWithResponse(ctx context.Context, params *ListAutomationsParams, reqEditors ...RequestEditorFn) (*ListAutomationsResponse, error) + + // CreateAutomationWithBodyWithResponse Create Automation + // + // Create an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). + // + // Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). + CreateAutomationWithBodyWithResponse(ctx context.Context, params *CreateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAutomationResponse, error) + + // CreateAutomationWithResponse Create Automation + // + // Create an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + // + // Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). + CreateAutomationWithResponse(ctx context.Context, params *CreateAutomationParams, body CreateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAutomationResponse, error) + + // DeleteAutomationByIdWithResponse Delete Automation + // + // Delete an automation by its ID.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with DELETE /platform/v1alpha1/automations/{automationId} (the `DeleteAutomationById` operationId). + DeleteAutomationByIdWithResponse(ctx context.Context, automationID AutomationID, params *DeleteAutomationByIdParams, reqEditors ...RequestEditorFn) (*DeleteAutomationByIdResponse, error) + + // GetAutomationByIdWithResponse Get Automation + // + // Retrieve an automation by ID.\ + // \ + // **Required permissions:** _automations.read_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/v1alpha1/automations/{automationId} (the `GetAutomationById` operationId). + GetAutomationByIdWithResponse(ctx context.Context, automationID AutomationID, reqEditors ...RequestEditorFn) (*GetAutomationByIdResponse, error) + + // UpdateAutomationWithBodyWithResponse Update Automation + // + // Update an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). + // + // Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). + UpdateAutomationWithBodyWithResponse(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAutomationResponse, error) + + // UpdateAutomationWithResponse Update Automation + // + // Update an automation.\ + // \ + // **Required permissions:** _automations.edit_ + // + // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). + // + // Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). + UpdateAutomationWithResponse(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, body UpdateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAutomationResponse, error) + // ListZonesV2WithResponse List Zones // // Retrieve a paginated list of Zones. @@ -52278,6 +55655,31 @@ type ClientWithResponsesInterface interface { // Corresponds with PUT /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `UpdateAcceptedRiskV1` operationId). UpdateAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, body UpdateAcceptedRiskV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAcceptedRiskV1Response, error) + // ListCveCatalogV1beta1WithResponse List CVEs + // + // List CVEs in the Sysdig vulnerability catalog. Supports free-text search plus dedicated + // equality filters for severity, CVSS score range, publish date range, and exploit/KEV/fix + // availability. Filters are combined with AND.\ + // \ + // **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /secure/vulnerability/v1beta1/cves (the `ListCveCatalogV1beta1` operationId). + ListCveCatalogV1beta1WithResponse(ctx context.Context, params *ListCveCatalogV1beta1Params, reqEditors ...RequestEditorFn) (*ListCveCatalogV1beta1Response, error) + + // GetCveCatalogEntryV1beta1WithResponse Get CVE + // + // Retrieve the full catalog record for a single CVE, including per-vendor metadata and the + // affected component ranges across ecosystems.\ + // \ + // **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /secure/vulnerability/v1beta1/cves/{cveId} (the `GetCveCatalogEntryV1beta1` operationId). + GetCveCatalogEntryV1beta1WithResponse(ctx context.Context, cveId string, reqEditors ...RequestEditorFn) (*GetCveCatalogEntryV1beta1Response, error) + // GetSBOMV1beta1WithResponse Get SBOM // // Retrieve a SBOM (Software Bill Of Material) in CycloneDX format. @@ -70171,120 +73573,122 @@ func (r EditZoneV1Response) ContentType() string { return "" } -// ListZonesV2Response200Headers the declared response headers of an HTTP 200 response for ListZonesV2 -type ListZonesV2Response200Headers struct { - XRateLimitLimit *int32 -} - -// ListZonesV2Response400Headers the declared response headers of an HTTP 400 response for ListZonesV2 -type ListZonesV2Response400Headers struct { - XRateLimitLimit *int32 +// ListAutomationExecutionsResponse200Headers the declared response headers of an HTTP 200 response for ListAutomationExecutions +type ListAutomationExecutionsResponse200Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// ListZonesV2Response401Headers the declared response headers of an HTTP 401 response for ListZonesV2 -type ListZonesV2Response401Headers struct { - XRateLimitLimit *int32 +// ListAutomationExecutionsResponse400Headers the declared response headers of an HTTP 400 response for ListAutomationExecutions +type ListAutomationExecutionsResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// ListZonesV2Response403Headers the declared response headers of an HTTP 403 response for ListZonesV2 -type ListZonesV2Response403Headers struct { - XRateLimitLimit *int32 +// ListAutomationExecutionsResponse401Headers the declared response headers of an HTTP 401 response for ListAutomationExecutions +type ListAutomationExecutionsResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// ListZonesV2Response422Headers the declared response headers of an HTTP 422 response for ListZonesV2 -type ListZonesV2Response422Headers struct { - XRateLimitLimit *int32 +// ListAutomationExecutionsResponse403Headers the declared response headers of an HTTP 403 response for ListAutomationExecutions +type ListAutomationExecutionsResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// ListZonesV2Response429Headers the declared response headers of an HTTP 429 response for ListZonesV2 -type ListZonesV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ListAutomationExecutionsResponse429Headers the declared response headers of an HTTP 429 response for ListAutomationExecutions +type ListAutomationExecutionsResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// ListZonesV2Response500Headers the declared response headers of an HTTP 500 response for ListZonesV2 -type ListZonesV2Response500Headers struct { +// ListAutomationExecutionsResponse500Headers the declared response headers of an HTTP 500 response for ListAutomationExecutions +type ListAutomationExecutionsResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListZonesV2Response struct { +type ListAutomationExecutionsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListZonesResponseV2 + JSON200 *ListAutomationExecutionsPaginatedResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized + JSON401 *UnauthorizedV2 // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + JSON403 *ForbiddenV2 // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON429 *TooManyRequestsV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListZonesV2Response200Headers + Headers200 *ListAutomationExecutionsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ListZonesV2Response400Headers + Headers400 *ListAutomationExecutionsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListZonesV2Response401Headers + Headers401 *ListAutomationExecutionsResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ListZonesV2Response403Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *ListZonesV2Response422Headers + Headers403 *ListAutomationExecutionsResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListZonesV2Response429Headers + Headers429 *ListAutomationExecutionsResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListZonesV2Response500Headers + Headers500 *ListAutomationExecutionsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListZonesV2Response) GetJSON200() *ListZonesResponseV2 { +func (r ListAutomationExecutionsResponse) GetJSON200() *ListAutomationExecutionsPaginatedResponseV1Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ListZonesV2Response) GetJSON400() *BadRequest { +func (r ListAutomationExecutionsResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListZonesV2Response) GetJSON401() *Unauthorized { +func (r ListAutomationExecutionsResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ListZonesV2Response) GetJSON403() *Forbidden { +func (r ListAutomationExecutionsResponse) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r ListZonesV2Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListZonesV2Response) GetJSON429() *TooManyRequests { +func (r ListAutomationExecutionsResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListZonesV2Response) GetJSON500() *InternalServerError { +func (r ListAutomationExecutionsResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListZonesV2Response) GetBody() []byte { +func (r ListAutomationExecutionsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListZonesV2Response) Status() string { +func (r ListAutomationExecutionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70292,7 +73696,7 @@ func (r ListZonesV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListZonesV2Response) StatusCode() int { +func (r ListAutomationExecutionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70300,141 +73704,145 @@ func (r ListZonesV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListZonesV2Response) ContentType() string { +func (r ListAutomationExecutionsResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateZoneV2Response201Headers the declared response headers of an HTTP 201 response for CreateZoneV2 -type CreateZoneV2Response201Headers struct { - XRateLimitLimit *int32 -} - -// CreateZoneV2Response400Headers the declared response headers of an HTTP 400 response for CreateZoneV2 -type CreateZoneV2Response400Headers struct { - XRateLimitLimit *int32 +// GetAutomationExecutionResponse200Headers the declared response headers of an HTTP 200 response for GetAutomationExecution +type GetAutomationExecutionResponse200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateZoneV2Response401Headers the declared response headers of an HTTP 401 response for CreateZoneV2 -type CreateZoneV2Response401Headers struct { - XRateLimitLimit *int32 +// GetAutomationExecutionResponse400Headers the declared response headers of an HTTP 400 response for GetAutomationExecution +type GetAutomationExecutionResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateZoneV2Response403Headers the declared response headers of an HTTP 403 response for CreateZoneV2 -type CreateZoneV2Response403Headers struct { - XRateLimitLimit *int32 +// GetAutomationExecutionResponse401Headers the declared response headers of an HTTP 401 response for GetAutomationExecution +type GetAutomationExecutionResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateZoneV2Response409Headers the declared response headers of an HTTP 409 response for CreateZoneV2 -type CreateZoneV2Response409Headers struct { - XRateLimitLimit *int32 +// GetAutomationExecutionResponse403Headers the declared response headers of an HTTP 403 response for GetAutomationExecution +type GetAutomationExecutionResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateZoneV2Response422Headers the declared response headers of an HTTP 422 response for CreateZoneV2 -type CreateZoneV2Response422Headers struct { - XRateLimitLimit *int32 +// GetAutomationExecutionResponse404Headers the declared response headers of an HTTP 404 response for GetAutomationExecution +type GetAutomationExecutionResponse404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateZoneV2Response429Headers the declared response headers of an HTTP 429 response for CreateZoneV2 -type CreateZoneV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetAutomationExecutionResponse429Headers the declared response headers of an HTTP 429 response for GetAutomationExecution +type GetAutomationExecutionResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateZoneV2Response500Headers the declared response headers of an HTTP 500 response for CreateZoneV2 -type CreateZoneV2Response500Headers struct { +// GetAutomationExecutionResponse500Headers the declared response headers of an HTTP 500 response for GetAutomationExecution +type GetAutomationExecutionResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateZoneV2Response struct { +type GetAutomationExecutionResponse struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ZoneResponseV2 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetAutomationExecutionResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized + JSON401 *UnauthorizedV2 // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + JSON403 *ForbiddenV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON429 *TooManyRequestsV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateZoneV2Response201Headers + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetAutomationExecutionResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateZoneV2Response400Headers + Headers400 *GetAutomationExecutionResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateZoneV2Response401Headers + Headers401 *GetAutomationExecutionResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateZoneV2Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateZoneV2Response409Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateZoneV2Response422Headers + Headers403 *GetAutomationExecutionResponse403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetAutomationExecutionResponse404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateZoneV2Response429Headers + Headers429 *GetAutomationExecutionResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateZoneV2Response500Headers + Headers500 *GetAutomationExecutionResponse500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateZoneV2Response) GetJSON201() *ZoneResponseV2 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAutomationExecutionResponse) GetJSON200() *GetAutomationExecutionResponseV1Alpha1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateZoneV2Response) GetJSON400() *BadRequest { +func (r GetAutomationExecutionResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateZoneV2Response) GetJSON401() *Unauthorized { +func (r GetAutomationExecutionResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateZoneV2Response) GetJSON403() *Forbidden { +func (r GetAutomationExecutionResponse) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateZoneV2Response) GetJSON409() *Conflict { - return r.JSON409 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateZoneV2Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetAutomationExecutionResponse) GetJSON404() *NotFoundV2 { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateZoneV2Response) GetJSON429() *TooManyRequests { +func (r GetAutomationExecutionResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateZoneV2Response) GetJSON500() *InternalServerError { +func (r GetAutomationExecutionResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateZoneV2Response) GetBody() []byte { +func (r GetAutomationExecutionResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateZoneV2Response) Status() string { +func (r GetAutomationExecutionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70442,7 +73850,7 @@ func (r CreateZoneV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateZoneV2Response) StatusCode() int { +func (r GetAutomationExecutionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70450,148 +73858,129 @@ func (r CreateZoneV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateZoneV2Response) ContentType() string { +func (r GetAutomationExecutionResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteZoneV2Response204Headers the declared response headers of an HTTP 204 response for DeleteZoneV2 -type DeleteZoneV2Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteZoneV2Response400Headers the declared response headers of an HTTP 400 response for DeleteZoneV2 -type DeleteZoneV2Response400Headers struct { - XRateLimitLimit *int32 -} - -// DeleteZoneV2Response401Headers the declared response headers of an HTTP 401 response for DeleteZoneV2 -type DeleteZoneV2Response401Headers struct { - XRateLimitLimit *int32 -} - -// DeleteZoneV2Response403Headers the declared response headers of an HTTP 403 response for DeleteZoneV2 -type DeleteZoneV2Response403Headers struct { - XRateLimitLimit *int32 +// ListAutomationsResponse200Headers the declared response headers of an HTTP 200 response for ListAutomations +type ListAutomationsResponse200Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// DeleteZoneV2Response404Headers the declared response headers of an HTTP 404 response for DeleteZoneV2 -type DeleteZoneV2Response404Headers struct { - XRateLimitLimit *int32 +// ListAutomationsResponse400Headers the declared response headers of an HTTP 400 response for ListAutomations +type ListAutomationsResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteZoneV2Response409Headers the declared response headers of an HTTP 409 response for DeleteZoneV2 -type DeleteZoneV2Response409Headers struct { - XRateLimitLimit *int32 +// ListAutomationsResponse401Headers the declared response headers of an HTTP 401 response for ListAutomations +type ListAutomationsResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteZoneV2Response422Headers the declared response headers of an HTTP 422 response for DeleteZoneV2 -type DeleteZoneV2Response422Headers struct { - XRateLimitLimit *int32 +// ListAutomationsResponse403Headers the declared response headers of an HTTP 403 response for ListAutomations +type ListAutomationsResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteZoneV2Response429Headers the declared response headers of an HTTP 429 response for DeleteZoneV2 -type DeleteZoneV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ListAutomationsResponse429Headers the declared response headers of an HTTP 429 response for ListAutomations +type ListAutomationsResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteZoneV2Response500Headers the declared response headers of an HTTP 500 response for DeleteZoneV2 -type DeleteZoneV2Response500Headers struct { +// ListAutomationsResponse500Headers the declared response headers of an HTTP 500 response for ListAutomations +type ListAutomationsResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteZoneV2Response struct { +type ListAutomationsResponse struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ListAutomationsPaginatedResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized + JSON401 *UnauthorizedV2 // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + JSON403 *ForbiddenV2 // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON429 *TooManyRequestsV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteZoneV2Response204Headers + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *ListAutomationsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteZoneV2Response400Headers + Headers400 *ListAutomationsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteZoneV2Response401Headers + Headers401 *ListAutomationsResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteZoneV2Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteZoneV2Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *DeleteZoneV2Response409Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteZoneV2Response422Headers + Headers403 *ListAutomationsResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteZoneV2Response429Headers + Headers429 *ListAutomationsResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteZoneV2Response500Headers + Headers500 *ListAutomationsResponse500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ListAutomationsResponse) GetJSON200() *ListAutomationsPaginatedResponseV1Alpha1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteZoneV2Response) GetJSON400() *BadRequest { +func (r ListAutomationsResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteZoneV2Response) GetJSON401() *Unauthorized { +func (r ListAutomationsResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteZoneV2Response) GetJSON403() *Forbidden { +func (r ListAutomationsResponse) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteZoneV2Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r DeleteZoneV2Response) GetJSON409() *Conflict { - return r.JSON409 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteZoneV2Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteZoneV2Response) GetJSON429() *TooManyRequests { +func (r ListAutomationsResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteZoneV2Response) GetJSON500() *InternalServerError { +func (r ListAutomationsResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteZoneV2Response) GetBody() []byte { +func (r ListAutomationsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteZoneV2Response) Status() string { +func (r ListAutomationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70599,7 +73988,7 @@ func (r DeleteZoneV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteZoneV2Response) StatusCode() int { +func (r ListAutomationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70607,141 +73996,181 @@ func (r DeleteZoneV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteZoneV2Response) ContentType() string { +func (r ListAutomationsResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetZoneByIdV2Response200Headers the declared response headers of an HTTP 200 response for GetZoneByIdV2 -type GetZoneByIdV2Response200Headers struct { - XRateLimitLimit *int32 +// CreateAutomationResponse201Headers the declared response headers of an HTTP 201 response for CreateAutomation +type CreateAutomationResponse201Headers struct { + ETag *string + Location string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// GetZoneByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetZoneByIdV2 -type GetZoneByIdV2Response400Headers struct { - XRateLimitLimit *int32 +// CreateAutomationResponse400Headers the declared response headers of an HTTP 400 response for CreateAutomation +type CreateAutomationResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetZoneByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetZoneByIdV2 -type GetZoneByIdV2Response401Headers struct { - XRateLimitLimit *int32 +// CreateAutomationResponse401Headers the declared response headers of an HTTP 401 response for CreateAutomation +type CreateAutomationResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetZoneByIdV2Response403Headers the declared response headers of an HTTP 403 response for GetZoneByIdV2 -type GetZoneByIdV2Response403Headers struct { - XRateLimitLimit *int32 +// CreateAutomationResponse403Headers the declared response headers of an HTTP 403 response for CreateAutomation +type CreateAutomationResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetZoneByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetZoneByIdV2 -type GetZoneByIdV2Response404Headers struct { - XRateLimitLimit *int32 +// CreateAutomationResponse409Headers the declared response headers of an HTTP 409 response for CreateAutomation +type CreateAutomationResponse409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetZoneByIdV2Response422Headers the declared response headers of an HTTP 422 response for GetZoneByIdV2 -type GetZoneByIdV2Response422Headers struct { - XRateLimitLimit *int32 +// CreateAutomationResponse415Headers the declared response headers of an HTTP 415 response for CreateAutomation +type CreateAutomationResponse415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetZoneByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetZoneByIdV2 -type GetZoneByIdV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// CreateAutomationResponse422Headers the declared response headers of an HTTP 422 response for CreateAutomation +type CreateAutomationResponse422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetZoneByIdV2Response500Headers the declared response headers of an HTTP 500 response for GetZoneByIdV2 -type GetZoneByIdV2Response500Headers struct { +// CreateAutomationResponse429Headers the declared response headers of an HTTP 429 response for CreateAutomation +type CreateAutomationResponse429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetZoneByIdV2Response struct { +// CreateAutomationResponse500Headers the declared response headers of an HTTP 500 response for CreateAutomation +type CreateAutomationResponse500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type CreateAutomationResponse struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV2 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *CreateAutomationResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized + JSON401 *UnauthorizedV2 // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + JSON403 *ForbiddenV2 + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *ConflictV2 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaTypeV2 // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + JSON422 *UnprocessableEntityV2 // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON429 *TooManyRequestsV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetZoneByIdV2Response200Headers + JSON500 *InternalServerErrorV2 + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateAutomationResponse201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetZoneByIdV2Response400Headers + Headers400 *CreateAutomationResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetZoneByIdV2Response401Headers + Headers401 *CreateAutomationResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetZoneByIdV2Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetZoneByIdV2Response404Headers + Headers403 *CreateAutomationResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateAutomationResponse409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateAutomationResponse415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *GetZoneByIdV2Response422Headers + Headers422 *CreateAutomationResponse422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetZoneByIdV2Response429Headers + Headers429 *CreateAutomationResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetZoneByIdV2Response500Headers + Headers500 *CreateAutomationResponse500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetZoneByIdV2Response) GetJSON200() *ZoneResponseV2 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateAutomationResponse) GetJSON201() *CreateAutomationResponseV1Alpha1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetZoneByIdV2Response) GetJSON400() *BadRequest { +func (r CreateAutomationResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetZoneByIdV2Response) GetJSON401() *Unauthorized { +func (r CreateAutomationResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetZoneByIdV2Response) GetJSON403() *Forbidden { +func (r CreateAutomationResponse) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetZoneByIdV2Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateAutomationResponse) GetJSON409() *ConflictV2 { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateAutomationResponse) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r GetZoneByIdV2Response) GetJSON422() *UnprocessableEntity { +func (r CreateAutomationResponse) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetZoneByIdV2Response) GetJSON429() *TooManyRequests { +func (r CreateAutomationResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetZoneByIdV2Response) GetJSON500() *InternalServerError { +func (r CreateAutomationResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetZoneByIdV2Response) GetBody() []byte { +func (r CreateAutomationResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetZoneByIdV2Response) Status() string { +func (r CreateAutomationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70749,7 +74178,7 @@ func (r GetZoneByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetZoneByIdV2Response) StatusCode() int { +func (r CreateAutomationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70757,141 +74186,175 @@ func (r GetZoneByIdV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetZoneByIdV2Response) ContentType() string { +func (r CreateAutomationResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// EditZoneV2Response200Headers the declared response headers of an HTTP 200 response for EditZoneV2 -type EditZoneV2Response200Headers struct { - XRateLimitLimit *int32 -} - -// EditZoneV2Response400Headers the declared response headers of an HTTP 400 response for EditZoneV2 -type EditZoneV2Response400Headers struct { - XRateLimitLimit *int32 +// DeleteAutomationByIdResponse204Headers the declared response headers of an HTTP 204 response for DeleteAutomationById +type DeleteAutomationByIdResponse204Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// EditZoneV2Response401Headers the declared response headers of an HTTP 401 response for EditZoneV2 -type EditZoneV2Response401Headers struct { - XRateLimitLimit *int32 +// DeleteAutomationByIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteAutomationById +type DeleteAutomationByIdResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// EditZoneV2Response403Headers the declared response headers of an HTTP 403 response for EditZoneV2 -type EditZoneV2Response403Headers struct { - XRateLimitLimit *int32 +// DeleteAutomationByIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteAutomationById +type DeleteAutomationByIdResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// EditZoneV2Response404Headers the declared response headers of an HTTP 404 response for EditZoneV2 -type EditZoneV2Response404Headers struct { - XRateLimitLimit *int32 +// DeleteAutomationByIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteAutomationById +type DeleteAutomationByIdResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// EditZoneV2Response422Headers the declared response headers of an HTTP 422 response for EditZoneV2 -type EditZoneV2Response422Headers struct { - XRateLimitLimit *int32 +// DeleteAutomationByIdResponse404Headers the declared response headers of an HTTP 404 response for DeleteAutomationById +type DeleteAutomationByIdResponse404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// EditZoneV2Response429Headers the declared response headers of an HTTP 429 response for EditZoneV2 -type EditZoneV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// DeleteAutomationByIdResponse412Headers the declared response headers of an HTTP 412 response for DeleteAutomationById +type DeleteAutomationByIdResponse412Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// EditZoneV2Response500Headers the declared response headers of an HTTP 500 response for EditZoneV2 -type EditZoneV2Response500Headers struct { +// DeleteAutomationByIdResponse428Headers the declared response headers of an HTTP 428 response for DeleteAutomationById +type DeleteAutomationByIdResponse428Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID +} + +// DeleteAutomationByIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteAutomationById +type DeleteAutomationByIdResponse429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type EditZoneV2Response struct { +// DeleteAutomationByIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteAutomationById +type DeleteAutomationByIdResponse500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type DeleteAutomationByIdResponse struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV2 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized + JSON401 *UnauthorizedV2 // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON403 *ForbiddenV2 // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + JSON404 *NotFoundV2 + // JSON412 the response for an HTTP 412 `application/json` response + JSON412 *ErrorV2 + // JSON428 the response for an HTTP 428 `application/json` response + JSON428 *ErrorV2 // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON429 *TooManyRequestsV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *EditZoneV2Response200Headers + JSON500 *InternalServerErrorV2 + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteAutomationByIdResponse204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *EditZoneV2Response400Headers + Headers400 *DeleteAutomationByIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *EditZoneV2Response401Headers + Headers401 *DeleteAutomationByIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *EditZoneV2Response403Headers + Headers403 *DeleteAutomationByIdResponse403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *EditZoneV2Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *EditZoneV2Response422Headers + Headers404 *DeleteAutomationByIdResponse404Headers + // Headers412 the parsed response headers for an HTTP 412 response + Headers412 *DeleteAutomationByIdResponse412Headers + // Headers428 the parsed response headers for an HTTP 428 response + Headers428 *DeleteAutomationByIdResponse428Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *EditZoneV2Response429Headers + Headers429 *DeleteAutomationByIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *EditZoneV2Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EditZoneV2Response) GetJSON200() *ZoneResponseV2 { - return r.JSON200 + Headers500 *DeleteAutomationByIdResponse500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r EditZoneV2Response) GetJSON400() *BadRequest { +func (r DeleteAutomationByIdResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r EditZoneV2Response) GetJSON401() *Unauthorized { +func (r DeleteAutomationByIdResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r EditZoneV2Response) GetJSON403() *Forbidden { +func (r DeleteAutomationByIdResponse) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r EditZoneV2Response) GetJSON404() *NotFound { +func (r DeleteAutomationByIdResponse) GetJSON404() *NotFoundV2 { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r EditZoneV2Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 +// GetJSON412 returns the response for an HTTP 412 `application/json` response +func (r DeleteAutomationByIdResponse) GetJSON412() *ErrorV2 { + return r.JSON412 +} + +// GetJSON428 returns the response for an HTTP 428 `application/json` response +func (r DeleteAutomationByIdResponse) GetJSON428() *ErrorV2 { + return r.JSON428 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r EditZoneV2Response) GetJSON429() *TooManyRequests { +func (r DeleteAutomationByIdResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r EditZoneV2Response) GetJSON500() *InternalServerError { +func (r DeleteAutomationByIdResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r EditZoneV2Response) GetBody() []byte { +func (r DeleteAutomationByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r EditZoneV2Response) Status() string { +func (r DeleteAutomationByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70899,7 +74362,7 @@ func (r EditZoneV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r EditZoneV2Response) StatusCode() int { +func (r DeleteAutomationByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70907,135 +74370,146 @@ func (r EditZoneV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EditZoneV2Response) ContentType() string { +func (r DeleteAutomationByIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbCleanTombstonesV1 -type GetAdminTsdbCleanTombstonesV1Response410Headers struct { - XRateLimitLimit *int32 -} - -type GetAdminTsdbCleanTombstonesV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetAdminTsdbCleanTombstonesV1Response410Headers +// GetAutomationByIdResponse200Headers the declared response headers of an HTTP 200 response for GetAutomationById +type GetAutomationByIdResponse200Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetAutomationByIdResponse400Headers the declared response headers of an HTTP 400 response for GetAutomationById +type GetAutomationByIdResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetBody returns the raw response body bytes -func (r GetAdminTsdbCleanTombstonesV1Response) GetBody() []byte { - return r.Body +// GetAutomationByIdResponse401Headers the declared response headers of an HTTP 401 response for GetAutomationById +type GetAutomationByIdResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// Status returns HTTPResponse.Status -func (r GetAdminTsdbCleanTombstonesV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// GetAutomationByIdResponse403Headers the declared response headers of an HTTP 403 response for GetAutomationById +type GetAutomationByIdResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// StatusCode returns HTTPResponse.StatusCode -func (r GetAdminTsdbCleanTombstonesV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// GetAutomationByIdResponse404Headers the declared response headers of an HTTP 404 response for GetAutomationById +type GetAutomationByIdResponse404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAdminTsdbCleanTombstonesV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// GetAutomationByIdResponse429Headers the declared response headers of an HTTP 429 response for GetAutomationById +type GetAutomationByIdResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// PostAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbCleanTombstonesV1 -type PostAdminTsdbCleanTombstonesV1Response410Headers struct { - XRateLimitLimit *int32 +// GetAutomationByIdResponse500Headers the declared response headers of an HTTP 500 response for GetAutomationById +type GetAutomationByIdResponse500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -type PostAdminTsdbCleanTombstonesV1Response struct { +type GetAutomationByIdResponse struct { Body []byte HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *PostAdminTsdbCleanTombstonesV1Response410Headers -} - -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetAutomationByIdResponseV1Alpha1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestV2 + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequestsV2 + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetAutomationByIdResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetAutomationByIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetAutomationByIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetAutomationByIdResponse403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetAutomationByIdResponse404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetAutomationByIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetAutomationByIdResponse500Headers } -// GetBody returns the raw response body bytes -func (r PostAdminTsdbCleanTombstonesV1Response) GetBody() []byte { - return r.Body +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAutomationByIdResponse) GetJSON200() *GetAutomationByIdResponseV1Alpha1 { + return r.JSON200 } -// Status returns HTTPResponse.Status -func (r PostAdminTsdbCleanTombstonesV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetAutomationByIdResponse) GetJSON400() *BadRequestV2 { + return r.JSON400 } -// StatusCode returns HTTPResponse.StatusCode -func (r PostAdminTsdbCleanTombstonesV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetAutomationByIdResponse) GetJSON401() *UnauthorizedV2 { + return r.JSON401 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAdminTsdbCleanTombstonesV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAutomationByIdResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 } -// GetAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbDeleteSeriesV1 -type GetAdminTsdbDeleteSeriesV1Response410Headers struct { - XRateLimitLimit *int32 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetAutomationByIdResponse) GetJSON404() *NotFoundV2 { + return r.JSON404 } -type GetAdminTsdbDeleteSeriesV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetAdminTsdbDeleteSeriesV1Response410Headers +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetAutomationByIdResponse) GetJSON429() *TooManyRequestsV2 { + return r.JSON429 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetAutomationByIdResponse) GetJSON500() *InternalServerErrorV2 { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAdminTsdbDeleteSeriesV1Response) GetBody() []byte { +func (r GetAutomationByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAdminTsdbDeleteSeriesV1Response) Status() string { +func (r GetAutomationByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71043,7 +74517,7 @@ func (r GetAdminTsdbDeleteSeriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAdminTsdbDeleteSeriesV1Response) StatusCode() int { +func (r GetAutomationByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71051,183 +74525,233 @@ func (r GetAdminTsdbDeleteSeriesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAdminTsdbDeleteSeriesV1Response) ContentType() string { +func (r GetAutomationByIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbDeleteSeriesV1 -type PostAdminTsdbDeleteSeriesV1Response410Headers struct { - XRateLimitLimit *int32 +// UpdateAutomationResponse200Headers the declared response headers of an HTTP 200 response for UpdateAutomation +type UpdateAutomationResponse200Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -type PostAdminTsdbDeleteSeriesV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *PostAdminTsdbDeleteSeriesV1Response410Headers +// UpdateAutomationResponse400Headers the declared response headers of an HTTP 400 response for UpdateAutomation +type UpdateAutomationResponse400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// UpdateAutomationResponse401Headers the declared response headers of an HTTP 401 response for UpdateAutomation +type UpdateAutomationResponse401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetBody returns the raw response body bytes -func (r PostAdminTsdbDeleteSeriesV1Response) GetBody() []byte { - return r.Body +// UpdateAutomationResponse403Headers the declared response headers of an HTTP 403 response for UpdateAutomation +type UpdateAutomationResponse403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// Status returns HTTPResponse.Status -func (r PostAdminTsdbDeleteSeriesV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// UpdateAutomationResponse404Headers the declared response headers of an HTTP 404 response for UpdateAutomation +type UpdateAutomationResponse404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// StatusCode returns HTTPResponse.StatusCode -func (r PostAdminTsdbDeleteSeriesV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// UpdateAutomationResponse409Headers the declared response headers of an HTTP 409 response for UpdateAutomation +type UpdateAutomationResponse409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAdminTsdbDeleteSeriesV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// UpdateAutomationResponse412Headers the declared response headers of an HTTP 412 response for UpdateAutomation +type UpdateAutomationResponse412Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// GetAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbSnapshotV1 -type GetAdminTsdbSnapshotV1Response410Headers struct { - XRateLimitLimit *int32 +// UpdateAutomationResponse415Headers the declared response headers of an HTTP 415 response for UpdateAutomation +type UpdateAutomationResponse415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -type GetAdminTsdbSnapshotV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetAdminTsdbSnapshotV1Response410Headers +// UpdateAutomationResponse422Headers the declared response headers of an HTTP 422 response for UpdateAutomation +type UpdateAutomationResponse422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// UpdateAutomationResponse428Headers the declared response headers of an HTTP 428 response for UpdateAutomation +type UpdateAutomationResponse428Headers struct { + ETag *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId openapi_types.UUID } -// GetBody returns the raw response body bytes -func (r GetAdminTsdbSnapshotV1Response) GetBody() []byte { - return r.Body +// UpdateAutomationResponse429Headers the declared response headers of an HTTP 429 response for UpdateAutomation +type UpdateAutomationResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// Status returns HTTPResponse.Status -func (r GetAdminTsdbSnapshotV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// UpdateAutomationResponse500Headers the declared response headers of an HTTP 500 response for UpdateAutomation +type UpdateAutomationResponse500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// StatusCode returns HTTPResponse.StatusCode -func (r GetAdminTsdbSnapshotV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +type UpdateAutomationResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *UpdateAutomationResponseV1Alpha1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestV2 + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *ConflictV2 + // JSON412 the response for an HTTP 412 `application/json` response + JSON412 *ErrorV2 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaTypeV2 + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityV2 + // JSON428 the response for an HTTP 428 `application/json` response + JSON428 *ErrorV2 + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequestsV2 + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateAutomationResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *UpdateAutomationResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *UpdateAutomationResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateAutomationResponse403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateAutomationResponse404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateAutomationResponse409Headers + // Headers412 the parsed response headers for an HTTP 412 response + Headers412 *UpdateAutomationResponse412Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateAutomationResponse415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *UpdateAutomationResponse422Headers + // Headers428 the parsed response headers for an HTTP 428 response + Headers428 *UpdateAutomationResponse428Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *UpdateAutomationResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *UpdateAutomationResponse500Headers } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAdminTsdbSnapshotV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateAutomationResponse) GetJSON200() *UpdateAutomationResponseV1Alpha1 { + return r.JSON200 } -// PostAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbSnapshotV1 -type PostAdminTsdbSnapshotV1Response410Headers struct { - XRateLimitLimit *int32 +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r UpdateAutomationResponse) GetJSON400() *BadRequestV2 { + return r.JSON400 } -type PostAdminTsdbSnapshotV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *PostAdminTsdbSnapshotV1Response410Headers +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r UpdateAutomationResponse) GetJSON401() *UnauthorizedV2 { + return r.JSON401 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateAutomationResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 } -// GetBody returns the raw response body bytes -func (r PostAdminTsdbSnapshotV1Response) GetBody() []byte { - return r.Body +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateAutomationResponse) GetJSON404() *NotFoundV2 { + return r.JSON404 } -// Status returns HTTPResponse.Status -func (r PostAdminTsdbSnapshotV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateAutomationResponse) GetJSON409() *ConflictV2 { + return r.JSON409 } -// StatusCode returns HTTPResponse.StatusCode -func (r PostAdminTsdbSnapshotV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// GetJSON412 returns the response for an HTTP 412 `application/json` response +func (r UpdateAutomationResponse) GetJSON412() *ErrorV2 { + return r.JSON412 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAdminTsdbSnapshotV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateAutomationResponse) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 } -// GetAlertManagersV1Response410Headers the declared response headers of an HTTP 410 response for GetAlertManagersV1 -type GetAlertManagersV1Response410Headers struct { - XRateLimitLimit *int32 +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r UpdateAutomationResponse) GetJSON422() *UnprocessableEntityV2 { + return r.JSON422 } -type GetAlertManagersV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetAlertManagersV1Response410Headers +// GetJSON428 returns the response for an HTTP 428 `application/json` response +func (r UpdateAutomationResponse) GetJSON428() *ErrorV2 { + return r.JSON428 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAlertManagersV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r UpdateAutomationResponse) GetJSON429() *TooManyRequestsV2 { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r UpdateAutomationResponse) GetJSON500() *InternalServerErrorV2 { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAlertManagersV1Response) GetBody() []byte { +func (r UpdateAutomationResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAlertManagersV1Response) Status() string { +func (r UpdateAutomationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71235,7 +74759,7 @@ func (r GetAlertManagersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAlertManagersV1Response) StatusCode() int { +func (r UpdateAutomationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71243,103 +74767,127 @@ func (r GetAlertManagersV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAlertManagersV1Response) ContentType() string { +func (r UpdateAutomationResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetAlertsV1Response200Headers the declared response headers of an HTTP 200 response for GetAlertsV1 -type GetAlertsV1Response200Headers struct { +// ListZonesV2Response200Headers the declared response headers of an HTTP 200 response for ListZonesV2 +type ListZonesV2Response200Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response400Headers the declared response headers of an HTTP 400 response for GetAlertsV1 -type GetAlertsV1Response400Headers struct { +// ListZonesV2Response400Headers the declared response headers of an HTTP 400 response for ListZonesV2 +type ListZonesV2Response400Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response401Headers the declared response headers of an HTTP 401 response for GetAlertsV1 -type GetAlertsV1Response401Headers struct { +// ListZonesV2Response401Headers the declared response headers of an HTTP 401 response for ListZonesV2 +type ListZonesV2Response401Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response404Headers the declared response headers of an HTTP 404 response for GetAlertsV1 -type GetAlertsV1Response404Headers struct { +// ListZonesV2Response403Headers the declared response headers of an HTTP 403 response for ListZonesV2 +type ListZonesV2Response403Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response429Headers the declared response headers of an HTTP 429 response for GetAlertsV1 -type GetAlertsV1Response429Headers struct { +// ListZonesV2Response422Headers the declared response headers of an HTTP 422 response for ListZonesV2 +type ListZonesV2Response422Headers struct { + XRateLimitLimit *int32 +} + +// ListZonesV2Response429Headers the declared response headers of an HTTP 429 response for ListZonesV2 +type ListZonesV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetAlertsV1Response struct { +// ListZonesV2Response500Headers the declared response headers of an HTTP 500 response for ListZonesV2 +type ListZonesV2Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type ListZonesV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AlertsResponseV1 + JSON200 *ListZonesResponseV2 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetAlertsV1Response200Headers + Headers200 *ListZonesV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAlertsV1Response400Headers + Headers400 *ListZonesV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAlertsV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAlertsV1Response404Headers + Headers401 *ListZonesV2Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListZonesV2Response403Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *ListZonesV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAlertsV1Response429Headers + Headers429 *ListZonesV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ListZonesV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAlertsV1Response) GetJSON200() *AlertsResponseV1 { +func (r ListZonesV2Response) GetJSON200() *ListZonesResponseV2 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAlertsV1Response) GetJSON400() *BadRequestPrometheus { +func (r ListZonesV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAlertsV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r ListZonesV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAlertsV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 -} +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListZonesV2Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r ListZonesV2Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAlertsV1Response) GetJSON429() *TooManyRequests { +func (r ListZonesV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAlertsV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r ListZonesV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAlertsV1Response) GetBody() []byte { +func (r ListZonesV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAlertsV1Response) Status() string { +func (r ListZonesV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71347,7 +74895,7 @@ func (r GetAlertsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAlertsV1Response) StatusCode() int { +func (r ListZonesV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71355,87 +74903,141 @@ func (r GetAlertsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAlertsV1Response) ContentType() string { +func (r ListZonesV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetFormatQueryV1 -type GetFormatQueryV1Response410Headers struct { +// CreateZoneV2Response201Headers the declared response headers of an HTTP 201 response for CreateZoneV2 +type CreateZoneV2Response201Headers struct { XRateLimitLimit *int32 } -type GetFormatQueryV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetFormatQueryV1Response410Headers +// CreateZoneV2Response400Headers the declared response headers of an HTTP 400 response for CreateZoneV2 +type CreateZoneV2Response400Headers struct { + XRateLimitLimit *int32 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetFormatQueryV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// CreateZoneV2Response401Headers the declared response headers of an HTTP 401 response for CreateZoneV2 +type CreateZoneV2Response401Headers struct { + XRateLimitLimit *int32 } -// GetBody returns the raw response body bytes -func (r GetFormatQueryV1Response) GetBody() []byte { - return r.Body +// CreateZoneV2Response403Headers the declared response headers of an HTTP 403 response for CreateZoneV2 +type CreateZoneV2Response403Headers struct { + XRateLimitLimit *int32 } -// Status returns HTTPResponse.Status -func (r GetFormatQueryV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// CreateZoneV2Response409Headers the declared response headers of an HTTP 409 response for CreateZoneV2 +type CreateZoneV2Response409Headers struct { + XRateLimitLimit *int32 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetFormatQueryV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// CreateZoneV2Response422Headers the declared response headers of an HTTP 422 response for CreateZoneV2 +type CreateZoneV2Response422Headers struct { + XRateLimitLimit *int32 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetFormatQueryV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// CreateZoneV2Response429Headers the declared response headers of an HTTP 429 response for CreateZoneV2 +type CreateZoneV2Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// PostFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostFormatQueryV1 -type PostFormatQueryV1Response410Headers struct { - XRateLimitLimit *int32 +// CreateZoneV2Response500Headers the declared response headers of an HTTP 500 response for CreateZoneV2 +type CreateZoneV2Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -type PostFormatQueryV1Response struct { +type CreateZoneV2Response struct { Body []byte HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *PostFormatQueryV1Response410Headers + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *ZoneResponseV2 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntity + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateZoneV2Response201Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *CreateZoneV2Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *CreateZoneV2Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *CreateZoneV2Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateZoneV2Response409Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateZoneV2Response422Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *CreateZoneV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *CreateZoneV2Response500Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostFormatQueryV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateZoneV2Response) GetJSON201() *ZoneResponseV2 { + return r.JSON201 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r CreateZoneV2Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r CreateZoneV2Response) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateZoneV2Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateZoneV2Response) GetJSON409() *Conflict { + return r.JSON409 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateZoneV2Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r CreateZoneV2Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r CreateZoneV2Response) GetJSON500() *InternalServerError { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostFormatQueryV1Response) GetBody() []byte { +func (r CreateZoneV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostFormatQueryV1Response) Status() string { +func (r CreateZoneV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71443,7 +75045,7 @@ func (r PostFormatQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostFormatQueryV1Response) StatusCode() int { +func (r CreateZoneV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71451,103 +75053,148 @@ func (r PostFormatQueryV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostFormatQueryV1Response) ContentType() string { +func (r CreateZoneV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetLabelValuesV1Response200Headers the declared response headers of an HTTP 200 response for GetLabelValuesV1 -type GetLabelValuesV1Response200Headers struct { +// DeleteZoneV2Response204Headers the declared response headers of an HTTP 204 response for DeleteZoneV2 +type DeleteZoneV2Response204Headers struct { XRateLimitLimit *int32 } -// GetLabelValuesV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelValuesV1 -type GetLabelValuesV1Response400Headers struct { +// DeleteZoneV2Response400Headers the declared response headers of an HTTP 400 response for DeleteZoneV2 +type DeleteZoneV2Response400Headers struct { XRateLimitLimit *int32 } -// GetLabelValuesV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelValuesV1 -type GetLabelValuesV1Response401Headers struct { +// DeleteZoneV2Response401Headers the declared response headers of an HTTP 401 response for DeleteZoneV2 +type DeleteZoneV2Response401Headers struct { XRateLimitLimit *int32 } -// GetLabelValuesV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelValuesV1 -type GetLabelValuesV1Response404Headers struct { +// DeleteZoneV2Response403Headers the declared response headers of an HTTP 403 response for DeleteZoneV2 +type DeleteZoneV2Response403Headers struct { XRateLimitLimit *int32 } -// GetLabelValuesV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelValuesV1 -type GetLabelValuesV1Response429Headers struct { +// DeleteZoneV2Response404Headers the declared response headers of an HTTP 404 response for DeleteZoneV2 +type DeleteZoneV2Response404Headers struct { + XRateLimitLimit *int32 +} + +// DeleteZoneV2Response409Headers the declared response headers of an HTTP 409 response for DeleteZoneV2 +type DeleteZoneV2Response409Headers struct { + XRateLimitLimit *int32 +} + +// DeleteZoneV2Response422Headers the declared response headers of an HTTP 422 response for DeleteZoneV2 +type DeleteZoneV2Response422Headers struct { + XRateLimitLimit *int32 +} + +// DeleteZoneV2Response429Headers the declared response headers of an HTTP 429 response for DeleteZoneV2 +type DeleteZoneV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetLabelValuesV1Response struct { +// DeleteZoneV2Response500Headers the declared response headers of an HTTP 500 response for DeleteZoneV2 +type DeleteZoneV2Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type DeleteZoneV2Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *LabelValuesResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus + JSON404 *NotFound + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetLabelValuesV1Response200Headers + JSON500 *InternalServerError + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteZoneV2Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetLabelValuesV1Response400Headers + Headers400 *DeleteZoneV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetLabelValuesV1Response401Headers + Headers401 *DeleteZoneV2Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteZoneV2Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetLabelValuesV1Response404Headers + Headers404 *DeleteZoneV2Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *DeleteZoneV2Response409Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *DeleteZoneV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetLabelValuesV1Response429Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetLabelValuesV1Response) GetJSON200() *LabelValuesResponseV1 { - return r.JSON200 + Headers429 *DeleteZoneV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *DeleteZoneV2Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetLabelValuesV1Response) GetJSON400() *BadRequestPrometheus { +func (r DeleteZoneV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetLabelValuesV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r DeleteZoneV2Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteZoneV2Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetLabelValuesV1Response) GetJSON404() *NotFoundPrometheus { +func (r DeleteZoneV2Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r DeleteZoneV2Response) GetJSON409() *Conflict { + return r.JSON409 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r DeleteZoneV2Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetLabelValuesV1Response) GetJSON429() *TooManyRequests { +func (r DeleteZoneV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetLabelValuesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r DeleteZoneV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetLabelValuesV1Response) GetBody() []byte { +func (r DeleteZoneV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetLabelValuesV1Response) Status() string { +func (r DeleteZoneV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71555,7 +75202,7 @@ func (r GetLabelValuesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetLabelValuesV1Response) StatusCode() int { +func (r DeleteZoneV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71563,103 +75210,141 @@ func (r GetLabelValuesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetLabelValuesV1Response) ContentType() string { +func (r DeleteZoneV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetLabelsV1Response200Headers the declared response headers of an HTTP 200 response for GetLabelsV1 -type GetLabelsV1Response200Headers struct { +// GetZoneByIdV2Response200Headers the declared response headers of an HTTP 200 response for GetZoneByIdV2 +type GetZoneByIdV2Response200Headers struct { XRateLimitLimit *int32 } -// GetLabelsV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelsV1 -type GetLabelsV1Response400Headers struct { +// GetZoneByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetZoneByIdV2 +type GetZoneByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// GetLabelsV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelsV1 -type GetLabelsV1Response401Headers struct { +// GetZoneByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetZoneByIdV2 +type GetZoneByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// GetLabelsV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelsV1 -type GetLabelsV1Response404Headers struct { +// GetZoneByIdV2Response403Headers the declared response headers of an HTTP 403 response for GetZoneByIdV2 +type GetZoneByIdV2Response403Headers struct { XRateLimitLimit *int32 } -// GetLabelsV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelsV1 -type GetLabelsV1Response429Headers struct { +// GetZoneByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetZoneByIdV2 +type GetZoneByIdV2Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetZoneByIdV2Response422Headers the declared response headers of an HTTP 422 response for GetZoneByIdV2 +type GetZoneByIdV2Response422Headers struct { + XRateLimitLimit *int32 +} + +// GetZoneByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetZoneByIdV2 +type GetZoneByIdV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetLabelsV1Response struct { +// GetZoneByIdV2Response500Headers the declared response headers of an HTTP 500 response for GetZoneByIdV2 +type GetZoneByIdV2Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetZoneByIdV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *LabelsResponseV1 + JSON200 *ZoneResponseV2 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus + JSON404 *NotFound + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetLabelsV1Response200Headers + Headers200 *GetZoneByIdV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetLabelsV1Response400Headers + Headers400 *GetZoneByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetLabelsV1Response401Headers + Headers401 *GetZoneByIdV2Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetZoneByIdV2Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetLabelsV1Response404Headers + Headers404 *GetZoneByIdV2Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *GetZoneByIdV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetLabelsV1Response429Headers + Headers429 *GetZoneByIdV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetZoneByIdV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetLabelsV1Response) GetJSON200() *LabelsResponseV1 { +func (r GetZoneByIdV2Response) GetJSON200() *ZoneResponseV2 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetLabelsV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetZoneByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetLabelsV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetZoneByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetZoneByIdV2Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetLabelsV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetZoneByIdV2Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r GetZoneByIdV2Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetLabelsV1Response) GetJSON429() *TooManyRequests { +func (r GetZoneByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetZoneByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetLabelsV1Response) GetBody() []byte { +func (r GetZoneByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetLabelsV1Response) Status() string { +func (r GetZoneByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71667,7 +75352,7 @@ func (r GetLabelsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetLabelsV1Response) StatusCode() int { +func (r GetZoneByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71675,103 +75360,141 @@ func (r GetLabelsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetLabelsV1Response) ContentType() string { +func (r GetZoneByIdV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostLabelsV1Response200Headers the declared response headers of an HTTP 200 response for PostLabelsV1 -type PostLabelsV1Response200Headers struct { +// EditZoneV2Response200Headers the declared response headers of an HTTP 200 response for EditZoneV2 +type EditZoneV2Response200Headers struct { XRateLimitLimit *int32 } -// PostLabelsV1Response400Headers the declared response headers of an HTTP 400 response for PostLabelsV1 -type PostLabelsV1Response400Headers struct { +// EditZoneV2Response400Headers the declared response headers of an HTTP 400 response for EditZoneV2 +type EditZoneV2Response400Headers struct { XRateLimitLimit *int32 } -// PostLabelsV1Response401Headers the declared response headers of an HTTP 401 response for PostLabelsV1 -type PostLabelsV1Response401Headers struct { +// EditZoneV2Response401Headers the declared response headers of an HTTP 401 response for EditZoneV2 +type EditZoneV2Response401Headers struct { XRateLimitLimit *int32 } -// PostLabelsV1Response404Headers the declared response headers of an HTTP 404 response for PostLabelsV1 -type PostLabelsV1Response404Headers struct { +// EditZoneV2Response403Headers the declared response headers of an HTTP 403 response for EditZoneV2 +type EditZoneV2Response403Headers struct { XRateLimitLimit *int32 } -// PostLabelsV1Response429Headers the declared response headers of an HTTP 429 response for PostLabelsV1 -type PostLabelsV1Response429Headers struct { +// EditZoneV2Response404Headers the declared response headers of an HTTP 404 response for EditZoneV2 +type EditZoneV2Response404Headers struct { + XRateLimitLimit *int32 +} + +// EditZoneV2Response422Headers the declared response headers of an HTTP 422 response for EditZoneV2 +type EditZoneV2Response422Headers struct { + XRateLimitLimit *int32 +} + +// EditZoneV2Response429Headers the declared response headers of an HTTP 429 response for EditZoneV2 +type EditZoneV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type PostLabelsV1Response struct { +// EditZoneV2Response500Headers the declared response headers of an HTTP 500 response for EditZoneV2 +type EditZoneV2Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type EditZoneV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *LabelsResponseV1 + JSON200 *ZoneResponseV2 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus + JSON404 *NotFound + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PostLabelsV1Response200Headers + Headers200 *EditZoneV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostLabelsV1Response400Headers + Headers400 *EditZoneV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostLabelsV1Response401Headers + Headers401 *EditZoneV2Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *EditZoneV2Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *PostLabelsV1Response404Headers + Headers404 *EditZoneV2Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *EditZoneV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostLabelsV1Response429Headers + Headers429 *EditZoneV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *EditZoneV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PostLabelsV1Response) GetJSON200() *LabelsResponseV1 { +func (r EditZoneV2Response) GetJSON200() *ZoneResponseV2 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostLabelsV1Response) GetJSON400() *BadRequestPrometheus { +func (r EditZoneV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostLabelsV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r EditZoneV2Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r EditZoneV2Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostLabelsV1Response) GetJSON404() *NotFoundPrometheus { +func (r EditZoneV2Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r EditZoneV2Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostLabelsV1Response) GetJSON429() *TooManyRequests { +func (r EditZoneV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r EditZoneV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostLabelsV1Response) GetBody() []byte { +func (r EditZoneV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostLabelsV1Response) Status() string { +func (r EditZoneV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71779,7 +75502,7 @@ func (r PostLabelsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostLabelsV1Response) StatusCode() int { +func (r EditZoneV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71787,103 +75510,87 @@ func (r PostLabelsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostLabelsV1Response) ContentType() string { +func (r EditZoneV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetMetadataV1Response200Headers the declared response headers of an HTTP 200 response for GetMetadataV1 -type GetMetadataV1Response200Headers struct { +// GetAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbCleanTombstonesV1 +type GetAdminTsdbCleanTombstonesV1Response410Headers struct { XRateLimitLimit *int32 } -// GetMetadataV1Response400Headers the declared response headers of an HTTP 400 response for GetMetadataV1 -type GetMetadataV1Response400Headers struct { - XRateLimitLimit *int32 +type GetAdminTsdbCleanTombstonesV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetAdminTsdbCleanTombstonesV1Response410Headers } -// GetMetadataV1Response401Headers the declared response headers of an HTTP 401 response for GetMetadataV1 -type GetMetadataV1Response401Headers struct { - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// GetMetadataV1Response404Headers the declared response headers of an HTTP 404 response for GetMetadataV1 -type GetMetadataV1Response404Headers struct { - XRateLimitLimit *int32 -} - -// GetMetadataV1Response429Headers the declared response headers of an HTTP 429 response for GetMetadataV1 -type GetMetadataV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 -} - -type GetMetadataV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *MetadataResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests - // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetMetadataV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetMetadataV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetMetadataV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetMetadataV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetMetadataV1Response429Headers +// GetBody returns the raw response body bytes +func (r GetAdminTsdbCleanTombstonesV1Response) GetBody() []byte { + return r.Body } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetMetadataV1Response) GetJSON200() *MetadataResponseV1 { - return r.JSON200 +// Status returns HTTPResponse.Status +func (r GetAdminTsdbCleanTombstonesV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetMetadataV1Response) GetJSON400() *BadRequestPrometheus { - return r.JSON400 +// StatusCode returns HTTPResponse.StatusCode +func (r GetAdminTsdbCleanTombstonesV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetMetadataV1Response) GetJSON401() *UnauthorizedPrometheus { - return r.JSON401 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAdminTsdbCleanTombstonesV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetMetadataV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 +// PostAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbCleanTombstonesV1 +type PostAdminTsdbCleanTombstonesV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetMetadataV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +type PostAdminTsdbCleanTombstonesV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *PostAdminTsdbCleanTombstonesV1Response410Headers } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetMetadataV1Response) GetJSON500() *InternalServerErrorPrometheus { - return r.JSON500 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r PostAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetMetadataV1Response) GetBody() []byte { +func (r PostAdminTsdbCleanTombstonesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetMetadataV1Response) Status() string { +func (r PostAdminTsdbCleanTombstonesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71891,7 +75598,7 @@ func (r GetMetadataV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetMetadataV1Response) StatusCode() int { +func (r PostAdminTsdbCleanTombstonesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71899,39 +75606,39 @@ func (r GetMetadataV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetMetadataV1Response) ContentType() string { +func (r PostAdminTsdbCleanTombstonesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetNotificationsV1 -type GetNotificationsV1Response410Headers struct { +// GetAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbDeleteSeriesV1 +type GetAdminTsdbDeleteSeriesV1Response410Headers struct { XRateLimitLimit *int32 } -type GetNotificationsV1Response struct { +type GetAdminTsdbDeleteSeriesV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetNotificationsV1Response410Headers + Headers410 *GetAdminTsdbDeleteSeriesV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetNotificationsV1Response) GetJSON410() *GonePrometheus { +func (r GetAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetNotificationsV1Response) GetBody() []byte { +func (r GetAdminTsdbDeleteSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetNotificationsV1Response) Status() string { +func (r GetAdminTsdbDeleteSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71939,7 +75646,7 @@ func (r GetNotificationsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationsV1Response) StatusCode() int { +func (r GetAdminTsdbDeleteSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71947,39 +75654,39 @@ func (r GetNotificationsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNotificationsV1Response) ContentType() string { +func (r GetAdminTsdbDeleteSeriesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetLiveNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetLiveNotificationsV1 -type GetLiveNotificationsV1Response410Headers struct { +// PostAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbDeleteSeriesV1 +type PostAdminTsdbDeleteSeriesV1Response410Headers struct { XRateLimitLimit *int32 } -type GetLiveNotificationsV1Response struct { +type PostAdminTsdbDeleteSeriesV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetLiveNotificationsV1Response410Headers + Headers410 *PostAdminTsdbDeleteSeriesV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetLiveNotificationsV1Response) GetJSON410() *GonePrometheus { +func (r PostAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetLiveNotificationsV1Response) GetBody() []byte { +func (r PostAdminTsdbDeleteSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetLiveNotificationsV1Response) Status() string { +func (r PostAdminTsdbDeleteSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71987,7 +75694,7 @@ func (r GetLiveNotificationsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetLiveNotificationsV1Response) StatusCode() int { +func (r PostAdminTsdbDeleteSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71995,39 +75702,39 @@ func (r GetLiveNotificationsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetLiveNotificationsV1Response) ContentType() string { +func (r PostAdminTsdbDeleteSeriesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetParseQueryV1 -type GetParseQueryV1Response410Headers struct { +// GetAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbSnapshotV1 +type GetAdminTsdbSnapshotV1Response410Headers struct { XRateLimitLimit *int32 } -type GetParseQueryV1Response struct { +type GetAdminTsdbSnapshotV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetParseQueryV1Response410Headers + Headers410 *GetAdminTsdbSnapshotV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetParseQueryV1Response) GetJSON410() *GonePrometheus { +func (r GetAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetParseQueryV1Response) GetBody() []byte { +func (r GetAdminTsdbSnapshotV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetParseQueryV1Response) Status() string { +func (r GetAdminTsdbSnapshotV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72035,7 +75742,7 @@ func (r GetParseQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetParseQueryV1Response) StatusCode() int { +func (r GetAdminTsdbSnapshotV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72043,39 +75750,39 @@ func (r GetParseQueryV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetParseQueryV1Response) ContentType() string { +func (r GetAdminTsdbSnapshotV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostParseQueryV1 -type PostParseQueryV1Response410Headers struct { +// PostAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbSnapshotV1 +type PostAdminTsdbSnapshotV1Response410Headers struct { XRateLimitLimit *int32 } -type PostParseQueryV1Response struct { +type PostAdminTsdbSnapshotV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *PostParseQueryV1Response410Headers + Headers410 *PostAdminTsdbSnapshotV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostParseQueryV1Response) GetJSON410() *GonePrometheus { +func (r PostAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r PostParseQueryV1Response) GetBody() []byte { +func (r PostAdminTsdbSnapshotV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostParseQueryV1Response) Status() string { +func (r PostAdminTsdbSnapshotV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72083,7 +75790,7 @@ func (r PostParseQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostParseQueryV1Response) StatusCode() int { +func (r PostAdminTsdbSnapshotV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72091,103 +75798,39 @@ func (r PostParseQueryV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostParseQueryV1Response) ContentType() string { +func (r PostAdminTsdbSnapshotV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetQueryV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryV1 -type GetQueryV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetQueryV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryV1 -type GetQueryV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetQueryV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryV1 -type GetQueryV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// GetQueryV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryV1 -type GetQueryV1Response404Headers struct { - XRateLimitLimit *int32 -} - -// GetQueryV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryV1 -type GetQueryV1Response429Headers struct { - RetryAfter *int32 +// GetAlertManagersV1Response410Headers the declared response headers of an HTTP 410 response for GetAlertManagersV1 +type GetAlertManagersV1Response410Headers struct { XRateLimitLimit *int32 } -type GetQueryV1Response struct { +type GetAlertManagersV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *QueryResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests - // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetQueryV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetQueryV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetQueryV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetQueryV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetQueryV1Response429Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetQueryV1Response) GetJSON200() *QueryResponseV1 { - return r.JSON200 -} - -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetQueryV1Response) GetJSON400() *BadRequestPrometheus { - return r.JSON400 -} - -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetQueryV1Response) GetJSON401() *UnauthorizedPrometheus { - return r.JSON401 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetQueryV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetQueryV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetAlertManagersV1Response410Headers } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { - return r.JSON500 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetAlertManagersV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetQueryV1Response) GetBody() []byte { +func (r GetAlertManagersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetQueryV1Response) Status() string { +func (r GetAlertManagersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72195,7 +75838,7 @@ func (r GetQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetQueryV1Response) StatusCode() int { +func (r GetAlertManagersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72203,44 +75846,44 @@ func (r GetQueryV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetQueryV1Response) ContentType() string { +func (r GetAlertManagersV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostQueryV1Response200Headers the declared response headers of an HTTP 200 response for PostQueryV1 -type PostQueryV1Response200Headers struct { +// GetAlertsV1Response200Headers the declared response headers of an HTTP 200 response for GetAlertsV1 +type GetAlertsV1Response200Headers struct { XRateLimitLimit *int32 } -// PostQueryV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryV1 -type PostQueryV1Response400Headers struct { +// GetAlertsV1Response400Headers the declared response headers of an HTTP 400 response for GetAlertsV1 +type GetAlertsV1Response400Headers struct { XRateLimitLimit *int32 } -// PostQueryV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryV1 -type PostQueryV1Response401Headers struct { +// GetAlertsV1Response401Headers the declared response headers of an HTTP 401 response for GetAlertsV1 +type GetAlertsV1Response401Headers struct { XRateLimitLimit *int32 } -// PostQueryV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryV1 -type PostQueryV1Response404Headers struct { +// GetAlertsV1Response404Headers the declared response headers of an HTTP 404 response for GetAlertsV1 +type GetAlertsV1Response404Headers struct { XRateLimitLimit *int32 } -// PostQueryV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryV1 -type PostQueryV1Response429Headers struct { +// GetAlertsV1Response429Headers the declared response headers of an HTTP 429 response for GetAlertsV1 +type GetAlertsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type PostQueryV1Response struct { +type GetAlertsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *QueryResponseV1 + JSON200 *AlertsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response @@ -72252,54 +75895,54 @@ type PostQueryV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PostQueryV1Response200Headers + Headers200 *GetAlertsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostQueryV1Response400Headers + Headers400 *GetAlertsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostQueryV1Response401Headers + Headers401 *GetAlertsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *PostQueryV1Response404Headers + Headers404 *GetAlertsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostQueryV1Response429Headers + Headers429 *GetAlertsV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PostQueryV1Response) GetJSON200() *QueryResponseV1 { +func (r GetAlertsV1Response) GetJSON200() *AlertsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostQueryV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetAlertsV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostQueryV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetAlertsV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostQueryV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetAlertsV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostQueryV1Response) GetJSON429() *TooManyRequests { +func (r GetAlertsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetAlertsV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostQueryV1Response) GetBody() []byte { +func (r GetAlertsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostQueryV1Response) Status() string { +func (r GetAlertsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72307,7 +75950,7 @@ func (r PostQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostQueryV1Response) StatusCode() int { +func (r GetAlertsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72315,39 +75958,39 @@ func (r PostQueryV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostQueryV1Response) ContentType() string { +func (r GetAlertsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetExemplarsV1Response410Headers the declared response headers of an HTTP 410 response for GetExemplarsV1 -type GetExemplarsV1Response410Headers struct { +// GetFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetFormatQueryV1 +type GetFormatQueryV1Response410Headers struct { XRateLimitLimit *int32 } -type GetExemplarsV1Response struct { +type GetFormatQueryV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetExemplarsV1Response410Headers + Headers410 *GetFormatQueryV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetExemplarsV1Response) GetJSON410() *GonePrometheus { +func (r GetFormatQueryV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetExemplarsV1Response) GetBody() []byte { +func (r GetFormatQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetExemplarsV1Response) Status() string { +func (r GetFormatQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72355,7 +75998,7 @@ func (r GetExemplarsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetExemplarsV1Response) StatusCode() int { +func (r GetFormatQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72363,39 +76006,39 @@ func (r GetExemplarsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetExemplarsV1Response) ContentType() string { +func (r GetFormatQueryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostExemplarsV1Response410Headers the declared response headers of an HTTP 410 response for PostExemplarsV1 -type PostExemplarsV1Response410Headers struct { +// PostFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostFormatQueryV1 +type PostFormatQueryV1Response410Headers struct { XRateLimitLimit *int32 } -type PostExemplarsV1Response struct { +type PostFormatQueryV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *PostExemplarsV1Response410Headers + Headers410 *PostFormatQueryV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostExemplarsV1Response) GetJSON410() *GonePrometheus { +func (r PostFormatQueryV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r PostExemplarsV1Response) GetBody() []byte { +func (r PostFormatQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostExemplarsV1Response) Status() string { +func (r PostFormatQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72403,7 +76046,7 @@ func (r PostExemplarsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostExemplarsV1Response) StatusCode() int { +func (r PostFormatQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72411,117 +76054,103 @@ func (r PostExemplarsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostExemplarsV1Response) ContentType() string { +func (r PostFormatQueryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryRangeV1 -type GetQueryRangeV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryRangeV1 -type GetQueryRangeV1Response400Headers struct { +// GetLabelValuesV1Response200Headers the declared response headers of an HTTP 200 response for GetLabelValuesV1 +type GetLabelValuesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryRangeV1 -type GetQueryRangeV1Response401Headers struct { +// GetLabelValuesV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelValuesV1 +type GetLabelValuesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryRangeV1 -type GetQueryRangeV1Response404Headers struct { +// GetLabelValuesV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelValuesV1 +type GetLabelValuesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for GetQueryRangeV1 -type GetQueryRangeV1Response422Headers struct { +// GetLabelValuesV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelValuesV1 +type GetLabelValuesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryRangeV1 -type GetQueryRangeV1Response429Headers struct { +// GetLabelValuesV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelValuesV1 +type GetLabelValuesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetQueryRangeV1Response struct { +type GetLabelValuesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *QueryResponseV1 + JSON200 *LabelValuesResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFoundPrometheus - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetQueryRangeV1Response200Headers + Headers200 *GetLabelValuesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetQueryRangeV1Response400Headers + Headers400 *GetLabelValuesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetQueryRangeV1Response401Headers + Headers401 *GetLabelValuesV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetQueryRangeV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *GetQueryRangeV1Response422Headers + Headers404 *GetLabelValuesV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetQueryRangeV1Response429Headers + Headers429 *GetLabelValuesV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetQueryRangeV1Response) GetJSON200() *QueryResponseV1 { +func (r GetLabelValuesV1Response) GetJSON200() *LabelValuesResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetLabelValuesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetLabelValuesV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetQueryRangeV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetLabelValuesV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r GetQueryRangeV1Response) GetJSON422() *UnprocessableEntityPrometheus { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetQueryRangeV1Response) GetJSON429() *TooManyRequests { +func (r GetLabelValuesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetLabelValuesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetQueryRangeV1Response) GetBody() []byte { +func (r GetLabelValuesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetQueryRangeV1Response) Status() string { +func (r GetLabelValuesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72529,7 +76158,7 @@ func (r GetQueryRangeV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetQueryRangeV1Response) StatusCode() int { +func (r GetLabelValuesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72537,117 +76166,103 @@ func (r GetQueryRangeV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetQueryRangeV1Response) ContentType() string { +func (r GetLabelValuesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for PostQueryRangeV1 -type PostQueryRangeV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// PostQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryRangeV1 -type PostQueryRangeV1Response400Headers struct { +// GetLabelsV1Response200Headers the declared response headers of an HTTP 200 response for GetLabelsV1 +type GetLabelsV1Response200Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryRangeV1 -type PostQueryRangeV1Response401Headers struct { +// GetLabelsV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelsV1 +type GetLabelsV1Response400Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryRangeV1 -type PostQueryRangeV1Response404Headers struct { +// GetLabelsV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelsV1 +type GetLabelsV1Response401Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for PostQueryRangeV1 -type PostQueryRangeV1Response422Headers struct { +// GetLabelsV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelsV1 +type GetLabelsV1Response404Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryRangeV1 -type PostQueryRangeV1Response429Headers struct { +// GetLabelsV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelsV1 +type GetLabelsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type PostQueryRangeV1Response struct { +type GetLabelsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *QueryResponseV1 + JSON200 *LabelsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFoundPrometheus - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PostQueryRangeV1Response200Headers + Headers200 *GetLabelsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostQueryRangeV1Response400Headers + Headers400 *GetLabelsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostQueryRangeV1Response401Headers + Headers401 *GetLabelsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *PostQueryRangeV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *PostQueryRangeV1Response422Headers + Headers404 *GetLabelsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostQueryRangeV1Response429Headers + Headers429 *GetLabelsV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PostQueryRangeV1Response) GetJSON200() *QueryResponseV1 { +func (r GetLabelsV1Response) GetJSON200() *LabelsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetLabelsV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetLabelsV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostQueryRangeV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetLabelsV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r PostQueryRangeV1Response) GetJSON422() *UnprocessableEntityPrometheus { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostQueryRangeV1Response) GetJSON429() *TooManyRequests { +func (r GetLabelsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostQueryRangeV1Response) GetBody() []byte { +func (r GetLabelsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostQueryRangeV1Response) Status() string { +func (r GetLabelsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72655,7 +76270,7 @@ func (r PostQueryRangeV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostQueryRangeV1Response) StatusCode() int { +func (r GetLabelsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72663,44 +76278,44 @@ func (r PostQueryRangeV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostQueryRangeV1Response) ContentType() string { +func (r GetLabelsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetRulesV1Response200Headers the declared response headers of an HTTP 200 response for GetRulesV1 -type GetRulesV1Response200Headers struct { +// PostLabelsV1Response200Headers the declared response headers of an HTTP 200 response for PostLabelsV1 +type PostLabelsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response400Headers the declared response headers of an HTTP 400 response for GetRulesV1 -type GetRulesV1Response400Headers struct { +// PostLabelsV1Response400Headers the declared response headers of an HTTP 400 response for PostLabelsV1 +type PostLabelsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response401Headers the declared response headers of an HTTP 401 response for GetRulesV1 -type GetRulesV1Response401Headers struct { +// PostLabelsV1Response401Headers the declared response headers of an HTTP 401 response for PostLabelsV1 +type PostLabelsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response404Headers the declared response headers of an HTTP 404 response for GetRulesV1 -type GetRulesV1Response404Headers struct { +// PostLabelsV1Response404Headers the declared response headers of an HTTP 404 response for PostLabelsV1 +type PostLabelsV1Response404Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response429Headers the declared response headers of an HTTP 429 response for GetRulesV1 -type GetRulesV1Response429Headers struct { +// PostLabelsV1Response429Headers the declared response headers of an HTTP 429 response for PostLabelsV1 +type PostLabelsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetRulesV1Response struct { +type PostLabelsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RulesResponseV1 + JSON200 *LabelsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response @@ -72712,54 +76327,54 @@ type GetRulesV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetRulesV1Response200Headers + Headers200 *PostLabelsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetRulesV1Response400Headers + Headers400 *PostLabelsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetRulesV1Response401Headers + Headers401 *PostLabelsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetRulesV1Response404Headers + Headers404 *PostLabelsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetRulesV1Response429Headers + Headers429 *PostLabelsV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetRulesV1Response) GetJSON200() *RulesResponseV1 { +func (r PostLabelsV1Response) GetJSON200() *LabelsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetRulesV1Response) GetJSON400() *BadRequestPrometheus { +func (r PostLabelsV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetRulesV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r PostLabelsV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetRulesV1Response) GetJSON404() *NotFoundPrometheus { +func (r PostLabelsV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetRulesV1Response) GetJSON429() *TooManyRequests { +func (r PostLabelsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetRulesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r PostLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetRulesV1Response) GetBody() []byte { +func (r PostLabelsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetRulesV1Response) Status() string { +func (r PostLabelsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72767,7 +76382,7 @@ func (r GetRulesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetRulesV1Response) StatusCode() int { +func (r PostLabelsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72775,117 +76390,103 @@ func (r GetRulesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRulesV1Response) ContentType() string { +func (r PostLabelsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSeriesV1Response200Headers the declared response headers of an HTTP 200 response for GetSeriesV1 -type GetSeriesV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetSeriesV1Response400Headers the declared response headers of an HTTP 400 response for GetSeriesV1 -type GetSeriesV1Response400Headers struct { +// GetMetadataV1Response200Headers the declared response headers of an HTTP 200 response for GetMetadataV1 +type GetMetadataV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response401Headers the declared response headers of an HTTP 401 response for GetSeriesV1 -type GetSeriesV1Response401Headers struct { +// GetMetadataV1Response400Headers the declared response headers of an HTTP 400 response for GetMetadataV1 +type GetMetadataV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response404Headers the declared response headers of an HTTP 404 response for GetSeriesV1 -type GetSeriesV1Response404Headers struct { +// GetMetadataV1Response401Headers the declared response headers of an HTTP 401 response for GetMetadataV1 +type GetMetadataV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response422Headers the declared response headers of an HTTP 422 response for GetSeriesV1 -type GetSeriesV1Response422Headers struct { +// GetMetadataV1Response404Headers the declared response headers of an HTTP 404 response for GetMetadataV1 +type GetMetadataV1Response404Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response429Headers the declared response headers of an HTTP 429 response for GetSeriesV1 -type GetSeriesV1Response429Headers struct { +// GetMetadataV1Response429Headers the declared response headers of an HTTP 429 response for GetMetadataV1 +type GetMetadataV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetSeriesV1Response struct { +type GetMetadataV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SeriesResponseV1 + JSON200 *MetadataResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFoundPrometheus - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSeriesV1Response200Headers + Headers200 *GetMetadataV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSeriesV1Response400Headers + Headers400 *GetMetadataV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSeriesV1Response401Headers + Headers401 *GetMetadataV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetSeriesV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *GetSeriesV1Response422Headers + Headers404 *GetMetadataV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSeriesV1Response429Headers + Headers429 *GetMetadataV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSeriesV1Response) GetJSON200() *SeriesResponseV1 { +func (r GetMetadataV1Response) GetJSON200() *MetadataResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSeriesV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetMetadataV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSeriesV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetMetadataV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetSeriesV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetMetadataV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r GetSeriesV1Response) GetJSON422() *UnprocessableEntityPrometheus { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSeriesV1Response) GetJSON429() *TooManyRequests { +func (r GetMetadataV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetMetadataV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSeriesV1Response) GetBody() []byte { +func (r GetMetadataV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSeriesV1Response) Status() string { +func (r GetMetadataV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72893,7 +76494,7 @@ func (r GetSeriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSeriesV1Response) StatusCode() int { +func (r GetMetadataV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72901,117 +76502,39 @@ func (r GetSeriesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSeriesV1Response) ContentType() string { +func (r GetMetadataV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostSeriesV1Response200Headers the declared response headers of an HTTP 200 response for PostSeriesV1 -type PostSeriesV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// PostSeriesV1Response400Headers the declared response headers of an HTTP 400 response for PostSeriesV1 -type PostSeriesV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// PostSeriesV1Response401Headers the declared response headers of an HTTP 401 response for PostSeriesV1 -type PostSeriesV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// PostSeriesV1Response404Headers the declared response headers of an HTTP 404 response for PostSeriesV1 -type PostSeriesV1Response404Headers struct { - XRateLimitLimit *int32 -} - -// PostSeriesV1Response422Headers the declared response headers of an HTTP 422 response for PostSeriesV1 -type PostSeriesV1Response422Headers struct { - XRateLimitLimit *int32 -} - -// PostSeriesV1Response429Headers the declared response headers of an HTTP 429 response for PostSeriesV1 -type PostSeriesV1Response429Headers struct { - RetryAfter *int32 +// GetNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetNotificationsV1 +type GetNotificationsV1Response410Headers struct { XRateLimitLimit *int32 } -type PostSeriesV1Response struct { +type GetNotificationsV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SeriesResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundPrometheus - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntityPrometheus - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests - // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PostSeriesV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostSeriesV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostSeriesV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *PostSeriesV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *PostSeriesV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostSeriesV1Response429Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PostSeriesV1Response) GetJSON200() *SeriesResponseV1 { - return r.JSON200 -} - -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostSeriesV1Response) GetJSON400() *BadRequestPrometheus { - return r.JSON400 -} - -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostSeriesV1Response) GetJSON401() *UnauthorizedPrometheus { - return r.JSON401 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostSeriesV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r PostSeriesV1Response) GetJSON422() *UnprocessableEntityPrometheus { - return r.JSON422 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostSeriesV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetNotificationsV1Response410Headers } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { - return r.JSON500 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetNotificationsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r PostSeriesV1Response) GetBody() []byte { +func (r GetNotificationsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostSeriesV1Response) Status() string { +func (r GetNotificationsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73019,7 +76542,7 @@ func (r PostSeriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostSeriesV1Response) StatusCode() int { +func (r GetNotificationsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73027,39 +76550,39 @@ func (r PostSeriesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostSeriesV1Response) ContentType() string { +func (r GetNotificationsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetStatusBuildInfoV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusBuildInfoV1 -type GetStatusBuildInfoV1Response410Headers struct { +// GetLiveNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetLiveNotificationsV1 +type GetLiveNotificationsV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusBuildInfoV1Response struct { +type GetLiveNotificationsV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusBuildInfoV1Response410Headers + Headers410 *GetLiveNotificationsV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusBuildInfoV1Response) GetJSON410() *GonePrometheus { +func (r GetLiveNotificationsV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusBuildInfoV1Response) GetBody() []byte { +func (r GetLiveNotificationsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusBuildInfoV1Response) Status() string { +func (r GetLiveNotificationsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73067,7 +76590,7 @@ func (r GetStatusBuildInfoV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusBuildInfoV1Response) StatusCode() int { +func (r GetLiveNotificationsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73075,39 +76598,39 @@ func (r GetStatusBuildInfoV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusBuildInfoV1Response) ContentType() string { +func (r GetLiveNotificationsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetStatusConfigV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusConfigV1 -type GetStatusConfigV1Response410Headers struct { +// GetParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetParseQueryV1 +type GetParseQueryV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusConfigV1Response struct { +type GetParseQueryV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusConfigV1Response410Headers + Headers410 *GetParseQueryV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusConfigV1Response) GetJSON410() *GonePrometheus { +func (r GetParseQueryV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusConfigV1Response) GetBody() []byte { +func (r GetParseQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusConfigV1Response) Status() string { +func (r GetParseQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73115,7 +76638,7 @@ func (r GetStatusConfigV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusConfigV1Response) StatusCode() int { +func (r GetParseQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73123,39 +76646,39 @@ func (r GetStatusConfigV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusConfigV1Response) ContentType() string { +func (r GetParseQueryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetStatusFlagsV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusFlagsV1 -type GetStatusFlagsV1Response410Headers struct { +// PostParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostParseQueryV1 +type PostParseQueryV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusFlagsV1Response struct { +type PostParseQueryV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusFlagsV1Response410Headers + Headers410 *PostParseQueryV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusFlagsV1Response) GetJSON410() *GonePrometheus { +func (r PostParseQueryV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusFlagsV1Response) GetBody() []byte { +func (r PostParseQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusFlagsV1Response) Status() string { +func (r PostParseQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73163,7 +76686,7 @@ func (r GetStatusFlagsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusFlagsV1Response) StatusCode() int { +func (r PostParseQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73171,87 +76694,103 @@ func (r GetStatusFlagsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusFlagsV1Response) ContentType() string { +func (r PostParseQueryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetStatusRuntimeInfoV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusRuntimeInfoV1 -type GetStatusRuntimeInfoV1Response410Headers struct { +// GetQueryV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryV1 +type GetQueryV1Response200Headers struct { XRateLimitLimit *int32 } -type GetStatusRuntimeInfoV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusRuntimeInfoV1Response410Headers +// GetQueryV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryV1 +type GetQueryV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusRuntimeInfoV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetQueryV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryV1 +type GetQueryV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetBody returns the raw response body bytes -func (r GetStatusRuntimeInfoV1Response) GetBody() []byte { - return r.Body +// GetQueryV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryV1 +type GetQueryV1Response404Headers struct { + XRateLimitLimit *int32 } -// Status returns HTTPResponse.Status -func (r GetStatusRuntimeInfoV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// GetQueryV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryV1 +type GetQueryV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusRuntimeInfoV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +type GetQueryV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *QueryResponseV1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestPrometheus + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *UnauthorizedPrometheus + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundPrometheus + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerErrorPrometheus + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetQueryV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetQueryV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetQueryV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetQueryV1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetQueryV1Response429Headers } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusRuntimeInfoV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetQueryV1Response) GetJSON200() *QueryResponseV1 { + return r.JSON200 } -// GetStatusTsdbV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusTsdbV1 -type GetStatusTsdbV1Response410Headers struct { - XRateLimitLimit *int32 +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetQueryV1Response) GetJSON400() *BadRequestPrometheus { + return r.JSON400 } -type GetStatusTsdbV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusTsdbV1Response410Headers +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetQueryV1Response) GetJSON401() *UnauthorizedPrometheus { + return r.JSON401 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusTsdbV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetQueryV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetQueryV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetStatusTsdbV1Response) GetBody() []byte { +func (r GetQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusTsdbV1Response) Status() string { +func (r GetQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73259,7 +76798,7 @@ func (r GetStatusTsdbV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusTsdbV1Response) StatusCode() int { +func (r GetQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73267,39 +76806,103 @@ func (r GetStatusTsdbV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusTsdbV1Response) ContentType() string { +func (r GetQueryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetStatusWalReplayV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusWalReplayV1 -type GetStatusWalReplayV1Response410Headers struct { +// PostQueryV1Response200Headers the declared response headers of an HTTP 200 response for PostQueryV1 +type PostQueryV1Response200Headers struct { XRateLimitLimit *int32 } -type GetStatusWalReplayV1Response struct { +// PostQueryV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryV1 +type PostQueryV1Response400Headers struct { + XRateLimitLimit *int32 +} + +// PostQueryV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryV1 +type PostQueryV1Response401Headers struct { + XRateLimitLimit *int32 +} + +// PostQueryV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryV1 +type PostQueryV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// PostQueryV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryV1 +type PostQueryV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +type PostQueryV1Response struct { Body []byte HTTPResponse *http.Response - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusWalReplayV1Response410Headers + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *QueryResponseV1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestPrometheus + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *UnauthorizedPrometheus + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundPrometheus + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerErrorPrometheus + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *PostQueryV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PostQueryV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *PostQueryV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *PostQueryV1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *PostQueryV1Response429Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusWalReplayV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r PostQueryV1Response) GetJSON200() *QueryResponseV1 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostQueryV1Response) GetJSON400() *BadRequestPrometheus { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r PostQueryV1Response) GetJSON401() *UnauthorizedPrometheus { + return r.JSON401 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r PostQueryV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r PostQueryV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r PostQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetStatusWalReplayV1Response) GetBody() []byte { +func (r PostQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusWalReplayV1Response) Status() string { +func (r PostQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73307,7 +76910,7 @@ func (r GetStatusWalReplayV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusWalReplayV1Response) StatusCode() int { +func (r PostQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73315,39 +76918,39 @@ func (r GetStatusWalReplayV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusWalReplayV1Response) ContentType() string { +func (r PostQueryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTargetsV1Response410Headers the declared response headers of an HTTP 410 response for GetTargetsV1 -type GetTargetsV1Response410Headers struct { +// GetExemplarsV1Response410Headers the declared response headers of an HTTP 410 response for GetExemplarsV1 +type GetExemplarsV1Response410Headers struct { XRateLimitLimit *int32 } -type GetTargetsV1Response struct { +type GetExemplarsV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetTargetsV1Response410Headers + Headers410 *GetExemplarsV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetTargetsV1Response) GetJSON410() *GonePrometheus { +func (r GetExemplarsV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetTargetsV1Response) GetBody() []byte { +func (r GetExemplarsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTargetsV1Response) Status() string { +func (r GetExemplarsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73355,7 +76958,7 @@ func (r GetTargetsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTargetsV1Response) StatusCode() int { +func (r GetExemplarsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73363,39 +76966,39 @@ func (r GetTargetsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTargetsV1Response) ContentType() string { +func (r GetExemplarsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTargetsMetadataV1Response410Headers the declared response headers of an HTTP 410 response for GetTargetsMetadataV1 -type GetTargetsMetadataV1Response410Headers struct { +// PostExemplarsV1Response410Headers the declared response headers of an HTTP 410 response for PostExemplarsV1 +type PostExemplarsV1Response410Headers struct { XRateLimitLimit *int32 } -type GetTargetsMetadataV1Response struct { +type PostExemplarsV1Response struct { Body []byte HTTPResponse *http.Response // JSON410 the response for an HTTP 410 `application/json` response JSON410 *GonePrometheus // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetTargetsMetadataV1Response410Headers + Headers410 *PostExemplarsV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetTargetsMetadataV1Response) GetJSON410() *GonePrometheus { +func (r PostExemplarsV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetTargetsMetadataV1Response) GetBody() []byte { +func (r PostExemplarsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTargetsMetadataV1Response) Status() string { +func (r PostExemplarsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73403,7 +77006,7 @@ func (r GetTargetsMetadataV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTargetsMetadataV1Response) StatusCode() int { +func (r PostExemplarsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73411,96 +77014,117 @@ func (r GetTargetsMetadataV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTargetsMetadataV1Response) ContentType() string { +func (r PostExemplarsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// RemoteWriteV1Response200Headers the declared response headers of an HTTP 200 response for RemoteWriteV1 -type RemoteWriteV1Response200Headers struct { +// GetQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryRangeV1 +type GetQueryRangeV1Response200Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response400Headers the declared response headers of an HTTP 400 response for RemoteWriteV1 -type RemoteWriteV1Response400Headers struct { +// GetQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryRangeV1 +type GetQueryRangeV1Response400Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response401Headers the declared response headers of an HTTP 401 response for RemoteWriteV1 -type RemoteWriteV1Response401Headers struct { +// GetQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryRangeV1 +type GetQueryRangeV1Response401Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response404Headers the declared response headers of an HTTP 404 response for RemoteWriteV1 -type RemoteWriteV1Response404Headers struct { +// GetQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryRangeV1 +type GetQueryRangeV1Response404Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response429Headers the declared response headers of an HTTP 429 response for RemoteWriteV1 -type RemoteWriteV1Response429Headers struct { +// GetQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for GetQueryRangeV1 +type GetQueryRangeV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// GetQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryRangeV1 +type GetQueryRangeV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type RemoteWriteV1Response struct { +type GetQueryRangeV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *QueryResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFoundPrometheus + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *RemoteWriteV1Response200Headers + Headers200 *GetQueryRangeV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *RemoteWriteV1Response400Headers + Headers400 *GetQueryRangeV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *RemoteWriteV1Response401Headers + Headers401 *GetQueryRangeV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *RemoteWriteV1Response404Headers + Headers404 *GetQueryRangeV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *GetQueryRangeV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *RemoteWriteV1Response429Headers + Headers429 *GetQueryRangeV1Response429Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetQueryRangeV1Response) GetJSON200() *QueryResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r RemoteWriteV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r RemoteWriteV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r RemoteWriteV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetQueryRangeV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r GetQueryRangeV1Response) GetJSON422() *UnprocessableEntityPrometheus { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r RemoteWriteV1Response) GetJSON429() *TooManyRequests { +func (r GetQueryRangeV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r RemoteWriteV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r RemoteWriteV1Response) GetBody() []byte { +func (r GetQueryRangeV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r RemoteWriteV1Response) Status() string { +func (r GetQueryRangeV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73508,7 +77132,7 @@ func (r RemoteWriteV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RemoteWriteV1Response) StatusCode() int { +func (r GetQueryRangeV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73516,127 +77140,117 @@ func (r RemoteWriteV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RemoteWriteV1Response) ContentType() string { +func (r GetQueryRangeV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActivityAuditEntriesV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response200Headers struct { +// PostQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for PostQueryRangeV1 +type PostQueryRangeV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response400Headers struct { +// PostQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryRangeV1 +type PostQueryRangeV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response401Headers struct { +// PostQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryRangeV1 +type PostQueryRangeV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response403Headers struct { +// PostQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryRangeV1 +type PostQueryRangeV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response404Headers struct { +// PostQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for PostQueryRangeV1 +type PostQueryRangeV1Response422Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response429Headers struct { +// PostQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryRangeV1 +type PostQueryRangeV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response500Headers the declared response headers of an HTTP 500 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -type GetActivityAuditEntriesV1Response struct { +type PostQueryRangeV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EntriesResponse + JSON200 *QueryResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + JSON404 *NotFoundPrometheus + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActivityAuditEntriesV1Response200Headers + Headers200 *PostQueryRangeV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActivityAuditEntriesV1Response400Headers + Headers400 *PostQueryRangeV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActivityAuditEntriesV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActivityAuditEntriesV1Response403Headers + Headers401 *PostQueryRangeV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActivityAuditEntriesV1Response404Headers + Headers404 *PostQueryRangeV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *PostQueryRangeV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActivityAuditEntriesV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActivityAuditEntriesV1Response500Headers + Headers429 *PostQueryRangeV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON200() *EntriesResponse { +func (r PostQueryRangeV1Response) GetJSON200() *QueryResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON400() *Error { +func (r PostQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON401() *Unauthorized { +func (r PostQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON404() *NotFound { +func (r PostQueryRangeV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r PostQueryRangeV1Response) GetJSON422() *UnprocessableEntityPrometheus { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON429() *TooManyRequests { +func (r PostQueryRangeV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON500() *InternalServerError { +func (r PostQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActivityAuditEntriesV1Response) GetBody() []byte { +func (r PostQueryRangeV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActivityAuditEntriesV1Response) Status() string { +func (r PostQueryRangeV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73644,7 +77258,7 @@ func (r GetActivityAuditEntriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActivityAuditEntriesV1Response) StatusCode() int { +func (r PostQueryRangeV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73652,127 +77266,103 @@ func (r GetActivityAuditEntriesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActivityAuditEntriesV1Response) ContentType() string { +func (r PostQueryRangeV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActivityAuditEntryV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetActivityAuditEntryV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response400Headers struct { +// GetRulesV1Response200Headers the declared response headers of an HTTP 200 response for GetRulesV1 +type GetRulesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response401Headers struct { +// GetRulesV1Response400Headers the declared response headers of an HTTP 400 response for GetRulesV1 +type GetRulesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response403Headers struct { +// GetRulesV1Response401Headers the declared response headers of an HTTP 401 response for GetRulesV1 +type GetRulesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response404Headers struct { +// GetRulesV1Response404Headers the declared response headers of an HTTP 404 response for GetRulesV1 +type GetRulesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response429Headers struct { +// GetRulesV1Response429Headers the declared response headers of an HTTP 429 response for GetRulesV1 +type GetRulesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response500Headers the declared response headers of an HTTP 500 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -type GetActivityAuditEntryV1Response struct { +type GetRulesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EntryResponse + JSON200 *RulesResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + JSON404 *NotFoundPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActivityAuditEntryV1Response200Headers + Headers200 *GetRulesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActivityAuditEntryV1Response400Headers + Headers400 *GetRulesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActivityAuditEntryV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActivityAuditEntryV1Response403Headers + Headers401 *GetRulesV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActivityAuditEntryV1Response404Headers + Headers404 *GetRulesV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActivityAuditEntryV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActivityAuditEntryV1Response500Headers + Headers429 *GetRulesV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON200() *EntryResponse { +func (r GetRulesV1Response) GetJSON200() *RulesResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON400() *Error { +func (r GetRulesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON401() *Unauthorized { +func (r GetRulesV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON404() *NotFound { +func (r GetRulesV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON429() *TooManyRequests { +func (r GetRulesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON500() *InternalServerError { +func (r GetRulesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActivityAuditEntryV1Response) GetBody() []byte { +func (r GetRulesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActivityAuditEntryV1Response) Status() string { +func (r GetRulesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73780,7 +77370,7 @@ func (r GetActivityAuditEntryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActivityAuditEntryV1Response) StatusCode() int { +func (r GetRulesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73788,127 +77378,117 @@ func (r GetActivityAuditEntryV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActivityAuditEntryV1Response) ContentType() string { +func (r GetRulesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActivityAuditEntriesSupportedFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response200Headers struct { +// GetSeriesV1Response200Headers the declared response headers of an HTTP 200 response for GetSeriesV1 +type GetSeriesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response400Headers struct { +// GetSeriesV1Response400Headers the declared response headers of an HTTP 400 response for GetSeriesV1 +type GetSeriesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response401Headers struct { +// GetSeriesV1Response401Headers the declared response headers of an HTTP 401 response for GetSeriesV1 +type GetSeriesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response403Headers struct { +// GetSeriesV1Response404Headers the declared response headers of an HTTP 404 response for GetSeriesV1 +type GetSeriesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response404Headers struct { +// GetSeriesV1Response422Headers the declared response headers of an HTTP 422 response for GetSeriesV1 +type GetSeriesV1Response422Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response429Headers struct { +// GetSeriesV1Response429Headers the declared response headers of an HTTP 429 response for GetSeriesV1 +type GetSeriesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -type GetActivityAuditEntriesSupportedFiltersV1Response struct { +type GetSeriesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AuditSupportedFiltersResponse + JSON200 *SeriesResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + JSON404 *NotFoundPrometheus + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActivityAuditEntriesSupportedFiltersV1Response200Headers + Headers200 *GetSeriesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActivityAuditEntriesSupportedFiltersV1Response400Headers + Headers400 *GetSeriesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActivityAuditEntriesSupportedFiltersV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActivityAuditEntriesSupportedFiltersV1Response403Headers + Headers401 *GetSeriesV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActivityAuditEntriesSupportedFiltersV1Response404Headers + Headers404 *GetSeriesV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *GetSeriesV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActivityAuditEntriesSupportedFiltersV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActivityAuditEntriesSupportedFiltersV1Response500Headers + Headers429 *GetSeriesV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON200() *AuditSupportedFiltersResponse { +func (r GetSeriesV1Response) GetJSON200() *SeriesResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON400() *Error { +func (r GetSeriesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON401() *Unauthorized { +func (r GetSeriesV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON404() *NotFound { +func (r GetSeriesV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r GetSeriesV1Response) GetJSON422() *UnprocessableEntityPrometheus { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON429() *TooManyRequests { +func (r GetSeriesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON500() *InternalServerError { +func (r GetSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetBody() []byte { +func (r GetSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActivityAuditEntriesSupportedFiltersV1Response) Status() string { +func (r GetSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73916,7 +77496,7 @@ func (r GetActivityAuditEntriesSupportedFiltersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActivityAuditEntriesSupportedFiltersV1Response) StatusCode() int { +func (r GetSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73924,99 +77504,117 @@ func (r GetActivityAuditEntriesSupportedFiltersV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActivityAuditEntriesSupportedFiltersV1Response) ContentType() string { +func (r GetSeriesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetCertificatesV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificatesV1 -type GetCertificatesV1Response200Headers struct { +// PostSeriesV1Response200Headers the declared response headers of an HTTP 200 response for PostSeriesV1 +type PostSeriesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificatesV1 -type GetCertificatesV1Response401Headers struct { +// PostSeriesV1Response400Headers the declared response headers of an HTTP 400 response for PostSeriesV1 +type PostSeriesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificatesV1 -type GetCertificatesV1Response403Headers struct { +// PostSeriesV1Response401Headers the declared response headers of an HTTP 401 response for PostSeriesV1 +type PostSeriesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificatesV1 -type GetCertificatesV1Response429Headers struct { - RetryAfter *int32 +// PostSeriesV1Response404Headers the declared response headers of an HTTP 404 response for PostSeriesV1 +type PostSeriesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response500Headers the declared response headers of an HTTP 500 response for GetCertificatesV1 -type GetCertificatesV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// PostSeriesV1Response422Headers the declared response headers of an HTTP 422 response for PostSeriesV1 +type PostSeriesV1Response422Headers struct { + XRateLimitLimit *int32 } -type GetCertificatesV1Response struct { +// PostSeriesV1Response429Headers the declared response headers of an HTTP 429 response for PostSeriesV1 +type PostSeriesV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +type PostSeriesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *CertificatesResponse + JSON200 *SeriesResponseV1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON401 *UnauthorizedPrometheus + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundPrometheus + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetCertificatesV1Response200Headers + Headers200 *PostSeriesV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PostSeriesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetCertificatesV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetCertificatesV1Response403Headers + Headers401 *PostSeriesV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *PostSeriesV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *PostSeriesV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetCertificatesV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCertificatesV1Response500Headers + Headers429 *PostSeriesV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCertificatesV1Response) GetJSON200() *CertificatesResponse { +func (r PostSeriesV1Response) GetJSON200() *SeriesResponseV1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostSeriesV1Response) GetJSON400() *BadRequestPrometheus { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCertificatesV1Response) GetJSON401() *Unauthorized { +func (r PostSeriesV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetCertificatesV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r PostSeriesV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r PostSeriesV1Response) GetJSON422() *UnprocessableEntityPrometheus { + return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCertificatesV1Response) GetJSON429() *TooManyRequests { +func (r PostSeriesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCertificatesV1Response) GetJSON500() *InternalServerError { +func (r PostSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetCertificatesV1Response) GetBody() []byte { +func (r PostSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCertificatesV1Response) Status() string { +func (r PostSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74024,7 +77622,7 @@ func (r GetCertificatesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCertificatesV1Response) StatusCode() int { +func (r PostSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74032,129 +77630,183 @@ func (r GetCertificatesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetCertificatesV1Response) ContentType() string { +func (r PostSeriesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UploadCertificateV1Response201Headers the declared response headers of an HTTP 201 response for UploadCertificateV1 -type UploadCertificateV1Response201Headers struct { +// GetStatusBuildInfoV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusBuildInfoV1 +type GetStatusBuildInfoV1Response410Headers struct { XRateLimitLimit *int32 } -// UploadCertificateV1Response400Headers the declared response headers of an HTTP 400 response for UploadCertificateV1 -type UploadCertificateV1Response400Headers struct { - XRateLimitLimit *int32 +type GetStatusBuildInfoV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetStatusBuildInfoV1Response410Headers } -// UploadCertificateV1Response401Headers the declared response headers of an HTTP 401 response for UploadCertificateV1 -type UploadCertificateV1Response401Headers struct { - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusBuildInfoV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// UploadCertificateV1Response403Headers the declared response headers of an HTTP 403 response for UploadCertificateV1 -type UploadCertificateV1Response403Headers struct { - XRateLimitLimit *int32 +// GetBody returns the raw response body bytes +func (r GetStatusBuildInfoV1Response) GetBody() []byte { + return r.Body } -// UploadCertificateV1Response429Headers the declared response headers of an HTTP 429 response for UploadCertificateV1 -type UploadCertificateV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// Status returns HTTPResponse.Status +func (r GetStatusBuildInfoV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// UploadCertificateV1Response500Headers the declared response headers of an HTTP 500 response for UploadCertificateV1 -type UploadCertificateV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusBuildInfoV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -type UploadCertificateV1Response struct { +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetStatusBuildInfoV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// GetStatusConfigV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusConfigV1 +type GetStatusConfigV1Response410Headers struct { + XRateLimitLimit *int32 +} + +type GetStatusConfigV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *Certificate - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *struct { - Details *[]interface{} `json:"details,omitempty"` + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetStatusConfigV1Response410Headers +} - // Message Example: could not parse the provided certificate - Message UploadCertificateV1400JSONResponseBodyMessage `json:"message"` +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusConfigV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 +} - // Type Example: parsing_error - Type UploadCertificateV1400JSONResponseBodyType `json:"type"` - } - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests - // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *UploadCertificateV1Response201Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UploadCertificateV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UploadCertificateV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UploadCertificateV1Response403Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UploadCertificateV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UploadCertificateV1Response500Headers +// GetBody returns the raw response body bytes +func (r GetStatusConfigV1Response) GetBody() []byte { + return r.Body } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r UploadCertificateV1Response) GetJSON201() *Certificate { - return r.JSON201 +// Status returns HTTPResponse.Status +func (r GetStatusConfigV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UploadCertificateV1Response) GetJSON400() *struct { - Details *[]interface{} `json:"details,omitempty"` +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusConfigV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} - // Message Example: could not parse the provided certificate - Message UploadCertificateV1400JSONResponseBodyMessage `json:"message"` +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetStatusConfigV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} - // Type Example: parsing_error - Type UploadCertificateV1400JSONResponseBodyType `json:"type"` -} { - return r.JSON400 +// GetStatusFlagsV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusFlagsV1 +type GetStatusFlagsV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UploadCertificateV1Response) GetJSON401() *Unauthorized { - return r.JSON401 +type GetStatusFlagsV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetStatusFlagsV1Response410Headers } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UploadCertificateV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusFlagsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UploadCertificateV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetBody returns the raw response body bytes +func (r GetStatusFlagsV1Response) GetBody() []byte { + return r.Body } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UploadCertificateV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +// Status returns HTTPResponse.Status +func (r GetStatusFlagsV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusFlagsV1Response) 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 GetStatusFlagsV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// GetStatusRuntimeInfoV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusRuntimeInfoV1 +type GetStatusRuntimeInfoV1Response410Headers struct { + XRateLimitLimit *int32 +} + +type GetStatusRuntimeInfoV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetStatusRuntimeInfoV1Response410Headers +} + +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusRuntimeInfoV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r UploadCertificateV1Response) GetBody() []byte { +func (r GetStatusRuntimeInfoV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UploadCertificateV1Response) Status() string { +func (r GetStatusRuntimeInfoV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74162,7 +77814,7 @@ func (r UploadCertificateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UploadCertificateV1Response) StatusCode() int { +func (r GetStatusRuntimeInfoV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74170,134 +77822,135 @@ func (r UploadCertificateV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UploadCertificateV1Response) ContentType() string { +func (r GetStatusRuntimeInfoV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteCertificateV1Response204Headers the declared response headers of an HTTP 204 response for DeleteCertificateV1 -type DeleteCertificateV1Response204Headers struct { +// GetStatusTsdbV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusTsdbV1 +type GetStatusTsdbV1Response410Headers struct { XRateLimitLimit *int32 } -// DeleteCertificateV1Response400Headers the declared response headers of an HTTP 400 response for DeleteCertificateV1 -type DeleteCertificateV1Response400Headers struct { - XRateLimitLimit *int32 +type GetStatusTsdbV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetStatusTsdbV1Response410Headers } -// DeleteCertificateV1Response401Headers the declared response headers of an HTTP 401 response for DeleteCertificateV1 -type DeleteCertificateV1Response401Headers struct { - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusTsdbV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// DeleteCertificateV1Response403Headers the declared response headers of an HTTP 403 response for DeleteCertificateV1 -type DeleteCertificateV1Response403Headers struct { - XRateLimitLimit *int32 +// GetBody returns the raw response body bytes +func (r GetStatusTsdbV1Response) GetBody() []byte { + return r.Body } -// DeleteCertificateV1Response404Headers the declared response headers of an HTTP 404 response for DeleteCertificateV1 -type DeleteCertificateV1Response404Headers struct { - XRateLimitLimit *int32 +// Status returns HTTPResponse.Status +func (r GetStatusTsdbV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// DeleteCertificateV1Response409Headers the declared response headers of an HTTP 409 response for DeleteCertificateV1 -type DeleteCertificateV1Response409Headers struct { - XRateLimitLimit *int32 +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusTsdbV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// DeleteCertificateV1Response429Headers the declared response headers of an HTTP 429 response for DeleteCertificateV1 -type DeleteCertificateV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetStatusTsdbV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" } -// DeleteCertificateV1Response500Headers the declared response headers of an HTTP 500 response for DeleteCertificateV1 -type DeleteCertificateV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetStatusWalReplayV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusWalReplayV1 +type GetStatusWalReplayV1Response410Headers struct { + XRateLimitLimit *int32 } -type DeleteCertificateV1Response struct { +type GetStatusWalReplayV1Response struct { Body []byte HTTPResponse *http.Response - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Error - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests - // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteCertificateV1Response204Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteCertificateV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteCertificateV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteCertificateV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteCertificateV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *DeleteCertificateV1Response409Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteCertificateV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteCertificateV1Response500Headers + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetStatusWalReplayV1Response410Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteCertificateV1Response) GetJSON400() *BadRequest { - return r.JSON400 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusWalReplayV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteCertificateV1Response) GetJSON401() *Unauthorized { - return r.JSON401 +// GetBody returns the raw response body bytes +func (r GetStatusWalReplayV1Response) GetBody() []byte { + return r.Body } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteCertificateV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// Status returns HTTPResponse.Status +func (r GetStatusWalReplayV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteCertificateV1Response) GetJSON404() *NotFound { - return r.JSON404 +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusWalReplayV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r DeleteCertificateV1Response) GetJSON409() *Error { - return r.JSON409 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetStatusWalReplayV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteCertificateV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetTargetsV1Response410Headers the declared response headers of an HTTP 410 response for GetTargetsV1 +type GetTargetsV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteCertificateV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +type GetTargetsV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetTargetsV1Response410Headers +} + +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetTargetsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r DeleteCertificateV1Response) GetBody() []byte { +func (r GetTargetsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteCertificateV1Response) Status() string { +func (r GetTargetsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74305,7 +77958,7 @@ func (r DeleteCertificateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteCertificateV1Response) StatusCode() int { +func (r GetTargetsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74313,127 +77966,144 @@ func (r DeleteCertificateV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteCertificateV1Response) ContentType() string { +func (r GetTargetsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetCertificateV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificateV1 -type GetCertificateV1Response200Headers struct { +// GetTargetsMetadataV1Response410Headers the declared response headers of an HTTP 410 response for GetTargetsMetadataV1 +type GetTargetsMetadataV1Response410Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateV1 -type GetCertificateV1Response400Headers struct { - XRateLimitLimit *int32 +type GetTargetsMetadataV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON410 the response for an HTTP 410 `application/json` response + JSON410 *GonePrometheus + // Headers410 the parsed response headers for an HTTP 410 response + Headers410 *GetTargetsMetadataV1Response410Headers } -// GetCertificateV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateV1 -type GetCertificateV1Response401Headers struct { +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetTargetsMetadataV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 +} + +// GetBody returns the raw response body bytes +func (r GetTargetsMetadataV1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r GetTargetsMetadataV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTargetsMetadataV1Response) 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 GetTargetsMetadataV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// RemoteWriteV1Response200Headers the declared response headers of an HTTP 200 response for RemoteWriteV1 +type RemoteWriteV1Response200Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateV1 -type GetCertificateV1Response403Headers struct { +// RemoteWriteV1Response400Headers the declared response headers of an HTTP 400 response for RemoteWriteV1 +type RemoteWriteV1Response400Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateV1 -type GetCertificateV1Response404Headers struct { +// RemoteWriteV1Response401Headers the declared response headers of an HTTP 401 response for RemoteWriteV1 +type RemoteWriteV1Response401Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateV1 -type GetCertificateV1Response429Headers struct { - RetryAfter *int32 +// RemoteWriteV1Response404Headers the declared response headers of an HTTP 404 response for RemoteWriteV1 +type RemoteWriteV1Response404Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response500Headers the declared response headers of an HTTP 500 response for GetCertificateV1 -type GetCertificateV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// RemoteWriteV1Response429Headers the declared response headers of an HTTP 429 response for RemoteWriteV1 +type RemoteWriteV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -type GetCertificateV1Response struct { +type RemoteWriteV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *Certificate // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON401 *UnauthorizedPrometheus // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + JSON404 *NotFoundPrometheus // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorPrometheus // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetCertificateV1Response200Headers + Headers200 *RemoteWriteV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetCertificateV1Response400Headers + Headers400 *RemoteWriteV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetCertificateV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetCertificateV1Response403Headers + Headers401 *RemoteWriteV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetCertificateV1Response404Headers + Headers404 *RemoteWriteV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetCertificateV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCertificateV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCertificateV1Response) GetJSON200() *Certificate { - return r.JSON200 + Headers429 *RemoteWriteV1Response429Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetCertificateV1Response) GetJSON400() *Error { +func (r RemoteWriteV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCertificateV1Response) GetJSON401() *Unauthorized { +func (r RemoteWriteV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetCertificateV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetCertificateV1Response) GetJSON404() *NotFound { +func (r RemoteWriteV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCertificateV1Response) GetJSON429() *TooManyRequests { +func (r RemoteWriteV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCertificateV1Response) GetJSON500() *InternalServerError { +func (r RemoteWriteV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetCertificateV1Response) GetBody() []byte { +func (r RemoteWriteV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCertificateV1Response) Status() string { +func (r RemoteWriteV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74441,7 +78111,7 @@ func (r GetCertificateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCertificateV1Response) StatusCode() int { +func (r RemoteWriteV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74449,57 +78119,57 @@ func (r GetCertificateV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetCertificateV1Response) ContentType() string { +func (r RemoteWriteV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetCertificateRegistrationV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response200Headers struct { +// GetActivityAuditEntriesV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response400Headers struct { +// GetActivityAuditEntriesV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response401Headers struct { +// GetActivityAuditEntriesV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response403Headers struct { +// GetActivityAuditEntriesV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response403Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response404Headers struct { +// GetActivityAuditEntriesV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response429Headers struct { +// GetActivityAuditEntriesV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response500Headers the declared response headers of an HTTP 500 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response500Headers struct { +// GetActivityAuditEntriesV1Response500Headers the declared response headers of an HTTP 500 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetCertificateRegistrationV1Response struct { +type GetActivityAuditEntriesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServicesResponse + JSON200 *EntriesResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response @@ -74513,63 +78183,63 @@ type GetCertificateRegistrationV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetCertificateRegistrationV1Response200Headers + Headers200 *GetActivityAuditEntriesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetCertificateRegistrationV1Response400Headers + Headers400 *GetActivityAuditEntriesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetCertificateRegistrationV1Response401Headers + Headers401 *GetActivityAuditEntriesV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetCertificateRegistrationV1Response403Headers + Headers403 *GetActivityAuditEntriesV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetCertificateRegistrationV1Response404Headers + Headers404 *GetActivityAuditEntriesV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetCertificateRegistrationV1Response429Headers + Headers429 *GetActivityAuditEntriesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCertificateRegistrationV1Response500Headers + Headers500 *GetActivityAuditEntriesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON200() *ServicesResponse { +func (r GetActivityAuditEntriesV1Response) GetJSON200() *EntriesResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON400() *Error { +func (r GetActivityAuditEntriesV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON401() *Unauthorized { +func (r GetActivityAuditEntriesV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON403() *Forbidden { +func (r GetActivityAuditEntriesV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON404() *NotFound { +func (r GetActivityAuditEntriesV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON429() *TooManyRequests { +func (r GetActivityAuditEntriesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON500() *InternalServerError { +func (r GetActivityAuditEntriesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetCertificateRegistrationV1Response) GetBody() []byte { +func (r GetActivityAuditEntriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCertificateRegistrationV1Response) Status() string { +func (r GetActivityAuditEntriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74577,7 +78247,7 @@ func (r GetCertificateRegistrationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCertificateRegistrationV1Response) StatusCode() int { +func (r GetActivityAuditEntriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74585,92 +78255,127 @@ func (r GetCertificateRegistrationV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetCertificateRegistrationV1Response) ContentType() string { +func (r GetActivityAuditEntriesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateCSRV1Response200Headers the declared response headers of an HTTP 200 response for CreateCSRV1 -type CreateCSRV1Response200Headers struct { +// GetActivityAuditEntryV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateCSRV1Response401Headers the declared response headers of an HTTP 401 response for CreateCSRV1 -type CreateCSRV1Response401Headers struct { +// GetActivityAuditEntryV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateCSRV1Response403Headers the declared response headers of an HTTP 403 response for CreateCSRV1 -type CreateCSRV1Response403Headers struct { +// GetActivityAuditEntryV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateCSRV1Response429Headers the declared response headers of an HTTP 429 response for CreateCSRV1 -type CreateCSRV1Response429Headers struct { - RetryAfter *int32 +// GetActivityAuditEntryV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateCSRV1Response500Headers the declared response headers of an HTTP 500 response for CreateCSRV1 -type CreateCSRV1Response500Headers struct { +// GetActivityAuditEntryV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetActivityAuditEntryV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +// GetActivityAuditEntryV1Response500Headers the declared response headers of an HTTP 500 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateCSRV1Response struct { +type GetActivityAuditEntryV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *EntryResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *CreateCSRV1Response200Headers + Headers200 *GetActivityAuditEntryV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetActivityAuditEntryV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateCSRV1Response401Headers + Headers401 *GetActivityAuditEntryV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateCSRV1Response403Headers + Headers403 *GetActivityAuditEntryV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetActivityAuditEntryV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateCSRV1Response429Headers + Headers429 *GetActivityAuditEntryV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateCSRV1Response500Headers + Headers500 *GetActivityAuditEntryV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetActivityAuditEntryV1Response) GetJSON200() *EntryResponse { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetActivityAuditEntryV1Response) GetJSON400() *Error { + return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateCSRV1Response) GetJSON401() *Unauthorized { +func (r GetActivityAuditEntryV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateCSRV1Response) GetJSON403() *Forbidden { +func (r GetActivityAuditEntryV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetActivityAuditEntryV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateCSRV1Response) GetJSON429() *TooManyRequests { +func (r GetActivityAuditEntryV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateCSRV1Response) GetJSON500() *InternalServerError { +func (r GetActivityAuditEntryV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateCSRV1Response) GetBody() []byte { +func (r GetActivityAuditEntryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateCSRV1Response) Status() string { +func (r GetActivityAuditEntryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74678,7 +78383,7 @@ func (r CreateCSRV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateCSRV1Response) StatusCode() int { +func (r GetActivityAuditEntryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74686,85 +78391,127 @@ func (r CreateCSRV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateCSRV1Response) ContentType() string { +func (r GetActivityAuditEntryV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListEFOChannelsByIntegrationV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOChannelsByIntegrationV1 -type ListEFOChannelsByIntegrationV1Response200Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV1 -type ListEFOChannelsByIntegrationV1Response401Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response400Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV1 -type ListEFOChannelsByIntegrationV1Response429Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response401Headers struct { + XRateLimitLimit *int32 +} + +// GetActivityAuditEntriesSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// GetActivityAuditEntriesSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetActivityAuditEntriesSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV1Response500Headers the declared response headers of an HTTP 500 response for ListEFOChannelsByIntegrationV1 -type ListEFOChannelsByIntegrationV1Response500Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListEFOChannelsByIntegrationV1Response struct { +type GetActivityAuditEntriesSupportedFiltersV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationChannelsResponse + JSON200 *AuditSupportedFiltersResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListEFOChannelsByIntegrationV1Response200Headers + Headers200 *GetActivityAuditEntriesSupportedFiltersV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetActivityAuditEntriesSupportedFiltersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOChannelsByIntegrationV1Response401Headers + Headers401 *GetActivityAuditEntriesSupportedFiltersV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetActivityAuditEntriesSupportedFiltersV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetActivityAuditEntriesSupportedFiltersV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOChannelsByIntegrationV1Response429Headers + Headers429 *GetActivityAuditEntriesSupportedFiltersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOChannelsByIntegrationV1Response500Headers + Headers500 *GetActivityAuditEntriesSupportedFiltersV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON200() *IntegrationChannelsResponse { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON200() *AuditSupportedFiltersResponse { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON400() *Error { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON401() *Unauthorized { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON429() *TooManyRequests { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON500() *InternalServerError { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOChannelsByIntegrationV1Response) GetBody() []byte { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOChannelsByIntegrationV1Response) Status() string { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74772,7 +78519,7 @@ func (r ListEFOChannelsByIntegrationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOChannelsByIntegrationV1Response) StatusCode() int { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74780,85 +78527,99 @@ func (r ListEFOChannelsByIntegrationV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEFOChannelsByIntegrationV1Response) ContentType() string { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListEFOIntegrationsV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsV1 -type ListEFOIntegrationsV1Response200Headers struct { +// GetCertificatesV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificatesV1 +type GetCertificatesV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV1 -type ListEFOIntegrationsV1Response401Headers struct { +// GetCertificatesV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificatesV1 +type GetCertificatesV1Response401Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV1 -type ListEFOIntegrationsV1Response429Headers struct { +// GetCertificatesV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificatesV1 +type GetCertificatesV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// GetCertificatesV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificatesV1 +type GetCertificatesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListEFOIntegrationsV1Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsV1 -type ListEFOIntegrationsV1Response500Headers struct { +// GetCertificatesV1Response500Headers the declared response headers of an HTTP 500 response for GetCertificatesV1 +type GetCertificatesV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListEFOIntegrationsV1Response struct { +type GetCertificatesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListEfoIntegrationsResponseV1 + JSON200 *CertificatesResponse // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListEFOIntegrationsV1Response200Headers + Headers200 *GetCertificatesV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsV1Response401Headers + Headers401 *GetCertificatesV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetCertificatesV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOIntegrationsV1Response429Headers + Headers429 *GetCertificatesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsV1Response500Headers + Headers500 *GetCertificatesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON200() *ListEfoIntegrationsResponseV1 { +func (r GetCertificatesV1Response) GetJSON200() *CertificatesResponse { return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON401() *Unauthorized { +func (r GetCertificatesV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetCertificatesV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON429() *TooManyRequests { +func (r GetCertificatesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON500() *InternalServerError { +func (r GetCertificatesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOIntegrationsV1Response) GetBody() []byte { +func (r GetCertificatesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsV1Response) Status() string { +func (r GetCertificatesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74866,7 +78627,7 @@ func (r ListEFOIntegrationsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsV1Response) StatusCode() int { +func (r GetCertificatesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74874,127 +78635,129 @@ func (r ListEFOIntegrationsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEFOIntegrationsV1Response) ContentType() string { +func (r GetCertificatesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateEFOIntegrationV1Response201Headers the declared response headers of an HTTP 201 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response201Headers struct { - XRateLimitLimit *int32 -} - -// CreateEFOIntegrationV1Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response400Headers struct { +// UploadCertificateV1Response201Headers the declared response headers of an HTTP 201 response for UploadCertificateV1 +type UploadCertificateV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response401Headers struct { +// UploadCertificateV1Response400Headers the declared response headers of an HTTP 400 response for UploadCertificateV1 +type UploadCertificateV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response403Headers struct { +// UploadCertificateV1Response401Headers the declared response headers of an HTTP 401 response for UploadCertificateV1 +type UploadCertificateV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response409Headers struct { +// UploadCertificateV1Response403Headers the declared response headers of an HTTP 403 response for UploadCertificateV1 +type UploadCertificateV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response429Headers struct { +// UploadCertificateV1Response429Headers the declared response headers of an HTTP 429 response for UploadCertificateV1 +type UploadCertificateV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response500Headers the declared response headers of an HTTP 500 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response500Headers struct { +// UploadCertificateV1Response500Headers the declared response headers of an HTTP 500 response for UploadCertificateV1 +type UploadCertificateV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateEFOIntegrationV1Response struct { +type UploadCertificateV1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *EfoIntegrationResponseV1 + JSON201 *Certificate // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *struct { + Details *[]interface{} `json:"details,omitempty"` + + // Message Example: could not parse the provided certificate + Message UploadCertificateV1400JSONResponseBodyMessage `json:"message"` + + // Type Example: parsing_error + Type UploadCertificateV1400JSONResponseBodyType `json:"type"` + } // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateEFOIntegrationV1Response201Headers + Headers201 *UploadCertificateV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateEFOIntegrationV1Response400Headers + Headers400 *UploadCertificateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateEFOIntegrationV1Response401Headers + Headers401 *UploadCertificateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateEFOIntegrationV1Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateEFOIntegrationV1Response409Headers + Headers403 *UploadCertificateV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateEFOIntegrationV1Response429Headers + Headers429 *UploadCertificateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateEFOIntegrationV1Response500Headers + Headers500 *UploadCertificateV1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON201() *EfoIntegrationResponseV1 { +func (r UploadCertificateV1Response) GetJSON201() *Certificate { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON400() *BadRequest { +func (r UploadCertificateV1Response) GetJSON400() *struct { + Details *[]interface{} `json:"details,omitempty"` + + // Message Example: could not parse the provided certificate + Message UploadCertificateV1400JSONResponseBodyMessage `json:"message"` + + // Type Example: parsing_error + Type UploadCertificateV1400JSONResponseBodyType `json:"type"` +} { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON401() *Unauthorized { +func (r UploadCertificateV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON403() *Forbidden { +func (r UploadCertificateV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON429() *TooManyRequests { +func (r UploadCertificateV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON500() *InternalServerError { +func (r UploadCertificateV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateEFOIntegrationV1Response) GetBody() []byte { +func (r UploadCertificateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateEFOIntegrationV1Response) Status() string { +func (r UploadCertificateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75002,7 +78765,7 @@ func (r CreateEFOIntegrationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateEFOIntegrationV1Response) StatusCode() int { +func (r UploadCertificateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75010,53 +78773,58 @@ func (r CreateEFOIntegrationV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateEFOIntegrationV1Response) ContentType() string { +func (r UploadCertificateV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteEFOIntegrationByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response204Headers struct { +// DeleteCertificateV1Response204Headers the declared response headers of an HTTP 204 response for DeleteCertificateV1 +type DeleteCertificateV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response400Headers struct { +// DeleteCertificateV1Response400Headers the declared response headers of an HTTP 400 response for DeleteCertificateV1 +type DeleteCertificateV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response401Headers struct { +// DeleteCertificateV1Response401Headers the declared response headers of an HTTP 401 response for DeleteCertificateV1 +type DeleteCertificateV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response403Headers struct { +// DeleteCertificateV1Response403Headers the declared response headers of an HTTP 403 response for DeleteCertificateV1 +type DeleteCertificateV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response404Headers struct { +// DeleteCertificateV1Response404Headers the declared response headers of an HTTP 404 response for DeleteCertificateV1 +type DeleteCertificateV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response429Headers struct { +// DeleteCertificateV1Response409Headers the declared response headers of an HTTP 409 response for DeleteCertificateV1 +type DeleteCertificateV1Response409Headers struct { + XRateLimitLimit *int32 +} + +// DeleteCertificateV1Response429Headers the declared response headers of an HTTP 429 response for DeleteCertificateV1 +type DeleteCertificateV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response500Headers struct { +// DeleteCertificateV1Response500Headers the declared response headers of an HTTP 500 response for DeleteCertificateV1 +type DeleteCertificateV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteEFOIntegrationByIdV1Response struct { +type DeleteCertificateV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -75065,58 +78833,74 @@ type DeleteEFOIntegrationByIdV1Response struct { JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Error // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteEFOIntegrationByIdV1Response204Headers + Headers204 *DeleteCertificateV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteEFOIntegrationByIdV1Response400Headers + Headers400 *DeleteCertificateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteEFOIntegrationByIdV1Response401Headers + Headers401 *DeleteCertificateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteEFOIntegrationByIdV1Response403Headers + Headers403 *DeleteCertificateV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteEFOIntegrationByIdV1Response404Headers + Headers404 *DeleteCertificateV1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *DeleteCertificateV1Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteEFOIntegrationByIdV1Response429Headers + Headers429 *DeleteCertificateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteEFOIntegrationByIdV1Response500Headers + Headers500 *DeleteCertificateV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteCertificateV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteCertificateV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON403() *Forbidden { +func (r DeleteCertificateV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteCertificateV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r DeleteCertificateV1Response) GetJSON409() *Error { + return r.JSON409 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { +func (r DeleteCertificateV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteCertificateV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteEFOIntegrationByIdV1Response) GetBody() []byte { +func (r DeleteCertificateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteEFOIntegrationByIdV1Response) Status() string { +func (r DeleteCertificateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75124,7 +78908,7 @@ func (r DeleteEFOIntegrationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteEFOIntegrationByIdV1Response) StatusCode() int { +func (r DeleteCertificateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75132,106 +78916,127 @@ func (r DeleteEFOIntegrationByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteEFOIntegrationByIdV1Response) ContentType() string { +func (r DeleteCertificateV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetEFOIntegrationByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response200Headers struct { +// GetCertificateV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificateV1 +type GetCertificateV1Response200Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response400Headers struct { +// GetCertificateV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateV1 +type GetCertificateV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response401Headers struct { +// GetCertificateV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateV1 +type GetCertificateV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response404Headers struct { +// GetCertificateV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateV1 +type GetCertificateV1Response403Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response429Headers struct { +// GetCertificateV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateV1 +type GetCertificateV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetCertificateV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateV1 +type GetCertificateV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response500Headers struct { +// GetCertificateV1Response500Headers the declared response headers of an HTTP 500 response for GetCertificateV1 +type GetCertificateV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetEFOIntegrationByIdV1Response struct { +type GetCertificateV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EfoIntegrationResponseV1 + JSON200 *Certificate // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEFOIntegrationByIdV1Response200Headers + Headers200 *GetCertificateV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEFOIntegrationByIdV1Response400Headers + Headers400 *GetCertificateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEFOIntegrationByIdV1Response401Headers + Headers401 *GetCertificateV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetCertificateV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEFOIntegrationByIdV1Response404Headers + Headers404 *GetCertificateV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEFOIntegrationByIdV1Response429Headers + Headers429 *GetCertificateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEFOIntegrationByIdV1Response500Headers + Headers500 *GetCertificateV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { +func (r GetCertificateV1Response) GetJSON200() *Certificate { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { +func (r GetCertificateV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { +func (r GetCertificateV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetCertificateV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetCertificateV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetCertificateV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { +func (r GetCertificateV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEFOIntegrationByIdV1Response) GetBody() []byte { +func (r GetCertificateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEFOIntegrationByIdV1Response) Status() string { +func (r GetCertificateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75239,7 +79044,7 @@ func (r GetEFOIntegrationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEFOIntegrationByIdV1Response) StatusCode() int { +func (r GetCertificateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75247,120 +79052,127 @@ func (r GetEFOIntegrationByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetEFOIntegrationByIdV1Response) ContentType() string { +func (r GetCertificateV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateEFOIntegrationByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response200Headers struct { +// GetCertificateRegistrationV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response400Headers struct { +// GetCertificateRegistrationV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response401Headers struct { +// GetCertificateRegistrationV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response403Headers struct { +// GetCertificateRegistrationV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response404Headers struct { +// GetCertificateRegistrationV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response429Headers struct { +// GetCertificateRegistrationV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response500Headers struct { +// GetCertificateRegistrationV1Response500Headers the declared response headers of an HTTP 500 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateEFOIntegrationByIdV1Response struct { +type GetCertificateRegistrationV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EfoIntegrationResponseV1 + JSON200 *ServicesResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateEFOIntegrationByIdV1Response200Headers + Headers200 *GetCertificateRegistrationV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateEFOIntegrationByIdV1Response400Headers + Headers400 *GetCertificateRegistrationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateEFOIntegrationByIdV1Response401Headers + Headers401 *GetCertificateRegistrationV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateEFOIntegrationByIdV1Response403Headers + Headers403 *GetCertificateRegistrationV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateEFOIntegrationByIdV1Response404Headers + Headers404 *GetCertificateRegistrationV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateEFOIntegrationByIdV1Response429Headers + Headers429 *GetCertificateRegistrationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateEFOIntegrationByIdV1Response500Headers + Headers500 *GetCertificateRegistrationV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { +func (r GetCertificateRegistrationV1Response) GetJSON200() *ServicesResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { +func (r GetCertificateRegistrationV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { +func (r GetCertificateRegistrationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON403() *Forbidden { +func (r GetCertificateRegistrationV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetCertificateRegistrationV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetCertificateRegistrationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { +func (r GetCertificateRegistrationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateEFOIntegrationByIdV1Response) GetBody() []byte { +func (r GetCertificateRegistrationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateEFOIntegrationByIdV1Response) Status() string { +func (r GetCertificateRegistrationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75368,7 +79180,7 @@ func (r UpdateEFOIntegrationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateEFOIntegrationByIdV1Response) StatusCode() int { +func (r GetCertificateRegistrationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75376,85 +79188,92 @@ func (r UpdateEFOIntegrationByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateEFOIntegrationByIdV1Response) ContentType() string { +func (r GetCertificateRegistrationV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListEFOIntegrationsTypesV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsTypesV1 -type ListEFOIntegrationsTypesV1Response200Headers struct { +// CreateCSRV1Response200Headers the declared response headers of an HTTP 200 response for CreateCSRV1 +type CreateCSRV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV1 -type ListEFOIntegrationsTypesV1Response401Headers struct { +// CreateCSRV1Response401Headers the declared response headers of an HTTP 401 response for CreateCSRV1 +type CreateCSRV1Response401Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV1 -type ListEFOIntegrationsTypesV1Response429Headers struct { +// CreateCSRV1Response403Headers the declared response headers of an HTTP 403 response for CreateCSRV1 +type CreateCSRV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// CreateCSRV1Response429Headers the declared response headers of an HTTP 429 response for CreateCSRV1 +type CreateCSRV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV1Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsTypesV1 -type ListEFOIntegrationsTypesV1Response500Headers struct { +// CreateCSRV1Response500Headers the declared response headers of an HTTP 500 response for CreateCSRV1 +type CreateCSRV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListEFOIntegrationsTypesV1Response struct { +type CreateCSRV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationTypesResponse // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListEFOIntegrationsTypesV1Response200Headers + Headers200 *CreateCSRV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsTypesV1Response401Headers + Headers401 *CreateCSRV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *CreateCSRV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOIntegrationsTypesV1Response429Headers + Headers429 *CreateCSRV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsTypesV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON200() *IntegrationTypesResponse { - return r.JSON200 + Headers500 *CreateCSRV1Response500Headers } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON401() *Unauthorized { +func (r CreateCSRV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateCSRV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON429() *TooManyRequests { +func (r CreateCSRV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON500() *InternalServerError { +func (r CreateCSRV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOIntegrationsTypesV1Response) GetBody() []byte { +func (r CreateCSRV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsTypesV1Response) Status() string { +func (r CreateCSRV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75462,7 +79281,7 @@ func (r ListEFOIntegrationsTypesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsTypesV1Response) StatusCode() int { +func (r CreateCSRV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75470,38 +79289,38 @@ func (r ListEFOIntegrationsTypesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEFOIntegrationsTypesV1Response) ContentType() string { +func (r CreateCSRV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListEFOChannelsByIntegrationV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOChannelsByIntegrationV2 -type ListEFOChannelsByIntegrationV2Response200Headers struct { +// ListEFOChannelsByIntegrationV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV2 -type ListEFOChannelsByIntegrationV2Response401Headers struct { +// ListEFOChannelsByIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response401Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV2 -type ListEFOChannelsByIntegrationV2Response429Headers struct { +// ListEFOChannelsByIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOChannelsByIntegrationV2 -type ListEFOChannelsByIntegrationV2Response500Headers struct { +// ListEFOChannelsByIntegrationV1Response500Headers the declared response headers of an HTTP 500 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListEFOChannelsByIntegrationV2Response struct { +type ListEFOChannelsByIntegrationV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response @@ -75513,42 +79332,42 @@ type ListEFOChannelsByIntegrationV2Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListEFOChannelsByIntegrationV2Response200Headers + Headers200 *ListEFOChannelsByIntegrationV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOChannelsByIntegrationV2Response401Headers + Headers401 *ListEFOChannelsByIntegrationV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOChannelsByIntegrationV2Response429Headers + Headers429 *ListEFOChannelsByIntegrationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOChannelsByIntegrationV2Response500Headers + Headers500 *ListEFOChannelsByIntegrationV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON200() *IntegrationChannelsResponse { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON200() *IntegrationChannelsResponse { return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON401() *Unauthorized { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON429() *TooManyRequests { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON500() *InternalServerError { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOChannelsByIntegrationV2Response) GetBody() []byte { +func (r ListEFOChannelsByIntegrationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOChannelsByIntegrationV2Response) Status() string { +func (r ListEFOChannelsByIntegrationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75556,7 +79375,7 @@ func (r ListEFOChannelsByIntegrationV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOChannelsByIntegrationV2Response) StatusCode() int { +func (r ListEFOChannelsByIntegrationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75564,42 +79383,42 @@ func (r ListEFOChannelsByIntegrationV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEFOChannelsByIntegrationV2Response) ContentType() string { +func (r ListEFOChannelsByIntegrationV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListEFOIntegrationsV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsV2 -type ListEFOIntegrationsV2Response200Headers struct { +// ListEFOIntegrationsV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV2 -type ListEFOIntegrationsV2Response401Headers struct { +// ListEFOIntegrationsV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response401Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV2 -type ListEFOIntegrationsV2Response429Headers struct { +// ListEFOIntegrationsV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListEFOIntegrationsV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsV2 -type ListEFOIntegrationsV2Response500Headers struct { +// ListEFOIntegrationsV1Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListEFOIntegrationsV2Response struct { +type ListEFOIntegrationsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListIntegrationsResponse + JSON200 *ListEfoIntegrationsResponseV1 // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON429 the response for an HTTP 429 `application/json` response @@ -75607,42 +79426,42 @@ type ListEFOIntegrationsV2Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListEFOIntegrationsV2Response200Headers + Headers200 *ListEFOIntegrationsV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsV2Response401Headers + Headers401 *ListEFOIntegrationsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOIntegrationsV2Response429Headers + Headers429 *ListEFOIntegrationsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsV2Response500Headers + Headers500 *ListEFOIntegrationsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsV2Response) GetJSON200() *ListIntegrationsResponse { +func (r ListEFOIntegrationsV1Response) GetJSON200() *ListEfoIntegrationsResponseV1 { return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOIntegrationsV2Response) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOIntegrationsV2Response) GetJSON429() *TooManyRequests { +func (r ListEFOIntegrationsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsV2Response) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOIntegrationsV2Response) GetBody() []byte { +func (r ListEFOIntegrationsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsV2Response) Status() string { +func (r ListEFOIntegrationsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75650,7 +79469,7 @@ func (r ListEFOIntegrationsV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsV2Response) StatusCode() int { +func (r ListEFOIntegrationsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75658,57 +79477,57 @@ func (r ListEFOIntegrationsV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEFOIntegrationsV2Response) ContentType() string { +func (r ListEFOIntegrationsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateEFOIntegrationV2Response201Headers the declared response headers of an HTTP 201 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response201Headers struct { +// CreateEFOIntegrationV1Response201Headers the declared response headers of an HTTP 201 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response400Headers struct { +// CreateEFOIntegrationV1Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response401Headers struct { +// CreateEFOIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response403Headers struct { +// CreateEFOIntegrationV1Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response409Headers struct { +// CreateEFOIntegrationV1Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response409Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response429Headers struct { +// CreateEFOIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response500Headers the declared response headers of an HTTP 500 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response500Headers struct { +// CreateEFOIntegrationV1Response500Headers the declared response headers of an HTTP 500 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateEFOIntegrationV2Response struct { +type CreateEFOIntegrationV1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *IntegrationResponse + JSON201 *EfoIntegrationResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -75722,63 +79541,63 @@ type CreateEFOIntegrationV2Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateEFOIntegrationV2Response201Headers + Headers201 *CreateEFOIntegrationV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateEFOIntegrationV2Response400Headers + Headers400 *CreateEFOIntegrationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateEFOIntegrationV2Response401Headers + Headers401 *CreateEFOIntegrationV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateEFOIntegrationV2Response403Headers + Headers403 *CreateEFOIntegrationV1Response403Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateEFOIntegrationV2Response409Headers + Headers409 *CreateEFOIntegrationV1Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateEFOIntegrationV2Response429Headers + Headers429 *CreateEFOIntegrationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateEFOIntegrationV2Response500Headers + Headers500 *CreateEFOIntegrationV1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON201() *IntegrationResponse { +func (r CreateEFOIntegrationV1Response) GetJSON201() *EfoIntegrationResponseV1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON400() *BadRequest { +func (r CreateEFOIntegrationV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON401() *Unauthorized { +func (r CreateEFOIntegrationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON403() *Forbidden { +func (r CreateEFOIntegrationV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON409() *Conflict { +func (r CreateEFOIntegrationV1Response) GetJSON409() *Conflict { return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON429() *TooManyRequests { +func (r CreateEFOIntegrationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON500() *InternalServerError { +func (r CreateEFOIntegrationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateEFOIntegrationV2Response) GetBody() []byte { +func (r CreateEFOIntegrationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateEFOIntegrationV2Response) Status() string { +func (r CreateEFOIntegrationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75786,7 +79605,7 @@ func (r CreateEFOIntegrationV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateEFOIntegrationV2Response) StatusCode() int { +func (r CreateEFOIntegrationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75794,53 +79613,53 @@ func (r CreateEFOIntegrationV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateEFOIntegrationV2Response) ContentType() string { +func (r CreateEFOIntegrationV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteEFOIntegrationByIdV2Response204Headers the declared response headers of an HTTP 204 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response204Headers struct { +// DeleteEFOIntegrationByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response400Headers struct { +// DeleteEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response401Headers struct { +// DeleteEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response403Headers struct { +// DeleteEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response404Headers struct { +// DeleteEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response429Headers struct { +// DeleteEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response500Headers struct { +// DeleteEFOIntegrationByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteEFOIntegrationByIdV2Response struct { +type DeleteEFOIntegrationByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -75849,65 +79668,58 @@ type DeleteEFOIntegrationByIdV2Response struct { JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteEFOIntegrationByIdV2Response204Headers + Headers204 *DeleteEFOIntegrationByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteEFOIntegrationByIdV2Response400Headers + Headers400 *DeleteEFOIntegrationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteEFOIntegrationByIdV2Response401Headers + Headers401 *DeleteEFOIntegrationByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteEFOIntegrationByIdV2Response403Headers + Headers403 *DeleteEFOIntegrationByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteEFOIntegrationByIdV2Response404Headers + Headers404 *DeleteEFOIntegrationByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteEFOIntegrationByIdV2Response429Headers + Headers429 *DeleteEFOIntegrationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteEFOIntegrationByIdV2Response500Headers + Headers500 *DeleteEFOIntegrationByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON403() *Forbidden { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteEFOIntegrationByIdV2Response) GetBody() []byte { +func (r DeleteEFOIntegrationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteEFOIntegrationByIdV2Response) Status() string { +func (r DeleteEFOIntegrationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75915,7 +79727,7 @@ func (r DeleteEFOIntegrationByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteEFOIntegrationByIdV2Response) StatusCode() int { +func (r DeleteEFOIntegrationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75923,113 +79735,106 @@ func (r DeleteEFOIntegrationByIdV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteEFOIntegrationByIdV2Response) ContentType() string { +func (r DeleteEFOIntegrationByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetEFOIntegrationByIdV2Response200Headers the declared response headers of an HTTP 200 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response200Headers struct { +// GetEFOIntegrationByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response400Headers struct { +// GetEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response401Headers struct { +// GetEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response404Headers struct { +// GetEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response429Headers struct { +// GetEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response500Headers struct { +// GetEFOIntegrationByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetEFOIntegrationByIdV2Response struct { +type GetEFOIntegrationByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationResponse + JSON200 *EfoIntegrationResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEFOIntegrationByIdV2Response200Headers + Headers200 *GetEFOIntegrationByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEFOIntegrationByIdV2Response400Headers + Headers400 *GetEFOIntegrationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEFOIntegrationByIdV2Response401Headers + Headers401 *GetEFOIntegrationByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEFOIntegrationByIdV2Response404Headers + Headers404 *GetEFOIntegrationByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEFOIntegrationByIdV2Response429Headers + Headers429 *GetEFOIntegrationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEFOIntegrationByIdV2Response500Headers + Headers500 *GetEFOIntegrationByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { +func (r GetEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { +func (r GetEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { +func (r GetEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { +func (r GetEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { +func (r GetEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEFOIntegrationByIdV2Response) GetBody() []byte { +func (r GetEFOIntegrationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEFOIntegrationByIdV2Response) Status() string { +func (r GetEFOIntegrationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76037,7 +79842,7 @@ func (r GetEFOIntegrationByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEFOIntegrationByIdV2Response) StatusCode() int { +func (r GetEFOIntegrationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76045,127 +79850,120 @@ func (r GetEFOIntegrationByIdV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetEFOIntegrationByIdV2Response) ContentType() string { +func (r GetEFOIntegrationByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateEFOIntegrationByIdV2Response200Headers the declared response headers of an HTTP 200 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response200Headers struct { +// UpdateEFOIntegrationByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response400Headers struct { +// UpdateEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response401Headers struct { +// UpdateEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response403Headers struct { +// UpdateEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response404Headers struct { +// UpdateEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response429Headers struct { +// UpdateEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response500Headers struct { +// UpdateEFOIntegrationByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateEFOIntegrationByIdV2Response struct { +type UpdateEFOIntegrationByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationResponse + JSON200 *EfoIntegrationResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateEFOIntegrationByIdV2Response200Headers + Headers200 *UpdateEFOIntegrationByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateEFOIntegrationByIdV2Response400Headers + Headers400 *UpdateEFOIntegrationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateEFOIntegrationByIdV2Response401Headers + Headers401 *UpdateEFOIntegrationByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateEFOIntegrationByIdV2Response403Headers + Headers403 *UpdateEFOIntegrationByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateEFOIntegrationByIdV2Response404Headers + Headers404 *UpdateEFOIntegrationByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateEFOIntegrationByIdV2Response429Headers + Headers429 *UpdateEFOIntegrationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateEFOIntegrationByIdV2Response500Headers + Headers500 *UpdateEFOIntegrationByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON403() *Forbidden { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateEFOIntegrationByIdV2Response) GetBody() []byte { +func (r UpdateEFOIntegrationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateEFOIntegrationByIdV2Response) Status() string { +func (r UpdateEFOIntegrationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76173,7 +79971,7 @@ func (r UpdateEFOIntegrationByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateEFOIntegrationByIdV2Response) StatusCode() int { +func (r UpdateEFOIntegrationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76181,38 +79979,38 @@ func (r UpdateEFOIntegrationByIdV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateEFOIntegrationByIdV2Response) ContentType() string { +func (r UpdateEFOIntegrationByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListEFOIntegrationsTypesV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response200Headers struct { +// ListEFOIntegrationsTypesV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response401Headers struct { +// ListEFOIntegrationsTypesV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response401Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response429Headers struct { +// ListEFOIntegrationsTypesV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response500Headers struct { +// ListEFOIntegrationsTypesV1Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListEFOIntegrationsTypesV2Response struct { +type ListEFOIntegrationsTypesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response @@ -76224,42 +80022,42 @@ type ListEFOIntegrationsTypesV2Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListEFOIntegrationsTypesV2Response200Headers + Headers200 *ListEFOIntegrationsTypesV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsTypesV2Response401Headers + Headers401 *ListEFOIntegrationsTypesV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOIntegrationsTypesV2Response429Headers + Headers429 *ListEFOIntegrationsTypesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsTypesV2Response500Headers + Headers500 *ListEFOIntegrationsTypesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) GetJSON200() *IntegrationTypesResponse { +func (r ListEFOIntegrationsTypesV1Response) GetJSON200() *IntegrationTypesResponse { return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsTypesV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) GetJSON429() *TooManyRequests { +func (r ListEFOIntegrationsTypesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsTypesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOIntegrationsTypesV2Response) GetBody() []byte { +func (r ListEFOIntegrationsTypesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsTypesV2Response) Status() string { +func (r ListEFOIntegrationsTypesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76267,7 +80065,7 @@ func (r ListEFOIntegrationsTypesV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsTypesV2Response) StatusCode() int { +func (r ListEFOIntegrationsTypesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76275,127 +80073,85 @@ func (r ListEFOIntegrationsTypesV2Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEFOIntegrationsTypesV2Response) ContentType() string { +func (r ListEFOIntegrationsTypesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetEventsV1Response200Headers the declared response headers of an HTTP 200 response for GetEventsV1 -type GetEventsV1Response200Headers struct { +// ListEFOChannelsByIntegrationV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response200Headers struct { XRateLimitLimit *int32 } -// GetEventsV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsV1 -type GetEventsV1Response400Headers struct { +// ListEFOChannelsByIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response401Headers struct { XRateLimitLimit *int32 } -// GetEventsV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsV1 -type GetEventsV1Response401Headers struct { +// ListEFOChannelsByIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -// GetEventsV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsV1 -type GetEventsV1Response403Headers struct { - XRateLimitLimit *int32 -} - -// GetEventsV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsV1 -type GetEventsV1Response404Headers struct { - XRateLimitLimit *int32 -} - -// GetEventsV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsV1 -type GetEventsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 -} - -// GetEventsV1Response500Headers the declared response headers of an HTTP 500 response for GetEventsV1 -type GetEventsV1Response500Headers struct { +// ListEFOChannelsByIntegrationV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetEventsV1Response struct { +type ListEFOChannelsByIntegrationV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListEventsResponse - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON200 *IntegrationChannelsResponse // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEventsV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEventsV1Response400Headers + Headers200 *ListEFOChannelsByIntegrationV2Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEventsV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetEventsV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEventsV1Response404Headers + Headers401 *ListEFOChannelsByIntegrationV2Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEventsV1Response429Headers + Headers429 *ListEFOChannelsByIntegrationV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEventsV1Response500Headers + Headers500 *ListEFOChannelsByIntegrationV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEventsV1Response) GetJSON200() *ListEventsResponse { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON200() *IntegrationChannelsResponse { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEventsV1Response) GetJSON400() *Error { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEventsV1Response) GetJSON401() *Unauthorized { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetEventsV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetEventsV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEventsV1Response) GetJSON429() *TooManyRequests { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEventsV1Response) GetJSON500() *InternalServerError { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEventsV1Response) GetBody() []byte { +func (r ListEFOChannelsByIntegrationV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEventsV1Response) Status() string { +func (r ListEFOChannelsByIntegrationV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76403,7 +80159,7 @@ func (r GetEventsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEventsV1Response) StatusCode() int { +func (r ListEFOChannelsByIntegrationV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76411,127 +80167,85 @@ func (r GetEventsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetEventsV1Response) ContentType() string { +func (r ListEFOChannelsByIntegrationV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetEventV1Response200Headers the declared response headers of an HTTP 200 response for GetEventV1 -type GetEventV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetEventV1Response400Headers the declared response headers of an HTTP 400 response for GetEventV1 -type GetEventV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetEventV1Response401Headers the declared response headers of an HTTP 401 response for GetEventV1 -type GetEventV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// GetEventV1Response403Headers the declared response headers of an HTTP 403 response for GetEventV1 -type GetEventV1Response403Headers struct { +// ListEFOIntegrationsV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response200Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response404Headers the declared response headers of an HTTP 404 response for GetEventV1 -type GetEventV1Response404Headers struct { +// ListEFOIntegrationsV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response401Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response429Headers the declared response headers of an HTTP 429 response for GetEventV1 -type GetEventV1Response429Headers struct { +// ListEFOIntegrationsV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetEventV1Response500Headers the declared response headers of an HTTP 500 response for GetEventV1 -type GetEventV1Response500Headers struct { +// ListEFOIntegrationsV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetEventV1Response struct { +type ListEFOIntegrationsV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *Event - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON200 *ListIntegrationsResponse // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEventV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEventV1Response400Headers + Headers200 *ListEFOIntegrationsV2Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEventV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetEventV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEventV1Response404Headers + Headers401 *ListEFOIntegrationsV2Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEventV1Response429Headers + Headers429 *ListEFOIntegrationsV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEventV1Response500Headers + Headers500 *ListEFOIntegrationsV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEventV1Response) GetJSON200() *Event { +func (r ListEFOIntegrationsV2Response) GetJSON200() *ListIntegrationsResponse { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEventV1Response) GetJSON400() *Error { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEventV1Response) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetEventV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetEventV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEventV1Response) GetJSON429() *TooManyRequests { +func (r ListEFOIntegrationsV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEventV1Response) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEventV1Response) GetBody() []byte { +func (r ListEFOIntegrationsV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEventV1Response) Status() string { +func (r ListEFOIntegrationsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76539,7 +80253,7 @@ func (r GetEventV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEventV1Response) StatusCode() int { +func (r ListEFOIntegrationsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76547,127 +80261,127 @@ func (r GetEventV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetEventV1Response) ContentType() string { +func (r ListEFOIntegrationsV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetEventsSupportedFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response200Headers struct { +// CreateEFOIntegrationV2Response201Headers the declared response headers of an HTTP 201 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response201Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response400Headers struct { +// CreateEFOIntegrationV2Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response400Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response401Headers struct { +// CreateEFOIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response401Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response403Headers struct { +// CreateEFOIntegrationV2Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response403Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response404Headers struct { +// CreateEFOIntegrationV2Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response409Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response429Headers struct { +// CreateEFOIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response500Headers struct { +// CreateEFOIntegrationV2Response500Headers the declared response headers of an HTTP 500 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetEventsSupportedFiltersV1Response struct { +type CreateEFOIntegrationV2Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SupportedFiltersResponse + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *IntegrationResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEventsSupportedFiltersV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateEFOIntegrationV2Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEventsSupportedFiltersV1Response400Headers + Headers400 *CreateEFOIntegrationV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEventsSupportedFiltersV1Response401Headers + Headers401 *CreateEFOIntegrationV2Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetEventsSupportedFiltersV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEventsSupportedFiltersV1Response404Headers + Headers403 *CreateEFOIntegrationV2Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateEFOIntegrationV2Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEventsSupportedFiltersV1Response429Headers + Headers429 *CreateEFOIntegrationV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEventsSupportedFiltersV1Response500Headers + Headers500 *CreateEFOIntegrationV2Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON200() *SupportedFiltersResponse { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateEFOIntegrationV2Response) GetJSON201() *IntegrationResponse { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON400() *Error { +func (r CreateEFOIntegrationV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON401() *Unauthorized { +func (r CreateEFOIntegrationV2Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON403() *Forbidden { +func (r CreateEFOIntegrationV2Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateEFOIntegrationV2Response) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON429() *TooManyRequests { +func (r CreateEFOIntegrationV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON500() *InternalServerError { +func (r CreateEFOIntegrationV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEventsSupportedFiltersV1Response) GetBody() []byte { +func (r CreateEFOIntegrationV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEventsSupportedFiltersV1Response) Status() string { +func (r CreateEFOIntegrationV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76675,7 +80389,7 @@ func (r GetEventsSupportedFiltersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEventsSupportedFiltersV1Response) StatusCode() int { +func (r CreateEFOIntegrationV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76683,113 +80397,120 @@ func (r GetEventsSupportedFiltersV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetEventsSupportedFiltersV1Response) ContentType() string { +func (r CreateEFOIntegrationV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetResourcesResponse200Headers the declared response headers of an HTTP 200 response for GetResources -type GetResourcesResponse200Headers struct { +// DeleteEFOIntegrationByIdV2Response204Headers the declared response headers of an HTTP 204 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response204Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse400Headers the declared response headers of an HTTP 400 response for GetResources -type GetResourcesResponse400Headers struct { +// DeleteEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse401Headers the declared response headers of an HTTP 401 response for GetResources -type GetResourcesResponse401Headers struct { +// DeleteEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse403Headers the declared response headers of an HTTP 403 response for GetResources -type GetResourcesResponse403Headers struct { +// DeleteEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response403Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse429Headers the declared response headers of an HTTP 429 response for GetResources -type GetResourcesResponse429Headers struct { +// DeleteEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response404Headers struct { + XRateLimitLimit *int32 +} + +// DeleteEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetResourcesResponse500Headers the declared response headers of an HTTP 500 response for GetResources -type GetResourcesResponse500Headers struct { +// DeleteEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetResourcesResponse struct { +type DeleteEFOIntegrationByIdV2Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *InventoryResourceResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetResourcesResponse200Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteEFOIntegrationByIdV2Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetResourcesResponse400Headers + Headers400 *DeleteEFOIntegrationByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetResourcesResponse401Headers + Headers401 *DeleteEFOIntegrationByIdV2Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetResourcesResponse403Headers + Headers403 *DeleteEFOIntegrationByIdV2Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *DeleteEFOIntegrationByIdV2Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetResourcesResponse429Headers + Headers429 *DeleteEFOIntegrationByIdV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetResourcesResponse500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetResourcesResponse) GetJSON200() *InventoryResourceResponse { - return r.JSON200 + Headers500 *DeleteEFOIntegrationByIdV2Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetResourcesResponse) GetJSON400() *BadRequest { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetResourcesResponse) GetJSON401() *Unauthorized { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetResourcesResponse) GetJSON403() *Forbidden { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteEFOIntegrationByIdV2Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetResourcesResponse) GetJSON429() *TooManyRequests { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetResourcesResponse) GetJSON500() *InternalServerError { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetResourcesResponse) GetBody() []byte { +func (r DeleteEFOIntegrationByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetResourcesResponse) Status() string { +func (r DeleteEFOIntegrationByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76797,7 +80518,7 @@ func (r GetResourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetResourcesResponse) StatusCode() int { +func (r DeleteEFOIntegrationByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76805,113 +80526,113 @@ func (r GetResourcesResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetResourcesResponse) ContentType() string { +func (r DeleteEFOIntegrationByIdV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetResourceResponse200Headers the declared response headers of an HTTP 200 response for GetResource -type GetResourceResponse200Headers struct { +// GetEFOIntegrationByIdV2Response200Headers the declared response headers of an HTTP 200 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response200Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse400Headers the declared response headers of an HTTP 400 response for GetResource -type GetResourceResponse400Headers struct { +// GetEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse401Headers the declared response headers of an HTTP 401 response for GetResource -type GetResourceResponse401Headers struct { +// GetEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse403Headers the declared response headers of an HTTP 403 response for GetResource -type GetResourceResponse403Headers struct { +// GetEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response404Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse429Headers the declared response headers of an HTTP 429 response for GetResource -type GetResourceResponse429Headers struct { +// GetEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetResourceResponse500Headers the declared response headers of an HTTP 500 response for GetResource -type GetResourceResponse500Headers struct { +// GetEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetResourceResponse struct { +type GetEFOIntegrationByIdV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *InventoryResourceExtended + JSON200 *IntegrationResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetResourceResponse200Headers + Headers200 *GetEFOIntegrationByIdV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetResourceResponse400Headers + Headers400 *GetEFOIntegrationByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetResourceResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetResourceResponse403Headers + Headers401 *GetEFOIntegrationByIdV2Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetEFOIntegrationByIdV2Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetResourceResponse429Headers + Headers429 *GetEFOIntegrationByIdV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetResourceResponse500Headers + Headers500 *GetEFOIntegrationByIdV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetResourceResponse) GetJSON200() *InventoryResourceExtended { +func (r GetEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetResourceResponse) GetJSON400() *BadRequest { +func (r GetEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetResourceResponse) GetJSON401() *Unauthorized { +func (r GetEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetResourceResponse) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetEFOIntegrationByIdV2Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetResourceResponse) GetJSON429() *TooManyRequests { +func (r GetEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetResourceResponse) GetJSON500() *InternalServerError { +func (r GetEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetResourceResponse) GetBody() []byte { +func (r GetEFOIntegrationByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetResourceResponse) Status() string { +func (r GetEFOIntegrationByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76919,7 +80640,7 @@ func (r GetResourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetResourceResponse) StatusCode() int { +func (r GetEFOIntegrationByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76927,129 +80648,127 @@ func (r GetResourceResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetResourceResponse) ContentType() string { +func (r GetEFOIntegrationByIdV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActionExecutionsv1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response200Headers struct { +// UpdateEFOIntegrationByIdV2Response200Headers the declared response headers of an HTTP 200 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response200Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionsv1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response400Headers struct { +// UpdateEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionsv1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response401Headers struct { +// UpdateEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionsv1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response403Headers struct { +// UpdateEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response403Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionsv1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response429Headers struct { +// UpdateEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionExecutionsv1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response500Headers struct { +// UpdateEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetActionExecutionsv1Response struct { +type UpdateEFOIntegrationByIdV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ActionExecutions + JSON200 *IntegrationResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *struct { - Details *[]interface{} `json:"details,omitempty"` - - // Message Example: could not parse the provided certificate - Message GetActionExecutionsv1400JSONResponseBodyMessage `json:"message"` - - // Type Example: parsing_error - Type GetActionExecutionsv1400JSONResponseBodyType `json:"type"` - } + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActionExecutionsv1Response200Headers + Headers200 *UpdateEFOIntegrationByIdV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActionExecutionsv1Response400Headers + Headers400 *UpdateEFOIntegrationByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionExecutionsv1Response401Headers + Headers401 *UpdateEFOIntegrationByIdV2Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionExecutionsv1Response403Headers + Headers403 *UpdateEFOIntegrationByIdV2Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateEFOIntegrationByIdV2Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionExecutionsv1Response429Headers + Headers429 *UpdateEFOIntegrationByIdV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionExecutionsv1Response500Headers + Headers500 *UpdateEFOIntegrationByIdV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON200() *ActionExecutions { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON400() *struct { - Details *[]interface{} `json:"details,omitempty"` - - // Message Example: could not parse the provided certificate - Message GetActionExecutionsv1400JSONResponseBodyMessage `json:"message"` - - // Type Example: parsing_error - Type GetActionExecutionsv1400JSONResponseBodyType `json:"type"` -} { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON401() *Unauthorized { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON403() *Forbidden { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateEFOIntegrationByIdV2Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON429() *TooManyRequests { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON500() *InternalServerError { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionExecutionsv1Response) GetBody() []byte { +func (r UpdateEFOIntegrationByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionExecutionsv1Response) Status() string { +func (r UpdateEFOIntegrationByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77057,7 +80776,7 @@ func (r GetActionExecutionsv1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionExecutionsv1Response) StatusCode() int { +func (r UpdateEFOIntegrationByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77065,129 +80784,85 @@ func (r GetActionExecutionsv1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActionExecutionsv1Response) ContentType() string { +func (r UpdateEFOIntegrationByIdV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// SubmitActionExecutionv1Response201Headers the declared response headers of an HTTP 201 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response201Headers struct { - XRateLimitLimit *int32 -} - -// SubmitActionExecutionv1Response400Headers the declared response headers of an HTTP 400 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response400Headers struct { - XRateLimitLimit *int32 -} - -// SubmitActionExecutionv1Response401Headers the declared response headers of an HTTP 401 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response401Headers struct { +// ListEFOIntegrationsTypesV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response200Headers struct { XRateLimitLimit *int32 } -// SubmitActionExecutionv1Response403Headers the declared response headers of an HTTP 403 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response403Headers struct { +// ListEFOIntegrationsTypesV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response401Headers struct { XRateLimitLimit *int32 } -// SubmitActionExecutionv1Response429Headers the declared response headers of an HTTP 429 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response429Headers struct { +// ListEFOIntegrationsTypesV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// SubmitActionExecutionv1Response500Headers the declared response headers of an HTTP 500 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response500Headers struct { +// ListEFOIntegrationsTypesV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type SubmitActionExecutionv1Response struct { +type ListEFOIntegrationsTypesV2Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ActionExecution - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *struct { - Details *[]interface{} `json:"details,omitempty"` - - // Message Example: Missing required parameter - Message string `json:"message"` - - // Type Example: missing_required_parameter - Type string `json:"type"` - } + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *IntegrationTypesResponse // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *SubmitActionExecutionv1Response201Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *SubmitActionExecutionv1Response400Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *ListEFOIntegrationsTypesV2Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *SubmitActionExecutionv1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *SubmitActionExecutionv1Response403Headers + Headers401 *ListEFOIntegrationsTypesV2Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *SubmitActionExecutionv1Response429Headers + Headers429 *ListEFOIntegrationsTypesV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *SubmitActionExecutionv1Response500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON201() *ActionExecution { - return r.JSON201 + Headers500 *ListEFOIntegrationsTypesV2Response500Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON400() *struct { - Details *[]interface{} `json:"details,omitempty"` - - // Message Example: Missing required parameter - Message string `json:"message"` - - // Type Example: missing_required_parameter - Type string `json:"type"` -} { - return r.JSON400 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ListEFOIntegrationsTypesV2Response) GetJSON200() *IntegrationTypesResponse { + return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsTypesV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON429() *TooManyRequests { +func (r ListEFOIntegrationsTypesV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsTypesV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r SubmitActionExecutionv1Response) GetBody() []byte { +func (r ListEFOIntegrationsTypesV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r SubmitActionExecutionv1Response) Status() string { +func (r ListEFOIntegrationsTypesV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77195,7 +80870,7 @@ func (r SubmitActionExecutionv1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SubmitActionExecutionv1Response) StatusCode() int { +func (r ListEFOIntegrationsTypesV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77203,59 +80878,59 @@ func (r SubmitActionExecutionv1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SubmitActionExecutionv1Response) ContentType() string { +func (r ListEFOIntegrationsTypesV2Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UndoActionExecutionV1Response200Headers the declared response headers of an HTTP 200 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response200Headers struct { +// GetEventsV1Response200Headers the declared response headers of an HTTP 200 response for GetEventsV1 +type GetEventsV1Response200Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response400Headers the declared response headers of an HTTP 400 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response400Headers struct { +// GetEventsV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsV1 +type GetEventsV1Response400Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response401Headers struct { +// GetEventsV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsV1 +type GetEventsV1Response401Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response403Headers struct { +// GetEventsV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsV1 +type GetEventsV1Response403Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response404Headers struct { +// GetEventsV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsV1 +type GetEventsV1Response404Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response429Headers struct { +// GetEventsV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsV1 +type GetEventsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UndoActionExecutionV1Response500Headers the declared response headers of an HTTP 500 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response500Headers struct { +// GetEventsV1Response500Headers the declared response headers of an HTTP 500 response for GetEventsV1 +type GetEventsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UndoActionExecutionV1Response struct { +type GetEventsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ActionExecution + JSON200 *ListEventsResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response @@ -77267,63 +80942,63 @@ type UndoActionExecutionV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UndoActionExecutionV1Response200Headers + Headers200 *GetEventsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UndoActionExecutionV1Response400Headers + Headers400 *GetEventsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UndoActionExecutionV1Response401Headers + Headers401 *GetEventsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UndoActionExecutionV1Response403Headers + Headers403 *GetEventsV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UndoActionExecutionV1Response404Headers + Headers404 *GetEventsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UndoActionExecutionV1Response429Headers + Headers429 *GetEventsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UndoActionExecutionV1Response500Headers + Headers500 *GetEventsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON200() *ActionExecution { +func (r GetEventsV1Response) GetJSON200() *ListEventsResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON400() *BadRequest { +func (r GetEventsV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON401() *Unauthorized { +func (r GetEventsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON403() *Forbidden { +func (r GetEventsV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON404() *NotFound { +func (r GetEventsV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON429() *TooManyRequests { +func (r GetEventsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON500() *InternalServerError { +func (r GetEventsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UndoActionExecutionV1Response) GetBody() []byte { +func (r GetEventsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UndoActionExecutionV1Response) Status() string { +func (r GetEventsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77331,7 +81006,7 @@ func (r UndoActionExecutionV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UndoActionExecutionV1Response) StatusCode() int { +func (r GetEventsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77339,52 +81014,59 @@ func (r UndoActionExecutionV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UndoActionExecutionV1Response) ContentType() string { +func (r GetEventsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActionExecutionV1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionV1 -type GetActionExecutionV1Response200Headers struct { +// GetEventV1Response200Headers the declared response headers of an HTTP 200 response for GetEventV1 +type GetEventV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionV1 -type GetActionExecutionV1Response401Headers struct { +// GetEventV1Response400Headers the declared response headers of an HTTP 400 response for GetEventV1 +type GetEventV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionV1 -type GetActionExecutionV1Response403Headers struct { +// GetEventV1Response401Headers the declared response headers of an HTTP 401 response for GetEventV1 +type GetEventV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionV1 -type GetActionExecutionV1Response404Headers struct { +// GetEventV1Response403Headers the declared response headers of an HTTP 403 response for GetEventV1 +type GetEventV1Response403Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionV1 -type GetActionExecutionV1Response429Headers struct { +// GetEventV1Response404Headers the declared response headers of an HTTP 404 response for GetEventV1 +type GetEventV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetEventV1Response429Headers the declared response headers of an HTTP 429 response for GetEventV1 +type GetEventV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionExecutionV1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionV1 -type GetActionExecutionV1Response500Headers struct { +// GetEventV1Response500Headers the declared response headers of an HTTP 500 response for GetEventV1 +type GetEventV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetActionExecutionV1Response struct { +type GetEventV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ActionExecution + JSON200 *Event + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response @@ -77396,56 +81078,63 @@ type GetActionExecutionV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActionExecutionV1Response200Headers + Headers200 *GetEventV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetEventV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionExecutionV1Response401Headers + Headers401 *GetEventV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionExecutionV1Response403Headers + Headers403 *GetEventV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActionExecutionV1Response404Headers + Headers404 *GetEventV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionExecutionV1Response429Headers + Headers429 *GetEventV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionExecutionV1Response500Headers + Headers500 *GetEventV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActionExecutionV1Response) GetJSON200() *ActionExecution { +func (r GetEventV1Response) GetJSON200() *Event { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetEventV1Response) GetJSON400() *Error { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionExecutionV1Response) GetJSON401() *Unauthorized { +func (r GetEventV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionExecutionV1Response) GetJSON403() *Forbidden { +func (r GetEventV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetActionExecutionV1Response) GetJSON404() *NotFound { +func (r GetEventV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActionExecutionV1Response) GetJSON429() *TooManyRequests { +func (r GetEventV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionExecutionV1Response) GetJSON500() *InternalServerError { +func (r GetEventV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionExecutionV1Response) GetBody() []byte { +func (r GetEventV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionExecutionV1Response) Status() string { +func (r GetEventV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77453,7 +81142,7 @@ func (r GetActionExecutionV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionExecutionV1Response) StatusCode() int { +func (r GetEventV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77461,57 +81150,59 @@ func (r GetActionExecutionV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActionExecutionV1Response) ContentType() string { +func (r GetEventV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActionExecutionFileAcquireV1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response200Headers struct { +// GetEventsSupportedFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response400Headers struct { +// GetEventsSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response401Headers struct { +// GetEventsSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response403Headers struct { +// GetEventsSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response403Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response404Headers struct { +// GetEventsSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response429Headers struct { +// GetEventsSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response500Headers struct { +// GetEventsSupportedFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetActionExecutionFileAcquireV1Response struct { +type GetEventsSupportedFiltersV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *SupportedFiltersResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response @@ -77523,58 +81214,63 @@ type GetActionExecutionFileAcquireV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActionExecutionFileAcquireV1Response200Headers + Headers200 *GetEventsSupportedFiltersV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActionExecutionFileAcquireV1Response400Headers + Headers400 *GetEventsSupportedFiltersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionExecutionFileAcquireV1Response401Headers + Headers401 *GetEventsSupportedFiltersV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionExecutionFileAcquireV1Response403Headers + Headers403 *GetEventsSupportedFiltersV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActionExecutionFileAcquireV1Response404Headers + Headers404 *GetEventsSupportedFiltersV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionExecutionFileAcquireV1Response429Headers + Headers429 *GetEventsSupportedFiltersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionExecutionFileAcquireV1Response500Headers + Headers500 *GetEventsSupportedFiltersV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetEventsSupportedFiltersV1Response) GetJSON200() *SupportedFiltersResponse { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON400() *BadRequest { +func (r GetEventsSupportedFiltersV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON401() *Unauthorized { +func (r GetEventsSupportedFiltersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON403() *Forbidden { +func (r GetEventsSupportedFiltersV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON404() *NotFound { +func (r GetEventsSupportedFiltersV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON429() *TooManyRequests { +func (r GetEventsSupportedFiltersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON500() *InternalServerError { +func (r GetEventsSupportedFiltersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionExecutionFileAcquireV1Response) GetBody() []byte { +func (r GetEventsSupportedFiltersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionExecutionFileAcquireV1Response) Status() string { +func (r GetEventsSupportedFiltersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77582,7 +81278,7 @@ func (r GetActionExecutionFileAcquireV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionExecutionFileAcquireV1Response) StatusCode() int { +func (r GetEventsSupportedFiltersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77590,113 +81286,113 @@ func (r GetActionExecutionFileAcquireV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActionExecutionFileAcquireV1Response) ContentType() string { +func (r GetEventsSupportedFiltersV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetActionsV1Response200Headers the declared response headers of an HTTP 200 response for GetActionsV1 -type GetActionsV1Response200Headers struct { +// GetResourcesResponse200Headers the declared response headers of an HTTP 200 response for GetResources +type GetResourcesResponse200Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response401Headers the declared response headers of an HTTP 401 response for GetActionsV1 -type GetActionsV1Response401Headers struct { +// GetResourcesResponse400Headers the declared response headers of an HTTP 400 response for GetResources +type GetResourcesResponse400Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response403Headers the declared response headers of an HTTP 403 response for GetActionsV1 -type GetActionsV1Response403Headers struct { +// GetResourcesResponse401Headers the declared response headers of an HTTP 401 response for GetResources +type GetResourcesResponse401Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response404Headers the declared response headers of an HTTP 404 response for GetActionsV1 -type GetActionsV1Response404Headers struct { +// GetResourcesResponse403Headers the declared response headers of an HTTP 403 response for GetResources +type GetResourcesResponse403Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response429Headers the declared response headers of an HTTP 429 response for GetActionsV1 -type GetActionsV1Response429Headers struct { +// GetResourcesResponse429Headers the declared response headers of an HTTP 429 response for GetResources +type GetResourcesResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionsV1Response500Headers the declared response headers of an HTTP 500 response for GetActionsV1 -type GetActionsV1Response500Headers struct { +// GetResourcesResponse500Headers the declared response headers of an HTTP 500 response for GetResources +type GetResourcesResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetActionsV1Response struct { +type GetResourcesResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *Actions + JSON200 *InventoryResourceResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetActionsV1Response200Headers + Headers200 *GetResourcesResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetResourcesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionsV1Response401Headers + Headers401 *GetResourcesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionsV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActionsV1Response404Headers + Headers403 *GetResourcesResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionsV1Response429Headers + Headers429 *GetResourcesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionsV1Response500Headers + Headers500 *GetResourcesResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActionsV1Response) GetJSON200() *Actions { +func (r GetResourcesResponse) GetJSON200() *InventoryResourceResponse { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetResourcesResponse) GetJSON400() *BadRequest { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionsV1Response) GetJSON401() *Unauthorized { +func (r GetResourcesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionsV1Response) GetJSON403() *Forbidden { +func (r GetResourcesResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetActionsV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActionsV1Response) GetJSON429() *TooManyRequests { +func (r GetResourcesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionsV1Response) GetJSON500() *InternalServerError { +func (r GetResourcesResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionsV1Response) GetBody() []byte { +func (r GetResourcesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionsV1Response) Status() string { +func (r GetResourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77704,7 +81400,7 @@ func (r GetActionsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionsV1Response) StatusCode() int { +func (r GetResourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77712,52 +81408,52 @@ func (r GetActionsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActionsV1Response) ContentType() string { +func (r GetResourcesResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSecureVulnerabilityV1BundlesResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse200Headers struct { +// GetResourceResponse200Headers the declared response headers of an HTTP 200 response for GetResource +type GetResourceResponse200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse400Headers struct { +// GetResourceResponse400Headers the declared response headers of an HTTP 400 response for GetResource +type GetResourceResponse400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse401Headers struct { +// GetResourceResponse401Headers the declared response headers of an HTTP 401 response for GetResource +type GetResourceResponse401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse403Headers struct { +// GetResourceResponse403Headers the declared response headers of an HTTP 403 response for GetResource +type GetResourceResponse403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse429Headers struct { +// GetResourceResponse429Headers the declared response headers of an HTTP 429 response for GetResource +type GetResourceResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse500Headers struct { +// GetResourceResponse500Headers the declared response headers of an HTTP 500 response for GetResource +type GetResourceResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSecureVulnerabilityV1BundlesResponse struct { +type GetResourceResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListBundlesResponse + JSON200 *InventoryResourceExtended // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -77769,56 +81465,56 @@ type GetSecureVulnerabilityV1BundlesResponse struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSecureVulnerabilityV1BundlesResponse200Headers + Headers200 *GetResourceResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1BundlesResponse400Headers + Headers400 *GetResourceResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1BundlesResponse401Headers + Headers401 *GetResourceResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1BundlesResponse403Headers + Headers403 *GetResourceResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1BundlesResponse429Headers + Headers429 *GetResourceResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1BundlesResponse500Headers + Headers500 *GetResourceResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON200() *ListBundlesResponse { +func (r GetResourceResponse) GetJSON200() *InventoryResourceExtended { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { +func (r GetResourceResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { +func (r GetResourceResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { +func (r GetResourceResponse) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { +func (r GetResourceResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { +func (r GetResourceResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1BundlesResponse) GetBody() []byte { +func (r GetResourceResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1BundlesResponse) Status() string { +func (r GetResourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77826,7 +81522,7 @@ func (r GetSecureVulnerabilityV1BundlesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1BundlesResponse) StatusCode() int { +func (r GetResourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77834,127 +81530,129 @@ func (r GetSecureVulnerabilityV1BundlesResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSecureVulnerabilityV1BundlesResponse) ContentType() string { +func (r GetResourceResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostSecureVulnerabilityV1BundlesResponse201Headers the declared response headers of an HTTP 201 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse201Headers struct { - XRateLimitLimit *int32 -} - -// PostSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse400Headers struct { +// GetActionExecutionsv1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response200Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse401Headers struct { +// GetActionExecutionsv1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response400Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse403Headers struct { +// GetActionExecutionsv1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response401Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse409Headers struct { +// GetActionExecutionsv1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response403Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse429Headers struct { +// GetActionExecutionsv1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse500Headers the declared response headers of an HTTP 500 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse500Headers struct { +// GetActionExecutionsv1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type PostSecureVulnerabilityV1BundlesResponse struct { +type GetActionExecutionsv1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *GetBundleResponse + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ActionExecutions // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *struct { + Details *[]interface{} `json:"details,omitempty"` + + // Message Example: could not parse the provided certificate + Message GetActionExecutionsv1400JSONResponseBodyMessage `json:"message"` + + // Type Example: parsing_error + Type GetActionExecutionsv1400JSONResponseBodyType `json:"type"` + } // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *PostSecureVulnerabilityV1BundlesResponse201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetActionExecutionsv1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostSecureVulnerabilityV1BundlesResponse400Headers + Headers400 *GetActionExecutionsv1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostSecureVulnerabilityV1BundlesResponse401Headers + Headers401 *GetActionExecutionsv1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PostSecureVulnerabilityV1BundlesResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PostSecureVulnerabilityV1BundlesResponse409Headers + Headers403 *GetActionExecutionsv1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostSecureVulnerabilityV1BundlesResponse429Headers + Headers429 *GetActionExecutionsv1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PostSecureVulnerabilityV1BundlesResponse500Headers + Headers500 *GetActionExecutionsv1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON201() *GetBundleResponse { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetActionExecutionsv1Response) GetJSON200() *ActionExecutions { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { +func (r GetActionExecutionsv1Response) GetJSON400() *struct { + Details *[]interface{} `json:"details,omitempty"` + + // Message Example: could not parse the provided certificate + Message GetActionExecutionsv1400JSONResponseBodyMessage `json:"message"` + + // Type Example: parsing_error + Type GetActionExecutionsv1400JSONResponseBodyType `json:"type"` +} { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { +func (r GetActionExecutionsv1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { +func (r GetActionExecutionsv1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { +func (r GetActionExecutionsv1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { +func (r GetActionExecutionsv1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostSecureVulnerabilityV1BundlesResponse) GetBody() []byte { +func (r GetActionExecutionsv1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostSecureVulnerabilityV1BundlesResponse) Status() string { +func (r GetActionExecutionsv1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77962,7 +81660,7 @@ func (r PostSecureVulnerabilityV1BundlesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostSecureVulnerabilityV1BundlesResponse) StatusCode() int { +func (r GetActionExecutionsv1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77970,52 +81668,62 @@ func (r PostSecureVulnerabilityV1BundlesResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostSecureVulnerabilityV1BundlesResponse) ContentType() string { +func (r GetActionExecutionsv1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { +// SubmitActionExecutionv1Response201Headers the declared response headers of an HTTP 201 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response201Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { +// SubmitActionExecutionv1Response400Headers the declared response headers of an HTTP 400 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { +// SubmitActionExecutionv1Response401Headers the declared response headers of an HTTP 401 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { +// SubmitActionExecutionv1Response403Headers the declared response headers of an HTTP 403 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { +// SubmitActionExecutionv1Response429Headers the declared response headers of an HTTP 429 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers struct { +// SubmitActionExecutionv1Response500Headers the declared response headers of an HTTP 500 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse struct { +type SubmitActionExecutionv1Response struct { Body []byte HTTPResponse *http.Response + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *ActionExecution // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *struct { + Details *[]interface{} `json:"details,omitempty"` + + // Message Example: Missing required parameter + Message string `json:"message"` + + // Type Example: missing_required_parameter + Type string `json:"type"` + } // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response @@ -78024,52 +81732,65 @@ type DeleteSecureVulnerabilityV1BundlesBundleIdResponse struct { JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *SubmitActionExecutionv1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers + Headers400 *SubmitActionExecutionv1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers + Headers401 *SubmitActionExecutionv1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers + Headers403 *SubmitActionExecutionv1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers + Headers429 *SubmitActionExecutionv1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers + Headers500 *SubmitActionExecutionv1Response500Headers +} + +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r SubmitActionExecutionv1Response) GetJSON201() *ActionExecution { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { +func (r SubmitActionExecutionv1Response) GetJSON400() *struct { + Details *[]interface{} `json:"details,omitempty"` + + // Message Example: Missing required parameter + Message string `json:"message"` + + // Type Example: missing_required_parameter + Type string `json:"type"` +} { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { +func (r SubmitActionExecutionv1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { +func (r SubmitActionExecutionv1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { +func (r SubmitActionExecutionv1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { +func (r SubmitActionExecutionv1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { +func (r SubmitActionExecutionv1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { +func (r SubmitActionExecutionv1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78077,7 +81798,7 @@ func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { +func (r SubmitActionExecutionv1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78085,113 +81806,127 @@ func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { +func (r SubmitActionExecutionv1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { +// UndoActionExecutionV1Response200Headers the declared response headers of an HTTP 200 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { +// UndoActionExecutionV1Response400Headers the declared response headers of an HTTP 400 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { +// UndoActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { +// UndoActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { +// UndoActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UndoActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers struct { +// UndoActionExecutionV1Response500Headers the declared response headers of an HTTP 500 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSecureVulnerabilityV1BundlesBundleIdResponse struct { +type UndoActionExecutionV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetBundleResponse + JSON200 *ActionExecution // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers + Headers200 *UndoActionExecutionV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers + Headers400 *UndoActionExecutionV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers + Headers401 *UndoActionExecutionV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers + Headers403 *UndoActionExecutionV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UndoActionExecutionV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers + Headers429 *UndoActionExecutionV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers + Headers500 *UndoActionExecutionV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { +func (r UndoActionExecutionV1Response) GetJSON200() *ActionExecution { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { +func (r UndoActionExecutionV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { +func (r UndoActionExecutionV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { +func (r UndoActionExecutionV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UndoActionExecutionV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { +func (r UndoActionExecutionV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { +func (r UndoActionExecutionV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { +func (r UndoActionExecutionV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { +func (r UndoActionExecutionV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78199,7 +81934,7 @@ func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { +func (r UndoActionExecutionV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78207,113 +81942,113 @@ func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { +func (r UndoActionExecutionV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { +// GetActionExecutionV1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionV1 +type GetActionExecutionV1Response200Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { +// GetActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionV1 +type GetActionExecutionV1Response401Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { +// GetActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionV1 +type GetActionExecutionV1Response403Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { +// GetActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionV1 +type GetActionExecutionV1Response404Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { +// GetActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionV1 +type GetActionExecutionV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers struct { +// GetActionExecutionV1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionV1 +type GetActionExecutionV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type PutSecureVulnerabilityV1BundlesBundleIdResponse struct { +type GetActionExecutionV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetBundleResponse - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON200 *ActionExecution // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers + Headers200 *GetActionExecutionV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers + Headers401 *GetActionExecutionV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers + Headers403 *GetActionExecutionV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetActionExecutionV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers + Headers429 *GetActionExecutionV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers + Headers500 *GetActionExecutionV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { +func (r GetActionExecutionV1Response) GetJSON200() *ActionExecution { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { +func (r GetActionExecutionV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { +func (r GetActionExecutionV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetActionExecutionV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { +func (r GetActionExecutionV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { +func (r GetActionExecutionV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { +func (r GetActionExecutionV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { +func (r GetActionExecutionV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78321,7 +82056,7 @@ func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { +func (r GetActionExecutionV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78329,127 +82064,120 @@ func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { +func (r GetActionExecutionV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSecureVulnerabilityV1PipelineResultsResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse200Headers struct { +// GetActionExecutionFileAcquireV1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse400Headers struct { +// GetActionExecutionFileAcquireV1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse401Headers struct { +// GetActionExecutionFileAcquireV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse403Headers struct { +// GetActionExecutionFileAcquireV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse409Headers struct { +// GetActionExecutionFileAcquireV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response404Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse429Headers struct { +// GetActionExecutionFileAcquireV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse500Headers struct { +// GetActionExecutionFileAcquireV1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSecureVulnerabilityV1PipelineResultsResponse struct { +type GetActionExecutionFileAcquireV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *PipelineResultsResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSecureVulnerabilityV1PipelineResultsResponse200Headers + Headers200 *GetActionExecutionFileAcquireV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1PipelineResultsResponse400Headers + Headers400 *GetActionExecutionFileAcquireV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1PipelineResultsResponse401Headers + Headers401 *GetActionExecutionFileAcquireV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1PipelineResultsResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetSecureVulnerabilityV1PipelineResultsResponse409Headers + Headers403 *GetActionExecutionFileAcquireV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetActionExecutionFileAcquireV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1PipelineResultsResponse429Headers + Headers429 *GetActionExecutionFileAcquireV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1PipelineResultsResponse500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON200() *PipelineResultsResponse { - return r.JSON200 + Headers500 *GetActionExecutionFileAcquireV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON400() *BadRequest { +func (r GetActionExecutionFileAcquireV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON401() *Unauthorized { +func (r GetActionExecutionFileAcquireV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON403() *Forbidden { +func (r GetActionExecutionFileAcquireV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetActionExecutionFileAcquireV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON429() *TooManyRequests { +func (r GetActionExecutionFileAcquireV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON500() *InternalServerError { +func (r GetActionExecutionFileAcquireV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetBody() []byte { +func (r GetActionExecutionFileAcquireV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1PipelineResultsResponse) Status() string { +func (r GetActionExecutionFileAcquireV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78457,7 +82185,7 @@ func (r GetSecureVulnerabilityV1PipelineResultsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1PipelineResultsResponse) StatusCode() int { +func (r GetActionExecutionFileAcquireV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78465,127 +82193,113 @@ func (r GetSecureVulnerabilityV1PipelineResultsResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSecureVulnerabilityV1PipelineResultsResponse) ContentType() string { +func (r GetActionExecutionFileAcquireV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSecureVulnerabilityV1PoliciesResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse200Headers struct { - XRateLimitLimit *int32 -} - -// GetSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse400Headers struct { +// GetActionsV1Response200Headers the declared response headers of an HTTP 200 response for GetActionsV1 +type GetActionsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse401Headers struct { +// GetActionsV1Response401Headers the declared response headers of an HTTP 401 response for GetActionsV1 +type GetActionsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse403Headers struct { +// GetActionsV1Response403Headers the declared response headers of an HTTP 403 response for GetActionsV1 +type GetActionsV1Response403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse409Headers struct { +// GetActionsV1Response404Headers the declared response headers of an HTTP 404 response for GetActionsV1 +type GetActionsV1Response404Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse429Headers struct { +// GetActionsV1Response429Headers the declared response headers of an HTTP 429 response for GetActionsV1 +type GetActionsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse500Headers struct { +// GetActionsV1Response500Headers the declared response headers of an HTTP 500 response for GetActionsV1 +type GetActionsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSecureVulnerabilityV1PoliciesResponse struct { +type GetActionsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListPoliciesResponse - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON200 *Actions // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSecureVulnerabilityV1PoliciesResponse200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1PoliciesResponse400Headers + Headers200 *GetActionsV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1PoliciesResponse401Headers + Headers401 *GetActionsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1PoliciesResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetSecureVulnerabilityV1PoliciesResponse409Headers + Headers403 *GetActionsV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetActionsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1PoliciesResponse429Headers + Headers429 *GetActionsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1PoliciesResponse500Headers + Headers500 *GetActionsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON200() *ListPoliciesResponse { +func (r GetActionsV1Response) GetJSON200() *Actions { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { +func (r GetActionsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { +func (r GetActionsV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetActionsV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { +func (r GetActionsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { +func (r GetActionsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { +func (r GetActionsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1PoliciesResponse) Status() string { +func (r GetActionsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78593,7 +82307,7 @@ func (r GetSecureVulnerabilityV1PoliciesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1PoliciesResponse) StatusCode() int { +func (r GetActionsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78601,127 +82315,113 @@ func (r GetSecureVulnerabilityV1PoliciesResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSecureVulnerabilityV1PoliciesResponse) ContentType() string { +func (r GetActionsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostSecureVulnerabilityV1PoliciesResponse201Headers the declared response headers of an HTTP 201 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse201Headers struct { - XRateLimitLimit *int32 -} - -// PostSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse400Headers struct { +// GetSecureVulnerabilityV1BundlesResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse200Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse401Headers struct { +// GetSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse400Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse403Headers struct { +// GetSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse401Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse409Headers struct { +// GetSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse403Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse429Headers struct { +// GetSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse500Headers the declared response headers of an HTTP 500 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse500Headers struct { +// GetSecureVulnerabilityV1BundlesResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type PostSecureVulnerabilityV1PoliciesResponse struct { +type GetSecureVulnerabilityV1BundlesResponse struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *GetPolicyResponse + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ListBundlesResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *PostSecureVulnerabilityV1PoliciesResponse201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetSecureVulnerabilityV1BundlesResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostSecureVulnerabilityV1PoliciesResponse400Headers + Headers400 *GetSecureVulnerabilityV1BundlesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostSecureVulnerabilityV1PoliciesResponse401Headers + Headers401 *GetSecureVulnerabilityV1BundlesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PostSecureVulnerabilityV1PoliciesResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PostSecureVulnerabilityV1PoliciesResponse409Headers + Headers403 *GetSecureVulnerabilityV1BundlesResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostSecureVulnerabilityV1PoliciesResponse429Headers + Headers429 *GetSecureVulnerabilityV1BundlesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PostSecureVulnerabilityV1PoliciesResponse500Headers + Headers500 *GetSecureVulnerabilityV1BundlesResponse500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON201() *GetPolicyResponse { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON200() *ListBundlesResponse { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { +func (r GetSecureVulnerabilityV1BundlesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostSecureVulnerabilityV1PoliciesResponse) Status() string { +func (r GetSecureVulnerabilityV1BundlesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78729,7 +82429,7 @@ func (r PostSecureVulnerabilityV1PoliciesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostSecureVulnerabilityV1PoliciesResponse) StatusCode() int { +func (r GetSecureVulnerabilityV1BundlesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78737,106 +82437,127 @@ func (r PostSecureVulnerabilityV1PoliciesResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostSecureVulnerabilityV1PoliciesResponse) ContentType() string { +func (r GetSecureVulnerabilityV1BundlesResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { +// PostSecureVulnerabilityV1BundlesResponse201Headers the declared response headers of an HTTP 201 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse201Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { +// PostSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse400Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { +// PostSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse401Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { +// PostSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse403Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { +// PostSecureVulnerabilityV1BundlesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse409Headers struct { + XRateLimitLimit *int32 +} + +// PostSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers struct { +// PostSecureVulnerabilityV1BundlesResponse500Headers the declared response headers of an HTTP 500 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse struct { +type PostSecureVulnerabilityV1BundlesResponse struct { Body []byte HTTPResponse *http.Response + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *GetBundleResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *PostSecureVulnerabilityV1BundlesResponse201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + Headers400 *PostSecureVulnerabilityV1BundlesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + Headers401 *PostSecureVulnerabilityV1BundlesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + Headers403 *PostSecureVulnerabilityV1BundlesResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *PostSecureVulnerabilityV1BundlesResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + Headers429 *PostSecureVulnerabilityV1BundlesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + Headers500 *PostSecureVulnerabilityV1BundlesResponse500Headers +} + +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON201() *GetBundleResponse { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON409() *Conflict { + return r.JSON409 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { +func (r PostSecureVulnerabilityV1BundlesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { +func (r PostSecureVulnerabilityV1BundlesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78844,7 +82565,7 @@ func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { +func (r PostSecureVulnerabilityV1BundlesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78852,127 +82573,106 @@ func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { +func (r PostSecureVulnerabilityV1BundlesResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { - XRateLimitLimit *int32 -} - -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse struct { +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetPolicyResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + Headers200 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + Headers400 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + Headers401 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers + Headers403 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + Headers429 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { - return r.JSON200 + Headers500 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78980,7 +82680,7 @@ func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78988,127 +82688,113 @@ func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { - XRateLimitLimit *int32 -} - -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse struct { +type GetSecureVulnerabilityV1BundlesBundleIdResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetPolicyResponse + JSON200 *GetBundleResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + Headers200 *GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + Headers400 *GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + Headers401 *GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers + Headers403 *GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + Headers429 *GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + Headers500 *GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79116,7 +82802,7 @@ func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79124,127 +82810,113 @@ func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ScannerAPIServiceListRegistryResultsResponse200Headers the declared response headers of an HTTP 200 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse200Headers struct { - XRateLimitLimit *int32 -} - -// ScannerAPIServiceListRegistryResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse400Headers struct { +// PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse401Headers struct { +// PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse403Headers struct { +// PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse409Headers struct { +// PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse429Headers struct { +// PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse500Headers the declared response headers of an HTTP 500 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse500Headers struct { +// PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ScannerAPIServiceListRegistryResultsResponse struct { +type PutSecureVulnerabilityV1BundlesBundleIdResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RegistryResultsResponse + JSON200 *GetBundleResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ScannerAPIServiceListRegistryResultsResponse200Headers + Headers200 *PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ScannerAPIServiceListRegistryResultsResponse400Headers + Headers400 *PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ScannerAPIServiceListRegistryResultsResponse401Headers + Headers401 *PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ScannerAPIServiceListRegistryResultsResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *ScannerAPIServiceListRegistryResultsResponse409Headers + Headers403 *PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ScannerAPIServiceListRegistryResultsResponse429Headers + Headers429 *PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ScannerAPIServiceListRegistryResultsResponse500Headers + Headers500 *PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON200() *RegistryResultsResponse { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON400() *BadRequest { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON401() *Unauthorized { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON403() *Forbidden { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON429() *TooManyRequests { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON500() *InternalServerError { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ScannerAPIServiceListRegistryResultsResponse) GetBody() []byte { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ScannerAPIServiceListRegistryResultsResponse) Status() string { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79252,7 +82924,7 @@ func (r ScannerAPIServiceListRegistryResultsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScannerAPIServiceListRegistryResultsResponse) StatusCode() int { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79260,57 +82932,57 @@ func (r ScannerAPIServiceListRegistryResultsResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ScannerAPIServiceListRegistryResultsResponse) ContentType() string { +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSecureVulnerabilityV1ResultsResultIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse200Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse400Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse401Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse403Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse409Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse409Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse429Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse500Headers struct { +// GetSecureVulnerabilityV1PipelineResultsResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSecureVulnerabilityV1ResultsResultIdResponse struct { +type GetSecureVulnerabilityV1PipelineResultsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ScanResultResponse + JSON200 *PipelineResultsResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -79324,63 +82996,63 @@ type GetSecureVulnerabilityV1ResultsResultIdResponse struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSecureVulnerabilityV1ResultsResultIdResponse200Headers + Headers200 *GetSecureVulnerabilityV1PipelineResultsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1ResultsResultIdResponse400Headers + Headers400 *GetSecureVulnerabilityV1PipelineResultsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1ResultsResultIdResponse401Headers + Headers401 *GetSecureVulnerabilityV1PipelineResultsResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1ResultsResultIdResponse403Headers + Headers403 *GetSecureVulnerabilityV1PipelineResultsResponse403Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetSecureVulnerabilityV1ResultsResultIdResponse409Headers + Headers409 *GetSecureVulnerabilityV1PipelineResultsResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1ResultsResultIdResponse429Headers + Headers429 *GetSecureVulnerabilityV1PipelineResultsResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1ResultsResultIdResponse500Headers + Headers500 *GetSecureVulnerabilityV1PipelineResultsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON200() *ScanResultResponse { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON200() *PipelineResultsResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON409() *Conflict { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON409() *Conflict { return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON429() *TooManyRequests { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetBody() []byte { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) Status() string { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79388,7 +83060,7 @@ func (r GetSecureVulnerabilityV1ResultsResultIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) StatusCode() int { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79396,57 +83068,57 @@ func (r GetSecureVulnerabilityV1ResultsResultIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) ContentType() string { +func (r GetSecureVulnerabilityV1PipelineResultsResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ScannerAPIServiceListRuntimeResultsResponse200Headers the declared response headers of an HTTP 200 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse200Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse200Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse400Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse400Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse401Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse401Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse403Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse403Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse409Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse409Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse429Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse500Headers the declared response headers of an HTTP 500 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse500Headers struct { +// GetSecureVulnerabilityV1PoliciesResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ScannerAPIServiceListRuntimeResultsResponse struct { +type GetSecureVulnerabilityV1PoliciesResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RuntimeResultsResponse + JSON200 *ListPoliciesResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -79460,63 +83132,63 @@ type ScannerAPIServiceListRuntimeResultsResponse struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ScannerAPIServiceListRuntimeResultsResponse200Headers + Headers200 *GetSecureVulnerabilityV1PoliciesResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ScannerAPIServiceListRuntimeResultsResponse400Headers + Headers400 *GetSecureVulnerabilityV1PoliciesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ScannerAPIServiceListRuntimeResultsResponse401Headers + Headers401 *GetSecureVulnerabilityV1PoliciesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ScannerAPIServiceListRuntimeResultsResponse403Headers + Headers403 *GetSecureVulnerabilityV1PoliciesResponse403Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *ScannerAPIServiceListRuntimeResultsResponse409Headers + Headers409 *GetSecureVulnerabilityV1PoliciesResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ScannerAPIServiceListRuntimeResultsResponse429Headers + Headers429 *GetSecureVulnerabilityV1PoliciesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ScannerAPIServiceListRuntimeResultsResponse500Headers + Headers500 *GetSecureVulnerabilityV1PoliciesResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON200() *RuntimeResultsResponse { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON200() *ListPoliciesResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON409() *Conflict { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON409() *Conflict { return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON429() *TooManyRequests { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ScannerAPIServiceListRuntimeResultsResponse) GetBody() []byte { +func (r GetSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ScannerAPIServiceListRuntimeResultsResponse) Status() string { +func (r GetSecureVulnerabilityV1PoliciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79524,7 +83196,7 @@ func (r ScannerAPIServiceListRuntimeResultsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScannerAPIServiceListRuntimeResultsResponse) StatusCode() int { +func (r GetSecureVulnerabilityV1PoliciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79532,57 +83204,57 @@ func (r ScannerAPIServiceListRuntimeResultsResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ScannerAPIServiceListRuntimeResultsResponse) ContentType() string { +func (r GetSecureVulnerabilityV1PoliciesResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetAcceptedRisksV1Response200Headers the declared response headers of an HTTP 200 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response200Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse201Headers the declared response headers of an HTTP 201 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse201Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response400Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse400Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response401Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse401Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response403Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse403Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response409Headers the declared response headers of an HTTP 409 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response409Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse409Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response429Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response500Headers the declared response headers of an HTTP 500 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response500Headers struct { +// PostSecureVulnerabilityV1PoliciesResponse500Headers the declared response headers of an HTTP 500 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetAcceptedRisksV1Response struct { +type PostSecureVulnerabilityV1PoliciesResponse struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListRiskAcceptedResponse + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *GetPolicyResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -79595,64 +83267,64 @@ type GetAcceptedRisksV1Response struct { JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetAcceptedRisksV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *PostSecureVulnerabilityV1PoliciesResponse201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAcceptedRisksV1Response400Headers + Headers400 *PostSecureVulnerabilityV1PoliciesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAcceptedRisksV1Response401Headers + Headers401 *PostSecureVulnerabilityV1PoliciesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetAcceptedRisksV1Response403Headers + Headers403 *PostSecureVulnerabilityV1PoliciesResponse403Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetAcceptedRisksV1Response409Headers + Headers409 *PostSecureVulnerabilityV1PoliciesResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAcceptedRisksV1Response429Headers + Headers429 *PostSecureVulnerabilityV1PoliciesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAcceptedRisksV1Response500Headers + Headers500 *PostSecureVulnerabilityV1PoliciesResponse500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON200() *ListRiskAcceptedResponse { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON201() *GetPolicyResponse { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON400() *BadRequest { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON401() *Unauthorized { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON403() *Forbidden { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON409() *Conflict { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON409() *Conflict { return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON429() *TooManyRequests { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON500() *InternalServerError { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAcceptedRisksV1Response) GetBody() []byte { +func (r PostSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAcceptedRisksV1Response) Status() string { +func (r PostSecureVulnerabilityV1PoliciesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79660,7 +83332,7 @@ func (r GetAcceptedRisksV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAcceptedRisksV1Response) StatusCode() int { +func (r PostSecureVulnerabilityV1PoliciesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79668,57 +83340,172 @@ func (r GetAcceptedRisksV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAcceptedRisksV1Response) ContentType() string { +func (r PostSecureVulnerabilityV1PoliciesResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostAcceptedRiskV1Response201Headers the declared response headers of an HTTP 201 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response201Headers struct { +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response400Headers struct { +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response401Headers struct { +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response403Headers struct { +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response409Headers the declared response headers of an HTTP 409 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response409Headers struct { +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response429Headers struct { +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 +} + +// GetBody returns the raw response body bytes +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) 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 DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response500Headers struct { +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type PostAcceptedRiskV1Response struct { +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *RiskAcceptedResponse + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetPolicyResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -79731,64 +83518,64 @@ type PostAcceptedRiskV1Response struct { JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *PostAcceptedRiskV1Response201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostAcceptedRiskV1Response400Headers + Headers400 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostAcceptedRiskV1Response401Headers + Headers401 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PostAcceptedRiskV1Response403Headers + Headers403 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PostAcceptedRiskV1Response409Headers + Headers409 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostAcceptedRiskV1Response429Headers + Headers429 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PostAcceptedRiskV1Response500Headers + Headers500 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON201() *RiskAcceptedResponse { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON409() *Conflict { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostAcceptedRiskV1Response) GetBody() []byte { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostAcceptedRiskV1Response) Status() string { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79796,7 +83583,7 @@ func (r PostAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostAcceptedRiskV1Response) StatusCode() int { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79804,120 +83591,127 @@ func (r PostAcceptedRiskV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAcceptedRiskV1Response) ContentType() string { +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteAcceptedRiskV1Response204Headers the declared response headers of an HTTP 204 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response204Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response400Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response401Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response403Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response404Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response429Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response500Headers struct { +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteAcceptedRiskV1Response struct { +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetPolicyResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteAcceptedRiskV1Response204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteAcceptedRiskV1Response400Headers + Headers400 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteAcceptedRiskV1Response401Headers + Headers401 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteAcceptedRiskV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteAcceptedRiskV1Response404Headers + Headers403 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteAcceptedRiskV1Response429Headers + Headers429 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteAcceptedRiskV1Response500Headers + Headers500 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON400() *BadRequest { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteAcceptedRiskV1Response) GetBody() []byte { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteAcceptedRiskV1Response) Status() string { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79925,7 +83719,7 @@ func (r DeleteAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAcceptedRiskV1Response) StatusCode() int { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79933,127 +83727,127 @@ func (r DeleteAcceptedRiskV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAcceptedRiskV1Response) ContentType() string { +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetAcceptedRiskV1Response200Headers the declared response headers of an HTTP 200 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response200Headers struct { +// ScannerAPIServiceListRegistryResultsResponse200Headers the declared response headers of an HTTP 200 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse200Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response400Headers struct { +// ScannerAPIServiceListRegistryResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse400Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response401Headers struct { +// ScannerAPIServiceListRegistryResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse401Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response403Headers struct { +// ScannerAPIServiceListRegistryResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse403Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response404Headers struct { +// ScannerAPIServiceListRegistryResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse409Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response429Headers struct { +// ScannerAPIServiceListRegistryResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response500Headers struct { +// ScannerAPIServiceListRegistryResultsResponse500Headers the declared response headers of an HTTP 500 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetAcceptedRiskV1Response struct { +type ScannerAPIServiceListRegistryResultsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RiskAcceptedResponse + JSON200 *RegistryResultsResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetAcceptedRiskV1Response200Headers + Headers200 *ScannerAPIServiceListRegistryResultsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAcceptedRiskV1Response400Headers + Headers400 *ScannerAPIServiceListRegistryResultsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAcceptedRiskV1Response401Headers + Headers401 *ScannerAPIServiceListRegistryResultsResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetAcceptedRiskV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAcceptedRiskV1Response404Headers + Headers403 *ScannerAPIServiceListRegistryResultsResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *ScannerAPIServiceListRegistryResultsResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAcceptedRiskV1Response429Headers + Headers429 *ScannerAPIServiceListRegistryResultsResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAcceptedRiskV1Response500Headers + Headers500 *ScannerAPIServiceListRegistryResultsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON200() *RegistryResultsResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON400() *BadRequest { +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAcceptedRiskV1Response) GetBody() []byte { +func (r ScannerAPIServiceListRegistryResultsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAcceptedRiskV1Response) Status() string { +func (r ScannerAPIServiceListRegistryResultsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80061,7 +83855,7 @@ func (r GetAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAcceptedRiskV1Response) StatusCode() int { +func (r ScannerAPIServiceListRegistryResultsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80069,127 +83863,127 @@ func (r GetAcceptedRiskV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAcceptedRiskV1Response) ContentType() string { +func (r ScannerAPIServiceListRegistryResultsResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateAcceptedRiskV1Response200Headers the declared response headers of an HTTP 200 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response200Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse200Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response400Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse400Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response401Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse401Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response403Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse403Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response404Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse409Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response429Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response500Headers struct { +// GetSecureVulnerabilityV1ResultsResultIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateAcceptedRiskV1Response struct { +type GetSecureVulnerabilityV1ResultsResultIdResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RiskAcceptedResponse + JSON200 *ScanResultResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateAcceptedRiskV1Response200Headers + Headers200 *GetSecureVulnerabilityV1ResultsResultIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateAcceptedRiskV1Response400Headers + Headers400 *GetSecureVulnerabilityV1ResultsResultIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateAcceptedRiskV1Response401Headers + Headers401 *GetSecureVulnerabilityV1ResultsResultIdResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateAcceptedRiskV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateAcceptedRiskV1Response404Headers + Headers403 *GetSecureVulnerabilityV1ResultsResultIdResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *GetSecureVulnerabilityV1ResultsResultIdResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateAcceptedRiskV1Response429Headers + Headers429 *GetSecureVulnerabilityV1ResultsResultIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateAcceptedRiskV1Response500Headers + Headers500 *GetSecureVulnerabilityV1ResultsResultIdResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON200() *ScanResultResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateAcceptedRiskV1Response) GetBody() []byte { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateAcceptedRiskV1Response) Status() string { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80197,7 +83991,7 @@ func (r UpdateAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateAcceptedRiskV1Response) StatusCode() int { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80205,142 +83999,127 @@ func (r UpdateAcceptedRiskV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAcceptedRiskV1Response) ContentType() string { +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSBOMV1beta1Response200Headers the declared response headers of an HTTP 200 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response200Headers struct { - ContentType *string - XRateLimitLimit *int32 -} - -// GetSBOMV1beta1Response400Headers the declared response headers of an HTTP 400 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response400Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse200Headers the declared response headers of an HTTP 200 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse200Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response401Headers the declared response headers of an HTTP 401 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response401Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse400Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response403Headers the declared response headers of an HTTP 403 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response403Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse401Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response404Headers the declared response headers of an HTTP 404 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response404Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse403Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response406Headers the declared response headers of an HTTP 406 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response406Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse409Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response429Headers the declared response headers of an HTTP 429 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response429Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSBOMV1beta1Response500Headers the declared response headers of an HTTP 500 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response500Headers struct { +// ScannerAPIServiceListRuntimeResultsResponse500Headers the declared response headers of an HTTP 500 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSBOMV1beta1Response struct { +type ScannerAPIServiceListRuntimeResultsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SbomResultResponse + JSON200 *RuntimeResultsResponse // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON406 the response for an HTTP 406 `application/json` response - JSON406 *string + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON429 the response for an HTTP 429 `application/json` response JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSBOMV1beta1Response200Headers + Headers200 *ScannerAPIServiceListRuntimeResultsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSBOMV1beta1Response400Headers + Headers400 *ScannerAPIServiceListRuntimeResultsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSBOMV1beta1Response401Headers + Headers401 *ScannerAPIServiceListRuntimeResultsResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSBOMV1beta1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetSBOMV1beta1Response404Headers - // Headers406 the parsed response headers for an HTTP 406 response - Headers406 *GetSBOMV1beta1Response406Headers + Headers403 *ScannerAPIServiceListRuntimeResultsResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *ScannerAPIServiceListRuntimeResultsResponse409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSBOMV1beta1Response429Headers + Headers429 *ScannerAPIServiceListRuntimeResultsResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSBOMV1beta1Response500Headers + Headers500 *ScannerAPIServiceListRuntimeResultsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON200() *SbomResultResponse { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON200() *RuntimeResultsResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON400() *BadRequest { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON401() *Unauthorized { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON403() *Forbidden { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON406 returns the response for an HTTP 406 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON406() *string { - return r.JSON406 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON429() *TooManyRequests { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON500() *InternalServerError { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSBOMV1beta1Response) GetBody() []byte { +func (r ScannerAPIServiceListRuntimeResultsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSBOMV1beta1Response) Status() string { +func (r ScannerAPIServiceListRuntimeResultsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80348,7 +84127,7 @@ func (r GetSBOMV1beta1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSBOMV1beta1Response) StatusCode() int { +func (r ScannerAPIServiceListRuntimeResultsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80356,4989 +84135,7395 @@ func (r GetSBOMV1beta1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSBOMV1beta1Response) ContentType() string { +func (r ScannerAPIServiceListRuntimeResultsResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteZonePolicyAssociationWithResponse Delete Zone Policy Association -// -// Remove all policies associated with a specific zone.\ -// \ -// **Required permissions:** cspm.policies.edit -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /api/cspm/v1/zones/{zoneId}/policies (the `DeleteZonePolicyAssociation` operationId). -func (c *ClientWithResponses) DeleteZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*DeleteZonePolicyAssociationResponse, error) { - rsp, err := c.DeleteZonePolicyAssociation(ctx, zoneId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteZonePolicyAssociationResponse(rsp) +// GetAcceptedRisksV1Response200Headers the declared response headers of an HTTP 200 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response200Headers struct { + XRateLimitLimit *int32 } -// GetZonePolicyAssociationWithResponse Get Zone Policy Association -// -// Retrieve the policies associated with a specific zone.\ -// \ -// **Required permissions:** cspm.policies.read -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /api/cspm/v1/zones/{zoneId}/policies (the `GetZonePolicyAssociation` operationId). -func (c *ClientWithResponses) GetZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*GetZonePolicyAssociationResponse, error) { - rsp, err := c.GetZonePolicyAssociation(ctx, zoneId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetZonePolicyAssociationResponse(rsp) +// GetAcceptedRisksV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response400Headers struct { + XRateLimitLimit *int32 } -// CreateZonePolicyAssociationWithBodyWithResponse Create Zone Policy Association -// -// Associate a list of policies with a specific zone.\ -// \ -// **Required permissions:** cspm.policies.edit -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /api/cspm/v1/zones/{zoneId}/policies (the `CreateZonePolicyAssociation` operationId). -func (c *ClientWithResponses) CreateZonePolicyAssociationWithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZonePolicyAssociationResponse, error) { - rsp, err := c.CreateZonePolicyAssociationWithBody(ctx, zoneId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateZonePolicyAssociationResponse(rsp) +// GetAcceptedRisksV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response401Headers struct { + XRateLimitLimit *int32 } -// CreateZonePolicyAssociationWithResponse Create Zone Policy Association -// -// Associate a list of policies with a specific zone.\ -// \ -// **Required permissions:** cspm.policies.edit -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /api/cspm/v1/zones/{zoneId}/policies (the `CreateZonePolicyAssociation` operationId). -func (c *ClientWithResponses) CreateZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, body CreateZonePolicyAssociationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZonePolicyAssociationResponse, error) { - rsp, err := c.CreateZonePolicyAssociation(ctx, zoneId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateZonePolicyAssociationResponse(rsp) +// GetAcceptedRisksV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response403Headers struct { + XRateLimitLimit *int32 } -// UpdateZonePolicyAssociationWithBodyWithResponse Update Zone Policy Association -// -// Update the policies associated with a specific zone.\ -// This operation replaces the existing policy list with the new one.\ -// \ -// **Required permissions:** cspm.policies.edit -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /api/cspm/v1/zones/{zoneId}/policies (the `UpdateZonePolicyAssociation` operationId). -func (c *ClientWithResponses) UpdateZonePolicyAssociationWithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZonePolicyAssociationResponse, error) { - rsp, err := c.UpdateZonePolicyAssociationWithBody(ctx, zoneId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateZonePolicyAssociationResponse(rsp) +// GetAcceptedRisksV1Response409Headers the declared response headers of an HTTP 409 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response409Headers struct { + XRateLimitLimit *int32 } -// UpdateZonePolicyAssociationWithResponse Update Zone Policy Association -// -// Update the policies associated with a specific zone.\ -// This operation replaces the existing policy list with the new one.\ -// \ -// **Required permissions:** cspm.policies.edit -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /api/cspm/v1/zones/{zoneId}/policies (the `UpdateZonePolicyAssociation` operationId). -func (c *ClientWithResponses) UpdateZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, body UpdateZonePolicyAssociationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZonePolicyAssociationResponse, error) { - rsp, err := c.UpdateZonePolicyAssociation(ctx, zoneId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateZonePolicyAssociationResponse(rsp) +// GetAcceptedRisksV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// GetQueryResultWithResponse Execute SysQL query via GET -// -// Retrieve resources from the graph datastore using the GET method. -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /api/sysql/v2/query (the `GetQueryResult` operationId). -func (c *ClientWithResponses) GetQueryResultWithResponse(ctx context.Context, params *GetQueryResultParams, reqEditors ...RequestEditorFn) (*GetQueryResultResponse, error) { - rsp, err := c.GetQueryResult(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetQueryResultResponse(rsp) +// GetAcceptedRisksV1Response500Headers the declared response headers of an HTTP 500 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// PostQueryResultWithBodyWithResponse Execute SysQL query via POST -// -// Retrieve resources from the graph datastore using the POST method. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /api/sysql/v2/query (the `PostQueryResult` operationId). -func (c *ClientWithResponses) PostQueryResultWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostQueryResultResponse, error) { - rsp, err := c.PostQueryResultWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostQueryResultResponse(rsp) +type GetAcceptedRisksV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ListRiskAcceptedResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetAcceptedRisksV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetAcceptedRisksV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetAcceptedRisksV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetAcceptedRisksV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *GetAcceptedRisksV1Response409Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetAcceptedRisksV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetAcceptedRisksV1Response500Headers } -// PostQueryResultWithResponse Execute SysQL query via POST -// -// Retrieve resources from the graph datastore using the POST method. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /api/sysql/v2/query (the `PostQueryResult` operationId). -func (c *ClientWithResponses) PostQueryResultWithResponse(ctx context.Context, body PostQueryResultJSONRequestBody, reqEditors ...RequestEditorFn) (*PostQueryResultResponse, error) { - rsp, err := c.PostQueryResult(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostQueryResultResponse(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON200() *ListRiskAcceptedResponse { + return r.JSON200 } -// GetSchemaWithResponse Get SysQL Schema -// -// Retrieve the schema information for all entities and their relationships in YAML format. -// This endpoint returns the graph schema definition that describes available entities, -// their fields, and relationships. -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /api/sysql/v2/schema (the `GetSchema` operationId). -func (c *ClientWithResponses) GetSchemaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSchemaResponse, error) { - rsp, err := c.GetSchema(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSchemaResponse(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// GetInhibitionRulesWithResponse List Inhibition Rules -// -// Retrieve the list of inhibition rules.\ -// \ -// **Required permissions:** _inhibition-rules.read_ or _alerts.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/alerts/v1/inhibition-rules (the `GetInhibitionRules` operationId). -func (c *ClientWithResponses) GetInhibitionRulesWithResponse(ctx context.Context, params *GetInhibitionRulesParams, reqEditors ...RequestEditorFn) (*GetInhibitionRulesResponse, error) { - rsp, err := c.GetInhibitionRules(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetInhibitionRulesResponse(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// CreateInhibitionRuleWithBodyWithResponse Create Inhibition Rule -// -// Create an inhibition rule.\ -// \ -// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/alerts/v1/inhibition-rules (the `CreateInhibitionRule` operationId). -func (c *ClientWithResponses) CreateInhibitionRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInhibitionRuleResponse, error) { - rsp, err := c.CreateInhibitionRuleWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateInhibitionRuleResponse(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// CreateInhibitionRuleWithResponse Create Inhibition Rule -// -// Create an inhibition rule.\ -// \ -// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/alerts/v1/inhibition-rules (the `CreateInhibitionRule` operationId). -func (c *ClientWithResponses) CreateInhibitionRuleWithResponse(ctx context.Context, body CreateInhibitionRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInhibitionRuleResponse, error) { - rsp, err := c.CreateInhibitionRule(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateInhibitionRuleResponse(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON409() *Conflict { + return r.JSON409 } -// DeleteInhibitionRuleByIdWithResponse Delete Inhibition Rule -// -// Delete an inhibition rule by its ID.\ -// \ -// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `DeleteInhibitionRuleById` operationId). -func (c *ClientWithResponses) DeleteInhibitionRuleByIdWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, reqEditors ...RequestEditorFn) (*DeleteInhibitionRuleByIdResponse, error) { - rsp, err := c.DeleteInhibitionRuleById(ctx, inhibitionRuleId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteInhibitionRuleByIdResponse(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// GetInhibitionRuleByIdWithResponse Get Inhibition Rule -// -// Retrieve an inhibition rule by ID.\ -// \ -// **Required permissions:** _inhibition-rules.read_ or _alerts.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `GetInhibitionRuleById` operationId). -func (c *ClientWithResponses) GetInhibitionRuleByIdWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, reqEditors ...RequestEditorFn) (*GetInhibitionRuleByIdResponse, error) { - rsp, err := c.GetInhibitionRuleById(ctx, inhibitionRuleId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetInhibitionRuleByIdResponse(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// UpdateInhibitionRuleWithBodyWithResponse Update Inhibition Rule -// -// Update an inhibition rule.\ -// \ -// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `UpdateInhibitionRule` operationId). -func (c *ClientWithResponses) UpdateInhibitionRuleWithBodyWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInhibitionRuleResponse, error) { - rsp, err := c.UpdateInhibitionRuleWithBody(ctx, inhibitionRuleId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateInhibitionRuleResponse(rsp) +// GetBody returns the raw response body bytes +func (r GetAcceptedRisksV1Response) GetBody() []byte { + return r.Body } -// UpdateInhibitionRuleWithResponse Update Inhibition Rule -// -// Update an inhibition rule.\ -// \ -// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `UpdateInhibitionRule` operationId). -func (c *ClientWithResponses) UpdateInhibitionRuleWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, body UpdateInhibitionRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInhibitionRuleResponse, error) { - rsp, err := c.UpdateInhibitionRule(ctx, inhibitionRuleId, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAcceptedRisksV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateInhibitionRuleResponse(rsp) + return http.StatusText(0) } -// GetPricingV1WithResponse List Pricing -// -// Retrieve a paginated list of pricing.\ -// \ -// **Required permissions:** _cost-advisor.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/cost-advisor/v1/pricing (the `GetPricingV1` operationId). -func (c *ClientWithResponses) GetPricingV1WithResponse(ctx context.Context, params *GetPricingV1Params, reqEditors ...RequestEditorFn) (*GetPricingV1Response, error) { - rsp, err := c.GetPricingV1(ctx, params, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetAcceptedRisksV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetPricingV1Response(rsp) + return 0 } -// CreatePricingV1WithBodyWithResponse Create Pricing -// -// Change a new pricing to use as default (for cloud providers that Cost Advisor doesn't automatically support) or for a specific Kubernetes cluster.\ -// \ -// You need to specify hourly costs for 1 CPU, 1GB of RAM and 1GB of storage. \ -// Different CPU and RAM costs can be specified for spot instances; to enable Cost Advisor to identify the spot node, a label and spot value must also be set. \ -// \ -// Cluster hourly cost = sum(node hourly costs) + (total storage * storage unit cost). \ -// Node hourly cost = (total CPUs * CPU unit cost) + (total RAM * RAM unit cost) \ -// \ -// **Required permissions:** _cost-advisor.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1/pricing (the `CreatePricingV1` operationId). -func (c *ClientWithResponses) CreatePricingV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingV1Response, error) { - rsp, err := c.CreatePricingV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAcceptedRisksV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseCreatePricingV1Response(rsp) + return "" } -// CreatePricingV1WithResponse Create Pricing -// -// Change a new pricing to use as default (for cloud providers that Cost Advisor doesn't automatically support) or for a specific Kubernetes cluster.\ -// \ -// You need to specify hourly costs for 1 CPU, 1GB of RAM and 1GB of storage. \ -// Different CPU and RAM costs can be specified for spot instances; to enable Cost Advisor to identify the spot node, a label and spot value must also be set. \ -// \ -// Cluster hourly cost = sum(node hourly costs) + (total storage * storage unit cost). \ -// Node hourly cost = (total CPUs * CPU unit cost) + (total RAM * RAM unit cost) \ -// \ -// **Required permissions:** _cost-advisor.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1/pricing (the `CreatePricingV1` operationId). -func (c *ClientWithResponses) CreatePricingV1WithResponse(ctx context.Context, body CreatePricingV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingV1Response, error) { - rsp, err := c.CreatePricingV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreatePricingV1Response(rsp) +// PostAcceptedRiskV1Response201Headers the declared response headers of an HTTP 201 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response201Headers struct { + XRateLimitLimit *int32 } -// DeletePricingByIdV1WithResponse Delete Pricing -// -// Delete a pricing by its ID. If the pricing deleted is the DEFAULT one. Cost Advisor will continue to compute costs for the unsupported Kubernetes cluster using the Sysdig default pricing.\ -// \ -// **Required permissions:** _cost-advisor.edit_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /monitor/cost-advisor/v1/pricing/{pricingId} (the `DeletePricingByIdV1` operationId). -func (c *ClientWithResponses) DeletePricingByIdV1WithResponse(ctx context.Context, pricingId PricingIdPath, reqEditors ...RequestEditorFn) (*DeletePricingByIdV1Response, error) { - rsp, err := c.DeletePricingByIdV1(ctx, pricingId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeletePricingByIdV1Response(rsp) +// PostAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetPricingByIdV1WithResponse Get Pricing -// -// Retrieve a pricing by ID.\ -// \ -// **Required permissions:** _cost-advisor.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/cost-advisor/v1/pricing/{pricingId} (the `GetPricingByIdV1` operationId). -func (c *ClientWithResponses) GetPricingByIdV1WithResponse(ctx context.Context, pricingId PricingIdPath, reqEditors ...RequestEditorFn) (*GetPricingByIdV1Response, error) { - rsp, err := c.GetPricingByIdV1(ctx, pricingId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPricingByIdV1Response(rsp) +// PostAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// UpdatePricingByIdV1WithBodyWithResponse Update Pricing -// -// The pricing payload containing the changes you want to apply to the pricing.\ -// \ -// **Required permissions:** _cost-advisor.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/cost-advisor/v1/pricing/{pricingId} (the `UpdatePricingByIdV1` operationId). -func (c *ClientWithResponses) UpdatePricingByIdV1WithBodyWithResponse(ctx context.Context, pricingId PricingIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingByIdV1Response, error) { - rsp, err := c.UpdatePricingByIdV1WithBody(ctx, pricingId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePricingByIdV1Response(rsp) +// PostAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// UpdatePricingByIdV1WithResponse Update Pricing -// -// The pricing payload containing the changes you want to apply to the pricing.\ -// \ -// **Required permissions:** _cost-advisor.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/cost-advisor/v1/pricing/{pricingId} (the `UpdatePricingByIdV1` operationId). -func (c *ClientWithResponses) UpdatePricingByIdV1WithResponse(ctx context.Context, pricingId PricingIdPath, body UpdatePricingByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingByIdV1Response, error) { - rsp, err := c.UpdatePricingByIdV1(ctx, pricingId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdatePricingByIdV1Response(rsp) +// PostAcceptedRiskV1Response409Headers the declared response headers of an HTTP 409 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response409Headers struct { + XRateLimitLimit *int32 } -// GetPricingProjectedCostsV1WithResponse Get Pricing Projected Costs -// -// Retrieve the monthly projected costs for the clusters using the specified pricing.\ -// The computation is done using the total CPU and RAM for the current cluster's nodes and the total storage used by the cluster.\ -// \ -// Projected monthly cost = 730 * (total CPUs * CPU unit cost) + (total RAM * RAM unit cost) + (total storage * storage unit cost). \ -// \ -// **Required permissions:** _cost-advisor.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/cost-advisor/v1/pricing/{pricingId}/projected-costs (the `GetPricingProjectedCostsV1` operationId). -func (c *ClientWithResponses) GetPricingProjectedCostsV1WithResponse(ctx context.Context, pricingId PricingIdPath, params *GetPricingProjectedCostsV1Params, reqEditors ...RequestEditorFn) (*GetPricingProjectedCostsV1Response, error) { - rsp, err := c.GetPricingProjectedCostsV1(ctx, pricingId, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPricingProjectedCostsV1Response(rsp) +// PostAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// GetWastedWorkloadDataWithBodyWithResponse Wasted Workload Spend Data -// -// Use this API to generate a report of Wasted Workload Spend data for a specified date range, scope, -// and grouping. For details, see [Wasted Workload Spend Report](https://docs.sysdig.com/en/sysdig-monitor/cost-reports/#wasted-workload-spend-report). -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/wasted-workload-spend (the `GetWastedWorkloadData` operationId). -func (c *ClientWithResponses) GetWastedWorkloadDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWastedWorkloadDataResponse, error) { - rsp, err := c.GetWastedWorkloadDataWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWastedWorkloadDataResponse(rsp) +// PostAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetWastedWorkloadDataWithResponse Wasted Workload Spend Data -// -// Use this API to generate a report of Wasted Workload Spend data for a specified date range, scope, -// and grouping. For details, see [Wasted Workload Spend Report](https://docs.sysdig.com/en/sysdig-monitor/cost-reports/#wasted-workload-spend-report). -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/wasted-workload-spend (the `GetWastedWorkloadData` operationId). -func (c *ClientWithResponses) GetWastedWorkloadDataWithResponse(ctx context.Context, body GetWastedWorkloadDataJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWastedWorkloadDataResponse, error) { - rsp, err := c.GetWastedWorkloadData(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWastedWorkloadDataResponse(rsp) +type PostAcceptedRiskV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *RiskAcceptedResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *PostAcceptedRiskV1Response201Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PostAcceptedRiskV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *PostAcceptedRiskV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *PostAcceptedRiskV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *PostAcceptedRiskV1Response409Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *PostAcceptedRiskV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *PostAcceptedRiskV1Response500Headers } -// GetWorkloadCostDataV1WithBodyWithResponse Workload Cost Trends Data -// -// Returns workload cost trends data for a specified trend range, pivot date, optional scope, -// and optional grouping. The response includes cost totals for both current -// and previous periods, along with the date ranges for each period. -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-cost-trends (the `GetWorkloadCostDataV1` operationId). -func (c *ClientWithResponses) GetWorkloadCostDataV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWorkloadCostDataV1Response, error) { - rsp, err := c.GetWorkloadCostDataV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkloadCostDataV1Response(rsp) +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON201() *RiskAcceptedResponse { + return r.JSON201 } -// GetWorkloadCostDataV1WithResponse Workload Cost Trends Data -// -// Returns workload cost trends data for a specified trend range, pivot date, optional scope, -// and optional grouping. The response includes cost totals for both current -// and previous periods, along with the date ranges for each period. -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-cost-trends (the `GetWorkloadCostDataV1` operationId). -func (c *ClientWithResponses) GetWorkloadCostDataV1WithResponse(ctx context.Context, body GetWorkloadCostDataV1JSONRequestBody, reqEditors ...RequestEditorFn) (*GetWorkloadCostDataV1Response, error) { - rsp, err := c.GetWorkloadCostDataV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkloadCostDataV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// GetWorkloadRightsizingDataWithBodyWithResponse Workload Rightsizing Data -// -// Use this API to generate a Workload Rightsizing data for a specified date range, algorithm and optional scope. -// The response is automatically grouped by the following Prometheus labels: -// - kube_cluster_name -// - kube_namespace_name -// - kube_workload_name -// - container_name -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-rightsizing (the `GetWorkloadRightsizingData` operationId). -func (c *ClientWithResponses) GetWorkloadRightsizingDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWorkloadRightsizingDataResponse, error) { - rsp, err := c.GetWorkloadRightsizingDataWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkloadRightsizingDataResponse(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// GetWorkloadRightsizingDataWithResponse Workload Rightsizing Data -// -// Use this API to generate a Workload Rightsizing data for a specified date range, algorithm and optional scope. -// The response is automatically grouped by the following Prometheus labels: -// - kube_cluster_name -// - kube_namespace_name -// - kube_workload_name -// - container_name -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-rightsizing (the `GetWorkloadRightsizingData` operationId). -func (c *ClientWithResponses) GetWorkloadRightsizingDataWithResponse(ctx context.Context, body GetWorkloadRightsizingDataJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWorkloadRightsizingDataResponse, error) { - rsp, err := c.GetWorkloadRightsizingData(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkloadRightsizingDataResponse(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// GetMonitorEventsV1WithResponse Get Events -// -// Retrieves the list of events matching the expressed search criteria. -// The pair `from` and `to` and the `cursor` parameter are mutually exclusive. If you supply a `from` and `to` you must not supply a `cursor` and vice-versa. -// The time criteria is required and can be specified in two different ways: -// - Using `from` and `to`, the list of events within the timeframe (max 2 weeks) will be returned, starting from the most recent ones. -// - Using a `cursor` the events returned will be in the before or after the event, depending on the cursor type. More details are available in the `cursor` attribute in the response.\ -// \ -// **Required permissions:** -// - _alert-events.read_ for alert events to be included in the response -// - _custom-events.read_ for custom events to be included in the response -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/events/v1/events (the `GetMonitorEventsV1` operationId). -func (c *ClientWithResponses) GetMonitorEventsV1WithResponse(ctx context.Context, params *GetMonitorEventsV1Params, reqEditors ...RequestEditorFn) (*GetMonitorEventsV1Response, error) { - rsp, err := c.GetMonitorEventsV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetMonitorEventsV1Response(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON409() *Conflict { + return r.JSON409 } -// GetDisabledMetricsByJobV1WithResponse List disabled metrics collection for Jobs. -// -// List all disabled metrics per Job.\ -// \ -// **Required permissions:** Integrations Read -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/prometheus-jobs/v1/disabled-metrics (the `GetDisabledMetricsByJobV1` operationId). -func (c *ClientWithResponses) GetDisabledMetricsByJobV1WithResponse(ctx context.Context, params *GetDisabledMetricsByJobV1Params, reqEditors ...RequestEditorFn) (*GetDisabledMetricsByJobV1Response, error) { - rsp, err := c.GetDisabledMetricsByJobV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetDisabledMetricsByJobV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// PostDisabledMetricsV1WithBodyWithResponse Disable or re-enable metrics collection for Jobs -// -// Disable specific metric collection for a specified Job. \ -// This API supports specifying multiple Jobs, each with its own list of metrics to be disabled. \ -// Additionally, you can use the same API to re-enable metrics that were previously disabled.\ -// \ -// **Required permissions:** Integrations Full Access -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/prometheus-jobs/v1/disabled-metrics (the `PostDisabledMetricsV1` operationId). -func (c *ClientWithResponses) PostDisabledMetricsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDisabledMetricsV1Response, error) { - rsp, err := c.PostDisabledMetricsV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostDisabledMetricsV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// PostDisabledMetricsV1WithResponse Disable or re-enable metrics collection for Jobs -// -// Disable specific metric collection for a specified Job. \ -// This API supports specifying multiple Jobs, each with its own list of metrics to be disabled. \ -// Additionally, you can use the same API to re-enable metrics that were previously disabled.\ -// \ -// **Required permissions:** Integrations Full Access -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/prometheus-jobs/v1/disabled-metrics (the `PostDisabledMetricsV1` operationId). -func (c *ClientWithResponses) PostDisabledMetricsV1WithResponse(ctx context.Context, body PostDisabledMetricsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*PostDisabledMetricsV1Response, error) { - rsp, err := c.PostDisabledMetricsV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostDisabledMetricsV1Response(rsp) +// GetBody returns the raw response body bytes +func (r PostAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// GetCustomPrometheusJobsV1WithResponse List Custom Prometheus jobs -// -// Retrieve a paginated list of custom Prometheus jobs.\ -// \ -// **Required permissions:** _promcat.integrations.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/prometheus-jobs/v1alpha1/custom-jobs (the `GetCustomPrometheusJobsV1` operationId). -func (c *ClientWithResponses) GetCustomPrometheusJobsV1WithResponse(ctx context.Context, params *GetCustomPrometheusJobsV1Params, reqEditors ...RequestEditorFn) (*GetCustomPrometheusJobsV1Response, error) { - rsp, err := c.GetCustomPrometheusJobsV1(ctx, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r PostAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetCustomPrometheusJobsV1Response(rsp) + return http.StatusText(0) } -// DeleteCustomPrometheusJobByIdV1WithResponse Delete Custom Prometheus job -// -// Delete a custom Prometheus job by its name.\ -// \ -// **Required permissions:** _promcat.integrations.admin_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `DeleteCustomPrometheusJobByIdV1` operationId). -func (c *ClientWithResponses) DeleteCustomPrometheusJobByIdV1WithResponse(ctx context.Context, jobName JobNamePath, reqEditors ...RequestEditorFn) (*DeleteCustomPrometheusJobByIdV1Response, error) { - rsp, err := c.DeleteCustomPrometheusJobByIdV1(ctx, jobName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r PostAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteCustomPrometheusJobByIdV1Response(rsp) + return 0 } -// GetCustomPrometheusJobByNameV1WithResponse Get Custom Prometheus Job -// -// Retrieve a custom Prometheus job by its name.\ -// \ -// **Required permissions:** _promcat.integrations.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `GetCustomPrometheusJobByNameV1` operationId). -func (c *ClientWithResponses) GetCustomPrometheusJobByNameV1WithResponse(ctx context.Context, jobName JobNamePath, reqEditors ...RequestEditorFn) (*GetCustomPrometheusJobByNameV1Response, error) { - rsp, err := c.GetCustomPrometheusJobByNameV1(ctx, jobName, reqEditors...) - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostAcceptedRiskV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetCustomPrometheusJobByNameV1Response(rsp) + return "" } -// CreateCustomPrometheusJobV1WithBodyWithResponse Create Custom Prometheus job -// -// Create a custom Prometheus job. -// \ -// The body of the request must be a valid `scrape_config` as defined here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config\ -// \ -// The custom job will be disabled by default and must be enabled with the `/monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement` api. -// \ -// You can override the standard Sysdig integration jobs using the same job name. The job names are available here: https://docs.sysdig.com/en/docs/sysdig-monitor/integrations/monitoring-integrations/configure-default-integrations/#supported-monitoring-integrations -// \ -// **CAUTION**: the content of the job must be validated according to the Prometheus Scrape Config job definition. Any misconfiguration here can lead the Agent to fail the job parsing and stop sending custom metrics for all jobs. -// \ -// **Required permissions:** _promcat.integrations.admin_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `CreateCustomPrometheusJobV1` operationId). -func (c *ClientWithResponses) CreateCustomPrometheusJobV1WithBodyWithResponse(ctx context.Context, jobName JobNamePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomPrometheusJobV1Response, error) { - rsp, err := c.CreateCustomPrometheusJobV1WithBody(ctx, jobName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateCustomPrometheusJobV1Response(rsp) +// DeleteAcceptedRiskV1Response204Headers the declared response headers of an HTTP 204 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response204Headers struct { + XRateLimitLimit *int32 } -// UpdateCustomPrometheusJobByIdV1WithBodyWithResponse Update Custom Prometheus Job -// -// Update a custom Prometheus job. -// \ -// The body of the request must be a valid `scrape_config` as defined here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config\ -// \ -// You can override the standard Sysdig integration jobs using the same job name. The job names are available here: https://docs.sysdig.com/en/docs/sysdig-monitor/integrations/monitoring-integrations/configure-default-integrations/#supported-monitoring-integrations -// \ -// **CAUTION**: the content of the job must be validated according to the Prometheus Scrape Config job definition. Any misconfiguration here can lead the Agent to fail the job parsing and stop sending custom metrics for all jobs. -// \ -// **Required permissions:** _promcat.integrations.admin_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `UpdateCustomPrometheusJobByIdV1` operationId). -func (c *ClientWithResponses) UpdateCustomPrometheusJobByIdV1WithBodyWithResponse(ctx context.Context, jobName JobNamePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomPrometheusJobByIdV1Response, error) { - rsp, err := c.UpdateCustomPrometheusJobByIdV1WithBody(ctx, jobName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCustomPrometheusJobByIdV1Response(rsp) +// DeleteAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetCustomPrometheusJobEnablementV1WithResponse Get Custom Prometheus Job enablement -// -// Retrieve the enablement state of a custom Prometheus job by its name.\ -// \ -// **Required permissions:** _promcat.integrations.admin_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement (the `GetCustomPrometheusJobEnablementV1` operationId). -func (c *ClientWithResponses) GetCustomPrometheusJobEnablementV1WithResponse(ctx context.Context, jobName JobNamePath, reqEditors ...RequestEditorFn) (*GetCustomPrometheusJobEnablementV1Response, error) { - rsp, err := c.GetCustomPrometheusJobEnablementV1(ctx, jobName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCustomPrometheusJobEnablementV1Response(rsp) +// DeleteAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// UpdateCustomPrometheusJobEnablementV1WithBodyWithResponse Update Custom Prometheus Job enablement -// -// Update the enablement state of a custom Prometheus job by its name.\ -// -// Enablement resolves per cluster: -// - `enabled` sets the default state for clusters without an explicit override. -// - `enablementByCluster` overrides `enabled` on each listed clusters. -// -// To enable a job on one cluster only, set `enabled` to `false` and override that cluster: `{"enabled": false, "enablementByCluster": {"ucp-xyz.com": true}}`. -// -// Conversely, you can set `enabled` to `true` and use `enablementByCluster` to disable selected clusters. -// \ -// **Required permissions:** _promcat.integrations.admin_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement (the `UpdateCustomPrometheusJobEnablementV1` operationId). -func (c *ClientWithResponses) UpdateCustomPrometheusJobEnablementV1WithBodyWithResponse(ctx context.Context, jobName JobNamePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomPrometheusJobEnablementV1Response, error) { - rsp, err := c.UpdateCustomPrometheusJobEnablementV1WithBody(ctx, jobName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCustomPrometheusJobEnablementV1Response(rsp) +// DeleteAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// UpdateCustomPrometheusJobEnablementV1WithResponse Update Custom Prometheus Job enablement -// -// Update the enablement state of a custom Prometheus job by its name.\ -// -// Enablement resolves per cluster: -// - `enabled` sets the default state for clusters without an explicit override. -// - `enablementByCluster` overrides `enabled` on each listed clusters. -// -// To enable a job on one cluster only, set `enabled` to `false` and override that cluster: `{"enabled": false, "enablementByCluster": {"ucp-xyz.com": true}}`. -// -// Conversely, you can set `enabled` to `true` and use `enablementByCluster` to disable selected clusters. -// \ -// **Required permissions:** _promcat.integrations.admin_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement (the `UpdateCustomPrometheusJobEnablementV1` operationId). -func (c *ClientWithResponses) UpdateCustomPrometheusJobEnablementV1WithResponse(ctx context.Context, jobName JobNamePath, body UpdateCustomPrometheusJobEnablementV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomPrometheusJobEnablementV1Response, error) { - rsp, err := c.UpdateCustomPrometheusJobEnablementV1(ctx, jobName, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCustomPrometheusJobEnablementV1Response(rsp) +// DeleteAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response404Headers struct { + XRateLimitLimit *int32 } -// GetJiraIntegrationsV1WithResponse List Jira integrations -// -// This operation returns a paginated list of Jira integrations from the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.read* -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/jira/v1/integrations (the `GetJiraIntegrationsV1` operationId). -func (c *ClientWithResponses) GetJiraIntegrationsV1WithResponse(ctx context.Context, params *GetJiraIntegrationsV1Params, reqEditors ...RequestEditorFn) (*GetJiraIntegrationsV1Response, error) { - rsp, err := c.GetJiraIntegrationsV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetJiraIntegrationsV1Response(rsp) +// DeleteAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// CreateJiraIntegrationV1WithBodyWithResponse Create Jira integration -// -// This operation creates a Jira integration on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/jira/v1/integrations (the `CreateJiraIntegrationV1` operationId). -func (c *ClientWithResponses) CreateJiraIntegrationV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJiraIntegrationV1Response, error) { - rsp, err := c.CreateJiraIntegrationV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateJiraIntegrationV1Response(rsp) +// DeleteAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateJiraIntegrationV1WithResponse Create Jira integration -// -// This operation creates a Jira integration on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/jira/v1/integrations (the `CreateJiraIntegrationV1` operationId). -func (c *ClientWithResponses) CreateJiraIntegrationV1WithResponse(ctx context.Context, body CreateJiraIntegrationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJiraIntegrationV1Response, error) { - rsp, err := c.CreateJiraIntegrationV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateJiraIntegrationV1Response(rsp) +type DeleteAcceptedRiskV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteAcceptedRiskV1Response204Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *DeleteAcceptedRiskV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *DeleteAcceptedRiskV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteAcceptedRiskV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *DeleteAcceptedRiskV1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *DeleteAcceptedRiskV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *DeleteAcceptedRiskV1Response500Headers } -// DeleteJiraIntegrationV1WithResponse Delete Jira integration -// -// This operation deletes a specific Jira integration on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /platform/jira/v1/integrations/{integrationId} (the `DeleteJiraIntegrationV1` operationId). -func (c *ClientWithResponses) DeleteJiraIntegrationV1WithResponse(ctx context.Context, integrationID IntegrationID, reqEditors ...RequestEditorFn) (*DeleteJiraIntegrationV1Response, error) { - rsp, err := c.DeleteJiraIntegrationV1(ctx, integrationID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteJiraIntegrationV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// GetJiraIntegrationV1WithResponse Get Jira integration -// -// This operation returns a specific Jira integration from the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.read* -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/jira/v1/integrations/{integrationId} (the `GetJiraIntegrationV1` operationId). -func (c *ClientWithResponses) GetJiraIntegrationV1WithResponse(ctx context.Context, integrationID IntegrationID, reqEditors ...RequestEditorFn) (*GetJiraIntegrationV1Response, error) { - rsp, err := c.GetJiraIntegrationV1(ctx, integrationID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetJiraIntegrationV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// UpdateJiraIntegrationV1WithBodyWithResponse Update Jira integration -// -// This operation updates a specific Jira integration on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/jira/v1/integrations/{integrationId} (the `UpdateJiraIntegrationV1` operationId). -func (c *ClientWithResponses) UpdateJiraIntegrationV1WithBodyWithResponse(ctx context.Context, integrationID IntegrationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJiraIntegrationV1Response, error) { - rsp, err := c.UpdateJiraIntegrationV1WithBody(ctx, integrationID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateJiraIntegrationV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// UpdateJiraIntegrationV1WithResponse Update Jira integration -// -// This operation updates a specific Jira integration on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/jira/v1/integrations/{integrationId} (the `UpdateJiraIntegrationV1` operationId). -func (c *ClientWithResponses) UpdateJiraIntegrationV1WithResponse(ctx context.Context, integrationID IntegrationID, body UpdateJiraIntegrationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJiraIntegrationV1Response, error) { - rsp, err := c.UpdateJiraIntegrationV1(ctx, integrationID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateJiraIntegrationV1Response(rsp) +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON404() *NotFound { + return r.JSON404 } -// GetJiraIssueTypesV1WithResponse List Jira issue types -// -// This operation returns a list of Jira issue types from the Sysdig platform, associated with a particular Jira integration. -// -// **Required permissions:** *ticketing-integration.read* -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/jira/v1/integrations/{integrationId}/issue-types (the `GetJiraIssueTypesV1` operationId). -func (c *ClientWithResponses) GetJiraIssueTypesV1WithResponse(ctx context.Context, integrationID IntegrationID, reqEditors ...RequestEditorFn) (*GetJiraIssueTypesV1Response, error) { - rsp, err := c.GetJiraIssueTypesV1(ctx, integrationID, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetJiraIssueTypesV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// CreateJiraIssueTypeV1WithBodyWithResponse Create Jira issue type -// -// This operation creates a Jira issue type on the Sysdig platform for the particular Jira integration. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/jira/v1/integrations/{integrationId}/issue-types (the `CreateJiraIssueTypeV1` operationId). -func (c *ClientWithResponses) CreateJiraIssueTypeV1WithBodyWithResponse(ctx context.Context, integrationID IntegrationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJiraIssueTypeV1Response, error) { - rsp, err := c.CreateJiraIssueTypeV1WithBody(ctx, integrationID, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateJiraIssueTypeV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// CreateJiraIssueTypeV1WithResponse Create Jira issue type -// -// This operation creates a Jira issue type on the Sysdig platform for the particular Jira integration. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/jira/v1/integrations/{integrationId}/issue-types (the `CreateJiraIssueTypeV1` operationId). -func (c *ClientWithResponses) CreateJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, body CreateJiraIssueTypeV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJiraIssueTypeV1Response, error) { - rsp, err := c.CreateJiraIssueTypeV1(ctx, integrationID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateJiraIssueTypeV1Response(rsp) +// GetBody returns the raw response body bytes +func (r DeleteAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// DeleteJiraIssueTypeV1WithResponse Delete Jira issue type -// -// This operation deletes a specific Jira issue type on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `DeleteJiraIssueTypeV1` operationId). -func (c *ClientWithResponses) DeleteJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, reqEditors ...RequestEditorFn) (*DeleteJiraIssueTypeV1Response, error) { - rsp, err := c.DeleteJiraIssueTypeV1(ctx, integrationID, issueTypeID, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r DeleteAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteJiraIssueTypeV1Response(rsp) + return http.StatusText(0) } -// GetJiraIssueTypeV1WithResponse Get Jira issue type -// -// This operation returns a specific Jira issue type from the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.read* -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `GetJiraIssueTypeV1` operationId). -func (c *ClientWithResponses) GetJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, reqEditors ...RequestEditorFn) (*GetJiraIssueTypeV1Response, error) { - rsp, err := c.GetJiraIssueTypeV1(ctx, integrationID, issueTypeID, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetJiraIssueTypeV1Response(rsp) + return 0 } -// UpdateJiraIssueTypeV1WithBodyWithResponse Update Jira issue type -// -// This operation updates a specific Jira issue type on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `UpdateJiraIssueTypeV1` operationId). -func (c *ClientWithResponses) UpdateJiraIssueTypeV1WithBodyWithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJiraIssueTypeV1Response, error) { - rsp, err := c.UpdateJiraIssueTypeV1WithBody(ctx, integrationID, issueTypeID, contentType, body, reqEditors...) - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteAcceptedRiskV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseUpdateJiraIssueTypeV1Response(rsp) + return "" } -// UpdateJiraIssueTypeV1WithResponse Update Jira issue type -// -// This operation updates a specific Jira issue type on the Sysdig platform. -// -// **Required permissions:** *ticketing-integration.write* -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `UpdateJiraIssueTypeV1` operationId). -func (c *ClientWithResponses) UpdateJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, body UpdateJiraIssueTypeV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJiraIssueTypeV1Response, error) { - rsp, err := c.UpdateJiraIssueTypeV1(ctx, integrationID, issueTypeID, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateJiraIssueTypeV1Response(rsp) +// GetAcceptedRiskV1Response200Headers the declared response headers of an HTTP 200 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response200Headers struct { + XRateLimitLimit *int32 } -// ListJobsV1WithResponse List Report Job Runs -// -// Retrieve a list of Report Job runs.\ -// \ -// **Required permissions:** platform.reporting.report-downloads.read -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/reporting/v1/jobs (the `ListJobsV1` operationId). -func (c *ClientWithResponses) ListJobsV1WithResponse(ctx context.Context, params *ListJobsV1Params, reqEditors ...RequestEditorFn) (*ListJobsV1Response, error) { - rsp, err := c.ListJobsV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseListJobsV1Response(rsp) +// GetAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// ListSchedulesV1WithResponse List Report Schedules -// -// Retrieve a paginated list of Report Schedules.\ -// \ -// **Required permissions:** platform.reporting.schedules.read -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/reporting/v1/schedules (the `ListSchedulesV1` operationId). -func (c *ClientWithResponses) ListSchedulesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSchedulesV1Response, error) { - rsp, err := c.ListSchedulesV1(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseListSchedulesV1Response(rsp) +// GetAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetAccessKeysV1WithResponse List Access Keys -// -// Retrieve a paginated list of access keys.\ -// \ -// **Required permissions:** _customer-access-keys.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/access-keys (the `GetAccessKeysV1` operationId). -func (c *ClientWithResponses) GetAccessKeysV1WithResponse(ctx context.Context, params *GetAccessKeysV1Params, reqEditors ...RequestEditorFn) (*GetAccessKeysV1Response, error) { - rsp, err := c.GetAccessKeysV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAccessKeysV1Response(rsp) +// GetAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// CreateAccessKeyV1WithBodyWithResponse Create Access Key -// -// Create a new access key.\ -// \ -// **Required permissions:** _customer-access-keys.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). -func (c *ClientWithResponses) CreateAccessKeyV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessKeyV1Response, error) { - rsp, err := c.CreateAccessKeyV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAccessKeyV1Response(rsp) +// GetAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response404Headers struct { + XRateLimitLimit *int32 } -// CreateAccessKeyV1WithResponse Create Access Key -// -// Create a new access key.\ -// \ -// **Required permissions:** _customer-access-keys.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). -func (c *ClientWithResponses) CreateAccessKeyV1WithResponse(ctx context.Context, body CreateAccessKeyV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessKeyV1Response, error) { - rsp, err := c.CreateAccessKeyV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateAccessKeyV1Response(rsp) +// GetAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// DeleteAccessKeyByIdV1WithResponse Delete Access Key -// -// Delete an access key by id.\ -// \ -// **Required permissions:** customer-access-keys.edit_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /platform/v1/access-keys/{accessKeyId} (the `DeleteAccessKeyByIdV1` operationId). -func (c *ClientWithResponses) DeleteAccessKeyByIdV1WithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*DeleteAccessKeyByIdV1Response, error) { - rsp, err := c.DeleteAccessKeyByIdV1(ctx, accessKeyId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAccessKeyByIdV1Response(rsp) +// GetAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeyByIdV1WithResponse Get Access Key -// -// Return an access key by id.\ -// \ -// **Required permissions:** _customer-access-keys.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/access-keys/{accessKeyId} (the `GetAccessKeyByIdV1` operationId). -func (c *ClientWithResponses) GetAccessKeyByIdV1WithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*GetAccessKeyByIdV1Response, error) { - rsp, err := c.GetAccessKeyByIdV1(ctx, accessKeyId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAccessKeyByIdV1Response(rsp) +type GetAcceptedRiskV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *RiskAcceptedResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetAcceptedRiskV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetAcceptedRiskV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetAcceptedRiskV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetAcceptedRiskV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetAcceptedRiskV1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetAcceptedRiskV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetAcceptedRiskV1Response500Headers } -// UpdateAccessKeyByIdV1WithBodyWithResponse Update Access Key -// -// Update an access key by id.\ -// \ -// **Required permissions:** _customer-access-keys.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). -func (c *ClientWithResponses) UpdateAccessKeyByIdV1WithBodyWithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessKeyByIdV1Response, error) { - rsp, err := c.UpdateAccessKeyByIdV1WithBody(ctx, accessKeyId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAccessKeyByIdV1Response(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { + return r.JSON200 } -// UpdateAccessKeyByIdV1WithResponse Update Access Key -// -// Update an access key by id.\ -// \ -// **Required permissions:** _customer-access-keys.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). -func (c *ClientWithResponses) UpdateAccessKeyByIdV1WithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, body UpdateAccessKeyByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessKeyByIdV1Response, error) { - rsp, err := c.UpdateAccessKeyByIdV1(ctx, accessKeyId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateAccessKeyByIdV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// GetCaptureStorageConfigurationV1WithResponse Get Capture Storage Configuration -// -// Retrieve the capture storage configuration.\ -// \ -// **Required permissions:** _sysdig-storage.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/configuration/capture-storage (the `GetCaptureStorageConfigurationV1` operationId). -func (c *ClientWithResponses) GetCaptureStorageConfigurationV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaptureStorageConfigurationV1Response, error) { - rsp, err := c.GetCaptureStorageConfigurationV1(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCaptureStorageConfigurationV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// UpdateCaptureStorageConfigurationV1WithBodyWithResponse Update or Create Capture Storage Configuration -// -// Update or Create Capture Storage configuration.\ -// \ -// **Required permissions:** _sysdig-storage.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). -func (c *ClientWithResponses) UpdateCaptureStorageConfigurationV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCaptureStorageConfigurationV1Response, error) { - rsp, err := c.UpdateCaptureStorageConfigurationV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCaptureStorageConfigurationV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// UpdateCaptureStorageConfigurationV1WithResponse Update or Create Capture Storage Configuration -// -// Update or Create Capture Storage configuration.\ -// \ -// **Required permissions:** _sysdig-storage.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). -func (c *ClientWithResponses) UpdateCaptureStorageConfigurationV1WithResponse(ctx context.Context, body UpdateCaptureStorageConfigurationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCaptureStorageConfigurationV1Response, error) { - rsp, err := c.UpdateCaptureStorageConfigurationV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateCaptureStorageConfigurationV1Response(rsp) +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON404() *NotFound { + return r.JSON404 } -// GetUserDeactivationConfigurationV1WithResponse Get User Deactivation Configuration -// -// Retrieve the user deactivation configuration.\ -// \ -// **Required permissions:** _customer-user-deactivation-configuration.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/configuration/user-deactivation (the `GetUserDeactivationConfigurationV1` operationId). -func (c *ClientWithResponses) GetUserDeactivationConfigurationV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserDeactivationConfigurationV1Response, error) { - rsp, err := c.GetUserDeactivationConfigurationV1(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetUserDeactivationConfigurationV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// UpdateUserDeactivationConfigurationByIdV1WithBodyWithResponse Update or Create User Deactivation Configuration -// -// Update or Create User deactivation configuration.\ -// \ -// **Required permissions:** _customer-user-deactivation-configuration.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). -func (c *ClientWithResponses) UpdateUserDeactivationConfigurationByIdV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserDeactivationConfigurationByIdV1Response, error) { - rsp, err := c.UpdateUserDeactivationConfigurationByIdV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// UpdateUserDeactivationConfigurationByIdV1WithResponse Update or Create User Deactivation Configuration -// -// Update or Create User deactivation configuration.\ -// \ -// **Required permissions:** _customer-user-deactivation-configuration.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). -func (c *ClientWithResponses) UpdateUserDeactivationConfigurationByIdV1WithResponse(ctx context.Context, body UpdateUserDeactivationConfigurationByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserDeactivationConfigurationByIdV1Response, error) { - rsp, err := c.UpdateUserDeactivationConfigurationByIdV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp) +// GetBody returns the raw response body bytes +func (r GetAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// GetDefaultNotificationTemplateV1WithResponse Get Default Notification Template -// -// Retrieve the default notification template for a channel type and use case.\ -// \ -// **Required permissions:** _notification-templates.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/default-notification-templates (the `GetDefaultNotificationTemplateV1` operationId). -func (c *ClientWithResponses) GetDefaultNotificationTemplateV1WithResponse(ctx context.Context, params *GetDefaultNotificationTemplateV1Params, reqEditors ...RequestEditorFn) (*GetDefaultNotificationTemplateV1Response, error) { - rsp, err := c.GetDefaultNotificationTemplateV1(ctx, params, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetDefaultNotificationTemplateV1Response(rsp) + return http.StatusText(0) } -// GetDefaultRoleByDisplayNameV1WithResponse Get Default Role -// -// Return a default role by its display name.\ -// \ -// **Required permissions:** _roles.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/default-roles/{roleDisplayName} (the `GetDefaultRoleByDisplayNameV1` operationId). -func (c *ClientWithResponses) GetDefaultRoleByDisplayNameV1WithResponse(ctx context.Context, roleDisplayName GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName, reqEditors ...RequestEditorFn) (*GetDefaultRoleByDisplayNameV1Response, error) { - rsp, err := c.GetDefaultRoleByDisplayNameV1(ctx, roleDisplayName, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetDefaultRoleByDisplayNameV1Response(rsp) + return 0 } -// GetGlobalSsoSettingsV1WithResponse Get Global SSO Settings -// -// Get Global SSO Settings.\ -// \ -// **Required permissions:** _sso.config_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/global-sso-settings/{ssoProductId} (the `GetGlobalSsoSettingsV1` operationId). -func (c *ClientWithResponses) GetGlobalSsoSettingsV1WithResponse(ctx context.Context, ssoProductId GetGlobalSsoSettingsV1ParamsSsoProductId, reqEditors ...RequestEditorFn) (*GetGlobalSsoSettingsV1Response, error) { - rsp, err := c.GetGlobalSsoSettingsV1(ctx, ssoProductId, reqEditors...) - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAcceptedRiskV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetGlobalSsoSettingsV1Response(rsp) + return "" } -// UpdateGlobalSsoSettingsV1WithBodyWithResponse Update Global SSO Settings -// -// Update Global SSO Settings.\ -// \ -// **Required permissions:** _sso-setting.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). -func (c *ClientWithResponses) UpdateGlobalSsoSettingsV1WithBodyWithResponse(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGlobalSsoSettingsV1Response, error) { - rsp, err := c.UpdateGlobalSsoSettingsV1WithBody(ctx, ssoProductId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateGlobalSsoSettingsV1Response(rsp) +// UpdateAcceptedRiskV1Response200Headers the declared response headers of an HTTP 200 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response200Headers struct { + XRateLimitLimit *int32 } -// UpdateGlobalSsoSettingsV1WithResponse Update Global SSO Settings -// -// Update Global SSO Settings.\ -// \ -// **Required permissions:** _sso-setting.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). -func (c *ClientWithResponses) UpdateGlobalSsoSettingsV1WithResponse(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, body UpdateGlobalSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGlobalSsoSettingsV1Response, error) { - rsp, err := c.UpdateGlobalSsoSettingsV1(ctx, ssoProductId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateGlobalSsoSettingsV1Response(rsp) +// UpdateAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetGroupMappingsV1WithResponse List Group Mappings -// -// Retrieve a paginated list of group mappings.\ -// \ -// **Required permissions:** _group-mappings.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/group-mappings (the `GetGroupMappingsV1` operationId). -func (c *ClientWithResponses) GetGroupMappingsV1WithResponse(ctx context.Context, params *GetGroupMappingsV1Params, reqEditors ...RequestEditorFn) (*GetGroupMappingsV1Response, error) { - rsp, err := c.GetGroupMappingsV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetGroupMappingsV1Response(rsp) +// UpdateAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// CreateGroupMappingV1WithBodyWithResponse Create Group Mapping -// -// Create a new group mapping.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). -func (c *ClientWithResponses) CreateGroupMappingV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupMappingV1Response, error) { - rsp, err := c.CreateGroupMappingV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateGroupMappingV1Response(rsp) +// UpdateAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// CreateGroupMappingV1WithResponse Create Group Mapping -// -// Create a new group mapping.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). -func (c *ClientWithResponses) CreateGroupMappingV1WithResponse(ctx context.Context, body CreateGroupMappingV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupMappingV1Response, error) { - rsp, err := c.CreateGroupMappingV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateGroupMappingV1Response(rsp) +// UpdateAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response404Headers struct { + XRateLimitLimit *int32 } -// GetGroupMappingSettingsV1WithResponse Get Group Mappings Settings -// -// Retrieves your group mapping settings.\ -// \ -// **Required permissions:** _group-mappings.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/group-mappings-settings (the `GetGroupMappingSettingsV1` operationId). -func (c *ClientWithResponses) GetGroupMappingSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupMappingSettingsV1Response, error) { - rsp, err := c.GetGroupMappingSettingsV1(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetGroupMappingSettingsV1Response(rsp) +// UpdateAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// SaveGroupMappingSettingsV1WithBodyWithResponse Save Group Mapping settings -// -// Saves your group mapping settings.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). -func (c *ClientWithResponses) SaveGroupMappingSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveGroupMappingSettingsV1Response, error) { - rsp, err := c.SaveGroupMappingSettingsV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSaveGroupMappingSettingsV1Response(rsp) +// UpdateAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// SaveGroupMappingSettingsV1WithResponse Save Group Mapping settings -// -// Saves your group mapping settings.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). -func (c *ClientWithResponses) SaveGroupMappingSettingsV1WithResponse(ctx context.Context, body SaveGroupMappingSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*SaveGroupMappingSettingsV1Response, error) { - rsp, err := c.SaveGroupMappingSettingsV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseSaveGroupMappingSettingsV1Response(rsp) +type UpdateAcceptedRiskV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *RiskAcceptedResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateAcceptedRiskV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *UpdateAcceptedRiskV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *UpdateAcceptedRiskV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateAcceptedRiskV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateAcceptedRiskV1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *UpdateAcceptedRiskV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *UpdateAcceptedRiskV1Response500Headers } -// DeleteGroupMappingByIdV1WithResponse Delete Group Mapping -// -// Delete a group mapping by its ID.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /platform/v1/group-mappings/{groupMappingId} (the `DeleteGroupMappingByIdV1` operationId). -func (c *ClientWithResponses) DeleteGroupMappingByIdV1WithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*DeleteGroupMappingByIdV1Response, error) { - rsp, err := c.DeleteGroupMappingByIdV1(ctx, groupMappingId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteGroupMappingByIdV1Response(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { + return r.JSON200 } -// GetGroupMappingByIdV1WithResponse Get Group Mapping -// -// Return a group mapping by its ID.\ -// \ -// **Required permissions:** _group-mappings.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/group-mappings/{groupMappingId} (the `GetGroupMappingByIdV1` operationId). -func (c *ClientWithResponses) GetGroupMappingByIdV1WithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*GetGroupMappingByIdV1Response, error) { - rsp, err := c.GetGroupMappingByIdV1(ctx, groupMappingId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetGroupMappingByIdV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// UpdateGroupMappingByIdV1WithBodyWithResponse Update Group Mapping -// -// Update a group mapping by its ID.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). -func (c *ClientWithResponses) UpdateGroupMappingByIdV1WithBodyWithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupMappingByIdV1Response, error) { - rsp, err := c.UpdateGroupMappingByIdV1WithBody(ctx, groupMappingId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateGroupMappingByIdV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// UpdateGroupMappingByIdV1WithResponse Update Group Mapping -// -// Update a group mapping by its ID.\ -// \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). -func (c *ClientWithResponses) UpdateGroupMappingByIdV1WithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, body UpdateGroupMappingByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupMappingByIdV1Response, error) { - rsp, err := c.UpdateGroupMappingByIdV1(ctx, groupMappingId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateGroupMappingByIdV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// GetIpFiltersV1WithResponse List IP Filters -// -// Retrieve a paginated list of IP filters.\ -// \ -// **Required permissions:** _ip-filters.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/ip-filters (the `GetIpFiltersV1` operationId). -func (c *ClientWithResponses) GetIpFiltersV1WithResponse(ctx context.Context, params *GetIpFiltersV1Params, reqEditors ...RequestEditorFn) (*GetIpFiltersV1Response, error) { - rsp, err := c.GetIpFiltersV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetIpFiltersV1Response(rsp) +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON404() *NotFound { + return r.JSON404 } -// CreateIpFilterV1WithBodyWithResponse Create IP Filter -// -// Create a new IP filter.\ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). -func (c *ClientWithResponses) CreateIpFilterV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIpFilterV1Response, error) { - rsp, err := c.CreateIpFilterV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateIpFilterV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// CreateIpFilterV1WithResponse Create IP Filter -// -// Create a new IP filter.\ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). -func (c *ClientWithResponses) CreateIpFilterV1WithResponse(ctx context.Context, body CreateIpFilterV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIpFilterV1Response, error) { - rsp, err := c.CreateIpFilterV1(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateIpFilterV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// GetIpFiltersSettingsV1WithResponse Get IP Filters Settings -// -// Retrieves your IP filters settings.\ -// \ -// **Required permissions:** _ip-filters.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/ip-filters-settings (the `GetIpFiltersSettingsV1` operationId). -func (c *ClientWithResponses) GetIpFiltersSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIpFiltersSettingsV1Response, error) { - rsp, err := c.GetIpFiltersSettingsV1(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetIpFiltersSettingsV1Response(rsp) +// GetBody returns the raw response body bytes +func (r UpdateAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// SaveIpFiltersSettingsV1WithBodyWithResponse Save IP Filters settings -// -// Saves your IP filters settings.\ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). -func (c *ClientWithResponses) SaveIpFiltersSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveIpFiltersSettingsV1Response, error) { - rsp, err := c.SaveIpFiltersSettingsV1WithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r UpdateAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseSaveIpFiltersSettingsV1Response(rsp) + return http.StatusText(0) } -// SaveIpFiltersSettingsV1WithResponse Save IP Filters settings -// -// Saves your IP filters settings.\ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). -func (c *ClientWithResponses) SaveIpFiltersSettingsV1WithResponse(ctx context.Context, body SaveIpFiltersSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*SaveIpFiltersSettingsV1Response, error) { - rsp, err := c.SaveIpFiltersSettingsV1(ctx, body, reqEditors...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseSaveIpFiltersSettingsV1Response(rsp) + return 0 } -// DeleteIpFilterByIdV1WithResponse Delete IP Filter -// -// Delete IP filter by its ID.\ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /platform/v1/ip-filters/{ipFilterId} (the `DeleteIpFilterByIdV1` operationId). -func (c *ClientWithResponses) DeleteIpFilterByIdV1WithResponse(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*DeleteIpFilterByIdV1Response, error) { - rsp, err := c.DeleteIpFilterByIdV1(ctx, ipFilterId, reqEditors...) - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateAcceptedRiskV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseDeleteIpFilterByIdV1Response(rsp) + return "" } -// GetIpFilterByIdV1WithResponse Get IP Filter by ID -// -// Get IP Filter by ID.\ -// \ -// **Required permissions:** _ip-filters.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/ip-filters/{ipFilterId} (the `GetIpFilterByIdV1` operationId). -func (c *ClientWithResponses) GetIpFilterByIdV1WithResponse(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*GetIpFilterByIdV1Response, error) { - rsp, err := c.GetIpFilterByIdV1(ctx, ipFilterId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetIpFilterByIdV1Response(rsp) +// ListCveCatalogV1beta1Response200Headers the declared response headers of an HTTP 200 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId string } -// UpdateIpFilterV1WithBodyWithResponse Update IP Filter -// -// Update IP filter by its ID. \ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/ip-filters/{ipFilterId} (the `UpdateIpFilterV1` operationId). -func (c *ClientWithResponses) UpdateIpFilterV1WithBodyWithResponse(ctx context.Context, ipFilterId IpFilterIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIpFilterV1Response, error) { - rsp, err := c.UpdateIpFilterV1WithBody(ctx, ipFilterId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateIpFilterV1Response(rsp) +// ListCveCatalogV1beta1Response400Headers the declared response headers of an HTTP 400 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1WithResponse Update IP Filter -// -// Update IP filter by its ID. \ -// \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with PUT /platform/v1/ip-filters/{ipFilterId} (the `UpdateIpFilterV1` operationId). -func (c *ClientWithResponses) UpdateIpFilterV1WithResponse(ctx context.Context, ipFilterId IpFilterIdPath, body UpdateIpFilterV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIpFilterV1Response, error) { - rsp, err := c.UpdateIpFilterV1(ctx, ipFilterId, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseUpdateIpFilterV1Response(rsp) +// ListCveCatalogV1beta1Response401Headers the declared response headers of an HTTP 401 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetNotificationChannelsWithResponse List Notification Channels -// -// Retrieve a paginated list of notification channels.\ -// \ -// **Required permissions:** _notification-channels.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/notification-channels (the `GetNotificationChannels` operationId). -func (c *ClientWithResponses) GetNotificationChannelsWithResponse(ctx context.Context, params *GetNotificationChannelsParams, reqEditors ...RequestEditorFn) (*GetNotificationChannelsResponse, error) { - rsp, err := c.GetNotificationChannels(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetNotificationChannelsResponse(rsp) +// ListCveCatalogV1beta1Response403Headers the declared response headers of an HTTP 403 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateNotificationChannelWithBodyWithResponse Create Notification Channel -// -// Create a notification channel.\ -// \ -// **Required permissions:** _notification-channels.edit_ -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/notification-channels (the `CreateNotificationChannel` operationId). -func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) { - rsp, err := c.CreateNotificationChannelWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateNotificationChannelResponse(rsp) +// ListCveCatalogV1beta1Response429Headers the declared response headers of an HTTP 429 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateNotificationChannelWithResponse Create Notification Channel -// -// Create a notification channel.\ -// \ -// **Required permissions:** _notification-channels.edit_ -// -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). -// -// Corresponds with POST /platform/v1/notification-channels (the `CreateNotificationChannel` operationId). -func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) { - rsp, err := c.CreateNotificationChannel(ctx, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseCreateNotificationChannelResponse(rsp) +// ListCveCatalogV1beta1Response500Headers the declared response headers of an HTTP 500 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId string } -// DeleteNotificationChannelByIdWithResponse Delete Notification Channel -// -// Delete a notification channel by its ID.\ -// \ -// **Required permissions:** _notification-channels.edit_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with DELETE /platform/v1/notification-channels/{notificationChannelId} (the `DeleteNotificationChannelById` operationId). -func (c *ClientWithResponses) DeleteNotificationChannelByIdWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelByIdResponse, error) { - rsp, err := c.DeleteNotificationChannelById(ctx, notificationChannelID, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteNotificationChannelByIdResponse(rsp) +// ListCveCatalogV1beta1Response503Headers the declared response headers of an HTTP 503 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response503Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetNotificationChannelByIdWithResponse Get Notification Channel -// -// Returns a specific notification channel by its ID.\ -// \ -// **Required permissions:** _notification-channels.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/notification-channels/{notificationChannelId} (the `GetNotificationChannelById` operationId). -func (c *ClientWithResponses) GetNotificationChannelByIdWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, reqEditors ...RequestEditorFn) (*GetNotificationChannelByIdResponse, error) { - rsp, err := c.GetNotificationChannelById(ctx, notificationChannelID, reqEditors...) - if err != nil { - return nil, err +type ListCveCatalogV1beta1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ListCveCatalogResponseV1Beta1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestV2 + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequestsV2 + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *CveCatalogInternalServerErrorV2 + // JSON503 the response for an HTTP 503 `application/json` response + JSON503 *ErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *ListCveCatalogV1beta1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *ListCveCatalogV1beta1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *ListCveCatalogV1beta1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListCveCatalogV1beta1Response403Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *ListCveCatalogV1beta1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ListCveCatalogV1beta1Response500Headers + // Headers503 the parsed response headers for an HTTP 503 response + Headers503 *ListCveCatalogV1beta1Response503Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON200() *ListCveCatalogResponseV1Beta1 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON400() *BadRequestV2 { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON401() *UnauthorizedV2 { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON429() *TooManyRequestsV2 { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON500() *CveCatalogInternalServerErrorV2 { + return r.JSON500 +} + +// GetJSON503 returns the response for an HTTP 503 `application/json` response +func (r ListCveCatalogV1beta1Response) GetJSON503() *ErrorV2 { + return r.JSON503 +} + +// GetBody returns the raw response body bytes +func (r ListCveCatalogV1beta1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r ListCveCatalogV1beta1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetNotificationChannelByIdResponse(rsp) + return http.StatusText(0) } -// UpdateNotificationChannelByIdWithBodyWithResponse Update Notification Channel +// StatusCode returns HTTPResponse.StatusCode +func (r ListCveCatalogV1beta1Response) 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 ListCveCatalogV1beta1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// GetCveCatalogEntryV1beta1Response200Headers the declared response headers of an HTTP 200 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId string +} + +// GetCveCatalogEntryV1beta1Response400Headers the declared response headers of an HTTP 400 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// GetCveCatalogEntryV1beta1Response401Headers the declared response headers of an HTTP 401 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// GetCveCatalogEntryV1beta1Response403Headers the declared response headers of an HTTP 403 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// GetCveCatalogEntryV1beta1Response404Headers the declared response headers of an HTTP 404 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// GetCveCatalogEntryV1beta1Response429Headers the declared response headers of an HTTP 429 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// GetCveCatalogEntryV1beta1Response500Headers the declared response headers of an HTTP 500 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId string +} + +// GetCveCatalogEntryV1beta1Response503Headers the declared response headers of an HTTP 503 response for GetCveCatalogEntryV1beta1 +type GetCveCatalogEntryV1beta1Response503Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetCveCatalogEntryV1beta1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *CveDetailV1Beta1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequestV2 + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequestsV2 + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *CveCatalogInternalServerErrorV2 + // JSON503 the response for an HTTP 503 `application/json` response + JSON503 *ErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetCveCatalogEntryV1beta1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetCveCatalogEntryV1beta1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetCveCatalogEntryV1beta1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetCveCatalogEntryV1beta1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetCveCatalogEntryV1beta1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetCveCatalogEntryV1beta1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetCveCatalogEntryV1beta1Response500Headers + // Headers503 the parsed response headers for an HTTP 503 response + Headers503 *GetCveCatalogEntryV1beta1Response503Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON200() *CveDetailV1Beta1 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON400() *BadRequestV2 { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON401() *UnauthorizedV2 { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON429() *TooManyRequestsV2 { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON500() *CveCatalogInternalServerErrorV2 { + return r.JSON500 +} + +// GetJSON503 returns the response for an HTTP 503 `application/json` response +func (r GetCveCatalogEntryV1beta1Response) GetJSON503() *ErrorV2 { + return r.JSON503 +} + +// GetBody returns the raw response body bytes +func (r GetCveCatalogEntryV1beta1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r GetCveCatalogEntryV1beta1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCveCatalogEntryV1beta1Response) 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 GetCveCatalogEntryV1beta1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// GetSBOMV1beta1Response200Headers the declared response headers of an HTTP 200 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response200Headers struct { + ContentType *string + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response400Headers the declared response headers of an HTTP 400 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response400Headers struct { + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response401Headers the declared response headers of an HTTP 401 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response401Headers struct { + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response403Headers the declared response headers of an HTTP 403 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response403Headers struct { + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response404Headers the declared response headers of an HTTP 404 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response406Headers the declared response headers of an HTTP 406 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response406Headers struct { + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response429Headers the declared response headers of an HTTP 429 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +// GetSBOMV1beta1Response500Headers the declared response headers of an HTTP 500 response for GetSBOMV1beta1 +type GetSBOMV1beta1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetSBOMV1beta1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *SbomResultResponse + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON406 the response for an HTTP 406 `application/json` response + JSON406 *string + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequests + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetSBOMV1beta1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetSBOMV1beta1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetSBOMV1beta1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetSBOMV1beta1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetSBOMV1beta1Response404Headers + // Headers406 the parsed response headers for an HTTP 406 response + Headers406 *GetSBOMV1beta1Response406Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetSBOMV1beta1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetSBOMV1beta1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON200() *SbomResultResponse { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON406 returns the response for an HTTP 406 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON406() *string { + return r.JSON406 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetSBOMV1beta1Response) GetJSON500() *InternalServerError { + return r.JSON500 +} + +// GetBody returns the raw response body bytes +func (r GetSBOMV1beta1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r GetSBOMV1beta1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSBOMV1beta1Response) 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 GetSBOMV1beta1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// DeleteZonePolicyAssociationWithResponse Delete Zone Policy Association // -// Update a notification channel by its ID.\ +// Remove all policies associated with a specific zone.\ // \ -// **Required permissions:** _notification-channels.edit_ +// **Required permissions:** cspm.policies.edit // -// Takes any type of body and a specified 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). // -// Corresponds with PUT /platform/v1/notification-channels/{notificationChannelId} (the `UpdateNotificationChannelById` operationId). -func (c *ClientWithResponses) UpdateNotificationChannelByIdWithBodyWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelByIdResponse, error) { - rsp, err := c.UpdateNotificationChannelByIdWithBody(ctx, notificationChannelID, contentType, body, reqEditors...) +// Corresponds with DELETE /api/cspm/v1/zones/{zoneId}/policies (the `DeleteZonePolicyAssociation` operationId). +func (c *ClientWithResponses) DeleteZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*DeleteZonePolicyAssociationResponse, error) { + rsp, err := c.DeleteZonePolicyAssociation(ctx, zoneId, reqEditors...) if err != nil { return nil, err } - return ParseUpdateNotificationChannelByIdResponse(rsp) + return ParseDeleteZonePolicyAssociationResponse(rsp) } -// UpdateNotificationChannelByIdWithResponse Update Notification Channel +// GetZonePolicyAssociationWithResponse Get Zone Policy Association // -// Update a notification channel by its ID.\ +// Retrieve the policies associated with a specific zone.\ // \ -// **Required permissions:** _notification-channels.edit_ +// **Required permissions:** cspm.policies.read // -// 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). // -// Corresponds with PUT /platform/v1/notification-channels/{notificationChannelId} (the `UpdateNotificationChannelById` operationId). -func (c *ClientWithResponses) UpdateNotificationChannelByIdWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, body UpdateNotificationChannelByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelByIdResponse, error) { - rsp, err := c.UpdateNotificationChannelById(ctx, notificationChannelID, body, reqEditors...) +// Corresponds with GET /api/cspm/v1/zones/{zoneId}/policies (the `GetZonePolicyAssociation` operationId). +func (c *ClientWithResponses) GetZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*GetZonePolicyAssociationResponse, error) { + rsp, err := c.GetZonePolicyAssociation(ctx, zoneId, reqEditors...) if err != nil { return nil, err } - return ParseUpdateNotificationChannelByIdResponse(rsp) + return ParseGetZonePolicyAssociationResponse(rsp) } -// GetNotificationTemplatesV1WithResponse List Notification Templates +// CreateZonePolicyAssociationWithBodyWithResponse Create Zone Policy Association // -// Retrieve a paginated list of notification templates.\ +// Associate a list of policies with a specific zone.\ // \ -// **Required permissions:** _notification-templates.read_ +// **Required permissions:** cspm.policies.edit // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/notification-templates (the `GetNotificationTemplatesV1` operationId). -func (c *ClientWithResponses) GetNotificationTemplatesV1WithResponse(ctx context.Context, params *GetNotificationTemplatesV1Params, reqEditors ...RequestEditorFn) (*GetNotificationTemplatesV1Response, error) { - rsp, err := c.GetNotificationTemplatesV1(ctx, params, reqEditors...) +// Corresponds with POST /api/cspm/v1/zones/{zoneId}/policies (the `CreateZonePolicyAssociation` operationId). +func (c *ClientWithResponses) CreateZonePolicyAssociationWithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZonePolicyAssociationResponse, error) { + rsp, err := c.CreateZonePolicyAssociationWithBody(ctx, zoneId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetNotificationTemplatesV1Response(rsp) + return ParseCreateZonePolicyAssociationResponse(rsp) } -// CreateNotificationTemplateV1WithBodyWithResponse Create Notification Template +// CreateZonePolicyAssociationWithResponse Create Zone Policy Association // -// Create a notification template.\ +// Associate a list of policies with a specific zone.\ // \ -// **Required permissions:** _notification-templates.edit_ +// **Required permissions:** cspm.policies.edit // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/notification-templates (the `CreateNotificationTemplateV1` operationId). -func (c *ClientWithResponses) CreateNotificationTemplateV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationTemplateV1Response, error) { - rsp, err := c.CreateNotificationTemplateV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /api/cspm/v1/zones/{zoneId}/policies (the `CreateZonePolicyAssociation` operationId). +func (c *ClientWithResponses) CreateZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, body CreateZonePolicyAssociationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZonePolicyAssociationResponse, error) { + rsp, err := c.CreateZonePolicyAssociation(ctx, zoneId, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateNotificationTemplateV1Response(rsp) + return ParseCreateZonePolicyAssociationResponse(rsp) } -// CreateNotificationTemplateV1WithResponse Create Notification Template +// UpdateZonePolicyAssociationWithBodyWithResponse Update Zone Policy Association // -// Create a notification template.\ +// Update the policies associated with a specific zone.\ +// This operation replaces the existing policy list with the new one.\ // \ -// **Required permissions:** _notification-templates.edit_ +// **Required permissions:** cspm.policies.edit // -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/notification-templates (the `CreateNotificationTemplateV1` operationId). -func (c *ClientWithResponses) CreateNotificationTemplateV1WithResponse(ctx context.Context, body CreateNotificationTemplateV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationTemplateV1Response, error) { - rsp, err := c.CreateNotificationTemplateV1(ctx, body, reqEditors...) +// Corresponds with PUT /api/cspm/v1/zones/{zoneId}/policies (the `UpdateZonePolicyAssociation` operationId). +func (c *ClientWithResponses) UpdateZonePolicyAssociationWithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZonePolicyAssociationResponse, error) { + rsp, err := c.UpdateZonePolicyAssociationWithBody(ctx, zoneId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateNotificationTemplateV1Response(rsp) + return ParseUpdateZonePolicyAssociationResponse(rsp) } -// DeleteNotificationTemplateByIdV1WithResponse Delete Notification Template +// UpdateZonePolicyAssociationWithResponse Update Zone Policy Association // -// Delete a notification template by its ID.\ +// Update the policies associated with a specific zone.\ +// This operation replaces the existing policy list with the new one.\ // \ -// **Required permissions:** _notification-templates.edit_ +// **Required permissions:** cspm.policies.edit // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/notification-templates/{notificationTemplateId} (the `DeleteNotificationTemplateByIdV1` operationId). -func (c *ClientWithResponses) DeleteNotificationTemplateByIdV1WithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, reqEditors ...RequestEditorFn) (*DeleteNotificationTemplateByIdV1Response, error) { - rsp, err := c.DeleteNotificationTemplateByIdV1(ctx, notificationTemplateId, reqEditors...) +// Corresponds with PUT /api/cspm/v1/zones/{zoneId}/policies (the `UpdateZonePolicyAssociation` operationId). +func (c *ClientWithResponses) UpdateZonePolicyAssociationWithResponse(ctx context.Context, zoneId ZoneId, body UpdateZonePolicyAssociationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZonePolicyAssociationResponse, error) { + rsp, err := c.UpdateZonePolicyAssociation(ctx, zoneId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteNotificationTemplateByIdV1Response(rsp) + return ParseUpdateZonePolicyAssociationResponse(rsp) } -// GetNotificationTemplateByIdV1WithResponse Get Notification Template +// GetQueryResultWithResponse Execute SysQL query via GET // -// Retrieve a specific notification template by its ID.\ -// \ -// **Required permissions:** _notification-templates.read_ +// Retrieve resources from the graph datastore using the GET method. // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/notification-templates/{notificationTemplateId} (the `GetNotificationTemplateByIdV1` operationId). -func (c *ClientWithResponses) GetNotificationTemplateByIdV1WithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, reqEditors ...RequestEditorFn) (*GetNotificationTemplateByIdV1Response, error) { - rsp, err := c.GetNotificationTemplateByIdV1(ctx, notificationTemplateId, reqEditors...) +// Corresponds with GET /api/sysql/v2/query (the `GetQueryResult` operationId). +func (c *ClientWithResponses) GetQueryResultWithResponse(ctx context.Context, params *GetQueryResultParams, reqEditors ...RequestEditorFn) (*GetQueryResultResponse, error) { + rsp, err := c.GetQueryResult(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetNotificationTemplateByIdV1Response(rsp) + return ParseGetQueryResultResponse(rsp) } -// UpdateNotificationTemplateByIdV1WithBodyWithResponse Update Notification Template +// PostQueryResultWithBodyWithResponse Execute SysQL query via POST // -// Update a notification template by its ID.\ -// \ -// **Required permissions:** _notification-templates.edit_ +// Retrieve resources from the graph datastore using the POST method. // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/notification-templates/{notificationTemplateId} (the `UpdateNotificationTemplateByIdV1` operationId). -func (c *ClientWithResponses) UpdateNotificationTemplateByIdV1WithBodyWithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationTemplateByIdV1Response, error) { - rsp, err := c.UpdateNotificationTemplateByIdV1WithBody(ctx, notificationTemplateId, contentType, body, reqEditors...) +// Corresponds with POST /api/sysql/v2/query (the `PostQueryResult` operationId). +func (c *ClientWithResponses) PostQueryResultWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostQueryResultResponse, error) { + rsp, err := c.PostQueryResultWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateNotificationTemplateByIdV1Response(rsp) + return ParsePostQueryResultResponse(rsp) } -// UpdateNotificationTemplateByIdV1WithResponse Update Notification Template +// PostQueryResultWithResponse Execute SysQL query via POST // -// Update a notification template by its ID.\ -// \ -// **Required permissions:** _notification-templates.edit_ +// Retrieve resources from the graph datastore using the POST method. // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/notification-templates/{notificationTemplateId} (the `UpdateNotificationTemplateByIdV1` operationId). -func (c *ClientWithResponses) UpdateNotificationTemplateByIdV1WithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, body UpdateNotificationTemplateByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationTemplateByIdV1Response, error) { - rsp, err := c.UpdateNotificationTemplateByIdV1(ctx, notificationTemplateId, body, reqEditors...) +// Corresponds with POST /api/sysql/v2/query (the `PostQueryResult` operationId). +func (c *ClientWithResponses) PostQueryResultWithResponse(ctx context.Context, body PostQueryResultJSONRequestBody, reqEditors ...RequestEditorFn) (*PostQueryResultResponse, error) { + rsp, err := c.PostQueryResult(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateNotificationTemplateByIdV1Response(rsp) + return ParsePostQueryResultResponse(rsp) } -// GetPermissionsV1WithResponse Get Customer Permissions +// GetSchemaWithResponse Get SysQL Schema // -// Retrieve a list of permissions that are used in custom roles.\ -// \ -// **Required permissions:** _permissions.read_ +// Retrieve the schema information for all entities and their relationships in YAML format. +// This endpoint returns the graph schema definition that describes available entities, +// their fields, and relationships. // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/permissions (the `GetPermissionsV1` operationId). -func (c *ClientWithResponses) GetPermissionsV1WithResponse(ctx context.Context, params *GetPermissionsV1Params, reqEditors ...RequestEditorFn) (*GetPermissionsV1Response, error) { - rsp, err := c.GetPermissionsV1(ctx, params, reqEditors...) +// Corresponds with GET /api/sysql/v2/schema (the `GetSchema` operationId). +func (c *ClientWithResponses) GetSchemaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSchemaResponse, error) { + rsp, err := c.GetSchema(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetPermissionsV1Response(rsp) + return ParseGetSchemaResponse(rsp) } -// GetPlatformAuditEventsV1WithResponse Get Platform Audit Events +// GetInhibitionRulesWithResponse List Inhibition Rules // -// Retrieve a paginated list of Platform Audit Events.\ +// Retrieve the list of inhibition rules.\ // \ -// **Required permissions:** _audit-trail-events.read_ +// **Required permissions:** _inhibition-rules.read_ or _alerts.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/platform-audit-events (the `GetPlatformAuditEventsV1` operationId). -func (c *ClientWithResponses) GetPlatformAuditEventsV1WithResponse(ctx context.Context, params *GetPlatformAuditEventsV1Params, reqEditors ...RequestEditorFn) (*GetPlatformAuditEventsV1Response, error) { - rsp, err := c.GetPlatformAuditEventsV1(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPlatformAuditEventsV1Response(rsp) -} - -// GetRolesV1WithResponse List Roles -// -// Retrieve a paginated list of roles.\ -// \ -// **Required permissions:** _roles.read_ -// -// Returns a wrapper object for the known response body format(s). -// -// Corresponds with GET /platform/v1/roles (the `GetRolesV1` operationId). -func (c *ClientWithResponses) GetRolesV1WithResponse(ctx context.Context, params *GetRolesV1Params, reqEditors ...RequestEditorFn) (*GetRolesV1Response, error) { - rsp, err := c.GetRolesV1(ctx, params, reqEditors...) +// Corresponds with GET /monitor/alerts/v1/inhibition-rules (the `GetInhibitionRules` operationId). +func (c *ClientWithResponses) GetInhibitionRulesWithResponse(ctx context.Context, params *GetInhibitionRulesParams, reqEditors ...RequestEditorFn) (*GetInhibitionRulesResponse, error) { + rsp, err := c.GetInhibitionRules(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetRolesV1Response(rsp) + return ParseGetInhibitionRulesResponse(rsp) } -// CreateRoleV1WithBodyWithResponse Create Role +// CreateInhibitionRuleWithBodyWithResponse Create Inhibition Rule // -// Create a new role.\ +// Create an inhibition rule.\ // \ -// **Required permissions:** _roles.edit_ +// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/roles (the `CreateRoleV1` operationId). -func (c *ClientWithResponses) CreateRoleV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoleV1Response, error) { - rsp, err := c.CreateRoleV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /monitor/alerts/v1/inhibition-rules (the `CreateInhibitionRule` operationId). +func (c *ClientWithResponses) CreateInhibitionRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInhibitionRuleResponse, error) { + rsp, err := c.CreateInhibitionRuleWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateRoleV1Response(rsp) + return ParseCreateInhibitionRuleResponse(rsp) } -// CreateRoleV1WithResponse Create Role +// CreateInhibitionRuleWithResponse Create Inhibition Rule // -// Create a new role.\ +// Create an inhibition rule.\ // \ -// **Required permissions:** _roles.edit_ +// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/roles (the `CreateRoleV1` operationId). -func (c *ClientWithResponses) CreateRoleV1WithResponse(ctx context.Context, body CreateRoleV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoleV1Response, error) { - rsp, err := c.CreateRoleV1(ctx, body, reqEditors...) +// Corresponds with POST /monitor/alerts/v1/inhibition-rules (the `CreateInhibitionRule` operationId). +func (c *ClientWithResponses) CreateInhibitionRuleWithResponse(ctx context.Context, body CreateInhibitionRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInhibitionRuleResponse, error) { + rsp, err := c.CreateInhibitionRule(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateRoleV1Response(rsp) + return ParseCreateInhibitionRuleResponse(rsp) } -// DeleteRoleByIdV1WithResponse Delete Role +// DeleteInhibitionRuleByIdWithResponse Delete Inhibition Rule // -// Delete a role by its ID.\ +// Delete an inhibition rule by its ID.\ // \ -// **Required permissions:** _roles.edit_ +// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/roles/{roleId} (the `DeleteRoleByIdV1` operationId). -func (c *ClientWithResponses) DeleteRoleByIdV1WithResponse(ctx context.Context, roleId RoleIdPath, reqEditors ...RequestEditorFn) (*DeleteRoleByIdV1Response, error) { - rsp, err := c.DeleteRoleByIdV1(ctx, roleId, reqEditors...) +// Corresponds with DELETE /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `DeleteInhibitionRuleById` operationId). +func (c *ClientWithResponses) DeleteInhibitionRuleByIdWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, reqEditors ...RequestEditorFn) (*DeleteInhibitionRuleByIdResponse, error) { + rsp, err := c.DeleteInhibitionRuleById(ctx, inhibitionRuleId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteRoleByIdV1Response(rsp) + return ParseDeleteInhibitionRuleByIdResponse(rsp) } -// GetRoleByIdV1WithResponse Get Role +// GetInhibitionRuleByIdWithResponse Get Inhibition Rule // -// Return a role by its ID.\ +// Retrieve an inhibition rule by ID.\ // \ -// **Required permissions:** _roles.read_ +// **Required permissions:** _inhibition-rules.read_ or _alerts.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/roles/{roleId} (the `GetRoleByIdV1` operationId). -func (c *ClientWithResponses) GetRoleByIdV1WithResponse(ctx context.Context, roleId RoleIdPath, reqEditors ...RequestEditorFn) (*GetRoleByIdV1Response, error) { - rsp, err := c.GetRoleByIdV1(ctx, roleId, reqEditors...) +// Corresponds with GET /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `GetInhibitionRuleById` operationId). +func (c *ClientWithResponses) GetInhibitionRuleByIdWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, reqEditors ...RequestEditorFn) (*GetInhibitionRuleByIdResponse, error) { + rsp, err := c.GetInhibitionRuleById(ctx, inhibitionRuleId, reqEditors...) if err != nil { return nil, err } - return ParseGetRoleByIdV1Response(rsp) + return ParseGetInhibitionRuleByIdResponse(rsp) } -// UpdateRoleByIdV1WithBodyWithResponse Update Role +// UpdateInhibitionRuleWithBodyWithResponse Update Inhibition Rule // -// Update a role by its ID.\ +// Update an inhibition rule.\ // \ -// **Required permissions:** _roles.edit_ +// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/roles/{roleId} (the `UpdateRoleByIdV1` operationId). -func (c *ClientWithResponses) UpdateRoleByIdV1WithBodyWithResponse(ctx context.Context, roleId RoleIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoleByIdV1Response, error) { - rsp, err := c.UpdateRoleByIdV1WithBody(ctx, roleId, contentType, body, reqEditors...) +// Corresponds with PUT /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `UpdateInhibitionRule` operationId). +func (c *ClientWithResponses) UpdateInhibitionRuleWithBodyWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInhibitionRuleResponse, error) { + rsp, err := c.UpdateInhibitionRuleWithBody(ctx, inhibitionRuleId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateRoleByIdV1Response(rsp) + return ParseUpdateInhibitionRuleResponse(rsp) } -// UpdateRoleByIdV1WithResponse Update Role +// UpdateInhibitionRuleWithResponse Update Inhibition Rule // -// Update a role by its ID.\ +// Update an inhibition rule.\ // \ -// **Required permissions:** _roles.edit_ +// **Required permissions:** _inhibition-rules.edit_ or _alerts.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/roles/{roleId} (the `UpdateRoleByIdV1` operationId). -func (c *ClientWithResponses) UpdateRoleByIdV1WithResponse(ctx context.Context, roleId RoleIdPath, body UpdateRoleByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoleByIdV1Response, error) { - rsp, err := c.UpdateRoleByIdV1(ctx, roleId, body, reqEditors...) +// Corresponds with PUT /monitor/alerts/v1/inhibition-rules/{inhibitionRuleId} (the `UpdateInhibitionRule` operationId). +func (c *ClientWithResponses) UpdateInhibitionRuleWithResponse(ctx context.Context, inhibitionRuleId InhibitionRulePath, body UpdateInhibitionRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInhibitionRuleResponse, error) { + rsp, err := c.UpdateInhibitionRule(ctx, inhibitionRuleId, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateRoleByIdV1Response(rsp) + return ParseUpdateInhibitionRuleResponse(rsp) } -// GetGlobalServiceAccountsV1WithResponse List Global Service Accounts +// GetPricingV1WithResponse List Pricing // -// Retrieve a paginated list of all service accounts.\ +// Retrieve a paginated list of pricing.\ // \ -// **Required permissions:** _global-service-accounts.read_ +// **Required permissions:** _cost-advisor.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/service-accounts (the `GetGlobalServiceAccountsV1` operationId). -func (c *ClientWithResponses) GetGlobalServiceAccountsV1WithResponse(ctx context.Context, params *GetGlobalServiceAccountsV1Params, reqEditors ...RequestEditorFn) (*GetGlobalServiceAccountsV1Response, error) { - rsp, err := c.GetGlobalServiceAccountsV1(ctx, params, reqEditors...) +// Corresponds with GET /monitor/cost-advisor/v1/pricing (the `GetPricingV1` operationId). +func (c *ClientWithResponses) GetPricingV1WithResponse(ctx context.Context, params *GetPricingV1Params, reqEditors ...RequestEditorFn) (*GetPricingV1Response, error) { + rsp, err := c.GetPricingV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetGlobalServiceAccountsV1Response(rsp) + return ParseGetPricingV1Response(rsp) } -// CreateGlobalServiceAccountV1WithBodyWithResponse Create a Global Service Account +// CreatePricingV1WithBodyWithResponse Create Pricing // -// Create a new global service account.\ +// Change a new pricing to use as default (for cloud providers that Cost Advisor doesn't automatically support) or for a specific Kubernetes cluster.\ // \ -// **Required permissions:** _global-service-accounts.edit_ +// You need to specify hourly costs for 1 CPU, 1GB of RAM and 1GB of storage. \ +// Different CPU and RAM costs can be specified for spot instances; to enable Cost Advisor to identify the spot node, a label and spot value must also be set. \ +// \ +// Cluster hourly cost = sum(node hourly costs) + (total storage * storage unit cost). \ +// Node hourly cost = (total CPUs * CPU unit cost) + (total RAM * RAM unit cost) \ +// \ +// **Required permissions:** _cost-advisor.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/service-accounts (the `CreateGlobalServiceAccountV1` operationId). -func (c *ClientWithResponses) CreateGlobalServiceAccountV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountV1Response, error) { - rsp, err := c.CreateGlobalServiceAccountV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1/pricing (the `CreatePricingV1` operationId). +func (c *ClientWithResponses) CreatePricingV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePricingV1Response, error) { + rsp, err := c.CreatePricingV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateGlobalServiceAccountV1Response(rsp) + return ParseCreatePricingV1Response(rsp) } -// CreateGlobalServiceAccountV1WithResponse Create a Global Service Account +// CreatePricingV1WithResponse Create Pricing // -// Create a new global service account.\ +// Change a new pricing to use as default (for cloud providers that Cost Advisor doesn't automatically support) or for a specific Kubernetes cluster.\ // \ -// **Required permissions:** _global-service-accounts.edit_ +// You need to specify hourly costs for 1 CPU, 1GB of RAM and 1GB of storage. \ +// Different CPU and RAM costs can be specified for spot instances; to enable Cost Advisor to identify the spot node, a label and spot value must also be set. \ +// \ +// Cluster hourly cost = sum(node hourly costs) + (total storage * storage unit cost). \ +// Node hourly cost = (total CPUs * CPU unit cost) + (total RAM * RAM unit cost) \ +// \ +// **Required permissions:** _cost-advisor.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/service-accounts (the `CreateGlobalServiceAccountV1` operationId). -func (c *ClientWithResponses) CreateGlobalServiceAccountV1WithResponse(ctx context.Context, body CreateGlobalServiceAccountV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountV1Response, error) { - rsp, err := c.CreateGlobalServiceAccountV1(ctx, body, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1/pricing (the `CreatePricingV1` operationId). +func (c *ClientWithResponses) CreatePricingV1WithResponse(ctx context.Context, body CreatePricingV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePricingV1Response, error) { + rsp, err := c.CreatePricingV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateGlobalServiceAccountV1Response(rsp) + return ParseCreatePricingV1Response(rsp) } -// DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse Delete Global Service Accounts Notification Settings +// DeletePricingByIdV1WithResponse Delete Pricing // -// Delete Notification Settings for Global Service Accounts.\ +// Delete a pricing by its ID. If the pricing deleted is the DEFAULT one. Cost Advisor will continue to compute costs for the unsupported Kubernetes cluster using the Sysdig default pricing.\ // \ -// **Required permissions:** _global-service-accounts-notification-settings.edit_ +// **Required permissions:** _cost-advisor.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/service-accounts/notification-settings (the `DeleteGlobalServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteGlobalServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.DeleteGlobalServiceAccountsNotificationSettingsV1(ctx, reqEditors...) +// Corresponds with DELETE /monitor/cost-advisor/v1/pricing/{pricingId} (the `DeletePricingByIdV1` operationId). +func (c *ClientWithResponses) DeletePricingByIdV1WithResponse(ctx context.Context, pricingId PricingIdPath, reqEditors ...RequestEditorFn) (*DeletePricingByIdV1Response, error) { + rsp, err := c.DeletePricingByIdV1(ctx, pricingId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return ParseDeletePricingByIdV1Response(rsp) } -// GetGlobalServiceAccountsNotificationSettingsV1WithResponse Get Global Service Accounts Notification Settings +// GetPricingByIdV1WithResponse Get Pricing // -// Return Notification Settings for Global Service Accounts.\ +// Retrieve a pricing by ID.\ // \ -// **Required permissions:** _global-service-accounts-notification-settings.read_ +// **Required permissions:** _cost-advisor.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/service-accounts/notification-settings (the `GetGlobalServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) GetGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlobalServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.GetGlobalServiceAccountsNotificationSettingsV1(ctx, reqEditors...) +// Corresponds with GET /monitor/cost-advisor/v1/pricing/{pricingId} (the `GetPricingByIdV1` operationId). +func (c *ClientWithResponses) GetPricingByIdV1WithResponse(ctx context.Context, pricingId PricingIdPath, reqEditors ...RequestEditorFn) (*GetPricingByIdV1Response, error) { + rsp, err := c.GetPricingByIdV1(ctx, pricingId, reqEditors...) if err != nil { return nil, err } - return ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return ParseGetPricingByIdV1Response(rsp) } -// CreateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Global Service Accounts Notification Settings +// UpdatePricingByIdV1WithBodyWithResponse Update Pricing // -// Create a new Notification Settings for Global Service Accounts.\ +// The pricing payload containing the changes you want to apply to the pricing.\ // \ -// **Required permissions:** _global-service-accounts-notification-settings.edit_ +// **Required permissions:** _cost-advisor.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/service-accounts/notification-settings (the `CreateGlobalServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) CreateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.CreateGlobalServiceAccountsNotificationSettingsV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with PUT /monitor/cost-advisor/v1/pricing/{pricingId} (the `UpdatePricingByIdV1` operationId). +func (c *ClientWithResponses) UpdatePricingByIdV1WithBodyWithResponse(ctx context.Context, pricingId PricingIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePricingByIdV1Response, error) { + rsp, err := c.UpdatePricingByIdV1WithBody(ctx, pricingId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return ParseUpdatePricingByIdV1Response(rsp) } -// CreateGlobalServiceAccountsNotificationSettingsV1WithResponse Create Global Service Accounts Notification Settings +// UpdatePricingByIdV1WithResponse Update Pricing // -// Create a new Notification Settings for Global Service Accounts.\ +// The pricing payload containing the changes you want to apply to the pricing.\ // \ -// **Required permissions:** _global-service-accounts-notification-settings.edit_ +// **Required permissions:** _cost-advisor.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/service-accounts/notification-settings (the `CreateGlobalServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) CreateGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, body CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.CreateGlobalServiceAccountsNotificationSettingsV1(ctx, body, reqEditors...) +// Corresponds with PUT /monitor/cost-advisor/v1/pricing/{pricingId} (the `UpdatePricingByIdV1` operationId). +func (c *ClientWithResponses) UpdatePricingByIdV1WithResponse(ctx context.Context, pricingId PricingIdPath, body UpdatePricingByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePricingByIdV1Response, error) { + rsp, err := c.UpdatePricingByIdV1(ctx, pricingId, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return ParseUpdatePricingByIdV1Response(rsp) } -// UpdateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Global Service Accounts Notification Settings +// GetPricingProjectedCostsV1WithResponse Get Pricing Projected Costs // -// Update Notification Settings for Global Service Accounts.\ +// Retrieve the monthly projected costs for the clusters using the specified pricing.\ +// The computation is done using the total CPU and RAM for the current cluster's nodes and the total storage used by the cluster.\ // \ -// **Required permissions:** _global-service-accounts-notification-settings.edit_ +// Projected monthly cost = 730 * (total CPUs * CPU unit cost) + (total RAM * RAM unit cost) + (total storage * storage unit cost). \ +// \ +// **Required permissions:** _cost-advisor.read_ // -// Takes any type of body and a specified 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). // -// Corresponds with PUT /platform/v1/service-accounts/notification-settings (the `UpdateGlobalServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) UpdateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGlobalServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.UpdateGlobalServiceAccountsNotificationSettingsV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with GET /monitor/cost-advisor/v1/pricing/{pricingId}/projected-costs (the `GetPricingProjectedCostsV1` operationId). +func (c *ClientWithResponses) GetPricingProjectedCostsV1WithResponse(ctx context.Context, pricingId PricingIdPath, params *GetPricingProjectedCostsV1Params, reqEditors ...RequestEditorFn) (*GetPricingProjectedCostsV1Response, error) { + rsp, err := c.GetPricingProjectedCostsV1(ctx, pricingId, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return ParseGetPricingProjectedCostsV1Response(rsp) } -// UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse Update Global Service Accounts Notification Settings +// GetWastedWorkloadDataWithBodyWithResponse Wasted Workload Spend Data // -// Update Notification Settings for Global Service Accounts.\ -// \ -// **Required permissions:** _global-service-accounts-notification-settings.edit_ +// Use this API to generate a report of Wasted Workload Spend data for a specified date range, scope, +// and grouping. For details, see [Wasted Workload Spend Report](https://docs.sysdig.com/en/sysdig-monitor/cost-reports/#wasted-workload-spend-report). // -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/service-accounts/notification-settings (the `UpdateGlobalServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, body UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGlobalServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.UpdateGlobalServiceAccountsNotificationSettingsV1(ctx, body, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/wasted-workload-spend (the `GetWastedWorkloadData` operationId). +func (c *ClientWithResponses) GetWastedWorkloadDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWastedWorkloadDataResponse, error) { + rsp, err := c.GetWastedWorkloadDataWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return ParseGetWastedWorkloadDataResponse(rsp) } -// DeleteGlobalServiceAccountByIdV1WithResponse Delete a Global Service Account +// GetWastedWorkloadDataWithResponse Wasted Workload Spend Data // -// Delete a global service account by ID.\ -// \ -// **Required permissions:** _global-service-accounts.edit_ +// Use this API to generate a report of Wasted Workload Spend data for a specified date range, scope, +// and grouping. For details, see [Wasted Workload Spend Report](https://docs.sysdig.com/en/sysdig-monitor/cost-reports/#wasted-workload-spend-report). // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/service-accounts/{serviceAccountId} (the `DeleteGlobalServiceAccountByIdV1` operationId). -func (c *ClientWithResponses) DeleteGlobalServiceAccountByIdV1WithResponse(ctx context.Context, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*DeleteGlobalServiceAccountByIdV1Response, error) { - rsp, err := c.DeleteGlobalServiceAccountByIdV1(ctx, serviceAccountId, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/wasted-workload-spend (the `GetWastedWorkloadData` operationId). +func (c *ClientWithResponses) GetWastedWorkloadDataWithResponse(ctx context.Context, body GetWastedWorkloadDataJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWastedWorkloadDataResponse, error) { + rsp, err := c.GetWastedWorkloadData(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteGlobalServiceAccountByIdV1Response(rsp) + return ParseGetWastedWorkloadDataResponse(rsp) } -// GetGlobalServiceAccountByIdV1WithResponse Get a Global Service Account +// GetWorkloadCostDataV1WithBodyWithResponse Workload Cost Trends Data // -// Return a global service account by ID.\ -// \ -// **Required permissions:** _global-service-accounts.read_ +// Returns workload cost trends data for a specified trend range, pivot date, optional scope, +// and optional grouping. The response includes cost totals for both current +// and previous periods, along with the date ranges for each period. // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/service-accounts/{serviceAccountId} (the `GetGlobalServiceAccountByIdV1` operationId). -func (c *ClientWithResponses) GetGlobalServiceAccountByIdV1WithResponse(ctx context.Context, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*GetGlobalServiceAccountByIdV1Response, error) { - rsp, err := c.GetGlobalServiceAccountByIdV1(ctx, serviceAccountId, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-cost-trends (the `GetWorkloadCostDataV1` operationId). +func (c *ClientWithResponses) GetWorkloadCostDataV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWorkloadCostDataV1Response, error) { + rsp, err := c.GetWorkloadCostDataV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetGlobalServiceAccountByIdV1Response(rsp) + return ParseGetWorkloadCostDataV1Response(rsp) } -// GetSsoSettingsV1WithResponse List SSO Settings +// GetWorkloadCostDataV1WithResponse Workload Cost Trends Data // -// Retrieve the list of SSO settings.\ -// \ -// **Required permissions:** _sso.config_ +// Returns workload cost trends data for a specified trend range, pivot date, optional scope, +// and optional grouping. The response includes cost totals for both current +// and previous periods, along with the date ranges for each period. // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/sso-settings (the `GetSsoSettingsV1` operationId). -func (c *ClientWithResponses) GetSsoSettingsV1WithResponse(ctx context.Context, params *GetSsoSettingsV1Params, reqEditors ...RequestEditorFn) (*GetSsoSettingsV1Response, error) { - rsp, err := c.GetSsoSettingsV1(ctx, params, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-cost-trends (the `GetWorkloadCostDataV1` operationId). +func (c *ClientWithResponses) GetWorkloadCostDataV1WithResponse(ctx context.Context, body GetWorkloadCostDataV1JSONRequestBody, reqEditors ...RequestEditorFn) (*GetWorkloadCostDataV1Response, error) { + rsp, err := c.GetWorkloadCostDataV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseGetSsoSettingsV1Response(rsp) + return ParseGetWorkloadCostDataV1Response(rsp) } -// CreateSsoSettingsV1WithBodyWithResponse Create SSO Settings +// GetWorkloadRightsizingDataWithBodyWithResponse Workload Rightsizing Data // -// Create a new SSO settings.\ -// \ -// **Required permissions:** _sso-setting.edit_ +// Use this API to generate a Workload Rightsizing data for a specified date range, algorithm and optional scope. +// The response is automatically grouped by the following Prometheus labels: +// - kube_cluster_name +// - kube_namespace_name +// - kube_workload_name +// - container_name // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/sso-settings (the `CreateSsoSettingsV1` operationId). -func (c *ClientWithResponses) CreateSsoSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSsoSettingsV1Response, error) { - rsp, err := c.CreateSsoSettingsV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-rightsizing (the `GetWorkloadRightsizingData` operationId). +func (c *ClientWithResponses) GetWorkloadRightsizingDataWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWorkloadRightsizingDataResponse, error) { + rsp, err := c.GetWorkloadRightsizingDataWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateSsoSettingsV1Response(rsp) + return ParseGetWorkloadRightsizingDataResponse(rsp) } -// CreateSsoSettingsV1WithResponse Create SSO Settings +// GetWorkloadRightsizingDataWithResponse Workload Rightsizing Data // -// Create a new SSO settings.\ -// \ -// **Required permissions:** _sso-setting.edit_ +// Use this API to generate a Workload Rightsizing data for a specified date range, algorithm and optional scope. +// The response is automatically grouped by the following Prometheus labels: +// - kube_cluster_name +// - kube_namespace_name +// - kube_workload_name +// - container_name // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/sso-settings (the `CreateSsoSettingsV1` operationId). -func (c *ClientWithResponses) CreateSsoSettingsV1WithResponse(ctx context.Context, body CreateSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSsoSettingsV1Response, error) { - rsp, err := c.CreateSsoSettingsV1(ctx, body, reqEditors...) +// Corresponds with POST /monitor/cost-advisor/v1alpha1/data/workload-rightsizing (the `GetWorkloadRightsizingData` operationId). +func (c *ClientWithResponses) GetWorkloadRightsizingDataWithResponse(ctx context.Context, body GetWorkloadRightsizingDataJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWorkloadRightsizingDataResponse, error) { + rsp, err := c.GetWorkloadRightsizingData(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateSsoSettingsV1Response(rsp) + return ParseGetWorkloadRightsizingDataResponse(rsp) } -// DeleteSsoSettingsByIdV1WithResponse Delete SSO Settings +// GetMonitorEventsV1WithResponse Get Events // -// Delete SSO settings by its ID.\ +// Retrieves the list of events matching the expressed search criteria. +// The pair `from` and `to` and the `cursor` parameter are mutually exclusive. If you supply a `from` and `to` you must not supply a `cursor` and vice-versa. +// The time criteria is required and can be specified in two different ways: +// - Using `from` and `to`, the list of events within the timeframe (max 2 weeks) will be returned, starting from the most recent ones. +// - Using a `cursor` the events returned will be in the before or after the event, depending on the cursor type. More details are available in the `cursor` attribute in the response.\ // \ -// **Required permissions:** _sso.config_ +// **Required permissions:** +// - _alert-events.read_ for alert events to be included in the response +// - _custom-events.read_ for custom events to be included in the response // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/sso-settings/{ssoSettingsId} (the `DeleteSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) DeleteSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*DeleteSsoSettingsByIdV1Response, error) { - rsp, err := c.DeleteSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) +// Corresponds with GET /monitor/events/v1/events (the `GetMonitorEventsV1` operationId). +func (c *ClientWithResponses) GetMonitorEventsV1WithResponse(ctx context.Context, params *GetMonitorEventsV1Params, reqEditors ...RequestEditorFn) (*GetMonitorEventsV1Response, error) { + rsp, err := c.GetMonitorEventsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteSsoSettingsByIdV1Response(rsp) + return ParseGetMonitorEventsV1Response(rsp) } -// GetSsoSettingsByIdV1WithResponse Get SSO Settings +// GetDisabledMetricsByJobV1WithResponse List disabled metrics collection for Jobs. // -// Return SSO settings by ID.\ +// List all disabled metrics per Job.\ // \ -// **Required permissions:** _sso.config_ +// **Required permissions:** Integrations Read // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/sso-settings/{ssoSettingsId} (the `GetSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) GetSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*GetSsoSettingsByIdV1Response, error) { - rsp, err := c.GetSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) +// Corresponds with GET /monitor/prometheus-jobs/v1/disabled-metrics (the `GetDisabledMetricsByJobV1` operationId). +func (c *ClientWithResponses) GetDisabledMetricsByJobV1WithResponse(ctx context.Context, params *GetDisabledMetricsByJobV1Params, reqEditors ...RequestEditorFn) (*GetDisabledMetricsByJobV1Response, error) { + rsp, err := c.GetDisabledMetricsByJobV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetSsoSettingsByIdV1Response(rsp) + return ParseGetDisabledMetricsByJobV1Response(rsp) } -// UpdateSsoSettingsByIdV1WithBodyWithResponse Update SSO Settings +// PostDisabledMetricsV1WithBodyWithResponse Disable or re-enable metrics collection for Jobs // -// Update SSO settings by its ID.\ +// Disable specific metric collection for a specified Job. \ +// This API supports specifying multiple Jobs, each with its own list of metrics to be disabled. \ +// Additionally, you can use the same API to re-enable metrics that were previously disabled.\ // \ -// **Required permissions:** _sso.config_ +// **Required permissions:** Integrations Full Access // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/sso-settings/{ssoSettingsId} (the `UpdateSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) UpdateSsoSettingsByIdV1WithBodyWithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSsoSettingsByIdV1Response, error) { - rsp, err := c.UpdateSsoSettingsByIdV1WithBody(ctx, ssoSettingsId, contentType, body, reqEditors...) +// Corresponds with POST /monitor/prometheus-jobs/v1/disabled-metrics (the `PostDisabledMetricsV1` operationId). +func (c *ClientWithResponses) PostDisabledMetricsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDisabledMetricsV1Response, error) { + rsp, err := c.PostDisabledMetricsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateSsoSettingsByIdV1Response(rsp) + return ParsePostDisabledMetricsV1Response(rsp) } -// UpdateSsoSettingsByIdV1WithResponse Update SSO Settings +// PostDisabledMetricsV1WithResponse Disable or re-enable metrics collection for Jobs // -// Update SSO settings by its ID.\ +// Disable specific metric collection for a specified Job. \ +// This API supports specifying multiple Jobs, each with its own list of metrics to be disabled. \ +// Additionally, you can use the same API to re-enable metrics that were previously disabled.\ // \ -// **Required permissions:** _sso.config_ +// **Required permissions:** Integrations Full Access // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/sso-settings/{ssoSettingsId} (the `UpdateSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) UpdateSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, body UpdateSsoSettingsByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSsoSettingsByIdV1Response, error) { - rsp, err := c.UpdateSsoSettingsByIdV1(ctx, ssoSettingsId, body, reqEditors...) +// Corresponds with POST /monitor/prometheus-jobs/v1/disabled-metrics (the `PostDisabledMetricsV1` operationId). +func (c *ClientWithResponses) PostDisabledMetricsV1WithResponse(ctx context.Context, body PostDisabledMetricsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*PostDisabledMetricsV1Response, error) { + rsp, err := c.PostDisabledMetricsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateSsoSettingsByIdV1Response(rsp) + return ParsePostDisabledMetricsV1Response(rsp) } -// GetSystemSsoSettingsV1WithResponse List System SSO Settings +// GetCustomPrometheusJobsV1WithResponse List Custom Prometheus jobs // -// Retrieve a paginated list of System SSO settings.\ +// Retrieve a paginated list of custom Prometheus jobs.\ // \ -// **Required permissions:** _sso-system.config_ +// **Required permissions:** _promcat.integrations.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/system-sso-settings (the `GetSystemSsoSettingsV1` operationId). -func (c *ClientWithResponses) GetSystemSsoSettingsV1WithResponse(ctx context.Context, params *GetSystemSsoSettingsV1Params, reqEditors ...RequestEditorFn) (*GetSystemSsoSettingsV1Response, error) { - rsp, err := c.GetSystemSsoSettingsV1(ctx, params, reqEditors...) +// Corresponds with GET /monitor/prometheus-jobs/v1alpha1/custom-jobs (the `GetCustomPrometheusJobsV1` operationId). +func (c *ClientWithResponses) GetCustomPrometheusJobsV1WithResponse(ctx context.Context, params *GetCustomPrometheusJobsV1Params, reqEditors ...RequestEditorFn) (*GetCustomPrometheusJobsV1Response, error) { + rsp, err := c.GetCustomPrometheusJobsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetSystemSsoSettingsV1Response(rsp) + return ParseGetCustomPrometheusJobsV1Response(rsp) } -// CreateSystemSsoSettingsV1WithBodyWithResponse Create System SSO Settings +// DeleteCustomPrometheusJobByIdV1WithResponse Delete Custom Prometheus job // -// Create a new System SSO settings.\ +// Delete a custom Prometheus job by its name.\ // \ -// **Required permissions:** _sso-system.config_ +// **Required permissions:** _promcat.integrations.admin_ // -// Takes any type of body and a specified 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). // -// Corresponds with POST /platform/v1/system-sso-settings (the `CreateSystemSsoSettingsV1` operationId). -func (c *ClientWithResponses) CreateSystemSsoSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSystemSsoSettingsV1Response, error) { - rsp, err := c.CreateSystemSsoSettingsV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with DELETE /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `DeleteCustomPrometheusJobByIdV1` operationId). +func (c *ClientWithResponses) DeleteCustomPrometheusJobByIdV1WithResponse(ctx context.Context, jobName JobNamePath, reqEditors ...RequestEditorFn) (*DeleteCustomPrometheusJobByIdV1Response, error) { + rsp, err := c.DeleteCustomPrometheusJobByIdV1(ctx, jobName, reqEditors...) if err != nil { return nil, err } - return ParseCreateSystemSsoSettingsV1Response(rsp) + return ParseDeleteCustomPrometheusJobByIdV1Response(rsp) } -// CreateSystemSsoSettingsV1WithResponse Create System SSO Settings +// GetCustomPrometheusJobByNameV1WithResponse Get Custom Prometheus Job // -// Create a new System SSO settings.\ +// Retrieve a custom Prometheus job by its name.\ // \ -// **Required permissions:** _sso-system.config_ +// **Required permissions:** _promcat.integrations.read_ // -// 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). // -// Corresponds with POST /platform/v1/system-sso-settings (the `CreateSystemSsoSettingsV1` operationId). -func (c *ClientWithResponses) CreateSystemSsoSettingsV1WithResponse(ctx context.Context, body CreateSystemSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSystemSsoSettingsV1Response, error) { - rsp, err := c.CreateSystemSsoSettingsV1(ctx, body, reqEditors...) +// Corresponds with GET /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `GetCustomPrometheusJobByNameV1` operationId). +func (c *ClientWithResponses) GetCustomPrometheusJobByNameV1WithResponse(ctx context.Context, jobName JobNamePath, reqEditors ...RequestEditorFn) (*GetCustomPrometheusJobByNameV1Response, error) { + rsp, err := c.GetCustomPrometheusJobByNameV1(ctx, jobName, reqEditors...) if err != nil { return nil, err } - return ParseCreateSystemSsoSettingsV1Response(rsp) + return ParseGetCustomPrometheusJobByNameV1Response(rsp) } -// DeleteSystemSsoSettingsByIdV1WithResponse Delete System SSO Settings +// CreateCustomPrometheusJobV1WithBodyWithResponse Create Custom Prometheus job // -// Delete System SSO settings by its ID.\ +// Create a custom Prometheus job. // \ -// **Required permissions:** _sso-system.config_ +// The body of the request must be a valid `scrape_config` as defined here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config\ +// \ +// The custom job will be disabled by default and must be enabled with the `/monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement` api. +// \ +// You can override the standard Sysdig integration jobs using the same job name. The job names are available here: https://docs.sysdig.com/en/docs/sysdig-monitor/integrations/monitoring-integrations/configure-default-integrations/#supported-monitoring-integrations +// \ +// **CAUTION**: the content of the job must be validated according to the Prometheus Scrape Config job definition. Any misconfiguration here can lead the Agent to fail the job parsing and stop sending custom metrics for all jobs. +// \ +// **Required permissions:** _promcat.integrations.admin_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/system-sso-settings/{ssoSettingsId} (the `DeleteSystemSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) DeleteSystemSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*DeleteSystemSsoSettingsByIdV1Response, error) { - rsp, err := c.DeleteSystemSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) +// Corresponds with POST /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `CreateCustomPrometheusJobV1` operationId). +func (c *ClientWithResponses) CreateCustomPrometheusJobV1WithBodyWithResponse(ctx context.Context, jobName JobNamePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomPrometheusJobV1Response, error) { + rsp, err := c.CreateCustomPrometheusJobV1WithBody(ctx, jobName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteSystemSsoSettingsByIdV1Response(rsp) + return ParseCreateCustomPrometheusJobV1Response(rsp) } -// GetSystemSsoSettingsByIdV1WithResponse Get System SSO Settings +// UpdateCustomPrometheusJobByIdV1WithBodyWithResponse Update Custom Prometheus Job // -// Return System SSO settings by ID.\ +// Update a custom Prometheus job. // \ -// **Required permissions:** _sso-system.config_ +// The body of the request must be a valid `scrape_config` as defined here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config\ +// \ +// You can override the standard Sysdig integration jobs using the same job name. The job names are available here: https://docs.sysdig.com/en/docs/sysdig-monitor/integrations/monitoring-integrations/configure-default-integrations/#supported-monitoring-integrations +// \ +// **CAUTION**: the content of the job must be validated according to the Prometheus Scrape Config job definition. Any misconfiguration here can lead the Agent to fail the job parsing and stop sending custom metrics for all jobs. +// \ +// **Required permissions:** _promcat.integrations.admin_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/system-sso-settings/{ssoSettingsId} (the `GetSystemSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) GetSystemSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*GetSystemSsoSettingsByIdV1Response, error) { - rsp, err := c.GetSystemSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) +// Corresponds with PUT /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName} (the `UpdateCustomPrometheusJobByIdV1` operationId). +func (c *ClientWithResponses) UpdateCustomPrometheusJobByIdV1WithBodyWithResponse(ctx context.Context, jobName JobNamePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomPrometheusJobByIdV1Response, error) { + rsp, err := c.UpdateCustomPrometheusJobByIdV1WithBody(ctx, jobName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetSystemSsoSettingsByIdV1Response(rsp) + return ParseUpdateCustomPrometheusJobByIdV1Response(rsp) } -// UpdateSystemSsoSettingsByIdV1WithBodyWithResponse Update System SSO Settings +// GetCustomPrometheusJobEnablementV1WithResponse Get Custom Prometheus Job enablement // -// Update System SSO settings by its ID.\ +// Retrieve the enablement state of a custom Prometheus job by its name.\ // \ -// **Required permissions:** _sso-system.config_ +// **Required permissions:** _promcat.integrations.admin_ // -// Takes any type of body and a specified 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). // -// Corresponds with PUT /platform/v1/system-sso-settings/{ssoSettingsId} (the `UpdateSystemSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) UpdateSystemSsoSettingsByIdV1WithBodyWithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSystemSsoSettingsByIdV1Response, error) { - rsp, err := c.UpdateSystemSsoSettingsByIdV1WithBody(ctx, ssoSettingsId, contentType, body, reqEditors...) +// Corresponds with GET /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement (the `GetCustomPrometheusJobEnablementV1` operationId). +func (c *ClientWithResponses) GetCustomPrometheusJobEnablementV1WithResponse(ctx context.Context, jobName JobNamePath, reqEditors ...RequestEditorFn) (*GetCustomPrometheusJobEnablementV1Response, error) { + rsp, err := c.GetCustomPrometheusJobEnablementV1(ctx, jobName, reqEditors...) if err != nil { return nil, err } - return ParseUpdateSystemSsoSettingsByIdV1Response(rsp) + return ParseGetCustomPrometheusJobEnablementV1Response(rsp) } -// UpdateSystemSsoSettingsByIdV1WithResponse Update System SSO Settings +// UpdateCustomPrometheusJobEnablementV1WithBodyWithResponse Update Custom Prometheus Job enablement // -// Update System SSO settings by its ID.\ +// Update the enablement state of a custom Prometheus job by its name.\ +// +// Enablement resolves per cluster: +// - `enabled` sets the default state for clusters without an explicit override. +// - `enablementByCluster` overrides `enabled` on each listed clusters. +// +// To enable a job on one cluster only, set `enabled` to `false` and override that cluster: `{"enabled": false, "enablementByCluster": {"ucp-xyz.com": true}}`. +// +// Conversely, you can set `enabled` to `true` and use `enablementByCluster` to disable selected clusters. // \ -// **Required permissions:** _sso-system.config_ +// **Required permissions:** _promcat.integrations.admin_ // -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/system-sso-settings/{ssoSettingsId} (the `UpdateSystemSsoSettingsByIdV1` operationId). -func (c *ClientWithResponses) UpdateSystemSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, body UpdateSystemSsoSettingsByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSystemSsoSettingsByIdV1Response, error) { - rsp, err := c.UpdateSystemSsoSettingsByIdV1(ctx, ssoSettingsId, body, reqEditors...) +// Corresponds with PUT /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement (the `UpdateCustomPrometheusJobEnablementV1` operationId). +func (c *ClientWithResponses) UpdateCustomPrometheusJobEnablementV1WithBodyWithResponse(ctx context.Context, jobName JobNamePath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomPrometheusJobEnablementV1Response, error) { + rsp, err := c.UpdateCustomPrometheusJobEnablementV1WithBody(ctx, jobName, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateSystemSsoSettingsByIdV1Response(rsp) + return ParseUpdateCustomPrometheusJobEnablementV1Response(rsp) } -// GetTeamsV1WithResponse List Teams +// UpdateCustomPrometheusJobEnablementV1WithResponse Update Custom Prometheus Job enablement // -// Retrieve a paginated list of teams.\ +// Update the enablement state of a custom Prometheus job by its name.\ +// +// Enablement resolves per cluster: +// - `enabled` sets the default state for clusters without an explicit override. +// - `enablementByCluster` overrides `enabled` on each listed clusters. +// +// To enable a job on one cluster only, set `enabled` to `false` and override that cluster: `{"enabled": false, "enablementByCluster": {"ucp-xyz.com": true}}`. +// +// Conversely, you can set `enabled` to `true` and use `enablementByCluster` to disable selected clusters. // \ -// **Required permissions:** _customer-teams.read_ +// **Required permissions:** _promcat.integrations.admin_ +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /monitor/prometheus-jobs/v1alpha1/custom-jobs/{jobName}/enablement (the `UpdateCustomPrometheusJobEnablementV1` operationId). +func (c *ClientWithResponses) UpdateCustomPrometheusJobEnablementV1WithResponse(ctx context.Context, jobName JobNamePath, body UpdateCustomPrometheusJobEnablementV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomPrometheusJobEnablementV1Response, error) { + rsp, err := c.UpdateCustomPrometheusJobEnablementV1(ctx, jobName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomPrometheusJobEnablementV1Response(rsp) +} + +// GetJiraIntegrationsV1WithResponse List Jira integrations +// +// This operation returns a paginated list of Jira integrations from the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.read* // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams (the `GetTeamsV1` operationId). -func (c *ClientWithResponses) GetTeamsV1WithResponse(ctx context.Context, params *GetTeamsV1Params, reqEditors ...RequestEditorFn) (*GetTeamsV1Response, error) { - rsp, err := c.GetTeamsV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/jira/v1/integrations (the `GetJiraIntegrationsV1` operationId). +func (c *ClientWithResponses) GetJiraIntegrationsV1WithResponse(ctx context.Context, params *GetJiraIntegrationsV1Params, reqEditors ...RequestEditorFn) (*GetJiraIntegrationsV1Response, error) { + rsp, err := c.GetJiraIntegrationsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetTeamsV1Response(rsp) + return ParseGetJiraIntegrationsV1Response(rsp) } -// CreateTeamV1WithBodyWithResponse Create Team +// CreateJiraIntegrationV1WithBodyWithResponse Create Jira integration // -// Create a new team.\ -// \ -// **Required permissions:** _teams.create_ +// This operation creates a Jira integration on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/teams (the `CreateTeamV1` operationId). -func (c *ClientWithResponses) CreateTeamV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamV1Response, error) { - rsp, err := c.CreateTeamV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /platform/jira/v1/integrations (the `CreateJiraIntegrationV1` operationId). +func (c *ClientWithResponses) CreateJiraIntegrationV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJiraIntegrationV1Response, error) { + rsp, err := c.CreateJiraIntegrationV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateTeamV1Response(rsp) + return ParseCreateJiraIntegrationV1Response(rsp) } -// CreateTeamV1WithResponse Create Team +// CreateJiraIntegrationV1WithResponse Create Jira integration // -// Create a new team.\ -// \ -// **Required permissions:** _teams.create_ +// This operation creates a Jira integration on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/teams (the `CreateTeamV1` operationId). -func (c *ClientWithResponses) CreateTeamV1WithResponse(ctx context.Context, body CreateTeamV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamV1Response, error) { - rsp, err := c.CreateTeamV1(ctx, body, reqEditors...) +// Corresponds with POST /platform/jira/v1/integrations (the `CreateJiraIntegrationV1` operationId). +func (c *ClientWithResponses) CreateJiraIntegrationV1WithResponse(ctx context.Context, body CreateJiraIntegrationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJiraIntegrationV1Response, error) { + rsp, err := c.CreateJiraIntegrationV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateTeamV1Response(rsp) + return ParseCreateJiraIntegrationV1Response(rsp) } -// DeleteTeamByIdV1WithResponse Delete Team +// DeleteJiraIntegrationV1WithResponse Delete Jira integration // -// Delete a team by its ID.\ -// \ -// **Required permissions:** _teams.edit_ +// This operation deletes a specific Jira integration on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/teams/{teamId} (the `DeleteTeamByIdV1` operationId). -func (c *ClientWithResponses) DeleteTeamByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*DeleteTeamByIdV1Response, error) { - rsp, err := c.DeleteTeamByIdV1(ctx, teamId, reqEditors...) +// Corresponds with DELETE /platform/jira/v1/integrations/{integrationId} (the `DeleteJiraIntegrationV1` operationId). +func (c *ClientWithResponses) DeleteJiraIntegrationV1WithResponse(ctx context.Context, integrationID IntegrationID, reqEditors ...RequestEditorFn) (*DeleteJiraIntegrationV1Response, error) { + rsp, err := c.DeleteJiraIntegrationV1(ctx, integrationID, reqEditors...) if err != nil { return nil, err } - return ParseDeleteTeamByIdV1Response(rsp) + return ParseDeleteJiraIntegrationV1Response(rsp) } -// GetTeamByIdV1WithResponse Get Team +// GetJiraIntegrationV1WithResponse Get Jira integration // -// Return a team by ID.\ -// \ -// **Required permissions:** _customer-teams.read_ +// This operation returns a specific Jira integration from the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.read* // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams/{teamId} (the `GetTeamByIdV1` operationId). -func (c *ClientWithResponses) GetTeamByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*GetTeamByIdV1Response, error) { - rsp, err := c.GetTeamByIdV1(ctx, teamId, reqEditors...) +// Corresponds with GET /platform/jira/v1/integrations/{integrationId} (the `GetJiraIntegrationV1` operationId). +func (c *ClientWithResponses) GetJiraIntegrationV1WithResponse(ctx context.Context, integrationID IntegrationID, reqEditors ...RequestEditorFn) (*GetJiraIntegrationV1Response, error) { + rsp, err := c.GetJiraIntegrationV1(ctx, integrationID, reqEditors...) if err != nil { return nil, err } - return ParseGetTeamByIdV1Response(rsp) + return ParseGetJiraIntegrationV1Response(rsp) } -// UpdateTeamByIdV1WithBodyWithResponse Update Team +// UpdateJiraIntegrationV1WithBodyWithResponse Update Jira integration // -// Update a team by its ID.\ -// \ -// **Required permissions:** _teams.edit_ +// This operation updates a specific Jira integration on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/teams/{teamId} (the `UpdateTeamByIdV1` operationId). -func (c *ClientWithResponses) UpdateTeamByIdV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamByIdV1Response, error) { - rsp, err := c.UpdateTeamByIdV1WithBody(ctx, teamId, contentType, body, reqEditors...) +// Corresponds with PUT /platform/jira/v1/integrations/{integrationId} (the `UpdateJiraIntegrationV1` operationId). +func (c *ClientWithResponses) UpdateJiraIntegrationV1WithBodyWithResponse(ctx context.Context, integrationID IntegrationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJiraIntegrationV1Response, error) { + rsp, err := c.UpdateJiraIntegrationV1WithBody(ctx, integrationID, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateTeamByIdV1Response(rsp) + return ParseUpdateJiraIntegrationV1Response(rsp) } -// UpdateTeamByIdV1WithResponse Update Team +// UpdateJiraIntegrationV1WithResponse Update Jira integration // -// Update a team by its ID.\ -// \ -// **Required permissions:** _teams.edit_ +// This operation updates a specific Jira integration on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/teams/{teamId} (the `UpdateTeamByIdV1` operationId). -func (c *ClientWithResponses) UpdateTeamByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, body UpdateTeamByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamByIdV1Response, error) { - rsp, err := c.UpdateTeamByIdV1(ctx, teamId, body, reqEditors...) +// Corresponds with PUT /platform/jira/v1/integrations/{integrationId} (the `UpdateJiraIntegrationV1` operationId). +func (c *ClientWithResponses) UpdateJiraIntegrationV1WithResponse(ctx context.Context, integrationID IntegrationID, body UpdateJiraIntegrationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJiraIntegrationV1Response, error) { + rsp, err := c.UpdateJiraIntegrationV1(ctx, integrationID, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateTeamByIdV1Response(rsp) + return ParseUpdateJiraIntegrationV1Response(rsp) } -// GetTeamServiceAccountsV1WithResponse List Team Service Accounts +// GetJiraIssueTypesV1WithResponse List Jira issue types // -// Retrieve a paginated list of team service accounts.\ -// \ -// **Required permissions:** _team-service-accounts.read_ +// This operation returns a list of Jira issue types from the Sysdig platform, associated with a particular Jira integration. +// +// **Required permissions:** *ticketing-integration.read* // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams/{teamId}/service-accounts (the `GetTeamServiceAccountsV1` operationId). -func (c *ClientWithResponses) GetTeamServiceAccountsV1WithResponse(ctx context.Context, teamId TeamIdPath, params *GetTeamServiceAccountsV1Params, reqEditors ...RequestEditorFn) (*GetTeamServiceAccountsV1Response, error) { - rsp, err := c.GetTeamServiceAccountsV1(ctx, teamId, params, reqEditors...) +// Corresponds with GET /platform/jira/v1/integrations/{integrationId}/issue-types (the `GetJiraIssueTypesV1` operationId). +func (c *ClientWithResponses) GetJiraIssueTypesV1WithResponse(ctx context.Context, integrationID IntegrationID, reqEditors ...RequestEditorFn) (*GetJiraIssueTypesV1Response, error) { + rsp, err := c.GetJiraIssueTypesV1(ctx, integrationID, reqEditors...) if err != nil { return nil, err } - return ParseGetTeamServiceAccountsV1Response(rsp) + return ParseGetJiraIssueTypesV1Response(rsp) } -// CreateTeamServiceAccountV1WithBodyWithResponse Create a Team Service Account +// CreateJiraIssueTypeV1WithBodyWithResponse Create Jira issue type // -// Create a new team service account.\ -// \ -// **Required permissions:** _team-service-accounts.edit_ +// This operation creates a Jira issue type on the Sysdig platform for the particular Jira integration. +// +// **Required permissions:** *ticketing-integration.write* // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts (the `CreateTeamServiceAccountV1` operationId). -func (c *ClientWithResponses) CreateTeamServiceAccountV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamServiceAccountV1Response, error) { - rsp, err := c.CreateTeamServiceAccountV1WithBody(ctx, teamId, contentType, body, reqEditors...) +// Corresponds with POST /platform/jira/v1/integrations/{integrationId}/issue-types (the `CreateJiraIssueTypeV1` operationId). +func (c *ClientWithResponses) CreateJiraIssueTypeV1WithBodyWithResponse(ctx context.Context, integrationID IntegrationID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJiraIssueTypeV1Response, error) { + rsp, err := c.CreateJiraIssueTypeV1WithBody(ctx, integrationID, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateTeamServiceAccountV1Response(rsp) + return ParseCreateJiraIssueTypeV1Response(rsp) } -// CreateTeamServiceAccountV1WithResponse Create a Team Service Account +// CreateJiraIssueTypeV1WithResponse Create Jira issue type // -// Create a new team service account.\ -// \ -// **Required permissions:** _team-service-accounts.edit_ +// This operation creates a Jira issue type on the Sysdig platform for the particular Jira integration. +// +// **Required permissions:** *ticketing-integration.write* // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts (the `CreateTeamServiceAccountV1` operationId). -func (c *ClientWithResponses) CreateTeamServiceAccountV1WithResponse(ctx context.Context, teamId TeamIdPath, body CreateTeamServiceAccountV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamServiceAccountV1Response, error) { - rsp, err := c.CreateTeamServiceAccountV1(ctx, teamId, body, reqEditors...) +// Corresponds with POST /platform/jira/v1/integrations/{integrationId}/issue-types (the `CreateJiraIssueTypeV1` operationId). +func (c *ClientWithResponses) CreateJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, body CreateJiraIssueTypeV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJiraIssueTypeV1Response, error) { + rsp, err := c.CreateJiraIssueTypeV1(ctx, integrationID, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateTeamServiceAccountV1Response(rsp) + return ParseCreateJiraIssueTypeV1Response(rsp) } -// DeleteServiceAccountsNotificationSettingsV1WithResponse Delete Service Accounts Notification Settings +// DeleteJiraIssueTypeV1WithResponse Delete Jira issue type // -// Delete Service Accounts Notification Settings for a given team.\ -// \ -// **Required permissions:** _service-accounts-notification-settings.edit_ +// This operation deletes a specific Jira issue type on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `DeleteServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) DeleteServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*DeleteServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.DeleteServiceAccountsNotificationSettingsV1(ctx, teamId, reqEditors...) +// Corresponds with DELETE /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `DeleteJiraIssueTypeV1` operationId). +func (c *ClientWithResponses) DeleteJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, reqEditors ...RequestEditorFn) (*DeleteJiraIssueTypeV1Response, error) { + rsp, err := c.DeleteJiraIssueTypeV1(ctx, integrationID, issueTypeID, reqEditors...) if err != nil { return nil, err } - return ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp) + return ParseDeleteJiraIssueTypeV1Response(rsp) } -// GetServiceAccountsNotificationSettingsV1WithResponse Get Service Accounts Notification Settings +// GetJiraIssueTypeV1WithResponse Get Jira issue type // -// Return Service Accounts Notification Settings for a given team.\ -// \ -// **Required permissions:** _service-accounts-notification-settings.read_ +// This operation returns a specific Jira issue type from the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.read* // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `GetServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) GetServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*GetServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.GetServiceAccountsNotificationSettingsV1(ctx, teamId, reqEditors...) +// Corresponds with GET /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `GetJiraIssueTypeV1` operationId). +func (c *ClientWithResponses) GetJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, reqEditors ...RequestEditorFn) (*GetJiraIssueTypeV1Response, error) { + rsp, err := c.GetJiraIssueTypeV1(ctx, integrationID, issueTypeID, reqEditors...) if err != nil { return nil, err } - return ParseGetServiceAccountsNotificationSettingsV1Response(rsp) + return ParseGetJiraIssueTypeV1Response(rsp) } -// CreateServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Service Accounts Notification Settings +// UpdateJiraIssueTypeV1WithBodyWithResponse Update Jira issue type // -// Create a new Notification Settings for Service Accounts which belong to a specific team.\ -// \ -// **Required permissions:** _service-accounts-notification-settings.edit_ +// This operation updates a specific Jira issue type on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `CreateServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) CreateServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.CreateServiceAccountsNotificationSettingsV1WithBody(ctx, teamId, contentType, body, reqEditors...) +// Corresponds with PUT /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `UpdateJiraIssueTypeV1` operationId). +func (c *ClientWithResponses) UpdateJiraIssueTypeV1WithBodyWithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJiraIssueTypeV1Response, error) { + rsp, err := c.UpdateJiraIssueTypeV1WithBody(ctx, integrationID, issueTypeID, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) + return ParseUpdateJiraIssueTypeV1Response(rsp) } -// CreateServiceAccountsNotificationSettingsV1WithResponse Create Service Accounts Notification Settings +// UpdateJiraIssueTypeV1WithResponse Update Jira issue type // -// Create a new Notification Settings for Service Accounts which belong to a specific team.\ -// \ -// **Required permissions:** _service-accounts-notification-settings.edit_ +// This operation updates a specific Jira issue type on the Sysdig platform. +// +// **Required permissions:** *ticketing-integration.write* // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `CreateServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) CreateServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, body CreateServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.CreateServiceAccountsNotificationSettingsV1(ctx, teamId, body, reqEditors...) +// Corresponds with PUT /platform/jira/v1/integrations/{integrationId}/issue-types/{issueTypeId} (the `UpdateJiraIssueTypeV1` operationId). +func (c *ClientWithResponses) UpdateJiraIssueTypeV1WithResponse(ctx context.Context, integrationID IntegrationID, issueTypeID IssueTypeID, body UpdateJiraIssueTypeV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJiraIssueTypeV1Response, error) { + rsp, err := c.UpdateJiraIssueTypeV1(ctx, integrationID, issueTypeID, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) + return ParseUpdateJiraIssueTypeV1Response(rsp) } -// UpdateServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Service Accounts Notification Settings +// ListJobsV1WithResponse List Report Job Runs // -// Update Service Accounts Notification Settings for a given team.\ +// Retrieve a list of Report Job runs.\ // \ -// **Required permissions:** _service-accounts-notification-settings.edit_ +// **Required permissions:** platform.reporting.report-downloads.read // -// Takes any type of body and a specified 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). // -// Corresponds with PUT /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `UpdateServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) UpdateServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.UpdateServiceAccountsNotificationSettingsV1WithBody(ctx, teamId, contentType, body, reqEditors...) +// Corresponds with GET /platform/reporting/v1/jobs (the `ListJobsV1` operationId). +func (c *ClientWithResponses) ListJobsV1WithResponse(ctx context.Context, params *ListJobsV1Params, reqEditors ...RequestEditorFn) (*ListJobsV1Response, error) { + rsp, err := c.ListJobsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) + return ParseListJobsV1Response(rsp) } -// UpdateServiceAccountsNotificationSettingsV1WithResponse Update Service Accounts Notification Settings +// ListSchedulesV1WithResponse List Report Schedules // -// Update Service Accounts Notification Settings for a given team.\ +// Retrieve a paginated list of Report Schedules.\ // \ -// **Required permissions:** _service-accounts-notification-settings.edit_ +// **Required permissions:** platform.reporting.schedules.read // -// 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). // -// Corresponds with PUT /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `UpdateServiceAccountsNotificationSettingsV1` operationId). -func (c *ClientWithResponses) UpdateServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, body UpdateServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceAccountsNotificationSettingsV1Response, error) { - rsp, err := c.UpdateServiceAccountsNotificationSettingsV1(ctx, teamId, body, reqEditors...) +// Corresponds with GET /platform/reporting/v1/schedules (the `ListSchedulesV1` operationId). +func (c *ClientWithResponses) ListSchedulesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSchedulesV1Response, error) { + rsp, err := c.ListSchedulesV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) + return ParseListSchedulesV1Response(rsp) } -// DeleteTeamServiceAccountByIdV1WithResponse Delete a Team Service Account +// GetAccessKeysV1WithResponse List Access Keys // -// Delete a team service account by ID.\ +// Retrieve a paginated list of access keys.\ // \ -// **Required permissions:** _team-service-accounts.edit_ +// **Required permissions:** _customer-access-keys.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/teams/{teamId}/service-accounts/{serviceAccountId} (the `DeleteTeamServiceAccountByIdV1` operationId). -func (c *ClientWithResponses) DeleteTeamServiceAccountByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*DeleteTeamServiceAccountByIdV1Response, error) { - rsp, err := c.DeleteTeamServiceAccountByIdV1(ctx, teamId, serviceAccountId, reqEditors...) +// Corresponds with GET /platform/v1/access-keys (the `GetAccessKeysV1` operationId). +func (c *ClientWithResponses) GetAccessKeysV1WithResponse(ctx context.Context, params *GetAccessKeysV1Params, reqEditors ...RequestEditorFn) (*GetAccessKeysV1Response, error) { + rsp, err := c.GetAccessKeysV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteTeamServiceAccountByIdV1Response(rsp) + return ParseGetAccessKeysV1Response(rsp) } -// GetTeamServiceAccountByIdV1WithResponse Get a Team Service Account +// CreateAccessKeyV1WithBodyWithResponse Create Access Key // -// Return a team service account by ID.\ +// Create a new access key.\ // \ -// **Required permissions:** _team-service-accounts.read_ +// **Required permissions:** _customer-access-keys.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams/{teamId}/service-accounts/{serviceAccountId} (the `GetTeamServiceAccountByIdV1` operationId). -func (c *ClientWithResponses) GetTeamServiceAccountByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*GetTeamServiceAccountByIdV1Response, error) { - rsp, err := c.GetTeamServiceAccountByIdV1(ctx, teamId, serviceAccountId, reqEditors...) +// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). +func (c *ClientWithResponses) CreateAccessKeyV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessKeyV1Response, error) { + rsp, err := c.CreateAccessKeyV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetTeamServiceAccountByIdV1Response(rsp) + return ParseCreateAccessKeyV1Response(rsp) } -// GetTeamUsersV1WithResponse List Memberships +// CreateAccessKeyV1WithResponse Create Access Key // -// Retrieve a paginated list of memberships in a given team ID.\ +// Create a new access key.\ // \ -// **Required permissions:** _memberships.read_ +// **Required permissions:** _customer-access-keys.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams/{teamId}/users (the `GetTeamUsersV1` operationId). -func (c *ClientWithResponses) GetTeamUsersV1WithResponse(ctx context.Context, teamId TeamIdPath, params *GetTeamUsersV1Params, reqEditors ...RequestEditorFn) (*GetTeamUsersV1Response, error) { - rsp, err := c.GetTeamUsersV1(ctx, teamId, params, reqEditors...) +// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). +func (c *ClientWithResponses) CreateAccessKeyV1WithResponse(ctx context.Context, body CreateAccessKeyV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessKeyV1Response, error) { + rsp, err := c.CreateAccessKeyV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseGetTeamUsersV1Response(rsp) + return ParseCreateAccessKeyV1Response(rsp) } -// DeleteTeamUserByIdV1WithResponse Delete Membership +// DeleteAccessKeyByIdV1WithResponse Delete Access Key // -// Delete a membership defined by its ID.\ +// Delete an access key by id.\ // \ -// **Required permissions:** _memberships.edit_ +// **Required permissions:** customer-access-keys.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/teams/{teamId}/users/{userId} (the `DeleteTeamUserByIdV1` operationId). -func (c *ClientWithResponses) DeleteTeamUserByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, reqEditors ...RequestEditorFn) (*DeleteTeamUserByIdV1Response, error) { - rsp, err := c.DeleteTeamUserByIdV1(ctx, teamId, userId, reqEditors...) +// Corresponds with DELETE /platform/v1/access-keys/{accessKeyId} (the `DeleteAccessKeyByIdV1` operationId). +func (c *ClientWithResponses) DeleteAccessKeyByIdV1WithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*DeleteAccessKeyByIdV1Response, error) { + rsp, err := c.DeleteAccessKeyByIdV1(ctx, accessKeyId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteTeamUserByIdV1Response(rsp) + return ParseDeleteAccessKeyByIdV1Response(rsp) } -// GetTeamUserByIdV1WithResponse Get Membership +// GetAccessKeyByIdV1WithResponse Get Access Key // -// Return a membership by its ID.\ +// Return an access key by id.\ // \ -// **Required permissions:** _memberships.read_ +// **Required permissions:** _customer-access-keys.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/teams/{teamId}/users/{userId} (the `GetTeamUserByIdV1` operationId). -func (c *ClientWithResponses) GetTeamUserByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, reqEditors ...RequestEditorFn) (*GetTeamUserByIdV1Response, error) { - rsp, err := c.GetTeamUserByIdV1(ctx, teamId, userId, reqEditors...) +// Corresponds with GET /platform/v1/access-keys/{accessKeyId} (the `GetAccessKeyByIdV1` operationId). +func (c *ClientWithResponses) GetAccessKeyByIdV1WithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*GetAccessKeyByIdV1Response, error) { + rsp, err := c.GetAccessKeyByIdV1(ctx, accessKeyId, reqEditors...) if err != nil { return nil, err } - return ParseGetTeamUserByIdV1Response(rsp) + return ParseGetAccessKeyByIdV1Response(rsp) } -// SaveTeamUserV1WithBodyWithResponse Save Membership -// -// Add or update a membership. +// UpdateAccessKeyByIdV1WithBodyWithResponse Update Access Key // -// | Permission | Description | -// | -----------------------| --------------------------------------------------------------------------------------------------------| -// | memberships.edit | Required to create a new membership. | -// | memberships-roles.edit | Required to change roles of an existing membership or to create a new membership with a specific role. | +// Update an access key by id.\ +// \ +// **Required permissions:** _customer-access-keys.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/teams/{teamId}/users/{userId} (the `SaveTeamUserV1` operationId). -func (c *ClientWithResponses) SaveTeamUserV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveTeamUserV1Response, error) { - rsp, err := c.SaveTeamUserV1WithBody(ctx, teamId, userId, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). +func (c *ClientWithResponses) UpdateAccessKeyByIdV1WithBodyWithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessKeyByIdV1Response, error) { + rsp, err := c.UpdateAccessKeyByIdV1WithBody(ctx, accessKeyId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseSaveTeamUserV1Response(rsp) + return ParseUpdateAccessKeyByIdV1Response(rsp) } -// SaveTeamUserV1WithResponse Save Membership -// -// Add or update a membership. +// UpdateAccessKeyByIdV1WithResponse Update Access Key // -// | Permission | Description | -// | -----------------------| --------------------------------------------------------------------------------------------------------| -// | memberships.edit | Required to create a new membership. | -// | memberships-roles.edit | Required to change roles of an existing membership or to create a new membership with a specific role. | +// Update an access key by id.\ +// \ +// **Required permissions:** _customer-access-keys.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/teams/{teamId}/users/{userId} (the `SaveTeamUserV1` operationId). -func (c *ClientWithResponses) SaveTeamUserV1WithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, body SaveTeamUserV1JSONRequestBody, reqEditors ...RequestEditorFn) (*SaveTeamUserV1Response, error) { - rsp, err := c.SaveTeamUserV1(ctx, teamId, userId, body, reqEditors...) +// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). +func (c *ClientWithResponses) UpdateAccessKeyByIdV1WithResponse(ctx context.Context, accessKeyId AccessKeyIdPath, body UpdateAccessKeyByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessKeyByIdV1Response, error) { + rsp, err := c.UpdateAccessKeyByIdV1(ctx, accessKeyId, body, reqEditors...) if err != nil { return nil, err } - return ParseSaveTeamUserV1Response(rsp) + return ParseUpdateAccessKeyByIdV1Response(rsp) } -// GetUsersV1WithResponse List Users +// GetCaptureStorageConfigurationV1WithResponse Get Capture Storage Configuration // -// Retrieve a paginated list of users.\ +// Retrieve the capture storage configuration.\ // \ -// **Required permissions:** _users.read_ +// **Required permissions:** _sysdig-storage.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/users (the `GetUsersV1` operationId). -func (c *ClientWithResponses) GetUsersV1WithResponse(ctx context.Context, params *GetUsersV1Params, reqEditors ...RequestEditorFn) (*GetUsersV1Response, error) { - rsp, err := c.GetUsersV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/configuration/capture-storage (the `GetCaptureStorageConfigurationV1` operationId). +func (c *ClientWithResponses) GetCaptureStorageConfigurationV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaptureStorageConfigurationV1Response, error) { + rsp, err := c.GetCaptureStorageConfigurationV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetUsersV1Response(rsp) + return ParseGetCaptureStorageConfigurationV1Response(rsp) } -// CreateUserV1WithBodyWithResponse Create User +// UpdateCaptureStorageConfigurationV1WithBodyWithResponse Update or Create Capture Storage Configuration // -// Create a new user.\ +// Update or Create Capture Storage configuration.\ // \ -// **Required permissions:** _users.create_ +// **Required permissions:** _sysdig-storage.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/users (the `CreateUserV1` operationId). -func (c *ClientWithResponses) CreateUserV1WithBodyWithResponse(ctx context.Context, params *CreateUserV1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserV1Response, error) { - rsp, err := c.CreateUserV1WithBody(ctx, params, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). +func (c *ClientWithResponses) UpdateCaptureStorageConfigurationV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCaptureStorageConfigurationV1Response, error) { + rsp, err := c.UpdateCaptureStorageConfigurationV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateUserV1Response(rsp) + return ParseUpdateCaptureStorageConfigurationV1Response(rsp) } -// CreateUserV1WithResponse Create User +// UpdateCaptureStorageConfigurationV1WithResponse Update or Create Capture Storage Configuration // -// Create a new user.\ +// Update or Create Capture Storage configuration.\ // \ -// **Required permissions:** _users.create_ +// **Required permissions:** _sysdig-storage.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/users (the `CreateUserV1` operationId). -func (c *ClientWithResponses) CreateUserV1WithResponse(ctx context.Context, params *CreateUserV1Params, body CreateUserV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserV1Response, error) { - rsp, err := c.CreateUserV1(ctx, params, body, reqEditors...) +// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). +func (c *ClientWithResponses) UpdateCaptureStorageConfigurationV1WithResponse(ctx context.Context, body UpdateCaptureStorageConfigurationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCaptureStorageConfigurationV1Response, error) { + rsp, err := c.UpdateCaptureStorageConfigurationV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateUserV1Response(rsp) + return ParseUpdateCaptureStorageConfigurationV1Response(rsp) } -// DeleteUserByIdV1WithResponse Delete User +// GetUserDeactivationConfigurationV1WithResponse Get User Deactivation Configuration // -// Delete a user by its ID.\ +// Retrieve the user deactivation configuration.\ // \ -// **Required permissions:** _users.edit_ +// **Required permissions:** _customer-user-deactivation-configuration.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v1/users/{userId} (the `DeleteUserByIdV1` operationId). -func (c *ClientWithResponses) DeleteUserByIdV1WithResponse(ctx context.Context, userId UserIdPath, reqEditors ...RequestEditorFn) (*DeleteUserByIdV1Response, error) { - rsp, err := c.DeleteUserByIdV1(ctx, userId, reqEditors...) +// Corresponds with GET /platform/v1/configuration/user-deactivation (the `GetUserDeactivationConfigurationV1` operationId). +func (c *ClientWithResponses) GetUserDeactivationConfigurationV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserDeactivationConfigurationV1Response, error) { + rsp, err := c.GetUserDeactivationConfigurationV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParseDeleteUserByIdV1Response(rsp) + return ParseGetUserDeactivationConfigurationV1Response(rsp) } -// GetUserByIdV1WithResponse Get User +// UpdateUserDeactivationConfigurationByIdV1WithBodyWithResponse Update or Create User Deactivation Configuration // -// Display a user by ID.\ +// Update or Create User deactivation configuration.\ // \ -// **Required permissions:** _users.read_ +// **Required permissions:** _customer-user-deactivation-configuration.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/users/{userId} (the `GetUserByIdV1` operationId). -func (c *ClientWithResponses) GetUserByIdV1WithResponse(ctx context.Context, userId UserIdPath, reqEditors ...RequestEditorFn) (*GetUserByIdV1Response, error) { - rsp, err := c.GetUserByIdV1(ctx, userId, reqEditors...) +// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). +func (c *ClientWithResponses) UpdateUserDeactivationConfigurationByIdV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserDeactivationConfigurationByIdV1Response, error) { + rsp, err := c.UpdateUserDeactivationConfigurationByIdV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetUserByIdV1Response(rsp) + return ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp) } -// UpdateUserV1WithBodyWithResponse Update User +// UpdateUserDeactivationConfigurationByIdV1WithResponse Update or Create User Deactivation Configuration // -// Update a user by its ID. \ +// Update or Create User deactivation configuration.\ // \ -// **Required permissions:** _users.edit_ +// **Required permissions:** _customer-user-deactivation-configuration.edit_ // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/users/{userId} (the `UpdateUserV1` operationId). -func (c *ClientWithResponses) UpdateUserV1WithBodyWithResponse(ctx context.Context, userId UserIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserV1Response, error) { - rsp, err := c.UpdateUserV1WithBody(ctx, userId, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). +func (c *ClientWithResponses) UpdateUserDeactivationConfigurationByIdV1WithResponse(ctx context.Context, body UpdateUserDeactivationConfigurationByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserDeactivationConfigurationByIdV1Response, error) { + rsp, err := c.UpdateUserDeactivationConfigurationByIdV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateUserV1Response(rsp) + return ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp) } -// UpdateUserV1WithResponse Update User +// GetDefaultNotificationTemplateV1WithResponse Get Default Notification Template // -// Update a user by its ID. \ +// Retrieve the default notification template for a channel type and use case.\ // \ -// **Required permissions:** _users.edit_ +// **Required permissions:** _notification-templates.read_ // -// 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). // -// Corresponds with PUT /platform/v1/users/{userId} (the `UpdateUserV1` operationId). -func (c *ClientWithResponses) UpdateUserV1WithResponse(ctx context.Context, userId UserIdPath, body UpdateUserV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserV1Response, error) { - rsp, err := c.UpdateUserV1(ctx, userId, body, reqEditors...) +// Corresponds with GET /platform/v1/default-notification-templates (the `GetDefaultNotificationTemplateV1` operationId). +func (c *ClientWithResponses) GetDefaultNotificationTemplateV1WithResponse(ctx context.Context, params *GetDefaultNotificationTemplateV1Params, reqEditors ...RequestEditorFn) (*GetDefaultNotificationTemplateV1Response, error) { + rsp, err := c.GetDefaultNotificationTemplateV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateUserV1Response(rsp) + return ParseGetDefaultNotificationTemplateV1Response(rsp) } -// ListZonesV1WithResponse List Zones (Deprecated) +// GetDefaultRoleByDisplayNameV1WithResponse Get Default Role // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Please use the corresponding Zones v2 endpoint.\ -// \ -// Retrieve a paginated list of Zones.\ +// Return a default role by its display name.\ // \ -// **Required permissions:** zones.read or teams.edit +// **Required permissions:** _roles.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/zones (the `ListZonesV1` operationId). -// -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) ListZonesV1WithResponse(ctx context.Context, params *ListZonesV1Params, reqEditors ...RequestEditorFn) (*ListZonesV1Response, error) { - rsp, err := c.ListZonesV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/default-roles/{roleDisplayName} (the `GetDefaultRoleByDisplayNameV1` operationId). +func (c *ClientWithResponses) GetDefaultRoleByDisplayNameV1WithResponse(ctx context.Context, roleDisplayName GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName, reqEditors ...RequestEditorFn) (*GetDefaultRoleByDisplayNameV1Response, error) { + rsp, err := c.GetDefaultRoleByDisplayNameV1(ctx, roleDisplayName, reqEditors...) if err != nil { return nil, err } - return ParseListZonesV1Response(rsp) + return ParseGetDefaultRoleByDisplayNameV1Response(rsp) } -// CreateZoneV1WithBodyWithResponse Create Zone (Deprecated) +// GetGlobalSsoSettingsV1WithResponse Get Global SSO Settings // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. -// \ -// Create a new Zone.\ +// Get Global SSO Settings.\ // \ -// **Required permissions:** zones.edit -// -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// **Required permissions:** _sso.config_ // -// Corresponds with POST /platform/v1/zones (the `CreateZoneV1` operationId). +// Returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) CreateZoneV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneV1Response, error) { - rsp, err := c.CreateZoneV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with GET /platform/v1/global-sso-settings/{ssoProductId} (the `GetGlobalSsoSettingsV1` operationId). +func (c *ClientWithResponses) GetGlobalSsoSettingsV1WithResponse(ctx context.Context, ssoProductId GetGlobalSsoSettingsV1ParamsSsoProductId, reqEditors ...RequestEditorFn) (*GetGlobalSsoSettingsV1Response, error) { + rsp, err := c.GetGlobalSsoSettingsV1(ctx, ssoProductId, reqEditors...) if err != nil { return nil, err } - return ParseCreateZoneV1Response(rsp) + return ParseGetGlobalSsoSettingsV1Response(rsp) } -// CreateZoneV1WithResponse Create Zone (Deprecated) +// UpdateGlobalSsoSettingsV1WithBodyWithResponse Update Global SSO Settings // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. -// \ -// Create a new Zone.\ +// Update Global SSO Settings.\ // \ -// **Required permissions:** zones.edit +// **Required permissions:** _sso-setting.edit_ // -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v1/zones (the `CreateZoneV1` operationId). -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) CreateZoneV1WithResponse(ctx context.Context, body CreateZoneV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneV1Response, error) { - rsp, err := c.CreateZoneV1(ctx, body, reqEditors...) +// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). +func (c *ClientWithResponses) UpdateGlobalSsoSettingsV1WithBodyWithResponse(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGlobalSsoSettingsV1Response, error) { + rsp, err := c.UpdateGlobalSsoSettingsV1WithBody(ctx, ssoProductId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateZoneV1Response(rsp) + return ParseUpdateGlobalSsoSettingsV1Response(rsp) } -// DeleteZoneV1WithResponse Delete Zone (Deprecated) +// UpdateGlobalSsoSettingsV1WithResponse Update Global SSO Settings // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. -// \ -// Delete a Zone by its ID.\ +// Update Global SSO Settings.\ // \ -// **Required permissions:** zones.edit -// -// Returns a wrapper object for the known response body format(s). +// **Required permissions:** _sso-setting.edit_ // -// Corresponds with DELETE /platform/v1/zones/{zoneId} (the `DeleteZoneV1` operationId). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) DeleteZoneV1WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*DeleteZoneV1Response, error) { - rsp, err := c.DeleteZoneV1(ctx, zoneId, reqEditors...) +// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). +func (c *ClientWithResponses) UpdateGlobalSsoSettingsV1WithResponse(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, body UpdateGlobalSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGlobalSsoSettingsV1Response, error) { + rsp, err := c.UpdateGlobalSsoSettingsV1(ctx, ssoProductId, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteZoneV1Response(rsp) + return ParseUpdateGlobalSsoSettingsV1Response(rsp) } -// GetZoneByIdV1WithResponse Get Zone (Deprecated) +// GetGroupMappingsV1WithResponse List Group Mappings // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. -// \ -// Retrieve a single Zone by ID.\ +// Retrieve a paginated list of group mappings.\ // \ -// **Required permissions:** zones.read +// **Required permissions:** _group-mappings.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v1/zones/{zoneId} (the `GetZoneByIdV1` operationId). -// -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) GetZoneByIdV1WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*GetZoneByIdV1Response, error) { - rsp, err := c.GetZoneByIdV1(ctx, zoneId, reqEditors...) +// Corresponds with GET /platform/v1/group-mappings (the `GetGroupMappingsV1` operationId). +func (c *ClientWithResponses) GetGroupMappingsV1WithResponse(ctx context.Context, params *GetGroupMappingsV1Params, reqEditors ...RequestEditorFn) (*GetGroupMappingsV1Response, error) { + rsp, err := c.GetGroupMappingsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetZoneByIdV1Response(rsp) + return ParseGetGroupMappingsV1Response(rsp) } -// EditZoneV1WithBodyWithResponse Update Zone (Deprecated) +// CreateGroupMappingV1WithBodyWithResponse Create Group Mapping // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. -// \ -// Update an existing Zone by its ID.\ +// Create a new group mapping.\ // \ -// **Required permissions:** zones.edit +// **Required permissions:** _group-mappings.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/zones/{zoneId} (the `EditZoneV1` operationId). -// -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) EditZoneV1WithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditZoneV1Response, error) { - rsp, err := c.EditZoneV1WithBody(ctx, zoneId, contentType, body, reqEditors...) +// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). +func (c *ClientWithResponses) CreateGroupMappingV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupMappingV1Response, error) { + rsp, err := c.CreateGroupMappingV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseEditZoneV1Response(rsp) + return ParseCreateGroupMappingV1Response(rsp) } -// EditZoneV1WithResponse Update Zone (Deprecated) +// CreateGroupMappingV1WithResponse Create Group Mapping // -// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. -// \ -// Update an existing Zone by its ID.\ +// Create a new group mapping.\ // \ -// **Required permissions:** zones.edit +// **Required permissions:** _group-mappings.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v1/zones/{zoneId} (the `EditZoneV1` operationId). -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) EditZoneV1WithResponse(ctx context.Context, zoneId ZoneId, body EditZoneV1JSONRequestBody, reqEditors ...RequestEditorFn) (*EditZoneV1Response, error) { - rsp, err := c.EditZoneV1(ctx, zoneId, body, reqEditors...) +// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). +func (c *ClientWithResponses) CreateGroupMappingV1WithResponse(ctx context.Context, body CreateGroupMappingV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupMappingV1Response, error) { + rsp, err := c.CreateGroupMappingV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseEditZoneV1Response(rsp) + return ParseCreateGroupMappingV1Response(rsp) } -// ListZonesV2WithResponse List Zones -// -// Retrieve a paginated list of Zones. -// -// The endpoint supports complex filtering via the `MultiFilter` query parameter. -// -// Returned items follow `ZoneResponseV2` and the outer envelope is a standard offset-paginated response. +// GetGroupMappingSettingsV1WithResponse Get Group Mappings Settings // -// **Required permissions:** `zones.read` or `teams.edit` +// Retrieves your group mapping settings.\ +// \ +// **Required permissions:** _group-mappings.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v2/zones (the `ListZonesV2` operationId). -func (c *ClientWithResponses) ListZonesV2WithResponse(ctx context.Context, params *ListZonesV2Params, reqEditors ...RequestEditorFn) (*ListZonesV2Response, error) { - rsp, err := c.ListZonesV2(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/group-mappings-settings (the `GetGroupMappingSettingsV1` operationId). +func (c *ClientWithResponses) GetGroupMappingSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupMappingSettingsV1Response, error) { + rsp, err := c.GetGroupMappingSettingsV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParseListZonesV2Response(rsp) + return ParseGetGroupMappingSettingsV1Response(rsp) } -// CreateZoneV2WithBodyWithResponse Create Zone -// -// Create a new Zone. Provide a unique `name`, optional `description` and one or more `scopes` describing the resources that belong to this zone. -// -// Each scope is an OR-group of resource filters; each filter targets a `resourceType` and contains one or more filter expressions (field/operator/value). See the examples below for concrete schema definitions and examples. -// -// Use this endpoint when you want to group resources (hosts, cloud accounts, images, etc.) into logical Zones. +// SaveGroupMappingSettingsV1WithBodyWithResponse Save Group Mapping settings // -// **Required permissions:** `zones.edit` +// Saves your group mapping settings.\ +// \ +// **Required permissions:** _group-mappings.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v2/zones (the `CreateZoneV2` operationId). -func (c *ClientWithResponses) CreateZoneV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneV2Response, error) { - rsp, err := c.CreateZoneV2WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). +func (c *ClientWithResponses) SaveGroupMappingSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveGroupMappingSettingsV1Response, error) { + rsp, err := c.SaveGroupMappingSettingsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateZoneV2Response(rsp) + return ParseSaveGroupMappingSettingsV1Response(rsp) } -// CreateZoneV2WithResponse Create Zone -// -// Create a new Zone. Provide a unique `name`, optional `description` and one or more `scopes` describing the resources that belong to this zone. -// -// Each scope is an OR-group of resource filters; each filter targets a `resourceType` and contains one or more filter expressions (field/operator/value). See the examples below for concrete schema definitions and examples. -// -// Use this endpoint when you want to group resources (hosts, cloud accounts, images, etc.) into logical Zones. +// SaveGroupMappingSettingsV1WithResponse Save Group Mapping settings // -// **Required permissions:** `zones.edit` +// Saves your group mapping settings.\ +// \ +// **Required permissions:** _group-mappings.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /platform/v2/zones (the `CreateZoneV2` operationId). -func (c *ClientWithResponses) CreateZoneV2WithResponse(ctx context.Context, body CreateZoneV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneV2Response, error) { - rsp, err := c.CreateZoneV2(ctx, body, reqEditors...) +// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). +func (c *ClientWithResponses) SaveGroupMappingSettingsV1WithResponse(ctx context.Context, body SaveGroupMappingSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*SaveGroupMappingSettingsV1Response, error) { + rsp, err := c.SaveGroupMappingSettingsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateZoneV2Response(rsp) + return ParseSaveGroupMappingSettingsV1Response(rsp) } -// DeleteZoneV2WithResponse Delete Zone -// -// Delete a Zone by its ID. -// This operation is irreversible. Ensure the zone is not in use before deletion. +// DeleteGroupMappingByIdV1WithResponse Delete Group Mapping // -// **Required permissions:** `zones.edit` +// Delete a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /platform/v2/zones/{zoneId} (the `DeleteZoneV2` operationId). -func (c *ClientWithResponses) DeleteZoneV2WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*DeleteZoneV2Response, error) { - rsp, err := c.DeleteZoneV2(ctx, zoneId, reqEditors...) +// Corresponds with DELETE /platform/v1/group-mappings/{groupMappingId} (the `DeleteGroupMappingByIdV1` operationId). +func (c *ClientWithResponses) DeleteGroupMappingByIdV1WithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*DeleteGroupMappingByIdV1Response, error) { + rsp, err := c.DeleteGroupMappingByIdV1(ctx, groupMappingId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteZoneV2Response(rsp) + return ParseDeleteGroupMappingByIdV1Response(rsp) } -// GetZoneByIdV2WithResponse Get Zone -// -// Retrieve a single Zone by ID. -// -// Use the Zone `id` (path parameter) to fetch the full Zone resource including its scopes and metadata. +// GetGroupMappingByIdV1WithResponse Get Group Mapping // -// **Required permissions:** `zones.read` +// Return a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /platform/v2/zones/{zoneId} (the `GetZoneByIdV2` operationId). -func (c *ClientWithResponses) GetZoneByIdV2WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*GetZoneByIdV2Response, error) { - rsp, err := c.GetZoneByIdV2(ctx, zoneId, reqEditors...) +// Corresponds with GET /platform/v1/group-mappings/{groupMappingId} (the `GetGroupMappingByIdV1` operationId). +func (c *ClientWithResponses) GetGroupMappingByIdV1WithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*GetGroupMappingByIdV1Response, error) { + rsp, err := c.GetGroupMappingByIdV1(ctx, groupMappingId, reqEditors...) if err != nil { return nil, err } - return ParseGetZoneByIdV2Response(rsp) + return ParseGetGroupMappingByIdV1Response(rsp) } -// EditZoneV2WithBodyWithResponse Update Zone -// -// Replace an existing Zone by its ID. -// Use this endpoint to update all modifiable fields of a zone. Provide a full `CreateZoneRequestV2`-shaped body; missing required fields may cause validation errors. -// -// Note: Updates are costly; partial updates are not supported. +// UpdateGroupMappingByIdV1WithBodyWithResponse Update Group Mapping // -// **Required permissions:** `zones.edit` +// Update a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v2/zones/{zoneId} (the `EditZoneV2` operationId). -func (c *ClientWithResponses) EditZoneV2WithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditZoneV2Response, error) { - rsp, err := c.EditZoneV2WithBody(ctx, zoneId, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). +func (c *ClientWithResponses) UpdateGroupMappingByIdV1WithBodyWithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupMappingByIdV1Response, error) { + rsp, err := c.UpdateGroupMappingByIdV1WithBody(ctx, groupMappingId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseEditZoneV2Response(rsp) + return ParseUpdateGroupMappingByIdV1Response(rsp) } -// EditZoneV2WithResponse Update Zone -// -// Replace an existing Zone by its ID. -// Use this endpoint to update all modifiable fields of a zone. Provide a full `CreateZoneRequestV2`-shaped body; missing required fields may cause validation errors. -// -// Note: Updates are costly; partial updates are not supported. +// UpdateGroupMappingByIdV1WithResponse Update Group Mapping // -// **Required permissions:** `zones.edit` +// Update a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /platform/v2/zones/{zoneId} (the `EditZoneV2` operationId). -func (c *ClientWithResponses) EditZoneV2WithResponse(ctx context.Context, zoneId ZoneId, body EditZoneV2JSONRequestBody, reqEditors ...RequestEditorFn) (*EditZoneV2Response, error) { - rsp, err := c.EditZoneV2(ctx, zoneId, body, reqEditors...) +// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). +func (c *ClientWithResponses) UpdateGroupMappingByIdV1WithResponse(ctx context.Context, groupMappingId GroupMappingIdPath, body UpdateGroupMappingByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupMappingByIdV1Response, error) { + rsp, err := c.UpdateGroupMappingByIdV1(ctx, groupMappingId, body, reqEditors...) if err != nil { return nil, err } - return ParseEditZoneV2Response(rsp) + return ParseUpdateGroupMappingByIdV1Response(rsp) } -// GetAdminTsdbCleanTombstonesV1WithResponse Clean Tombstones +// GetIpFiltersV1WithResponse List IP Filters // -// This endpoint is NOT SUPPORTED. +// Retrieve a paginated list of IP filters.\ +// \ +// **Required permissions:** _ip-filters.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/admin/tsdb/clean_tombstones (the `GetAdminTsdbCleanTombstonesV1` operationId). -func (c *ClientWithResponses) GetAdminTsdbCleanTombstonesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminTsdbCleanTombstonesV1Response, error) { - rsp, err := c.GetAdminTsdbCleanTombstonesV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/ip-filters (the `GetIpFiltersV1` operationId). +func (c *ClientWithResponses) GetIpFiltersV1WithResponse(ctx context.Context, params *GetIpFiltersV1Params, reqEditors ...RequestEditorFn) (*GetIpFiltersV1Response, error) { + rsp, err := c.GetIpFiltersV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetAdminTsdbCleanTombstonesV1Response(rsp) + return ParseGetIpFiltersV1Response(rsp) } -// PostAdminTsdbCleanTombstonesV1WithResponse Clean Tombstones +// CreateIpFilterV1WithBodyWithResponse Create IP Filter // -// This endpoint is NOT SUPPORTED. +// Create a new IP filter.\ +// \ +// **Required permissions:** _ip-filters.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /prometheus/api/v1/admin/tsdb/clean_tombstones (the `PostAdminTsdbCleanTombstonesV1` operationId). -func (c *ClientWithResponses) PostAdminTsdbCleanTombstonesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostAdminTsdbCleanTombstonesV1Response, error) { - rsp, err := c.PostAdminTsdbCleanTombstonesV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). +func (c *ClientWithResponses) CreateIpFilterV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIpFilterV1Response, error) { + rsp, err := c.CreateIpFilterV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostAdminTsdbCleanTombstonesV1Response(rsp) + return ParseCreateIpFilterV1Response(rsp) } -// GetAdminTsdbDeleteSeriesV1WithResponse Delete Series +// CreateIpFilterV1WithResponse Create IP Filter // -// This endpoint is NOT SUPPORTED. +// Create a new IP filter.\ +// \ +// **Required permissions:** _ip-filters.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/admin/tsdb/delete_series (the `GetAdminTsdbDeleteSeriesV1` operationId). -func (c *ClientWithResponses) GetAdminTsdbDeleteSeriesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminTsdbDeleteSeriesV1Response, error) { - rsp, err := c.GetAdminTsdbDeleteSeriesV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). +func (c *ClientWithResponses) CreateIpFilterV1WithResponse(ctx context.Context, body CreateIpFilterV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIpFilterV1Response, error) { + rsp, err := c.CreateIpFilterV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseGetAdminTsdbDeleteSeriesV1Response(rsp) + return ParseCreateIpFilterV1Response(rsp) } -// PostAdminTsdbDeleteSeriesV1WithResponse Delete Series +// GetIpFiltersSettingsV1WithResponse Get IP Filters Settings // -// This endpoint is NOT SUPPORTED. +// Retrieves your IP filters settings.\ +// \ +// **Required permissions:** _ip-filters.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /prometheus/api/v1/admin/tsdb/delete_series (the `PostAdminTsdbDeleteSeriesV1` operationId). -func (c *ClientWithResponses) PostAdminTsdbDeleteSeriesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostAdminTsdbDeleteSeriesV1Response, error) { - rsp, err := c.PostAdminTsdbDeleteSeriesV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/ip-filters-settings (the `GetIpFiltersSettingsV1` operationId). +func (c *ClientWithResponses) GetIpFiltersSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIpFiltersSettingsV1Response, error) { + rsp, err := c.GetIpFiltersSettingsV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParsePostAdminTsdbDeleteSeriesV1Response(rsp) + return ParseGetIpFiltersSettingsV1Response(rsp) } -// GetAdminTsdbSnapshotV1WithResponse Snapshot +// SaveIpFiltersSettingsV1WithBodyWithResponse Save IP Filters settings // -// This endpoint is NOT SUPPORTED. +// Saves your IP filters settings.\ +// \ +// **Required permissions:** _ip-filters.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/admin/tsdb/snapshot (the `GetAdminTsdbSnapshotV1` operationId). -func (c *ClientWithResponses) GetAdminTsdbSnapshotV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminTsdbSnapshotV1Response, error) { - rsp, err := c.GetAdminTsdbSnapshotV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). +func (c *ClientWithResponses) SaveIpFiltersSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveIpFiltersSettingsV1Response, error) { + rsp, err := c.SaveIpFiltersSettingsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetAdminTsdbSnapshotV1Response(rsp) + return ParseSaveIpFiltersSettingsV1Response(rsp) } -// PostAdminTsdbSnapshotV1WithResponse Snapshot +// SaveIpFiltersSettingsV1WithResponse Save IP Filters settings // -// This endpoint is NOT SUPPORTED. +// Saves your IP filters settings.\ +// \ +// **Required permissions:** _ip-filters.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /prometheus/api/v1/admin/tsdb/snapshot (the `PostAdminTsdbSnapshotV1` operationId). -func (c *ClientWithResponses) PostAdminTsdbSnapshotV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostAdminTsdbSnapshotV1Response, error) { - rsp, err := c.PostAdminTsdbSnapshotV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). +func (c *ClientWithResponses) SaveIpFiltersSettingsV1WithResponse(ctx context.Context, body SaveIpFiltersSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*SaveIpFiltersSettingsV1Response, error) { + rsp, err := c.SaveIpFiltersSettingsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParsePostAdminTsdbSnapshotV1Response(rsp) + return ParseSaveIpFiltersSettingsV1Response(rsp) } -// GetAlertManagersV1WithResponse Alertmanagers +// DeleteIpFilterByIdV1WithResponse Delete IP Filter // -// This endpoint is NOT SUPPORTED. +// Delete IP filter by its ID.\ +// \ +// **Required permissions:** _ip-filters.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/alertmanagers (the `GetAlertManagersV1` operationId). -func (c *ClientWithResponses) GetAlertManagersV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertManagersV1Response, error) { - rsp, err := c.GetAlertManagersV1(ctx, reqEditors...) +// Corresponds with DELETE /platform/v1/ip-filters/{ipFilterId} (the `DeleteIpFilterByIdV1` operationId). +func (c *ClientWithResponses) DeleteIpFilterByIdV1WithResponse(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*DeleteIpFilterByIdV1Response, error) { + rsp, err := c.DeleteIpFilterByIdV1(ctx, ipFilterId, reqEditors...) if err != nil { return nil, err } - return ParseGetAlertManagersV1Response(rsp) + return ParseDeleteIpFilterByIdV1Response(rsp) } -// GetAlertsV1WithResponse Alerts +// GetIpFilterByIdV1WithResponse Get IP Filter by ID // -// Returns a list of active alerts that are currently firing in Prometheus. +// Get IP Filter by ID.\ // \ -// **Required permissions:** _alerts.read_ +// **Required permissions:** _ip-filters.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/alerts (the `GetAlertsV1` operationId). -func (c *ClientWithResponses) GetAlertsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsV1Response, error) { - rsp, err := c.GetAlertsV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/ip-filters/{ipFilterId} (the `GetIpFilterByIdV1` operationId). +func (c *ClientWithResponses) GetIpFilterByIdV1WithResponse(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*GetIpFilterByIdV1Response, error) { + rsp, err := c.GetIpFilterByIdV1(ctx, ipFilterId, reqEditors...) if err != nil { return nil, err } - return ParseGetAlertsV1Response(rsp) + return ParseGetIpFilterByIdV1Response(rsp) } -// GetFormatQueryV1WithResponse Format Query +// UpdateIpFilterV1WithBodyWithResponse Update IP Filter // -// This endpoint is NOT SUPPORTED. +// Update IP filter by its ID. \ +// \ +// **Required permissions:** _ip-filters.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/format_query (the `GetFormatQueryV1` operationId). -func (c *ClientWithResponses) GetFormatQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFormatQueryV1Response, error) { - rsp, err := c.GetFormatQueryV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/ip-filters/{ipFilterId} (the `UpdateIpFilterV1` operationId). +func (c *ClientWithResponses) UpdateIpFilterV1WithBodyWithResponse(ctx context.Context, ipFilterId IpFilterIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIpFilterV1Response, error) { + rsp, err := c.UpdateIpFilterV1WithBody(ctx, ipFilterId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetFormatQueryV1Response(rsp) + return ParseUpdateIpFilterV1Response(rsp) } -// PostFormatQueryV1WithResponse Format Query +// UpdateIpFilterV1WithResponse Update IP Filter // -// This endpoint is NOT SUPPORTED. +// Update IP filter by its ID. \ +// \ +// **Required permissions:** _ip-filters.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/format_query (the `PostFormatQueryV1` operationId). -func (c *ClientWithResponses) PostFormatQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostFormatQueryV1Response, error) { - rsp, err := c.PostFormatQueryV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/ip-filters/{ipFilterId} (the `UpdateIpFilterV1` operationId). +func (c *ClientWithResponses) UpdateIpFilterV1WithResponse(ctx context.Context, ipFilterId IpFilterIdPath, body UpdateIpFilterV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIpFilterV1Response, error) { + rsp, err := c.UpdateIpFilterV1(ctx, ipFilterId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostFormatQueryV1Response(rsp) + return ParseUpdateIpFilterV1Response(rsp) } -// GetLabelValuesV1WithResponse Labels Values Query +// GetNotificationChannelsWithResponse List Notification Channels // -// The following endpoint returns a list of label names: +// Retrieve a paginated list of notification channels.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-channels.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/label/{labelName}/values (the `GetLabelValuesV1` operationId). -func (c *ClientWithResponses) GetLabelValuesV1WithResponse(ctx context.Context, labelName LabelNamePath, params *GetLabelValuesV1Params, reqEditors ...RequestEditorFn) (*GetLabelValuesV1Response, error) { - rsp, err := c.GetLabelValuesV1(ctx, labelName, params, reqEditors...) +// Corresponds with GET /platform/v1/notification-channels (the `GetNotificationChannels` operationId). +func (c *ClientWithResponses) GetNotificationChannelsWithResponse(ctx context.Context, params *GetNotificationChannelsParams, reqEditors ...RequestEditorFn) (*GetNotificationChannelsResponse, error) { + rsp, err := c.GetNotificationChannels(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetLabelValuesV1Response(rsp) + return ParseGetNotificationChannelsResponse(rsp) } -// GetLabelsV1WithResponse Labels Query +// CreateNotificationChannelWithBodyWithResponse Create Notification Channel // -// The following endpoint returns a list of label names: +// Create a notification channel.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-channels.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/labels (the `GetLabelsV1` operationId). -func (c *ClientWithResponses) GetLabelsV1WithResponse(ctx context.Context, params *GetLabelsV1Params, reqEditors ...RequestEditorFn) (*GetLabelsV1Response, error) { - rsp, err := c.GetLabelsV1(ctx, params, reqEditors...) +// Corresponds with POST /platform/v1/notification-channels (the `CreateNotificationChannel` operationId). +func (c *ClientWithResponses) CreateNotificationChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) { + rsp, err := c.CreateNotificationChannelWithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetLabelsV1Response(rsp) + return ParseCreateNotificationChannelResponse(rsp) } -// PostLabelsV1WithResponse Labels Query +// CreateNotificationChannelWithResponse Create Notification Channel // -// The following endpoint returns a list of label names: +// Create a notification channel.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-channels.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/labels (the `PostLabelsV1` operationId). -func (c *ClientWithResponses) PostLabelsV1WithResponse(ctx context.Context, params *PostLabelsV1Params, reqEditors ...RequestEditorFn) (*PostLabelsV1Response, error) { - rsp, err := c.PostLabelsV1(ctx, params, reqEditors...) +// Corresponds with POST /platform/v1/notification-channels (the `CreateNotificationChannel` operationId). +func (c *ClientWithResponses) CreateNotificationChannelWithResponse(ctx context.Context, body CreateNotificationChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationChannelResponse, error) { + rsp, err := c.CreateNotificationChannel(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParsePostLabelsV1Response(rsp) + return ParseCreateNotificationChannelResponse(rsp) } -// GetMetadataV1WithResponse Querying metric metadata +// DeleteNotificationChannelByIdWithResponse Delete Notification Channel // -// The following endpoint returns a list of label names: +// Delete a notification channel by its ID.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-channels.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/metadata (the `GetMetadataV1` operationId). -func (c *ClientWithResponses) GetMetadataV1WithResponse(ctx context.Context, params *GetMetadataV1Params, reqEditors ...RequestEditorFn) (*GetMetadataV1Response, error) { - rsp, err := c.GetMetadataV1(ctx, params, reqEditors...) +// Corresponds with DELETE /platform/v1/notification-channels/{notificationChannelId} (the `DeleteNotificationChannelById` operationId). +func (c *ClientWithResponses) DeleteNotificationChannelByIdWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, reqEditors ...RequestEditorFn) (*DeleteNotificationChannelByIdResponse, error) { + rsp, err := c.DeleteNotificationChannelById(ctx, notificationChannelID, reqEditors...) if err != nil { return nil, err } - return ParseGetMetadataV1Response(rsp) + return ParseDeleteNotificationChannelByIdResponse(rsp) } -// GetNotificationsV1WithResponse Active Notifications +// GetNotificationChannelByIdWithResponse Get Notification Channel // -// This endpoint is NOT SUPPORTED. +// Returns a specific notification channel by its ID.\ +// \ +// **Required permissions:** _notification-channels.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/notifications (the `GetNotificationsV1` operationId). -func (c *ClientWithResponses) GetNotificationsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNotificationsV1Response, error) { - rsp, err := c.GetNotificationsV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/notification-channels/{notificationChannelId} (the `GetNotificationChannelById` operationId). +func (c *ClientWithResponses) GetNotificationChannelByIdWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, reqEditors ...RequestEditorFn) (*GetNotificationChannelByIdResponse, error) { + rsp, err := c.GetNotificationChannelById(ctx, notificationChannelID, reqEditors...) if err != nil { return nil, err } - return ParseGetNotificationsV1Response(rsp) + return ParseGetNotificationChannelByIdResponse(rsp) } -// GetLiveNotificationsV1WithResponse Live Notifications +// UpdateNotificationChannelByIdWithBodyWithResponse Update Notification Channel // -// This endpoint is NOT SUPPORTED. +// Update a notification channel by its ID.\ +// \ +// **Required permissions:** _notification-channels.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/notifications/live (the `GetLiveNotificationsV1` operationId). -func (c *ClientWithResponses) GetLiveNotificationsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLiveNotificationsV1Response, error) { - rsp, err := c.GetLiveNotificationsV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/notification-channels/{notificationChannelId} (the `UpdateNotificationChannelById` operationId). +func (c *ClientWithResponses) UpdateNotificationChannelByIdWithBodyWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelByIdResponse, error) { + rsp, err := c.UpdateNotificationChannelByIdWithBody(ctx, notificationChannelID, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetLiveNotificationsV1Response(rsp) + return ParseUpdateNotificationChannelByIdResponse(rsp) } -// GetParseQueryV1WithResponse Parse Query +// UpdateNotificationChannelByIdWithResponse Update Notification Channel // -// This endpoint is NOT SUPPORTED. +// Update a notification channel by its ID.\ +// \ +// **Required permissions:** _notification-channels.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/parse_query (the `GetParseQueryV1` operationId). -func (c *ClientWithResponses) GetParseQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetParseQueryV1Response, error) { - rsp, err := c.GetParseQueryV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/notification-channels/{notificationChannelId} (the `UpdateNotificationChannelById` operationId). +func (c *ClientWithResponses) UpdateNotificationChannelByIdWithResponse(ctx context.Context, notificationChannelID NotificationChannelID, body UpdateNotificationChannelByIdJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationChannelByIdResponse, error) { + rsp, err := c.UpdateNotificationChannelById(ctx, notificationChannelID, body, reqEditors...) if err != nil { return nil, err } - return ParseGetParseQueryV1Response(rsp) + return ParseUpdateNotificationChannelByIdResponse(rsp) } -// PostParseQueryV1WithResponse Parse Query +// GetNotificationTemplatesV1WithResponse List Notification Templates // -// This endpoint is NOT SUPPORTED. +// Retrieve a paginated list of notification templates.\ +// \ +// **Required permissions:** _notification-templates.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/parse_query (the `PostParseQueryV1` operationId). -func (c *ClientWithResponses) PostParseQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostParseQueryV1Response, error) { - rsp, err := c.PostParseQueryV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/notification-templates (the `GetNotificationTemplatesV1` operationId). +func (c *ClientWithResponses) GetNotificationTemplatesV1WithResponse(ctx context.Context, params *GetNotificationTemplatesV1Params, reqEditors ...RequestEditorFn) (*GetNotificationTemplatesV1Response, error) { + rsp, err := c.GetNotificationTemplatesV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParsePostParseQueryV1Response(rsp) + return ParseGetNotificationTemplatesV1Response(rsp) } -// GetQueryV1WithResponse Instant Query +// CreateNotificationTemplateV1WithBodyWithResponse Create Notification Template // -// This endpoint evaluates an instant query at a single point in time. +// Create a notification template.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-templates.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/query (the `GetQueryV1` operationId). -func (c *ClientWithResponses) GetQueryV1WithResponse(ctx context.Context, params *GetQueryV1Params, reqEditors ...RequestEditorFn) (*GetQueryV1Response, error) { - rsp, err := c.GetQueryV1(ctx, params, reqEditors...) +// Corresponds with POST /platform/v1/notification-templates (the `CreateNotificationTemplateV1` operationId). +func (c *ClientWithResponses) CreateNotificationTemplateV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNotificationTemplateV1Response, error) { + rsp, err := c.CreateNotificationTemplateV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetQueryV1Response(rsp) + return ParseCreateNotificationTemplateV1Response(rsp) } -// PostQueryV1WithResponse Instant Query +// CreateNotificationTemplateV1WithResponse Create Notification Template // -// This endpoint evaluates an instant query at a single point in time. +// Create a notification template.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-templates.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/query (the `PostQueryV1` operationId). -func (c *ClientWithResponses) PostQueryV1WithResponse(ctx context.Context, params *PostQueryV1Params, reqEditors ...RequestEditorFn) (*PostQueryV1Response, error) { - rsp, err := c.PostQueryV1(ctx, params, reqEditors...) +// Corresponds with POST /platform/v1/notification-templates (the `CreateNotificationTemplateV1` operationId). +func (c *ClientWithResponses) CreateNotificationTemplateV1WithResponse(ctx context.Context, body CreateNotificationTemplateV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNotificationTemplateV1Response, error) { + rsp, err := c.CreateNotificationTemplateV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParsePostQueryV1Response(rsp) + return ParseCreateNotificationTemplateV1Response(rsp) } -// GetExemplarsV1WithResponse Query Exemplars +// DeleteNotificationTemplateByIdV1WithResponse Delete Notification Template // -// This endpoint is NOT SUPPORTED. +// Delete a notification template by its ID.\ +// \ +// **Required permissions:** _notification-templates.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/query_exemplars (the `GetExemplarsV1` operationId). -func (c *ClientWithResponses) GetExemplarsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExemplarsV1Response, error) { - rsp, err := c.GetExemplarsV1(ctx, reqEditors...) +// Corresponds with DELETE /platform/v1/notification-templates/{notificationTemplateId} (the `DeleteNotificationTemplateByIdV1` operationId). +func (c *ClientWithResponses) DeleteNotificationTemplateByIdV1WithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, reqEditors ...RequestEditorFn) (*DeleteNotificationTemplateByIdV1Response, error) { + rsp, err := c.DeleteNotificationTemplateByIdV1(ctx, notificationTemplateId, reqEditors...) if err != nil { return nil, err } - return ParseGetExemplarsV1Response(rsp) + return ParseDeleteNotificationTemplateByIdV1Response(rsp) } -// PostExemplarsV1WithResponse Query Exemplars +// GetNotificationTemplateByIdV1WithResponse Get Notification Template // -// This endpoint is NOT SUPPORTED. +// Retrieve a specific notification template by its ID.\ +// \ +// **Required permissions:** _notification-templates.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/query_exemplars (the `PostExemplarsV1` operationId). -func (c *ClientWithResponses) PostExemplarsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostExemplarsV1Response, error) { - rsp, err := c.PostExemplarsV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/notification-templates/{notificationTemplateId} (the `GetNotificationTemplateByIdV1` operationId). +func (c *ClientWithResponses) GetNotificationTemplateByIdV1WithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, reqEditors ...RequestEditorFn) (*GetNotificationTemplateByIdV1Response, error) { + rsp, err := c.GetNotificationTemplateByIdV1(ctx, notificationTemplateId, reqEditors...) if err != nil { return nil, err } - return ParsePostExemplarsV1Response(rsp) + return ParseGetNotificationTemplateByIdV1Response(rsp) } -// GetQueryRangeV1WithResponse Range Query +// UpdateNotificationTemplateByIdV1WithBodyWithResponse Update Notification Template // -// This endpoint evaluates an expression query over a specified time range. +// Update a notification template by its ID.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-templates.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/query_range (the `GetQueryRangeV1` operationId). -func (c *ClientWithResponses) GetQueryRangeV1WithResponse(ctx context.Context, params *GetQueryRangeV1Params, reqEditors ...RequestEditorFn) (*GetQueryRangeV1Response, error) { - rsp, err := c.GetQueryRangeV1(ctx, params, reqEditors...) +// Corresponds with PUT /platform/v1/notification-templates/{notificationTemplateId} (the `UpdateNotificationTemplateByIdV1` operationId). +func (c *ClientWithResponses) UpdateNotificationTemplateByIdV1WithBodyWithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationTemplateByIdV1Response, error) { + rsp, err := c.UpdateNotificationTemplateByIdV1WithBody(ctx, notificationTemplateId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetQueryRangeV1Response(rsp) + return ParseUpdateNotificationTemplateByIdV1Response(rsp) } -// PostQueryRangeV1WithResponse Range Query +// UpdateNotificationTemplateByIdV1WithResponse Update Notification Template // -// This endpoint evaluates an expression query over a specified time range. +// Update a notification template by its ID.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _notification-templates.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/query_range (the `PostQueryRangeV1` operationId). -func (c *ClientWithResponses) PostQueryRangeV1WithResponse(ctx context.Context, params *PostQueryRangeV1Params, reqEditors ...RequestEditorFn) (*PostQueryRangeV1Response, error) { - rsp, err := c.PostQueryRangeV1(ctx, params, reqEditors...) +// Corresponds with PUT /platform/v1/notification-templates/{notificationTemplateId} (the `UpdateNotificationTemplateByIdV1` operationId). +func (c *ClientWithResponses) UpdateNotificationTemplateByIdV1WithResponse(ctx context.Context, notificationTemplateId NotificationTemplateIdPath, body UpdateNotificationTemplateByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationTemplateByIdV1Response, error) { + rsp, err := c.UpdateNotificationTemplateByIdV1(ctx, notificationTemplateId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostQueryRangeV1Response(rsp) + return ParseUpdateNotificationTemplateByIdV1Response(rsp) } -// GetRulesV1WithResponse Rules +// GetPermissionsV1WithResponse Get Customer Permissions // -// The /rules API endpoint returns the list of alerting rules. It also returns the currently active alerts fired by the Prometheus instance of each alerting rule. -// \ -// Sysdig currently does not support recording rules. +// Retrieve a list of permissions that are used in custom roles.\ // \ -// **Required permissions:** _alerts.read_ +// **Required permissions:** _permissions.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/rules (the `GetRulesV1` operationId). -func (c *ClientWithResponses) GetRulesV1WithResponse(ctx context.Context, params *GetRulesV1Params, reqEditors ...RequestEditorFn) (*GetRulesV1Response, error) { - rsp, err := c.GetRulesV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/permissions (the `GetPermissionsV1` operationId). +func (c *ClientWithResponses) GetPermissionsV1WithResponse(ctx context.Context, params *GetPermissionsV1Params, reqEditors ...RequestEditorFn) (*GetPermissionsV1Response, error) { + rsp, err := c.GetPermissionsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetRulesV1Response(rsp) + return ParseGetPermissionsV1Response(rsp) } -// GetSeriesV1WithResponse Series Query +// GetPlatformAuditEventsV1WithResponse Get Platform Audit Events // -// The following endpoint returns the list of time series that match a specified label set. +// Retrieve a paginated list of Platform Audit Events.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _audit-trail-events.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/series (the `GetSeriesV1` operationId). -func (c *ClientWithResponses) GetSeriesV1WithResponse(ctx context.Context, params *GetSeriesV1Params, reqEditors ...RequestEditorFn) (*GetSeriesV1Response, error) { - rsp, err := c.GetSeriesV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/platform-audit-events (the `GetPlatformAuditEventsV1` operationId). +func (c *ClientWithResponses) GetPlatformAuditEventsV1WithResponse(ctx context.Context, params *GetPlatformAuditEventsV1Params, reqEditors ...RequestEditorFn) (*GetPlatformAuditEventsV1Response, error) { + rsp, err := c.GetPlatformAuditEventsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetSeriesV1Response(rsp) + return ParseGetPlatformAuditEventsV1Response(rsp) } -// PostSeriesV1WithResponse Series Query +// GetRolesV1WithResponse List Roles // -// The following endpoint returns the list of time series that match a specified label set. +// Retrieve a paginated list of roles.\ // \ -// **Required permissions:** _metrics-data.read_ +// **Required permissions:** _roles.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/series (the `PostSeriesV1` operationId). -func (c *ClientWithResponses) PostSeriesV1WithResponse(ctx context.Context, params *PostSeriesV1Params, reqEditors ...RequestEditorFn) (*PostSeriesV1Response, error) { - rsp, err := c.PostSeriesV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/roles (the `GetRolesV1` operationId). +func (c *ClientWithResponses) GetRolesV1WithResponse(ctx context.Context, params *GetRolesV1Params, reqEditors ...RequestEditorFn) (*GetRolesV1Response, error) { + rsp, err := c.GetRolesV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParsePostSeriesV1Response(rsp) + return ParseGetRolesV1Response(rsp) } -// GetStatusBuildInfoV1WithResponse Build Information +// CreateRoleV1WithBodyWithResponse Create Role // -// This endpoint is NOT SUPPORTED. +// Create a new role.\ +// \ +// **Required permissions:** _roles.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/status/buildinfo (the `GetStatusBuildInfoV1` operationId). -func (c *ClientWithResponses) GetStatusBuildInfoV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusBuildInfoV1Response, error) { - rsp, err := c.GetStatusBuildInfoV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/roles (the `CreateRoleV1` operationId). +func (c *ClientWithResponses) CreateRoleV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoleV1Response, error) { + rsp, err := c.CreateRoleV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetStatusBuildInfoV1Response(rsp) + return ParseCreateRoleV1Response(rsp) } -// GetStatusConfigV1WithResponse Config +// CreateRoleV1WithResponse Create Role // -// This endpoint is NOT SUPPORTED. +// Create a new role.\ +// \ +// **Required permissions:** _roles.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/status/config (the `GetStatusConfigV1` operationId). -func (c *ClientWithResponses) GetStatusConfigV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusConfigV1Response, error) { - rsp, err := c.GetStatusConfigV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/roles (the `CreateRoleV1` operationId). +func (c *ClientWithResponses) CreateRoleV1WithResponse(ctx context.Context, body CreateRoleV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoleV1Response, error) { + rsp, err := c.CreateRoleV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseGetStatusConfigV1Response(rsp) + return ParseCreateRoleV1Response(rsp) } -// GetStatusFlagsV1WithResponse Flags +// DeleteRoleByIdV1WithResponse Delete Role // -// This endpoint is NOT SUPPORTED. +// Delete a role by its ID.\ +// \ +// **Required permissions:** _roles.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/status/flags (the `GetStatusFlagsV1` operationId). -func (c *ClientWithResponses) GetStatusFlagsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusFlagsV1Response, error) { - rsp, err := c.GetStatusFlagsV1(ctx, reqEditors...) +// Corresponds with DELETE /platform/v1/roles/{roleId} (the `DeleteRoleByIdV1` operationId). +func (c *ClientWithResponses) DeleteRoleByIdV1WithResponse(ctx context.Context, roleId RoleIdPath, reqEditors ...RequestEditorFn) (*DeleteRoleByIdV1Response, error) { + rsp, err := c.DeleteRoleByIdV1(ctx, roleId, reqEditors...) if err != nil { return nil, err } - return ParseGetStatusFlagsV1Response(rsp) + return ParseDeleteRoleByIdV1Response(rsp) } -// GetStatusRuntimeInfoV1WithResponse Runtime Information +// GetRoleByIdV1WithResponse Get Role // -// This endpoint is NOT SUPPORTED. +// Return a role by its ID.\ +// \ +// **Required permissions:** _roles.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/status/runtimeinfo (the `GetStatusRuntimeInfoV1` operationId). -func (c *ClientWithResponses) GetStatusRuntimeInfoV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusRuntimeInfoV1Response, error) { - rsp, err := c.GetStatusRuntimeInfoV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/roles/{roleId} (the `GetRoleByIdV1` operationId). +func (c *ClientWithResponses) GetRoleByIdV1WithResponse(ctx context.Context, roleId RoleIdPath, reqEditors ...RequestEditorFn) (*GetRoleByIdV1Response, error) { + rsp, err := c.GetRoleByIdV1(ctx, roleId, reqEditors...) if err != nil { return nil, err } - return ParseGetStatusRuntimeInfoV1Response(rsp) + return ParseGetRoleByIdV1Response(rsp) } -// GetStatusTsdbV1WithResponse TSDB Stats +// UpdateRoleByIdV1WithBodyWithResponse Update Role // -// This endpoint is NOT SUPPORTED. +// Update a role by its ID.\ +// \ +// **Required permissions:** _roles.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/status/tsdb (the `GetStatusTsdbV1` operationId). -func (c *ClientWithResponses) GetStatusTsdbV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusTsdbV1Response, error) { - rsp, err := c.GetStatusTsdbV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/roles/{roleId} (the `UpdateRoleByIdV1` operationId). +func (c *ClientWithResponses) UpdateRoleByIdV1WithBodyWithResponse(ctx context.Context, roleId RoleIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoleByIdV1Response, error) { + rsp, err := c.UpdateRoleByIdV1WithBody(ctx, roleId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetStatusTsdbV1Response(rsp) + return ParseUpdateRoleByIdV1Response(rsp) } -// GetStatusWalReplayV1WithResponse WAL Replay +// UpdateRoleByIdV1WithResponse Update Role // -// This endpoint is NOT SUPPORTED. +// Update a role by its ID.\ +// \ +// **Required permissions:** _roles.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/status/walreplay (the `GetStatusWalReplayV1` operationId). -func (c *ClientWithResponses) GetStatusWalReplayV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusWalReplayV1Response, error) { - rsp, err := c.GetStatusWalReplayV1(ctx, reqEditors...) +// Corresponds with PUT /platform/v1/roles/{roleId} (the `UpdateRoleByIdV1` operationId). +func (c *ClientWithResponses) UpdateRoleByIdV1WithResponse(ctx context.Context, roleId RoleIdPath, body UpdateRoleByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoleByIdV1Response, error) { + rsp, err := c.UpdateRoleByIdV1(ctx, roleId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetStatusWalReplayV1Response(rsp) + return ParseUpdateRoleByIdV1Response(rsp) } -// GetTargetsV1WithResponse Targets +// GetGlobalServiceAccountsV1WithResponse List Global Service Accounts // -// This endpoint is NOT SUPPORTED. +// Retrieve a paginated list of all service accounts.\ +// \ +// **Required permissions:** _global-service-accounts.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/targets (the `GetTargetsV1` operationId). -func (c *ClientWithResponses) GetTargetsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTargetsV1Response, error) { - rsp, err := c.GetTargetsV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/service-accounts (the `GetGlobalServiceAccountsV1` operationId). +func (c *ClientWithResponses) GetGlobalServiceAccountsV1WithResponse(ctx context.Context, params *GetGlobalServiceAccountsV1Params, reqEditors ...RequestEditorFn) (*GetGlobalServiceAccountsV1Response, error) { + rsp, err := c.GetGlobalServiceAccountsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetTargetsV1Response(rsp) + return ParseGetGlobalServiceAccountsV1Response(rsp) } -// GetTargetsMetadataV1WithResponse Querying target metadata +// CreateGlobalServiceAccountV1WithBodyWithResponse Create a Global Service Account // -// This endpoint is NOT SUPPORTED. +// Create a new global service account.\ +// \ +// **Required permissions:** _global-service-accounts.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /prometheus/api/v1/targets/metadata (the `GetTargetsMetadataV1` operationId). -func (c *ClientWithResponses) GetTargetsMetadataV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTargetsMetadataV1Response, error) { - rsp, err := c.GetTargetsMetadataV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/service-accounts (the `CreateGlobalServiceAccountV1` operationId). +func (c *ClientWithResponses) CreateGlobalServiceAccountV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountV1Response, error) { + rsp, err := c.CreateGlobalServiceAccountV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetTargetsMetadataV1Response(rsp) + return ParseCreateGlobalServiceAccountV1Response(rsp) } -// RemoteWriteV1WithBodyWithResponse Ingest metric data (remote write) +// CreateGlobalServiceAccountV1WithResponse Create a Global Service Account // -// Accepts a Protobuf-encoded Snappy-compressed request containing time series data. Used for remote write integrations. +// Create a new global service account.\ // \ -// **Required permissions:** _ingest.prws_ +// **Required permissions:** _global-service-accounts.edit_ // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /prometheus/api/v1/write (the `RemoteWriteV1` operationId). -func (c *ClientWithResponses) RemoteWriteV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoteWriteV1Response, error) { - rsp, err := c.RemoteWriteV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /platform/v1/service-accounts (the `CreateGlobalServiceAccountV1` operationId). +func (c *ClientWithResponses) CreateGlobalServiceAccountV1WithResponse(ctx context.Context, body CreateGlobalServiceAccountV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountV1Response, error) { + rsp, err := c.CreateGlobalServiceAccountV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseRemoteWriteV1Response(rsp) + return ParseCreateGlobalServiceAccountV1Response(rsp) } -// GetActivityAuditEntriesV1WithResponse List entries -// -// Retrieves the list of entries matching the expressed search criteria. -// The pair `from` and `to` and the `cursor` parameter are mutually exclusive. If you supply a `from` and `to` you must not supply a `cursor` and vice-versa. -// The time criteria is required and can be specified in two different ways: -// - Using `from` and `to`, the list of entries within the timeframe (max 2 weeks) will be returned, starting from the most recent ones. -// - Using a `cursor` the entries returned will be in the before, after or around the entry, depending on the entry the cursor is taken from and the cursor type. More details are available in the `cursor` attribute in the response. -// The entry content can be filtered using `zones`, to select one or more zones, or with the filter, directly expressing a condition on fields and labels. +// DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse Delete Global Service Accounts Notification Settings // -// **Required permissions:** _commands.read_ | _connections.read_ | _fileaccesses.read_ | _kubernetes.read_ +// Delete Notification Settings for Global Service Accounts.\ +// \ +// **Required permissions:** _global-service-accounts-notification-settings.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/activity-audit/v1/entries (the `GetActivityAuditEntriesV1` operationId). -func (c *ClientWithResponses) GetActivityAuditEntriesV1WithResponse(ctx context.Context, params *GetActivityAuditEntriesV1Params, reqEditors ...RequestEditorFn) (*GetActivityAuditEntriesV1Response, error) { - rsp, err := c.GetActivityAuditEntriesV1(ctx, params, reqEditors...) +// Corresponds with DELETE /platform/v1/service-accounts/notification-settings (the `DeleteGlobalServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteGlobalServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.DeleteGlobalServiceAccountsNotificationSettingsV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetActivityAuditEntriesV1Response(rsp) + return ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp) } -// GetActivityAuditEntryV1WithResponse Get entry +// GetGlobalServiceAccountsNotificationSettingsV1WithResponse Get Global Service Accounts Notification Settings // -// Retrieves an Actvity Audit entry given its id. -// **Required permissions:** _commands.read_ | _connections.read_ | _fileaccesses.read_ | _kubernetes.read_ +// Return Notification Settings for Global Service Accounts.\ +// \ +// **Required permissions:** _global-service-accounts-notification-settings.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/activity-audit/v1/entries/{entryId} (the `GetActivityAuditEntryV1` operationId). -func (c *ClientWithResponses) GetActivityAuditEntryV1WithResponse(ctx context.Context, entryId EntryId, reqEditors ...RequestEditorFn) (*GetActivityAuditEntryV1Response, error) { - rsp, err := c.GetActivityAuditEntryV1(ctx, entryId, reqEditors...) +// Corresponds with GET /platform/v1/service-accounts/notification-settings (the `GetGlobalServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) GetGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlobalServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.GetGlobalServiceAccountsNotificationSettingsV1(ctx, reqEditors...) if err != nil { return nil, err } - return ParseGetActivityAuditEntryV1Response(rsp) + return ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp) } -// GetActivityAuditEntriesSupportedFiltersV1WithResponse Get available filters +// CreateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Global Service Accounts Notification Settings // -// Activity Audit entries can be filtered by a set of attributes. This endpoint returns the list of those for which filtering is supported. +// Create a new Notification Settings for Global Service Accounts.\ +// \ +// **Required permissions:** _global-service-accounts-notification-settings.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/activity-audit/v1/supported-filters (the `GetActivityAuditEntriesSupportedFiltersV1` operationId). -func (c *ClientWithResponses) GetActivityAuditEntriesSupportedFiltersV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetActivityAuditEntriesSupportedFiltersV1Response, error) { - rsp, err := c.GetActivityAuditEntriesSupportedFiltersV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/service-accounts/notification-settings (the `CreateGlobalServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) CreateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.CreateGlobalServiceAccountsNotificationSettingsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetActivityAuditEntriesSupportedFiltersV1Response(rsp) + return ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) } -// GetCertificatesV1WithResponse List Certificates +// CreateGlobalServiceAccountsNotificationSettingsV1WithResponse Create Global Service Accounts Notification Settings // -// Returns the list of certificates.\ +// Create a new Notification Settings for Global Service Accounts.\ // \ -// **Required permissions:** _certman.read_ +// **Required permissions:** _global-service-accounts-notification-settings.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/certman/v1/certificates (the `GetCertificatesV1` operationId). -func (c *ClientWithResponses) GetCertificatesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCertificatesV1Response, error) { - rsp, err := c.GetCertificatesV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/service-accounts/notification-settings (the `CreateGlobalServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) CreateGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, body CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGlobalServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.CreateGlobalServiceAccountsNotificationSettingsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseGetCertificatesV1Response(rsp) + return ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) } -// UploadCertificateV1WithBodyWithResponse Upload Certificate +// UpdateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Global Service Accounts Notification Settings // -// Uploads a certificate that has been created by signing a CSR obtained -// via Certificates Management.\ +// Update Notification Settings for Global Service Accounts.\ // \ -// **Required permissions:** _certman.edit_ +// **Required permissions:** _global-service-accounts-notification-settings.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/certman/v1/certificates (the `UploadCertificateV1` operationId). -func (c *ClientWithResponses) UploadCertificateV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCertificateV1Response, error) { - rsp, err := c.UploadCertificateV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/service-accounts/notification-settings (the `UpdateGlobalServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) UpdateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGlobalServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.UpdateGlobalServiceAccountsNotificationSettingsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUploadCertificateV1Response(rsp) + return ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) } -// DeleteCertificateV1WithResponse Delete Certificate -// -// Deletes a certificate given its id. +// UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse Update Global Service Accounts Notification Settings // -// A certificate cannot be deleted if -// it's being used (i.e. by the events forwarder to connect to third -// parties).\ +// Update Notification Settings for Global Service Accounts.\ // \ -// **Required permissions:** _certman.edit_ +// **Required permissions:** _global-service-accounts-notification-settings.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /secure/certman/v1/certificates/{certId} (the `DeleteCertificateV1` operationId). -func (c *ClientWithResponses) DeleteCertificateV1WithResponse(ctx context.Context, certId PathCertificateId, reqEditors ...RequestEditorFn) (*DeleteCertificateV1Response, error) { - rsp, err := c.DeleteCertificateV1(ctx, certId, reqEditors...) +// Corresponds with PUT /platform/v1/service-accounts/notification-settings (the `UpdateGlobalServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, body UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGlobalServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.UpdateGlobalServiceAccountsNotificationSettingsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteCertificateV1Response(rsp) + return ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) } -// GetCertificateV1WithResponse Get Certificate +// DeleteGlobalServiceAccountByIdV1WithResponse Delete a Global Service Account // -// Get a single certificate.\ +// Delete a global service account by ID.\ // \ -// **Required permissions:** _certman.read_ +// **Required permissions:** _global-service-accounts.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/certman/v1/certificates/{certId} (the `GetCertificateV1` operationId). -func (c *ClientWithResponses) GetCertificateV1WithResponse(ctx context.Context, certId PathCertificateId, reqEditors ...RequestEditorFn) (*GetCertificateV1Response, error) { - rsp, err := c.GetCertificateV1(ctx, certId, reqEditors...) +// Corresponds with DELETE /platform/v1/service-accounts/{serviceAccountId} (the `DeleteGlobalServiceAccountByIdV1` operationId). +func (c *ClientWithResponses) DeleteGlobalServiceAccountByIdV1WithResponse(ctx context.Context, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*DeleteGlobalServiceAccountByIdV1Response, error) { + rsp, err := c.DeleteGlobalServiceAccountByIdV1(ctx, serviceAccountId, reqEditors...) if err != nil { return nil, err } - return ParseGetCertificateV1Response(rsp) + return ParseDeleteGlobalServiceAccountByIdV1Response(rsp) } -// GetCertificateRegistrationV1WithResponse List Services +// GetGlobalServiceAccountByIdV1WithResponse Get a Global Service Account // -// Returns he list of integrations using this certificate.\ +// Return a global service account by ID.\ // \ -// **Required permissions:** _certman.read_ +// **Required permissions:** _global-service-accounts.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/certman/v1/certificates/{certId}/services (the `GetCertificateRegistrationV1` operationId). -func (c *ClientWithResponses) GetCertificateRegistrationV1WithResponse(ctx context.Context, certId PathCertificateId, reqEditors ...RequestEditorFn) (*GetCertificateRegistrationV1Response, error) { - rsp, err := c.GetCertificateRegistrationV1(ctx, certId, reqEditors...) +// Corresponds with GET /platform/v1/service-accounts/{serviceAccountId} (the `GetGlobalServiceAccountByIdV1` operationId). +func (c *ClientWithResponses) GetGlobalServiceAccountByIdV1WithResponse(ctx context.Context, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*GetGlobalServiceAccountByIdV1Response, error) { + rsp, err := c.GetGlobalServiceAccountByIdV1(ctx, serviceAccountId, reqEditors...) if err != nil { return nil, err } - return ParseGetCertificateRegistrationV1Response(rsp) + return ParseGetGlobalServiceAccountByIdV1Response(rsp) } -// CreateCSRV1WithResponse Create CSR +// GetSsoSettingsV1WithResponse List SSO Settings // -// Creates a Certificate Signing Request generated from the customer unique -// private key. The CSR is generated on the fly.\ +// Retrieve the list of SSO settings.\ // \ -// **Required permissions:** _certman.read_ +// **Required permissions:** _sso.config_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/certman/v1/csr (the `CreateCSRV1` operationId). -func (c *ClientWithResponses) CreateCSRV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateCSRV1Response, error) { - rsp, err := c.CreateCSRV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/sso-settings (the `GetSsoSettingsV1` operationId). +func (c *ClientWithResponses) GetSsoSettingsV1WithResponse(ctx context.Context, params *GetSsoSettingsV1Params, reqEditors ...RequestEditorFn) (*GetSsoSettingsV1Response, error) { + rsp, err := c.GetSsoSettingsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseCreateCSRV1Response(rsp) + return ParseGetSsoSettingsV1Response(rsp) } -// ListEFOChannelsByIntegrationV1WithResponse List Channels -// -// Returns the list of supported Channels (Data types) for a given integration type. +// CreateSsoSettingsV1WithBodyWithResponse Create SSO Settings // -// Returns a wrapper object for the known response body format(s). +// Create a new SSO settings.\ +// \ +// **Required permissions:** _sso-setting.edit_ // -// Corresponds with GET /secure/events-forwarder/v1/channels (the `ListEFOChannelsByIntegrationV1` operationId). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) ListEFOChannelsByIntegrationV1WithResponse(ctx context.Context, params *ListEFOChannelsByIntegrationV1Params, reqEditors ...RequestEditorFn) (*ListEFOChannelsByIntegrationV1Response, error) { - rsp, err := c.ListEFOChannelsByIntegrationV1(ctx, params, reqEditors...) +// Corresponds with POST /platform/v1/sso-settings (the `CreateSsoSettingsV1` operationId). +func (c *ClientWithResponses) CreateSsoSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSsoSettingsV1Response, error) { + rsp, err := c.CreateSsoSettingsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseListEFOChannelsByIntegrationV1Response(rsp) + return ParseCreateSsoSettingsV1Response(rsp) } -// ListEFOIntegrationsV1WithResponse List Integrations -// -// Returns the Events Forwarder integrations set up. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/listEFOIntegrationsV2) by then. +// CreateSsoSettingsV1WithResponse Create SSO Settings // -// Returns a wrapper object for the known response body format(s). +// Create a new SSO settings.\ +// \ +// **Required permissions:** _sso-setting.edit_ // -// Corresponds with GET /secure/events-forwarder/v1/integrations (the `ListEFOIntegrationsV1` operationId). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) ListEFOIntegrationsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsV1Response, error) { - rsp, err := c.ListEFOIntegrationsV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/sso-settings (the `CreateSsoSettingsV1` operationId). +func (c *ClientWithResponses) CreateSsoSettingsV1WithResponse(ctx context.Context, body CreateSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSsoSettingsV1Response, error) { + rsp, err := c.CreateSsoSettingsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseListEFOIntegrationsV1Response(rsp) + return ParseCreateSsoSettingsV1Response(rsp) } -// CreateEFOIntegrationV1WithBodyWithResponse Create Integration -// -// Configures a new integration to forward a data type to a destination, given the specified connection parameters. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/createEFOIntegrationV2) by then. +// DeleteSsoSettingsByIdV1WithResponse Delete SSO Settings // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Delete SSO settings by its ID.\ +// \ +// **Required permissions:** _sso.config_ // -// Corresponds with POST /secure/events-forwarder/v1/integrations (the `CreateEFOIntegrationV1` operationId). +// Returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) CreateEFOIntegrationV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV1Response, error) { - rsp, err := c.CreateEFOIntegrationV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with DELETE /platform/v1/sso-settings/{ssoSettingsId} (the `DeleteSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) DeleteSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*DeleteSsoSettingsByIdV1Response, error) { + rsp, err := c.DeleteSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) if err != nil { return nil, err } - return ParseCreateEFOIntegrationV1Response(rsp) + return ParseDeleteSsoSettingsByIdV1Response(rsp) } -// CreateEFOIntegrationV1WithResponse Create Integration +// GetSsoSettingsByIdV1WithResponse Get SSO Settings // -// Configures a new integration to forward a data type to a destination, given the specified connection parameters. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/createEFOIntegrationV2) by then. +// Return SSO settings by ID.\ +// \ +// **Required permissions:** _sso.config_ // -// 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). // -// Corresponds with POST /secure/events-forwarder/v1/integrations (the `CreateEFOIntegrationV1` operationId). -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) CreateEFOIntegrationV1WithResponse(ctx context.Context, body CreateEFOIntegrationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV1Response, error) { - rsp, err := c.CreateEFOIntegrationV1(ctx, body, reqEditors...) +// Corresponds with GET /platform/v1/sso-settings/{ssoSettingsId} (the `GetSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) GetSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*GetSsoSettingsByIdV1Response, error) { + rsp, err := c.GetSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) if err != nil { return nil, err } - return ParseCreateEFOIntegrationV1Response(rsp) + return ParseGetSsoSettingsByIdV1Response(rsp) } -// DeleteEFOIntegrationByIdV1WithResponse Delete Integration -// -// Delete an integration. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/deleteEFOIntegrationByIdV2) by then. +// UpdateSsoSettingsByIdV1WithBodyWithResponse Update SSO Settings // -// Returns a wrapper object for the known response body format(s). +// Update SSO settings by its ID.\ +// \ +// **Required permissions:** _sso.config_ // -// Corresponds with DELETE /secure/events-forwarder/v1/integrations/{integrationId} (the `DeleteEFOIntegrationByIdV1` operationId). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) DeleteEFOIntegrationByIdV1WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*DeleteEFOIntegrationByIdV1Response, error) { - rsp, err := c.DeleteEFOIntegrationByIdV1(ctx, integrationId, reqEditors...) +// Corresponds with PUT /platform/v1/sso-settings/{ssoSettingsId} (the `UpdateSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) UpdateSsoSettingsByIdV1WithBodyWithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSsoSettingsByIdV1Response, error) { + rsp, err := c.UpdateSsoSettingsByIdV1WithBody(ctx, ssoSettingsId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseDeleteEFOIntegrationByIdV1Response(rsp) + return ParseUpdateSsoSettingsByIdV1Response(rsp) } -// GetEFOIntegrationByIdV1WithResponse Get Integration -// -// Returns the configuration for an integration. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/getEFOIntegrationByIdV2) by then. +// UpdateSsoSettingsByIdV1WithResponse Update SSO Settings // -// Returns a wrapper object for the known response body format(s). +// Update SSO settings by its ID.\ +// \ +// **Required permissions:** _sso.config_ // -// Corresponds with GET /secure/events-forwarder/v1/integrations/{integrationId} (the `GetEFOIntegrationByIdV1` operationId). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) GetEFOIntegrationByIdV1WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetEFOIntegrationByIdV1Response, error) { - rsp, err := c.GetEFOIntegrationByIdV1(ctx, integrationId, reqEditors...) +// Corresponds with PUT /platform/v1/sso-settings/{ssoSettingsId} (the `UpdateSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) UpdateSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, body UpdateSsoSettingsByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSsoSettingsByIdV1Response, error) { + rsp, err := c.UpdateSsoSettingsByIdV1(ctx, ssoSettingsId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetEFOIntegrationByIdV1Response(rsp) + return ParseUpdateSsoSettingsByIdV1Response(rsp) } -// UpdateEFOIntegrationByIdV1WithBodyWithResponse Update Integration -// -// Updates an integration, replacing its configuration. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/updateEFOIntegrationByIdV2) by then. +// GetSystemSsoSettingsV1WithResponse List System SSO Settings // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Retrieve a paginated list of System SSO settings.\ +// \ +// **Required permissions:** _sso-system.config_ // -// Corresponds with PUT /secure/events-forwarder/v1/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV1` operationId). +// Returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) UpdateEFOIntegrationByIdV1WithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV1Response, error) { - rsp, err := c.UpdateEFOIntegrationByIdV1WithBody(ctx, integrationId, contentType, body, reqEditors...) +// Corresponds with GET /platform/v1/system-sso-settings (the `GetSystemSsoSettingsV1` operationId). +func (c *ClientWithResponses) GetSystemSsoSettingsV1WithResponse(ctx context.Context, params *GetSystemSsoSettingsV1Params, reqEditors ...RequestEditorFn) (*GetSystemSsoSettingsV1Response, error) { + rsp, err := c.GetSystemSsoSettingsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseUpdateEFOIntegrationByIdV1Response(rsp) + return ParseGetSystemSsoSettingsV1Response(rsp) } -// UpdateEFOIntegrationByIdV1WithResponse Update Integration +// CreateSystemSsoSettingsV1WithBodyWithResponse Create System SSO Settings // -// Updates an integration, replacing its configuration. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/updateEFOIntegrationByIdV2) by then. +// Create a new System SSO settings.\ +// \ +// **Required permissions:** _sso-system.config_ // -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/events-forwarder/v1/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV1` operationId). -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) UpdateEFOIntegrationByIdV1WithResponse(ctx context.Context, integrationId IntegrationId, body UpdateEFOIntegrationByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV1Response, error) { - rsp, err := c.UpdateEFOIntegrationByIdV1(ctx, integrationId, body, reqEditors...) +// Corresponds with POST /platform/v1/system-sso-settings (the `CreateSystemSsoSettingsV1` operationId). +func (c *ClientWithResponses) CreateSystemSsoSettingsV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSystemSsoSettingsV1Response, error) { + rsp, err := c.CreateSystemSsoSettingsV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateEFOIntegrationByIdV1Response(rsp) + return ParseCreateSystemSsoSettingsV1Response(rsp) } -// ListEFOIntegrationsTypesV1WithResponse List Integrations types -// -// Returns the list of supported integrations, to which Events Forwarder can send data. -// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/listEFOChannelsByIntegrationV2) by then. +// CreateSystemSsoSettingsV1WithResponse Create System SSO Settings // -// Returns a wrapper object for the known response body format(s). +// Create a new System SSO settings.\ +// \ +// **Required permissions:** _sso-system.config_ // -// Corresponds with GET /secure/events-forwarder/v1/types (the `ListEFOIntegrationsTypesV1` operationId). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set -func (c *ClientWithResponses) ListEFOIntegrationsTypesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsTypesV1Response, error) { - rsp, err := c.ListEFOIntegrationsTypesV1(ctx, reqEditors...) +// Corresponds with POST /platform/v1/system-sso-settings (the `CreateSystemSsoSettingsV1` operationId). +func (c *ClientWithResponses) CreateSystemSsoSettingsV1WithResponse(ctx context.Context, body CreateSystemSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSystemSsoSettingsV1Response, error) { + rsp, err := c.CreateSystemSsoSettingsV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseListEFOIntegrationsTypesV1Response(rsp) + return ParseCreateSystemSsoSettingsV1Response(rsp) } -// ListEFOChannelsByIntegrationV2WithResponse List Channels +// DeleteSystemSsoSettingsByIdV1WithResponse Delete System SSO Settings // -// Returns the list of supported Channels (Data types) for a given integration type. +// Delete System SSO settings by its ID.\ +// \ +// **Required permissions:** _sso-system.config_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events-forwarder/v2/channels (the `ListEFOChannelsByIntegrationV2` operationId). -func (c *ClientWithResponses) ListEFOChannelsByIntegrationV2WithResponse(ctx context.Context, params *ListEFOChannelsByIntegrationV2Params, reqEditors ...RequestEditorFn) (*ListEFOChannelsByIntegrationV2Response, error) { - rsp, err := c.ListEFOChannelsByIntegrationV2(ctx, params, reqEditors...) +// Corresponds with DELETE /platform/v1/system-sso-settings/{ssoSettingsId} (the `DeleteSystemSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) DeleteSystemSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*DeleteSystemSsoSettingsByIdV1Response, error) { + rsp, err := c.DeleteSystemSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) if err != nil { return nil, err } - return ParseListEFOChannelsByIntegrationV2Response(rsp) + return ParseDeleteSystemSsoSettingsByIdV1Response(rsp) } -// ListEFOIntegrationsV2WithResponse List Integrations +// GetSystemSsoSettingsByIdV1WithResponse Get System SSO Settings // -// Returns the Events Forwarder integrations set up. +// Return System SSO settings by ID.\ +// \ +// **Required permissions:** _sso-system.config_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events-forwarder/v2/integrations (the `ListEFOIntegrationsV2` operationId). -func (c *ClientWithResponses) ListEFOIntegrationsV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsV2Response, error) { - rsp, err := c.ListEFOIntegrationsV2(ctx, reqEditors...) +// Corresponds with GET /platform/v1/system-sso-settings/{ssoSettingsId} (the `GetSystemSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) GetSystemSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, reqEditors ...RequestEditorFn) (*GetSystemSsoSettingsByIdV1Response, error) { + rsp, err := c.GetSystemSsoSettingsByIdV1(ctx, ssoSettingsId, reqEditors...) if err != nil { return nil, err } - return ParseListEFOIntegrationsV2Response(rsp) + return ParseGetSystemSsoSettingsByIdV1Response(rsp) } -// CreateEFOIntegrationV2WithBodyWithResponse Create Integration +// UpdateSystemSsoSettingsByIdV1WithBodyWithResponse Update System SSO Settings // -// # Configures a new integration to forward a data type to a destination, given the specified connection parameters +// Update System SSO settings by its ID.\ +// \ +// **Required permissions:** _sso-system.config_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/events-forwarder/v2/integrations (the `CreateEFOIntegrationV2` operationId). -func (c *ClientWithResponses) CreateEFOIntegrationV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV2Response, error) { - rsp, err := c.CreateEFOIntegrationV2WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/system-sso-settings/{ssoSettingsId} (the `UpdateSystemSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) UpdateSystemSsoSettingsByIdV1WithBodyWithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSystemSsoSettingsByIdV1Response, error) { + rsp, err := c.UpdateSystemSsoSettingsByIdV1WithBody(ctx, ssoSettingsId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateEFOIntegrationV2Response(rsp) + return ParseUpdateSystemSsoSettingsByIdV1Response(rsp) } -// CreateEFOIntegrationV2WithResponse Create Integration +// UpdateSystemSsoSettingsByIdV1WithResponse Update System SSO Settings // -// # Configures a new integration to forward a data type to a destination, given the specified connection parameters +// Update System SSO settings by its ID.\ +// \ +// **Required permissions:** _sso-system.config_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/events-forwarder/v2/integrations (the `CreateEFOIntegrationV2` operationId). -func (c *ClientWithResponses) CreateEFOIntegrationV2WithResponse(ctx context.Context, body CreateEFOIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV2Response, error) { - rsp, err := c.CreateEFOIntegrationV2(ctx, body, reqEditors...) +// Corresponds with PUT /platform/v1/system-sso-settings/{ssoSettingsId} (the `UpdateSystemSsoSettingsByIdV1` operationId). +func (c *ClientWithResponses) UpdateSystemSsoSettingsByIdV1WithResponse(ctx context.Context, ssoSettingsId SsoSettingsIdPath, body UpdateSystemSsoSettingsByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSystemSsoSettingsByIdV1Response, error) { + rsp, err := c.UpdateSystemSsoSettingsByIdV1(ctx, ssoSettingsId, body, reqEditors...) if err != nil { return nil, err } - return ParseCreateEFOIntegrationV2Response(rsp) + return ParseUpdateSystemSsoSettingsByIdV1Response(rsp) } -// DeleteEFOIntegrationByIdV2WithResponse Delete Integration +// GetTeamsV1WithResponse List Teams // -// Delete an integration. +// Retrieve a paginated list of teams.\ +// \ +// **Required permissions:** _customer-teams.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /secure/events-forwarder/v2/integrations/{integrationId} (the `DeleteEFOIntegrationByIdV2` operationId). -func (c *ClientWithResponses) DeleteEFOIntegrationByIdV2WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*DeleteEFOIntegrationByIdV2Response, error) { - rsp, err := c.DeleteEFOIntegrationByIdV2(ctx, integrationId, reqEditors...) +// Corresponds with GET /platform/v1/teams (the `GetTeamsV1` operationId). +func (c *ClientWithResponses) GetTeamsV1WithResponse(ctx context.Context, params *GetTeamsV1Params, reqEditors ...RequestEditorFn) (*GetTeamsV1Response, error) { + rsp, err := c.GetTeamsV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteEFOIntegrationByIdV2Response(rsp) + return ParseGetTeamsV1Response(rsp) } -// GetEFOIntegrationByIdV2WithResponse Get Integration +// CreateTeamV1WithBodyWithResponse Create Team // -// Returns the configuration for an integration. +// Create a new team.\ +// \ +// **Required permissions:** _teams.create_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events-forwarder/v2/integrations/{integrationId} (the `GetEFOIntegrationByIdV2` operationId). -func (c *ClientWithResponses) GetEFOIntegrationByIdV2WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetEFOIntegrationByIdV2Response, error) { - rsp, err := c.GetEFOIntegrationByIdV2(ctx, integrationId, reqEditors...) +// Corresponds with POST /platform/v1/teams (the `CreateTeamV1` operationId). +func (c *ClientWithResponses) CreateTeamV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamV1Response, error) { + rsp, err := c.CreateTeamV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetEFOIntegrationByIdV2Response(rsp) + return ParseCreateTeamV1Response(rsp) } -// UpdateEFOIntegrationByIdV2WithBodyWithResponse Update Integration +// CreateTeamV1WithResponse Create Team // -// # Updates an integration, replacing its configuration +// Create a new team.\ +// \ +// **Required permissions:** _teams.create_ // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/events-forwarder/v2/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV2` operationId). -func (c *ClientWithResponses) UpdateEFOIntegrationByIdV2WithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV2Response, error) { - rsp, err := c.UpdateEFOIntegrationByIdV2WithBody(ctx, integrationId, contentType, body, reqEditors...) +// Corresponds with POST /platform/v1/teams (the `CreateTeamV1` operationId). +func (c *ClientWithResponses) CreateTeamV1WithResponse(ctx context.Context, body CreateTeamV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamV1Response, error) { + rsp, err := c.CreateTeamV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateEFOIntegrationByIdV2Response(rsp) + return ParseCreateTeamV1Response(rsp) } -// UpdateEFOIntegrationByIdV2WithResponse Update Integration +// DeleteTeamByIdV1WithResponse Delete Team // -// # Updates an integration, replacing its configuration +// Delete a team by its ID.\ +// \ +// **Required permissions:** _teams.edit_ // -// 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). // -// Corresponds with PUT /secure/events-forwarder/v2/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV2` operationId). -func (c *ClientWithResponses) UpdateEFOIntegrationByIdV2WithResponse(ctx context.Context, integrationId IntegrationId, body UpdateEFOIntegrationByIdV2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV2Response, error) { - rsp, err := c.UpdateEFOIntegrationByIdV2(ctx, integrationId, body, reqEditors...) +// Corresponds with DELETE /platform/v1/teams/{teamId} (the `DeleteTeamByIdV1` operationId). +func (c *ClientWithResponses) DeleteTeamByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*DeleteTeamByIdV1Response, error) { + rsp, err := c.DeleteTeamByIdV1(ctx, teamId, reqEditors...) if err != nil { return nil, err } - return ParseUpdateEFOIntegrationByIdV2Response(rsp) + return ParseDeleteTeamByIdV1Response(rsp) } -// ListEFOIntegrationsTypesV2WithResponse List Integrations types +// GetTeamByIdV1WithResponse Get Team // -// # Returns the list of supported integrations, to which Events Forwarder can send data +// Return a team by ID.\ +// \ +// **Required permissions:** _customer-teams.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events-forwarder/v2/types (the `ListEFOIntegrationsTypesV2` operationId). -func (c *ClientWithResponses) ListEFOIntegrationsTypesV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsTypesV2Response, error) { - rsp, err := c.ListEFOIntegrationsTypesV2(ctx, reqEditors...) +// Corresponds with GET /platform/v1/teams/{teamId} (the `GetTeamByIdV1` operationId). +func (c *ClientWithResponses) GetTeamByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*GetTeamByIdV1Response, error) { + rsp, err := c.GetTeamByIdV1(ctx, teamId, reqEditors...) if err != nil { return nil, err } - return ParseListEFOIntegrationsTypesV2Response(rsp) + return ParseGetTeamByIdV1Response(rsp) } -// GetEventsV1WithResponse List events +// UpdateTeamByIdV1WithBodyWithResponse Update Team // -// Retrieves the list of events matching the expressed search criteria. -// The pair `from` and `to` and the `cursor` parameter are mutually exclusive. If you supply a `from` and `to` you must not supply a `cursor` and vice-versa. -// The time criteria is required and can be specified in two different ways: -// - Using `from` and `to`, the list of events within the timeframe (max 2 weeks) will be returned, starting from the most recent ones. -// - Using a `cursor` the events returned will be in the before, after or around the event, depending on the event the cursor is taken from and the cursor type. More details are available in the `cursor` attribute in the response. -// The event content can be filtered using `zones`, to select one or more zones, or with the filter, directly expressing a condition on fields and labels. +// Update a team by its ID.\ +// \ +// **Required permissions:** _teams.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events/v1/events (the `GetEventsV1` operationId). -func (c *ClientWithResponses) GetEventsV1WithResponse(ctx context.Context, params *GetEventsV1Params, reqEditors ...RequestEditorFn) (*GetEventsV1Response, error) { - rsp, err := c.GetEventsV1(ctx, params, reqEditors...) +// Corresponds with PUT /platform/v1/teams/{teamId} (the `UpdateTeamByIdV1` operationId). +func (c *ClientWithResponses) UpdateTeamByIdV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamByIdV1Response, error) { + rsp, err := c.UpdateTeamByIdV1WithBody(ctx, teamId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetEventsV1Response(rsp) + return ParseUpdateTeamByIdV1Response(rsp) } -// GetEventV1WithResponse Get event +// UpdateTeamByIdV1WithResponse Update Team // -// Retrieves an event given its id. +// Update a team by its ID.\ +// \ +// **Required permissions:** _teams.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events/v1/events/{eventId} (the `GetEventV1` operationId). -func (c *ClientWithResponses) GetEventV1WithResponse(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*GetEventV1Response, error) { - rsp, err := c.GetEventV1(ctx, eventId, reqEditors...) +// Corresponds with PUT /platform/v1/teams/{teamId} (the `UpdateTeamByIdV1` operationId). +func (c *ClientWithResponses) UpdateTeamByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, body UpdateTeamByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamByIdV1Response, error) { + rsp, err := c.UpdateTeamByIdV1(ctx, teamId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetEventV1Response(rsp) + return ParseUpdateTeamByIdV1Response(rsp) } -// GetEventsSupportedFiltersV1WithResponse Get available filters +// GetTeamServiceAccountsV1WithResponse List Team Service Accounts // -// Events can be filtered by a set of attributes. This endpoint returns the list of those for which filtering is supported. +// Retrieve a paginated list of team service accounts.\ +// \ +// **Required permissions:** _team-service-accounts.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/events/v1/supported-filters (the `GetEventsSupportedFiltersV1` operationId). -func (c *ClientWithResponses) GetEventsSupportedFiltersV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEventsSupportedFiltersV1Response, error) { - rsp, err := c.GetEventsSupportedFiltersV1(ctx, reqEditors...) +// Corresponds with GET /platform/v1/teams/{teamId}/service-accounts (the `GetTeamServiceAccountsV1` operationId). +func (c *ClientWithResponses) GetTeamServiceAccountsV1WithResponse(ctx context.Context, teamId TeamIdPath, params *GetTeamServiceAccountsV1Params, reqEditors ...RequestEditorFn) (*GetTeamServiceAccountsV1Response, error) { + rsp, err := c.GetTeamServiceAccountsV1(ctx, teamId, params, reqEditors...) if err != nil { return nil, err } - return ParseGetEventsSupportedFiltersV1Response(rsp) + return ParseGetTeamServiceAccountsV1Response(rsp) } -// GetResourcesWithResponse List Resources +// CreateTeamServiceAccountV1WithBodyWithResponse Create a Team Service Account // -// Search for Inventory Resources based on the given filter. +// Create a new team service account.\ +// \ +// **Required permissions:** _team-service-accounts.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/inventory/v1/resources (the `GetResources` operationId). -func (c *ClientWithResponses) GetResourcesWithResponse(ctx context.Context, params *GetResourcesParams, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error) { - rsp, err := c.GetResources(ctx, params, reqEditors...) +// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts (the `CreateTeamServiceAccountV1` operationId). +func (c *ClientWithResponses) CreateTeamServiceAccountV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamServiceAccountV1Response, error) { + rsp, err := c.CreateTeamServiceAccountV1WithBody(ctx, teamId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetResourcesResponse(rsp) + return ParseCreateTeamServiceAccountV1Response(rsp) } -// GetResourceWithResponse Get Resource +// CreateTeamServiceAccountV1WithResponse Create a Team Service Account // -// Retrieve an Inventory Resource by its unique hash value. +// Create a new team service account.\ +// \ +// **Required permissions:** _team-service-accounts.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/inventory/v1/resources/{hash} (the `GetResource` operationId). -func (c *ClientWithResponses) GetResourceWithResponse(ctx context.Context, hash string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error) { - rsp, err := c.GetResource(ctx, hash, reqEditors...) +// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts (the `CreateTeamServiceAccountV1` operationId). +func (c *ClientWithResponses) CreateTeamServiceAccountV1WithResponse(ctx context.Context, teamId TeamIdPath, body CreateTeamServiceAccountV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamServiceAccountV1Response, error) { + rsp, err := c.CreateTeamServiceAccountV1(ctx, teamId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetResourceResponse(rsp) + return ParseCreateTeamServiceAccountV1Response(rsp) } -// GetActionExecutionsv1WithResponse Returns the list of Response Actions executions. You can filter them with the available query parameters. +// DeleteServiceAccountsNotificationSettingsV1WithResponse Delete Service Accounts Notification Settings // -// Returns a list of action executions. -// **Required permissions:** _containment-response-actions.read_ or _data-gathering-response-actions.read_, depending on the action type. +// Delete Service Accounts Notification Settings for a given team.\ +// \ +// **Required permissions:** _service-accounts-notification-settings.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/response-actions/v1alpha1/action-executions (the `GetActionExecutionsv1` operationId). -func (c *ClientWithResponses) GetActionExecutionsv1WithResponse(ctx context.Context, params *GetActionExecutionsv1Params, reqEditors ...RequestEditorFn) (*GetActionExecutionsv1Response, error) { - rsp, err := c.GetActionExecutionsv1(ctx, params, reqEditors...) +// Corresponds with DELETE /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `DeleteServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) DeleteServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*DeleteServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.DeleteServiceAccountsNotificationSettingsV1(ctx, teamId, reqEditors...) if err != nil { return nil, err } - return ParseGetActionExecutionsv1Response(rsp) + return ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp) } -// SubmitActionExecutionv1WithBodyWithResponse Execute a Response Action +// GetServiceAccountsNotificationSettingsV1WithResponse Get Service Accounts Notification Settings // -// Submit a Response Action for execution. The action runs asynchronously, and the response includes the action execution ID. \ -// Each action has its own set of required and optional input parameters. You can view the parameters for each action in the list of available actions. -// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// Return Service Accounts Notification Settings for a given team.\ +// \ +// **Required permissions:** _service-accounts-notification-settings.read_ // -// Takes any type of body and a specified 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). // -// Corresponds with POST /secure/response-actions/v1alpha1/action-executions (the `SubmitActionExecutionv1` operationId). -func (c *ClientWithResponses) SubmitActionExecutionv1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitActionExecutionv1Response, error) { - rsp, err := c.SubmitActionExecutionv1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with GET /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `GetServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) GetServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, reqEditors ...RequestEditorFn) (*GetServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.GetServiceAccountsNotificationSettingsV1(ctx, teamId, reqEditors...) if err != nil { return nil, err } - return ParseSubmitActionExecutionv1Response(rsp) + return ParseGetServiceAccountsNotificationSettingsV1Response(rsp) } -// SubmitActionExecutionv1WithResponse Execute a Response Action +// CreateServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Service Accounts Notification Settings // -// Submit a Response Action for execution. The action runs asynchronously, and the response includes the action execution ID. \ -// Each action has its own set of required and optional input parameters. You can view the parameters for each action in the list of available actions. -// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// Create a new Notification Settings for Service Accounts which belong to a specific team.\ +// \ +// **Required permissions:** _service-accounts-notification-settings.edit_ // -// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/response-actions/v1alpha1/action-executions (the `SubmitActionExecutionv1` operationId). -func (c *ClientWithResponses) SubmitActionExecutionv1WithResponse(ctx context.Context, body SubmitActionExecutionv1JSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitActionExecutionv1Response, error) { - rsp, err := c.SubmitActionExecutionv1(ctx, body, reqEditors...) +// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `CreateServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) CreateServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.CreateServiceAccountsNotificationSettingsV1WithBody(ctx, teamId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseSubmitActionExecutionv1Response(rsp) + return ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) } -// UndoActionExecutionV1WithResponse Undoes an Action Execution +// CreateServiceAccountsNotificationSettingsV1WithResponse Create Service Accounts Notification Settings // -// Undoes an action execution.\ +// Create a new Notification Settings for Service Accounts which belong to a specific team.\ // \ -// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// **Required permissions:** _service-accounts-notification-settings.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /secure/response-actions/v1alpha1/action-executions/{actionExecutionId} (the `UndoActionExecutionV1` operationId). -func (c *ClientWithResponses) UndoActionExecutionV1WithResponse(ctx context.Context, actionExecutionId ActionExecutionId, params *UndoActionExecutionV1Params, reqEditors ...RequestEditorFn) (*UndoActionExecutionV1Response, error) { - rsp, err := c.UndoActionExecutionV1(ctx, actionExecutionId, params, reqEditors...) +// Corresponds with POST /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `CreateServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) CreateServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, body CreateServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.CreateServiceAccountsNotificationSettingsV1(ctx, teamId, body, reqEditors...) if err != nil { return nil, err } - return ParseUndoActionExecutionV1Response(rsp) + return ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) } -// GetActionExecutionV1WithResponse Get Action Execution +// UpdateServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Service Accounts Notification Settings // -// Retrieve details about a previously submitted Response Action execution. \ +// Update Service Accounts Notification Settings for a given team.\ // \ -// **Required permissions:** _containment-response-actions.read_ or _data-gathering-response-actions.read_, depending on the action type. Results will include the executions of the Response Actions you are allowed to see. +// **Required permissions:** _service-accounts-notification-settings.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/response-actions/v1alpha1/action-executions/{actionExecutionId} (the `GetActionExecutionV1` operationId). -func (c *ClientWithResponses) GetActionExecutionV1WithResponse(ctx context.Context, actionExecutionId ActionExecutionId, reqEditors ...RequestEditorFn) (*GetActionExecutionV1Response, error) { - rsp, err := c.GetActionExecutionV1(ctx, actionExecutionId, reqEditors...) +// Corresponds with PUT /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `UpdateServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) UpdateServiceAccountsNotificationSettingsV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.UpdateServiceAccountsNotificationSettingsV1WithBody(ctx, teamId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetActionExecutionV1Response(rsp) + return ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) } -// GetActionExecutionFileAcquireV1WithResponse Get Acquired File +// UpdateServiceAccountsNotificationSettingsV1WithResponse Update Service Accounts Notification Settings // -// Download a file collected from a previously executed "File Acquire" Response Action. \ +// Update Service Accounts Notification Settings for a given team.\ // \ -// **Required permissions:** _data-gathering-response-actions.read_ +// **Required permissions:** _service-accounts-notification-settings.edit_ // -// Returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/response-actions/v1alpha1/action-executions/{actionExecutionId}/acquired-file (the `GetActionExecutionFileAcquireV1` operationId). -func (c *ClientWithResponses) GetActionExecutionFileAcquireV1WithResponse(ctx context.Context, actionExecutionId ActionExecutionId, reqEditors ...RequestEditorFn) (*GetActionExecutionFileAcquireV1Response, error) { - rsp, err := c.GetActionExecutionFileAcquireV1(ctx, actionExecutionId, reqEditors...) +// Corresponds with PUT /platform/v1/teams/{teamId}/service-accounts/notification-settings (the `UpdateServiceAccountsNotificationSettingsV1` operationId). +func (c *ClientWithResponses) UpdateServiceAccountsNotificationSettingsV1WithResponse(ctx context.Context, teamId TeamIdPath, body UpdateServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceAccountsNotificationSettingsV1Response, error) { + rsp, err := c.UpdateServiceAccountsNotificationSettingsV1(ctx, teamId, body, reqEditors...) if err != nil { return nil, err } - return ParseGetActionExecutionFileAcquireV1Response(rsp) + return ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) } -// GetActionsV1WithResponse Get All Response Actions +// DeleteTeamServiceAccountByIdV1WithResponse Delete a Team Service Account // -// Retrieve a list of available Response Actions. \ -// You can get all available Response Actions without specifying a `context`. -// If you specify a `context`, the API returns only the Response Actions available in that context.\ +// Delete a team service account by ID.\ // \ -// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// **Required permissions:** _team-service-accounts.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/response-actions/v1alpha1/actions (the `GetActionsV1` operationId). -func (c *ClientWithResponses) GetActionsV1WithResponse(ctx context.Context, params *GetActionsV1Params, reqEditors ...RequestEditorFn) (*GetActionsV1Response, error) { - rsp, err := c.GetActionsV1(ctx, params, reqEditors...) +// Corresponds with DELETE /platform/v1/teams/{teamId}/service-accounts/{serviceAccountId} (the `DeleteTeamServiceAccountByIdV1` operationId). +func (c *ClientWithResponses) DeleteTeamServiceAccountByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*DeleteTeamServiceAccountByIdV1Response, error) { + rsp, err := c.DeleteTeamServiceAccountByIdV1(ctx, teamId, serviceAccountId, reqEditors...) if err != nil { return nil, err } - return ParseGetActionsV1Response(rsp) + return ParseDeleteTeamServiceAccountByIdV1Response(rsp) } -// GetSecureVulnerabilityV1BundlesWithResponse List Bundles +// GetTeamServiceAccountByIdV1WithResponse Get a Team Service Account // -// Retrieves all bundles, including those defined by users and those defined by Sysdig. +// Return a team service account by ID.\ +// \ +// **Required permissions:** _team-service-accounts.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/bundles (the `GetSecureVulnerabilityV1Bundles` operationId). -func (c *ClientWithResponses) GetSecureVulnerabilityV1BundlesWithResponse(ctx context.Context, params *GetSecureVulnerabilityV1BundlesParams, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1BundlesResponse, error) { - rsp, err := c.GetSecureVulnerabilityV1Bundles(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/teams/{teamId}/service-accounts/{serviceAccountId} (the `GetTeamServiceAccountByIdV1` operationId). +func (c *ClientWithResponses) GetTeamServiceAccountByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath, reqEditors ...RequestEditorFn) (*GetTeamServiceAccountByIdV1Response, error) { + rsp, err := c.GetTeamServiceAccountByIdV1(ctx, teamId, serviceAccountId, reqEditors...) if err != nil { return nil, err } - return ParseGetSecureVulnerabilityV1BundlesResponse(rsp) + return ParseGetTeamServiceAccountByIdV1Response(rsp) } -// PostSecureVulnerabilityV1BundlesWithBodyWithResponse Create a new Bundle +// GetTeamUsersV1WithResponse List Memberships // -// Creates a new Bundle definition. -// The Bundle definition is tested for structural correctness. +// Retrieve a paginated list of memberships in a given team ID.\ +// \ +// **Required permissions:** _memberships.read_ // -// Takes any type of body and a specified 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). // -// Corresponds with POST /secure/vulnerability/v1/bundles (the `PostSecureVulnerabilityV1Bundles` operationId). -func (c *ClientWithResponses) PostSecureVulnerabilityV1BundlesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1BundlesResponse, error) { - rsp, err := c.PostSecureVulnerabilityV1BundlesWithBody(ctx, contentType, body, reqEditors...) +// Corresponds with GET /platform/v1/teams/{teamId}/users (the `GetTeamUsersV1` operationId). +func (c *ClientWithResponses) GetTeamUsersV1WithResponse(ctx context.Context, teamId TeamIdPath, params *GetTeamUsersV1Params, reqEditors ...RequestEditorFn) (*GetTeamUsersV1Response, error) { + rsp, err := c.GetTeamUsersV1(ctx, teamId, params, reqEditors...) if err != nil { return nil, err } - return ParsePostSecureVulnerabilityV1BundlesResponse(rsp) + return ParseGetTeamUsersV1Response(rsp) } -// PostSecureVulnerabilityV1BundlesWithResponse Create a new Bundle +// DeleteTeamUserByIdV1WithResponse Delete Membership // -// Creates a new Bundle definition. -// The Bundle definition is tested for structural correctness. +// Delete a membership defined by its ID.\ +// \ +// **Required permissions:** _memberships.edit_ // -// 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). // -// Corresponds with POST /secure/vulnerability/v1/bundles (the `PostSecureVulnerabilityV1Bundles` operationId). -func (c *ClientWithResponses) PostSecureVulnerabilityV1BundlesWithResponse(ctx context.Context, body PostSecureVulnerabilityV1BundlesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1BundlesResponse, error) { - rsp, err := c.PostSecureVulnerabilityV1Bundles(ctx, body, reqEditors...) +// Corresponds with DELETE /platform/v1/teams/{teamId}/users/{userId} (the `DeleteTeamUserByIdV1` operationId). +func (c *ClientWithResponses) DeleteTeamUserByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, reqEditors ...RequestEditorFn) (*DeleteTeamUserByIdV1Response, error) { + rsp, err := c.DeleteTeamUserByIdV1(ctx, teamId, userId, reqEditors...) if err != nil { return nil, err } - return ParsePostSecureVulnerabilityV1BundlesResponse(rsp) + return ParseDeleteTeamUserByIdV1Response(rsp) } -// DeleteSecureVulnerabilityV1BundlesBundleIdWithResponse Delete Bundle +// GetTeamUserByIdV1WithResponse Get Membership // -// Deletes an existing Rule Bundle only if it is not used by any Policy. -// An HTTP error is returned if the Bundle being deleted is the only one currently attached to any Policy. -// Once deleted, subsequent calls to the Service will not return that Bundle anymore. -// However, some instances of the Inline Scanner might be running concurrently and may have already downloaded a Policy containing that Bundle. +// Return a membership by its ID.\ +// \ +// **Required permissions:** _memberships.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /secure/vulnerability/v1/bundles/{bundleId} (the `DeleteSecureVulnerabilityV1BundlesBundleId` operationId). -func (c *ClientWithResponses) DeleteSecureVulnerabilityV1BundlesBundleIdWithResponse(ctx context.Context, bundleId int64, reqEditors ...RequestEditorFn) (*DeleteSecureVulnerabilityV1BundlesBundleIdResponse, error) { - rsp, err := c.DeleteSecureVulnerabilityV1BundlesBundleId(ctx, bundleId, reqEditors...) +// Corresponds with GET /platform/v1/teams/{teamId}/users/{userId} (the `GetTeamUserByIdV1` operationId). +func (c *ClientWithResponses) GetTeamUserByIdV1WithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, reqEditors ...RequestEditorFn) (*GetTeamUserByIdV1Response, error) { + rsp, err := c.GetTeamUserByIdV1(ctx, teamId, userId, reqEditors...) if err != nil { return nil, err } - return ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return ParseGetTeamUserByIdV1Response(rsp) } -// GetSecureVulnerabilityV1BundlesBundleIdWithResponse Get a Bundle +// SaveTeamUserV1WithBodyWithResponse Save Membership // -// Retrieves a specific rule bundle. +// Add or update a membership. +// +// | Permission | Description | +// | -----------------------| --------------------------------------------------------------------------------------------------------| +// | memberships.edit | Required to create a new membership. | +// | memberships-roles.edit | Required to change roles of an existing membership or to create a new membership with a specific role. | +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /platform/v1/teams/{teamId}/users/{userId} (the `SaveTeamUserV1` operationId). +func (c *ClientWithResponses) SaveTeamUserV1WithBodyWithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveTeamUserV1Response, error) { + rsp, err := c.SaveTeamUserV1WithBody(ctx, teamId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSaveTeamUserV1Response(rsp) +} + +// SaveTeamUserV1WithResponse Save Membership +// +// Add or update a membership. +// +// | Permission | Description | +// | -----------------------| --------------------------------------------------------------------------------------------------------| +// | memberships.edit | Required to create a new membership. | +// | memberships-roles.edit | Required to change roles of an existing membership or to create a new membership with a specific role. | +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /platform/v1/teams/{teamId}/users/{userId} (the `SaveTeamUserV1` operationId). +func (c *ClientWithResponses) SaveTeamUserV1WithResponse(ctx context.Context, teamId TeamIdPath, userId UserIdPath, body SaveTeamUserV1JSONRequestBody, reqEditors ...RequestEditorFn) (*SaveTeamUserV1Response, error) { + rsp, err := c.SaveTeamUserV1(ctx, teamId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSaveTeamUserV1Response(rsp) +} + +// GetUsersV1WithResponse List Users +// +// Retrieve a paginated list of users.\ +// \ +// **Required permissions:** _users.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/bundles/{bundleId} (the `GetSecureVulnerabilityV1BundlesBundleId` operationId). -func (c *ClientWithResponses) GetSecureVulnerabilityV1BundlesBundleIdWithResponse(ctx context.Context, bundleId int64, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1BundlesBundleIdResponse, error) { - rsp, err := c.GetSecureVulnerabilityV1BundlesBundleId(ctx, bundleId, reqEditors...) +// Corresponds with GET /platform/v1/users (the `GetUsersV1` operationId). +func (c *ClientWithResponses) GetUsersV1WithResponse(ctx context.Context, params *GetUsersV1Params, reqEditors ...RequestEditorFn) (*GetUsersV1Response, error) { + rsp, err := c.GetUsersV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return ParseGetUsersV1Response(rsp) } -// PutSecureVulnerabilityV1BundlesBundleIdWithBodyWithResponse Edit Bundle +// CreateUserV1WithBodyWithResponse Create User // -// Edits a specific Rule Bundle definition. The Bundle definition is -// tested for structural correctness. If the Bundle being edited is a -// Sysdig predefined one, no modifications are applied, and an HTTP error is -// returned. +// Create a new user.\ +// \ +// **Required permissions:** _users.create_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/vulnerability/v1/bundles/{bundleId} (the `PutSecureVulnerabilityV1BundlesBundleId` operationId). -func (c *ClientWithResponses) PutSecureVulnerabilityV1BundlesBundleIdWithBodyWithResponse(ctx context.Context, bundleId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1BundlesBundleIdResponse, error) { - rsp, err := c.PutSecureVulnerabilityV1BundlesBundleIdWithBody(ctx, bundleId, contentType, body, reqEditors...) +// Corresponds with POST /platform/v1/users (the `CreateUserV1` operationId). +func (c *ClientWithResponses) CreateUserV1WithBodyWithResponse(ctx context.Context, params *CreateUserV1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserV1Response, error) { + rsp, err := c.CreateUserV1WithBody(ctx, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return ParseCreateUserV1Response(rsp) } -// PutSecureVulnerabilityV1BundlesBundleIdWithResponse Edit Bundle +// CreateUserV1WithResponse Create User // -// Edits a specific Rule Bundle definition. The Bundle definition is -// tested for structural correctness. If the Bundle being edited is a -// Sysdig predefined one, no modifications are applied, and an HTTP error is -// returned. +// Create a new user.\ +// \ +// **Required permissions:** _users.create_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/vulnerability/v1/bundles/{bundleId} (the `PutSecureVulnerabilityV1BundlesBundleId` operationId). -func (c *ClientWithResponses) PutSecureVulnerabilityV1BundlesBundleIdWithResponse(ctx context.Context, bundleId int64, body PutSecureVulnerabilityV1BundlesBundleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1BundlesBundleIdResponse, error) { - rsp, err := c.PutSecureVulnerabilityV1BundlesBundleId(ctx, bundleId, body, reqEditors...) +// Corresponds with POST /platform/v1/users (the `CreateUserV1` operationId). +func (c *ClientWithResponses) CreateUserV1WithResponse(ctx context.Context, params *CreateUserV1Params, body CreateUserV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserV1Response, error) { + rsp, err := c.CreateUserV1(ctx, params, body, reqEditors...) if err != nil { return nil, err } - return ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return ParseCreateUserV1Response(rsp) } -// GetSecureVulnerabilityV1PipelineResultsWithResponse Get a list of pipeline scan results +// DeleteUserByIdV1WithResponse Delete User // -// Retrieves a list of scan results produced by pipelines that match a filter given a specified cursor. No sorting is supported, the items are sorted in a stable way by their ID. +// Delete a user by its ID.\ +// \ +// **Required permissions:** _users.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/pipeline-results (the `GetSecureVulnerabilityV1PipelineResults` operationId). -func (c *ClientWithResponses) GetSecureVulnerabilityV1PipelineResultsWithResponse(ctx context.Context, params *GetSecureVulnerabilityV1PipelineResultsParams, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1PipelineResultsResponse, error) { - rsp, err := c.GetSecureVulnerabilityV1PipelineResults(ctx, params, reqEditors...) +// Corresponds with DELETE /platform/v1/users/{userId} (the `DeleteUserByIdV1` operationId). +func (c *ClientWithResponses) DeleteUserByIdV1WithResponse(ctx context.Context, userId UserIdPath, reqEditors ...RequestEditorFn) (*DeleteUserByIdV1Response, error) { + rsp, err := c.DeleteUserByIdV1(ctx, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp) + return ParseDeleteUserByIdV1Response(rsp) } -// GetSecureVulnerabilityV1PoliciesWithResponse List Policies +// GetUserByIdV1WithResponse Get User // -// Retrieves all Policy definitions. +// Display a user by ID.\ +// \ +// **Required permissions:** _users.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/policies (the `GetSecureVulnerabilityV1Policies` operationId). -func (c *ClientWithResponses) GetSecureVulnerabilityV1PoliciesWithResponse(ctx context.Context, params *GetSecureVulnerabilityV1PoliciesParams, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1PoliciesResponse, error) { - rsp, err := c.GetSecureVulnerabilityV1Policies(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/users/{userId} (the `GetUserByIdV1` operationId). +func (c *ClientWithResponses) GetUserByIdV1WithResponse(ctx context.Context, userId UserIdPath, reqEditors ...RequestEditorFn) (*GetUserByIdV1Response, error) { + rsp, err := c.GetUserByIdV1(ctx, userId, reqEditors...) if err != nil { return nil, err } - return ParseGetSecureVulnerabilityV1PoliciesResponse(rsp) + return ParseGetUserByIdV1Response(rsp) } -// PostSecureVulnerabilityV1PoliciesWithBodyWithResponse Create a new Policy +// UpdateUserV1WithBodyWithResponse Update User // -// Creates a Policy definition. -// The Policy definition is validated for structural correctness -// and partially for semantic correctness. However, semantic -// correctness cannot be fully guaranteed, and checks will be performed -// on a best-effort basis. +// Update a user by its ID. \ +// \ +// **Required permissions:** _users.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/vulnerability/v1/policies (the `PostSecureVulnerabilityV1Policies` operationId). -func (c *ClientWithResponses) PostSecureVulnerabilityV1PoliciesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1PoliciesResponse, error) { - rsp, err := c.PostSecureVulnerabilityV1PoliciesWithBody(ctx, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1/users/{userId} (the `UpdateUserV1` operationId). +func (c *ClientWithResponses) UpdateUserV1WithBodyWithResponse(ctx context.Context, userId UserIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserV1Response, error) { + rsp, err := c.UpdateUserV1WithBody(ctx, userId, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostSecureVulnerabilityV1PoliciesResponse(rsp) + return ParseUpdateUserV1Response(rsp) } -// PostSecureVulnerabilityV1PoliciesWithResponse Create a new Policy +// UpdateUserV1WithResponse Update User // -// Creates a Policy definition. -// The Policy definition is validated for structural correctness -// and partially for semantic correctness. However, semantic -// correctness cannot be fully guaranteed, and checks will be performed -// on a best-effort basis. +// Update a user by its ID. \ +// \ +// **Required permissions:** _users.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/vulnerability/v1/policies (the `PostSecureVulnerabilityV1Policies` operationId). -func (c *ClientWithResponses) PostSecureVulnerabilityV1PoliciesWithResponse(ctx context.Context, body PostSecureVulnerabilityV1PoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1PoliciesResponse, error) { - rsp, err := c.PostSecureVulnerabilityV1Policies(ctx, body, reqEditors...) +// Corresponds with PUT /platform/v1/users/{userId} (the `UpdateUserV1` operationId). +func (c *ClientWithResponses) UpdateUserV1WithResponse(ctx context.Context, userId UserIdPath, body UpdateUserV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserV1Response, error) { + rsp, err := c.UpdateUserV1(ctx, userId, body, reqEditors...) if err != nil { return nil, err } - return ParsePostSecureVulnerabilityV1PoliciesResponse(rsp) + return ParseUpdateUserV1Response(rsp) } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse Delete a Policy +// ListZonesV1WithResponse List Zones (Deprecated) // -// Deletes an existing Policy definition. Subsequent calls to the service -// will not return that Policy anymore. However, some instances of the Inline -// Scanner might be running concurrently and may have already downloaded the -// Policy. +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Please use the corresponding Zones v2 endpoint.\ +// \ +// Retrieve a paginated list of Zones.\ +// \ +// **Required permissions:** zones.read or teams.edit // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /secure/vulnerability/v1/policies/{policyId} (the `DeleteSecureVulnerabilityV1PoliciesPolicyId` operationId). -func (c *ClientWithResponses) DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse(ctx context.Context, policyId int64, reqEditors ...RequestEditorFn) (*DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { - rsp, err := c.DeleteSecureVulnerabilityV1PoliciesPolicyId(ctx, policyId, reqEditors...) +// Corresponds with GET /platform/v1/zones (the `ListZonesV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) ListZonesV1WithResponse(ctx context.Context, params *ListZonesV1Params, reqEditors ...RequestEditorFn) (*ListZonesV1Response, error) { + rsp, err := c.ListZonesV1(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) + return ParseListZonesV1Response(rsp) } -// GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse Get a Policy +// CreateZoneV1WithBodyWithResponse Create Zone (Deprecated) // -// Retrieves a specific Policy definition. +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. +// \ +// Create a new Zone.\ +// \ +// **Required permissions:** zones.edit // -// Returns a wrapper object for the known response body format(s). +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/policies/{policyId} (the `GetSecureVulnerabilityV1PoliciesPolicyId` operationId). -func (c *ClientWithResponses) GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse(ctx context.Context, policyId int64, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { - rsp, err := c.GetSecureVulnerabilityV1PoliciesPolicyId(ctx, policyId, reqEditors...) +// Corresponds with POST /platform/v1/zones (the `CreateZoneV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) CreateZoneV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneV1Response, error) { + rsp, err := c.CreateZoneV1WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) + return ParseCreateZoneV1Response(rsp) } -// PutSecureVulnerabilityV1PoliciesPolicyIdWithBodyWithResponse Edit a Policy +// CreateZoneV1WithResponse Create Zone (Deprecated) // -// Edits a specific Policy definition. The Policy definition is validated for both -// structural and partial semantic correctness. However, semantic -// correctness cannot be fully guaranteed, and checks will be performed -// on a best-effort basis. +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. +// \ +// Create a new Zone.\ +// \ +// **Required permissions:** zones.edit // -// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/vulnerability/v1/policies/{policyId} (the `PutSecureVulnerabilityV1PoliciesPolicyId` operationId). -func (c *ClientWithResponses) PutSecureVulnerabilityV1PoliciesPolicyIdWithBodyWithResponse(ctx context.Context, policyId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { - rsp, err := c.PutSecureVulnerabilityV1PoliciesPolicyIdWithBody(ctx, policyId, contentType, body, reqEditors...) +// Corresponds with POST /platform/v1/zones (the `CreateZoneV1` operationId). +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) CreateZoneV1WithResponse(ctx context.Context, body CreateZoneV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneV1Response, error) { + rsp, err := c.CreateZoneV1(ctx, body, reqEditors...) if err != nil { return nil, err } - return ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) + return ParseCreateZoneV1Response(rsp) } -// PutSecureVulnerabilityV1PoliciesPolicyIdWithResponse Edit a Policy +// DeleteZoneV1WithResponse Delete Zone (Deprecated) // -// Edits a specific Policy definition. The Policy definition is validated for both -// structural and partial semantic correctness. However, semantic -// correctness cannot be fully guaranteed, and checks will be performed -// on a best-effort basis. +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. +// \ +// Delete a Zone by its ID.\ +// \ +// **Required permissions:** zones.edit // -// 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). // -// Corresponds with PUT /secure/vulnerability/v1/policies/{policyId} (the `PutSecureVulnerabilityV1PoliciesPolicyId` operationId). -func (c *ClientWithResponses) PutSecureVulnerabilityV1PoliciesPolicyIdWithResponse(ctx context.Context, policyId int64, body PutSecureVulnerabilityV1PoliciesPolicyIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { - rsp, err := c.PutSecureVulnerabilityV1PoliciesPolicyId(ctx, policyId, body, reqEditors...) +// Corresponds with DELETE /platform/v1/zones/{zoneId} (the `DeleteZoneV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) DeleteZoneV1WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*DeleteZoneV1Response, error) { + rsp, err := c.DeleteZoneV1(ctx, zoneId, reqEditors...) if err != nil { return nil, err } - return ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) + return ParseDeleteZoneV1Response(rsp) } -// ScannerAPIServiceListRegistryResultsWithResponse Get a list of registry scan results +// GetZoneByIdV1WithResponse Get Zone (Deprecated) // -// Retrieves a list of registry scan results discovered by the registry scanner that match a filter given a specified cursor. +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. +// \ +// Retrieve a single Zone by ID.\ +// \ +// **Required permissions:** zones.read // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/registry-results (the `ScannerAPIServiceListRegistryResults` operationId). -func (c *ClientWithResponses) ScannerAPIServiceListRegistryResultsWithResponse(ctx context.Context, params *ScannerAPIServiceListRegistryResultsParams, reqEditors ...RequestEditorFn) (*ScannerAPIServiceListRegistryResultsResponse, error) { - rsp, err := c.ScannerAPIServiceListRegistryResults(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1/zones/{zoneId} (the `GetZoneByIdV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) GetZoneByIdV1WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*GetZoneByIdV1Response, error) { + rsp, err := c.GetZoneByIdV1(ctx, zoneId, reqEditors...) if err != nil { return nil, err } - return ParseScannerAPIServiceListRegistryResultsResponse(rsp) + return ParseGetZoneByIdV1Response(rsp) } -// GetSecureVulnerabilityV1ResultsResultIdWithResponse Get full scan result +// EditZoneV1WithBodyWithResponse Update Zone (Deprecated) // -// Retrieve a full scan result produced by any scanner that match a given ID. +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. +// \ +// Update an existing Zone by its ID.\ +// \ +// **Required permissions:** zones.edit +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /platform/v1/zones/{zoneId} (the `EditZoneV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) EditZoneV1WithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditZoneV1Response, error) { + rsp, err := c.EditZoneV1WithBody(ctx, zoneId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditZoneV1Response(rsp) +} + +// EditZoneV1WithResponse Update Zone (Deprecated) +// +// **Deprecated:** This endpoint is deprecated and will be removed after March 31, 2027. Use the Zones v2 endpoint. +// \ +// Update an existing Zone by its ID.\ +// \ +// **Required permissions:** zones.edit +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /platform/v1/zones/{zoneId} (the `EditZoneV1` operationId). +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) EditZoneV1WithResponse(ctx context.Context, zoneId ZoneId, body EditZoneV1JSONRequestBody, reqEditors ...RequestEditorFn) (*EditZoneV1Response, error) { + rsp, err := c.EditZoneV1(ctx, zoneId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditZoneV1Response(rsp) +} + +// ListAutomationExecutionsWithResponse List Automation Executions +// +// Retrieve a paginated list of automation executions (history).\ +// \ +// **Required permissions:** _automations.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/results/{resultId} (the `GetSecureVulnerabilityV1ResultsResultId` operationId). -func (c *ClientWithResponses) GetSecureVulnerabilityV1ResultsResultIdWithResponse(ctx context.Context, resultId string, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1ResultsResultIdResponse, error) { - rsp, err := c.GetSecureVulnerabilityV1ResultsResultId(ctx, resultId, reqEditors...) +// Corresponds with GET /platform/v1alpha1/automation-executions (the `ListAutomationExecutions` operationId). +func (c *ClientWithResponses) ListAutomationExecutionsWithResponse(ctx context.Context, params *ListAutomationExecutionsParams, reqEditors ...RequestEditorFn) (*ListAutomationExecutionsResponse, error) { + rsp, err := c.ListAutomationExecutions(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp) + return ParseListAutomationExecutionsResponse(rsp) } -// ScannerAPIServiceListRuntimeResultsWithResponse Get a list of runtime scan results +// GetAutomationExecutionWithResponse Get Automation Execution By Id // -// Retrieves a list of runtime scan results discovered by the runtime scanner that match a filter given a specified cursor. +// Retrieve a single automation execution.\ +// \ +// **Required permissions:** _automations.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1/runtime-results (the `ScannerAPIServiceListRuntimeResults` operationId). -func (c *ClientWithResponses) ScannerAPIServiceListRuntimeResultsWithResponse(ctx context.Context, params *ScannerAPIServiceListRuntimeResultsParams, reqEditors ...RequestEditorFn) (*ScannerAPIServiceListRuntimeResultsResponse, error) { - rsp, err := c.ScannerAPIServiceListRuntimeResults(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1alpha1/automation-executions/{automationExecutionId} (the `GetAutomationExecution` operationId). +func (c *ClientWithResponses) GetAutomationExecutionWithResponse(ctx context.Context, automationExecutionID AutomationExecutionID, reqEditors ...RequestEditorFn) (*GetAutomationExecutionResponse, error) { + rsp, err := c.GetAutomationExecution(ctx, automationExecutionID, reqEditors...) if err != nil { return nil, err } - return ParseScannerAPIServiceListRuntimeResultsResponse(rsp) + return ParseGetAutomationExecutionResponse(rsp) } -// GetAcceptedRisksV1WithResponse List all Accepted Risks +// ListAutomationsWithResponse List Automations // -// List all Accepted Risks for a given account. +// Retrieve the list of automations.\ +// \ +// **Required permissions:** _automations.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1beta1/accepted-risks (the `GetAcceptedRisksV1` operationId). -func (c *ClientWithResponses) GetAcceptedRisksV1WithResponse(ctx context.Context, params *GetAcceptedRisksV1Params, reqEditors ...RequestEditorFn) (*GetAcceptedRisksV1Response, error) { - rsp, err := c.GetAcceptedRisksV1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v1alpha1/automations (the `ListAutomations` operationId). +func (c *ClientWithResponses) ListAutomationsWithResponse(ctx context.Context, params *ListAutomationsParams, reqEditors ...RequestEditorFn) (*ListAutomationsResponse, error) { + rsp, err := c.ListAutomations(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetAcceptedRisksV1Response(rsp) + return ParseListAutomationsResponse(rsp) } -// PostAcceptedRiskV1WithBodyWithResponse Create Accepted Risk +// CreateAutomationWithBodyWithResponse Create Automation // -// Creates an Accepted Risk. +// Create an automation.\ +// \ +// **Required permissions:** _automations.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/vulnerability/v1beta1/accepted-risks (the `PostAcceptedRiskV1` operationId). -func (c *ClientWithResponses) PostAcceptedRiskV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAcceptedRiskV1Response, error) { - rsp, err := c.PostAcceptedRiskV1WithBody(ctx, contentType, body, reqEditors...) +// Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). +func (c *ClientWithResponses) CreateAutomationWithBodyWithResponse(ctx context.Context, params *CreateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAutomationResponse, error) { + rsp, err := c.CreateAutomationWithBody(ctx, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParsePostAcceptedRiskV1Response(rsp) + return ParseCreateAutomationResponse(rsp) } -// PostAcceptedRiskV1WithResponse Create Accepted Risk +// CreateAutomationWithResponse Create Automation // -// Creates an Accepted Risk. +// Create an automation.\ +// \ +// **Required permissions:** _automations.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with POST /secure/vulnerability/v1beta1/accepted-risks (the `PostAcceptedRiskV1` operationId). -func (c *ClientWithResponses) PostAcceptedRiskV1WithResponse(ctx context.Context, body PostAcceptedRiskV1JSONRequestBody, reqEditors ...RequestEditorFn) (*PostAcceptedRiskV1Response, error) { - rsp, err := c.PostAcceptedRiskV1(ctx, body, reqEditors...) +// Corresponds with POST /platform/v1alpha1/automations (the `CreateAutomation` operationId). +func (c *ClientWithResponses) CreateAutomationWithResponse(ctx context.Context, params *CreateAutomationParams, body CreateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAutomationResponse, error) { + rsp, err := c.CreateAutomation(ctx, params, body, reqEditors...) if err != nil { return nil, err } - return ParsePostAcceptedRiskV1Response(rsp) + return ParseCreateAutomationResponse(rsp) } -// DeleteAcceptedRiskV1WithResponse Delete an Accepted Risk +// DeleteAutomationByIdWithResponse Delete Automation +// +// Delete an automation by its ID.\ +// \ +// **Required permissions:** _automations.edit_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with DELETE /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `DeleteAcceptedRiskV1` operationId). -func (c *ClientWithResponses) DeleteAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, reqEditors ...RequestEditorFn) (*DeleteAcceptedRiskV1Response, error) { - rsp, err := c.DeleteAcceptedRiskV1(ctx, acceptedRiskID, reqEditors...) +// Corresponds with DELETE /platform/v1alpha1/automations/{automationId} (the `DeleteAutomationById` operationId). +func (c *ClientWithResponses) DeleteAutomationByIdWithResponse(ctx context.Context, automationID AutomationID, params *DeleteAutomationByIdParams, reqEditors ...RequestEditorFn) (*DeleteAutomationByIdResponse, error) { + rsp, err := c.DeleteAutomationById(ctx, automationID, params, reqEditors...) if err != nil { return nil, err } - return ParseDeleteAcceptedRiskV1Response(rsp) + return ParseDeleteAutomationByIdResponse(rsp) } -// GetAcceptedRiskV1WithResponse Get Accepted Risk +// GetAutomationByIdWithResponse Get Automation // -// Get the Accepted Risk given the ID. +// Retrieve an automation by ID.\ +// \ +// **Required permissions:** _automations.read_ // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `GetAcceptedRiskV1` operationId). -func (c *ClientWithResponses) GetAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, reqEditors ...RequestEditorFn) (*GetAcceptedRiskV1Response, error) { - rsp, err := c.GetAcceptedRiskV1(ctx, acceptedRiskID, reqEditors...) +// Corresponds with GET /platform/v1alpha1/automations/{automationId} (the `GetAutomationById` operationId). +func (c *ClientWithResponses) GetAutomationByIdWithResponse(ctx context.Context, automationID AutomationID, reqEditors ...RequestEditorFn) (*GetAutomationByIdResponse, error) { + rsp, err := c.GetAutomationById(ctx, automationID, reqEditors...) if err != nil { return nil, err } - return ParseGetAcceptedRiskV1Response(rsp) + return ParseGetAutomationByIdResponse(rsp) } -// UpdateAcceptedRiskV1WithBodyWithResponse Update an Accepted Risk +// UpdateAutomationWithBodyWithResponse Update Automation // -// Update an Accepted Risk by changing the expirationDate, reason, or description. +// Update an automation.\ +// \ +// **Required permissions:** _automations.edit_ // // Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `UpdateAcceptedRiskV1` operationId). -func (c *ClientWithResponses) UpdateAcceptedRiskV1WithBodyWithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAcceptedRiskV1Response, error) { - rsp, err := c.UpdateAcceptedRiskV1WithBody(ctx, acceptedRiskID, contentType, body, reqEditors...) +// Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). +func (c *ClientWithResponses) UpdateAutomationWithBodyWithResponse(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAutomationResponse, error) { + rsp, err := c.UpdateAutomationWithBody(ctx, automationID, params, contentType, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateAcceptedRiskV1Response(rsp) + return ParseUpdateAutomationResponse(rsp) } -// UpdateAcceptedRiskV1WithResponse Update an Accepted Risk +// UpdateAutomationWithResponse Update Automation // -// Update an Accepted Risk by changing the expirationDate, reason, or description. +// Update an automation.\ +// \ +// **Required permissions:** _automations.edit_ // // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). // -// Corresponds with PUT /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `UpdateAcceptedRiskV1` operationId). -func (c *ClientWithResponses) UpdateAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, body UpdateAcceptedRiskV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAcceptedRiskV1Response, error) { - rsp, err := c.UpdateAcceptedRiskV1(ctx, acceptedRiskID, body, reqEditors...) +// Corresponds with PUT /platform/v1alpha1/automations/{automationId} (the `UpdateAutomation` operationId). +func (c *ClientWithResponses) UpdateAutomationWithResponse(ctx context.Context, automationID AutomationID, params *UpdateAutomationParams, body UpdateAutomationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAutomationResponse, error) { + rsp, err := c.UpdateAutomation(ctx, automationID, params, body, reqEditors...) if err != nil { return nil, err } - return ParseUpdateAcceptedRiskV1Response(rsp) + return ParseUpdateAutomationResponse(rsp) } -// GetSBOMV1beta1WithResponse Get SBOM +// ListZonesV2WithResponse List Zones // -// Retrieve a SBOM (Software Bill Of Material) in CycloneDX format. +// Retrieve a paginated list of Zones. +// +// The endpoint supports complex filtering via the `MultiFilter` query parameter. +// +// Returned items follow `ZoneResponseV2` and the outer envelope is a standard offset-paginated response. +// +// **Required permissions:** `zones.read` or `teams.edit` // // Returns a wrapper object for the known response body format(s). // -// Corresponds with GET /secure/vulnerability/v1beta1/sboms (the `GetSBOMV1beta1` operationId). -func (c *ClientWithResponses) GetSBOMV1beta1WithResponse(ctx context.Context, params *GetSBOMV1beta1Params, reqEditors ...RequestEditorFn) (*GetSBOMV1beta1Response, error) { - rsp, err := c.GetSBOMV1beta1(ctx, params, reqEditors...) +// Corresponds with GET /platform/v2/zones (the `ListZonesV2` operationId). +func (c *ClientWithResponses) ListZonesV2WithResponse(ctx context.Context, params *ListZonesV2Params, reqEditors ...RequestEditorFn) (*ListZonesV2Response, error) { + rsp, err := c.ListZonesV2(ctx, params, reqEditors...) if err != nil { return nil, err } - return ParseGetSBOMV1beta1Response(rsp) + return ParseListZonesV2Response(rsp) } -// ParseDeleteZonePolicyAssociationResponse parses an HTTP response from a DeleteZonePolicyAssociationWithResponse call -func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePolicyAssociationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() +// CreateZoneV2WithBodyWithResponse Create Zone +// +// Create a new Zone. Provide a unique `name`, optional `description` and one or more `scopes` describing the resources that belong to this zone. +// +// Each scope is an OR-group of resource filters; each filter targets a `resourceType` and contains one or more filter expressions (field/operator/value). See the examples below for concrete schema definitions and examples. +// +// Use this endpoint when you want to group resources (hosts, cloud accounts, images, etc.) into logical Zones. +// +// **Required permissions:** `zones.edit` +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /platform/v2/zones (the `CreateZoneV2` operationId). +func (c *ClientWithResponses) CreateZoneV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneV2Response, error) { + rsp, err := c.CreateZoneV2WithBody(ctx, contentType, body, reqEditors...) if err != nil { return nil, err } + return ParseCreateZoneV2Response(rsp) +} - response := &DeleteZonePolicyAssociationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, +// CreateZoneV2WithResponse Create Zone +// +// Create a new Zone. Provide a unique `name`, optional `description` and one or more `scopes` describing the resources that belong to this zone. +// +// Each scope is an OR-group of resource filters; each filter targets a `resourceType` and contains one or more filter expressions (field/operator/value). See the examples below for concrete schema definitions and examples. +// +// Use this endpoint when you want to group resources (hosts, cloud accounts, images, etc.) into logical Zones. +// +// **Required permissions:** `zones.edit` +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /platform/v2/zones (the `CreateZoneV2` operationId). +func (c *ClientWithResponses) CreateZoneV2WithResponse(ctx context.Context, body CreateZoneV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneV2Response, error) { + rsp, err := c.CreateZoneV2(ctx, body, reqEditors...) + if err != nil { + return nil, err } + return ParseCreateZoneV2Response(rsp) +} - switch { - case rsp.StatusCode == 204: - break // No content-type +// DeleteZoneV2WithResponse Delete Zone +// +// Delete a Zone by its ID. +// This operation is irreversible. Ensure the zone is not in use before deletion. +// +// **Required permissions:** `zones.edit` +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /platform/v2/zones/{zoneId} (the `DeleteZoneV2` operationId). +func (c *ClientWithResponses) DeleteZoneV2WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*DeleteZoneV2Response, error) { + rsp, err := c.DeleteZoneV2(ctx, zoneId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteZoneV2Response(rsp) +} + +// GetZoneByIdV2WithResponse Get Zone +// +// Retrieve a single Zone by ID. +// +// Use the Zone `id` (path parameter) to fetch the full Zone resource including its scopes and metadata. +// +// **Required permissions:** `zones.read` +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/v2/zones/{zoneId} (the `GetZoneByIdV2` operationId). +func (c *ClientWithResponses) GetZoneByIdV2WithResponse(ctx context.Context, zoneId ZoneId, reqEditors ...RequestEditorFn) (*GetZoneByIdV2Response, error) { + rsp, err := c.GetZoneByIdV2(ctx, zoneId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetZoneByIdV2Response(rsp) +} + +// EditZoneV2WithBodyWithResponse Update Zone +// +// Replace an existing Zone by its ID. +// Use this endpoint to update all modifiable fields of a zone. Provide a full `CreateZoneRequestV2`-shaped body; missing required fields may cause validation errors. +// +// Note: Updates are costly; partial updates are not supported. +// +// **Required permissions:** `zones.edit` +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /platform/v2/zones/{zoneId} (the `EditZoneV2` operationId). +func (c *ClientWithResponses) EditZoneV2WithBodyWithResponse(ctx context.Context, zoneId ZoneId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditZoneV2Response, error) { + rsp, err := c.EditZoneV2WithBody(ctx, zoneId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditZoneV2Response(rsp) +} + +// EditZoneV2WithResponse Update Zone +// +// Replace an existing Zone by its ID. +// Use this endpoint to update all modifiable fields of a zone. Provide a full `CreateZoneRequestV2`-shaped body; missing required fields may cause validation errors. +// +// Note: Updates are costly; partial updates are not supported. +// +// **Required permissions:** `zones.edit` +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /platform/v2/zones/{zoneId} (the `EditZoneV2` operationId). +func (c *ClientWithResponses) EditZoneV2WithResponse(ctx context.Context, zoneId ZoneId, body EditZoneV2JSONRequestBody, reqEditors ...RequestEditorFn) (*EditZoneV2Response, error) { + rsp, err := c.EditZoneV2(ctx, zoneId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditZoneV2Response(rsp) +} + +// GetAdminTsdbCleanTombstonesV1WithResponse Clean Tombstones +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/admin/tsdb/clean_tombstones (the `GetAdminTsdbCleanTombstonesV1` operationId). +func (c *ClientWithResponses) GetAdminTsdbCleanTombstonesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminTsdbCleanTombstonesV1Response, error) { + rsp, err := c.GetAdminTsdbCleanTombstonesV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAdminTsdbCleanTombstonesV1Response(rsp) +} + +// PostAdminTsdbCleanTombstonesV1WithResponse Clean Tombstones +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /prometheus/api/v1/admin/tsdb/clean_tombstones (the `PostAdminTsdbCleanTombstonesV1` operationId). +func (c *ClientWithResponses) PostAdminTsdbCleanTombstonesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostAdminTsdbCleanTombstonesV1Response, error) { + rsp, err := c.PostAdminTsdbCleanTombstonesV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAdminTsdbCleanTombstonesV1Response(rsp) +} + +// GetAdminTsdbDeleteSeriesV1WithResponse Delete Series +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/admin/tsdb/delete_series (the `GetAdminTsdbDeleteSeriesV1` operationId). +func (c *ClientWithResponses) GetAdminTsdbDeleteSeriesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminTsdbDeleteSeriesV1Response, error) { + rsp, err := c.GetAdminTsdbDeleteSeriesV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAdminTsdbDeleteSeriesV1Response(rsp) +} + +// PostAdminTsdbDeleteSeriesV1WithResponse Delete Series +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /prometheus/api/v1/admin/tsdb/delete_series (the `PostAdminTsdbDeleteSeriesV1` operationId). +func (c *ClientWithResponses) PostAdminTsdbDeleteSeriesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostAdminTsdbDeleteSeriesV1Response, error) { + rsp, err := c.PostAdminTsdbDeleteSeriesV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAdminTsdbDeleteSeriesV1Response(rsp) +} + +// GetAdminTsdbSnapshotV1WithResponse Snapshot +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/admin/tsdb/snapshot (the `GetAdminTsdbSnapshotV1` operationId). +func (c *ClientWithResponses) GetAdminTsdbSnapshotV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminTsdbSnapshotV1Response, error) { + rsp, err := c.GetAdminTsdbSnapshotV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAdminTsdbSnapshotV1Response(rsp) +} + +// PostAdminTsdbSnapshotV1WithResponse Snapshot +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /prometheus/api/v1/admin/tsdb/snapshot (the `PostAdminTsdbSnapshotV1` operationId). +func (c *ClientWithResponses) PostAdminTsdbSnapshotV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostAdminTsdbSnapshotV1Response, error) { + rsp, err := c.PostAdminTsdbSnapshotV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAdminTsdbSnapshotV1Response(rsp) +} + +// GetAlertManagersV1WithResponse Alertmanagers +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/alertmanagers (the `GetAlertManagersV1` operationId). +func (c *ClientWithResponses) GetAlertManagersV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertManagersV1Response, error) { + rsp, err := c.GetAlertManagersV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAlertManagersV1Response(rsp) +} + +// GetAlertsV1WithResponse Alerts +// +// Returns a list of active alerts that are currently firing in Prometheus. +// \ +// **Required permissions:** _alerts.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/alerts (the `GetAlertsV1` operationId). +func (c *ClientWithResponses) GetAlertsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsV1Response, error) { + rsp, err := c.GetAlertsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAlertsV1Response(rsp) +} + +// GetFormatQueryV1WithResponse Format Query +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/format_query (the `GetFormatQueryV1` operationId). +func (c *ClientWithResponses) GetFormatQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFormatQueryV1Response, error) { + rsp, err := c.GetFormatQueryV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFormatQueryV1Response(rsp) +} + +// PostFormatQueryV1WithResponse Format Query +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/format_query (the `PostFormatQueryV1` operationId). +func (c *ClientWithResponses) PostFormatQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostFormatQueryV1Response, error) { + rsp, err := c.PostFormatQueryV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostFormatQueryV1Response(rsp) +} + +// GetLabelValuesV1WithResponse Labels Values Query +// +// The following endpoint returns a list of label names: +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/label/{labelName}/values (the `GetLabelValuesV1` operationId). +func (c *ClientWithResponses) GetLabelValuesV1WithResponse(ctx context.Context, labelName LabelNamePath, params *GetLabelValuesV1Params, reqEditors ...RequestEditorFn) (*GetLabelValuesV1Response, error) { + rsp, err := c.GetLabelValuesV1(ctx, labelName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLabelValuesV1Response(rsp) +} + +// GetLabelsV1WithResponse Labels Query +// +// The following endpoint returns a list of label names: +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/labels (the `GetLabelsV1` operationId). +func (c *ClientWithResponses) GetLabelsV1WithResponse(ctx context.Context, params *GetLabelsV1Params, reqEditors ...RequestEditorFn) (*GetLabelsV1Response, error) { + rsp, err := c.GetLabelsV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLabelsV1Response(rsp) +} + +// PostLabelsV1WithResponse Labels Query +// +// The following endpoint returns a list of label names: +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/labels (the `PostLabelsV1` operationId). +func (c *ClientWithResponses) PostLabelsV1WithResponse(ctx context.Context, params *PostLabelsV1Params, reqEditors ...RequestEditorFn) (*PostLabelsV1Response, error) { + rsp, err := c.PostLabelsV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostLabelsV1Response(rsp) +} + +// GetMetadataV1WithResponse Querying metric metadata +// +// The following endpoint returns a list of label names: +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/metadata (the `GetMetadataV1` operationId). +func (c *ClientWithResponses) GetMetadataV1WithResponse(ctx context.Context, params *GetMetadataV1Params, reqEditors ...RequestEditorFn) (*GetMetadataV1Response, error) { + rsp, err := c.GetMetadataV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMetadataV1Response(rsp) +} + +// GetNotificationsV1WithResponse Active Notifications +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/notifications (the `GetNotificationsV1` operationId). +func (c *ClientWithResponses) GetNotificationsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNotificationsV1Response, error) { + rsp, err := c.GetNotificationsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNotificationsV1Response(rsp) +} + +// GetLiveNotificationsV1WithResponse Live Notifications +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/notifications/live (the `GetLiveNotificationsV1` operationId). +func (c *ClientWithResponses) GetLiveNotificationsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLiveNotificationsV1Response, error) { + rsp, err := c.GetLiveNotificationsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLiveNotificationsV1Response(rsp) +} + +// GetParseQueryV1WithResponse Parse Query +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/parse_query (the `GetParseQueryV1` operationId). +func (c *ClientWithResponses) GetParseQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetParseQueryV1Response, error) { + rsp, err := c.GetParseQueryV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetParseQueryV1Response(rsp) +} + +// PostParseQueryV1WithResponse Parse Query +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/parse_query (the `PostParseQueryV1` operationId). +func (c *ClientWithResponses) PostParseQueryV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostParseQueryV1Response, error) { + rsp, err := c.PostParseQueryV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostParseQueryV1Response(rsp) +} + +// GetQueryV1WithResponse Instant Query +// +// This endpoint evaluates an instant query at a single point in time. +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/query (the `GetQueryV1` operationId). +func (c *ClientWithResponses) GetQueryV1WithResponse(ctx context.Context, params *GetQueryV1Params, reqEditors ...RequestEditorFn) (*GetQueryV1Response, error) { + rsp, err := c.GetQueryV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetQueryV1Response(rsp) +} + +// PostQueryV1WithResponse Instant Query +// +// This endpoint evaluates an instant query at a single point in time. +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/query (the `PostQueryV1` operationId). +func (c *ClientWithResponses) PostQueryV1WithResponse(ctx context.Context, params *PostQueryV1Params, reqEditors ...RequestEditorFn) (*PostQueryV1Response, error) { + rsp, err := c.PostQueryV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostQueryV1Response(rsp) +} + +// GetExemplarsV1WithResponse Query Exemplars +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/query_exemplars (the `GetExemplarsV1` operationId). +func (c *ClientWithResponses) GetExemplarsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExemplarsV1Response, error) { + rsp, err := c.GetExemplarsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetExemplarsV1Response(rsp) +} + +// PostExemplarsV1WithResponse Query Exemplars +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/query_exemplars (the `PostExemplarsV1` operationId). +func (c *ClientWithResponses) PostExemplarsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostExemplarsV1Response, error) { + rsp, err := c.PostExemplarsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostExemplarsV1Response(rsp) +} + +// GetQueryRangeV1WithResponse Range Query +// +// This endpoint evaluates an expression query over a specified time range. +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/query_range (the `GetQueryRangeV1` operationId). +func (c *ClientWithResponses) GetQueryRangeV1WithResponse(ctx context.Context, params *GetQueryRangeV1Params, reqEditors ...RequestEditorFn) (*GetQueryRangeV1Response, error) { + rsp, err := c.GetQueryRangeV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetQueryRangeV1Response(rsp) +} + +// PostQueryRangeV1WithResponse Range Query +// +// This endpoint evaluates an expression query over a specified time range. +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/query_range (the `PostQueryRangeV1` operationId). +func (c *ClientWithResponses) PostQueryRangeV1WithResponse(ctx context.Context, params *PostQueryRangeV1Params, reqEditors ...RequestEditorFn) (*PostQueryRangeV1Response, error) { + rsp, err := c.PostQueryRangeV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostQueryRangeV1Response(rsp) +} + +// GetRulesV1WithResponse Rules +// +// The /rules API endpoint returns the list of alerting rules. It also returns the currently active alerts fired by the Prometheus instance of each alerting rule. +// \ +// Sysdig currently does not support recording rules. +// \ +// **Required permissions:** _alerts.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/rules (the `GetRulesV1` operationId). +func (c *ClientWithResponses) GetRulesV1WithResponse(ctx context.Context, params *GetRulesV1Params, reqEditors ...RequestEditorFn) (*GetRulesV1Response, error) { + rsp, err := c.GetRulesV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRulesV1Response(rsp) +} + +// GetSeriesV1WithResponse Series Query +// +// The following endpoint returns the list of time series that match a specified label set. +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/series (the `GetSeriesV1` operationId). +func (c *ClientWithResponses) GetSeriesV1WithResponse(ctx context.Context, params *GetSeriesV1Params, reqEditors ...RequestEditorFn) (*GetSeriesV1Response, error) { + rsp, err := c.GetSeriesV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSeriesV1Response(rsp) +} + +// PostSeriesV1WithResponse Series Query +// +// The following endpoint returns the list of time series that match a specified label set. +// \ +// **Required permissions:** _metrics-data.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/series (the `PostSeriesV1` operationId). +func (c *ClientWithResponses) PostSeriesV1WithResponse(ctx context.Context, params *PostSeriesV1Params, reqEditors ...RequestEditorFn) (*PostSeriesV1Response, error) { + rsp, err := c.PostSeriesV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostSeriesV1Response(rsp) +} + +// GetStatusBuildInfoV1WithResponse Build Information +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/status/buildinfo (the `GetStatusBuildInfoV1` operationId). +func (c *ClientWithResponses) GetStatusBuildInfoV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusBuildInfoV1Response, error) { + rsp, err := c.GetStatusBuildInfoV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusBuildInfoV1Response(rsp) +} + +// GetStatusConfigV1WithResponse Config +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/status/config (the `GetStatusConfigV1` operationId). +func (c *ClientWithResponses) GetStatusConfigV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusConfigV1Response, error) { + rsp, err := c.GetStatusConfigV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusConfigV1Response(rsp) +} + +// GetStatusFlagsV1WithResponse Flags +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/status/flags (the `GetStatusFlagsV1` operationId). +func (c *ClientWithResponses) GetStatusFlagsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusFlagsV1Response, error) { + rsp, err := c.GetStatusFlagsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusFlagsV1Response(rsp) +} + +// GetStatusRuntimeInfoV1WithResponse Runtime Information +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/status/runtimeinfo (the `GetStatusRuntimeInfoV1` operationId). +func (c *ClientWithResponses) GetStatusRuntimeInfoV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusRuntimeInfoV1Response, error) { + rsp, err := c.GetStatusRuntimeInfoV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusRuntimeInfoV1Response(rsp) +} + +// GetStatusTsdbV1WithResponse TSDB Stats +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/status/tsdb (the `GetStatusTsdbV1` operationId). +func (c *ClientWithResponses) GetStatusTsdbV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusTsdbV1Response, error) { + rsp, err := c.GetStatusTsdbV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusTsdbV1Response(rsp) +} + +// GetStatusWalReplayV1WithResponse WAL Replay +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/status/walreplay (the `GetStatusWalReplayV1` operationId). +func (c *ClientWithResponses) GetStatusWalReplayV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusWalReplayV1Response, error) { + rsp, err := c.GetStatusWalReplayV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusWalReplayV1Response(rsp) +} + +// GetTargetsV1WithResponse Targets +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/targets (the `GetTargetsV1` operationId). +func (c *ClientWithResponses) GetTargetsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTargetsV1Response, error) { + rsp, err := c.GetTargetsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTargetsV1Response(rsp) +} + +// GetTargetsMetadataV1WithResponse Querying target metadata +// +// This endpoint is NOT SUPPORTED. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /prometheus/api/v1/targets/metadata (the `GetTargetsMetadataV1` operationId). +func (c *ClientWithResponses) GetTargetsMetadataV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTargetsMetadataV1Response, error) { + rsp, err := c.GetTargetsMetadataV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTargetsMetadataV1Response(rsp) +} + +// RemoteWriteV1WithBodyWithResponse Ingest metric data (remote write) +// +// Accepts a Protobuf-encoded Snappy-compressed request containing time series data. Used for remote write integrations. +// \ +// **Required permissions:** _ingest.prws_ +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /prometheus/api/v1/write (the `RemoteWriteV1` operationId). +func (c *ClientWithResponses) RemoteWriteV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoteWriteV1Response, error) { + rsp, err := c.RemoteWriteV1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoteWriteV1Response(rsp) +} + +// GetActivityAuditEntriesV1WithResponse List entries +// +// Retrieves the list of entries matching the expressed search criteria. +// The pair `from` and `to` and the `cursor` parameter are mutually exclusive. If you supply a `from` and `to` you must not supply a `cursor` and vice-versa. +// The time criteria is required and can be specified in two different ways: +// - Using `from` and `to`, the list of entries within the timeframe (max 2 weeks) will be returned, starting from the most recent ones. +// - Using a `cursor` the entries returned will be in the before, after or around the entry, depending on the entry the cursor is taken from and the cursor type. More details are available in the `cursor` attribute in the response. +// The entry content can be filtered using `zones`, to select one or more zones, or with the filter, directly expressing a condition on fields and labels. +// +// **Required permissions:** _commands.read_ | _connections.read_ | _fileaccesses.read_ | _kubernetes.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/activity-audit/v1/entries (the `GetActivityAuditEntriesV1` operationId). +func (c *ClientWithResponses) GetActivityAuditEntriesV1WithResponse(ctx context.Context, params *GetActivityAuditEntriesV1Params, reqEditors ...RequestEditorFn) (*GetActivityAuditEntriesV1Response, error) { + rsp, err := c.GetActivityAuditEntriesV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActivityAuditEntriesV1Response(rsp) +} + +// GetActivityAuditEntryV1WithResponse Get entry +// +// Retrieves an Actvity Audit entry given its id. +// **Required permissions:** _commands.read_ | _connections.read_ | _fileaccesses.read_ | _kubernetes.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/activity-audit/v1/entries/{entryId} (the `GetActivityAuditEntryV1` operationId). +func (c *ClientWithResponses) GetActivityAuditEntryV1WithResponse(ctx context.Context, entryId EntryId, reqEditors ...RequestEditorFn) (*GetActivityAuditEntryV1Response, error) { + rsp, err := c.GetActivityAuditEntryV1(ctx, entryId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActivityAuditEntryV1Response(rsp) +} + +// GetActivityAuditEntriesSupportedFiltersV1WithResponse Get available filters +// +// Activity Audit entries can be filtered by a set of attributes. This endpoint returns the list of those for which filtering is supported. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/activity-audit/v1/supported-filters (the `GetActivityAuditEntriesSupportedFiltersV1` operationId). +func (c *ClientWithResponses) GetActivityAuditEntriesSupportedFiltersV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetActivityAuditEntriesSupportedFiltersV1Response, error) { + rsp, err := c.GetActivityAuditEntriesSupportedFiltersV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActivityAuditEntriesSupportedFiltersV1Response(rsp) +} + +// GetCertificatesV1WithResponse List Certificates +// +// Returns the list of certificates.\ +// \ +// **Required permissions:** _certman.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/certman/v1/certificates (the `GetCertificatesV1` operationId). +func (c *ClientWithResponses) GetCertificatesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCertificatesV1Response, error) { + rsp, err := c.GetCertificatesV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCertificatesV1Response(rsp) +} + +// UploadCertificateV1WithBodyWithResponse Upload Certificate +// +// Uploads a certificate that has been created by signing a CSR obtained +// via Certificates Management.\ +// \ +// **Required permissions:** _certman.edit_ +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/certman/v1/certificates (the `UploadCertificateV1` operationId). +func (c *ClientWithResponses) UploadCertificateV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCertificateV1Response, error) { + rsp, err := c.UploadCertificateV1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUploadCertificateV1Response(rsp) +} + +// DeleteCertificateV1WithResponse Delete Certificate +// +// Deletes a certificate given its id. +// +// A certificate cannot be deleted if +// it's being used (i.e. by the events forwarder to connect to third +// parties).\ +// \ +// **Required permissions:** _certman.edit_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/certman/v1/certificates/{certId} (the `DeleteCertificateV1` operationId). +func (c *ClientWithResponses) DeleteCertificateV1WithResponse(ctx context.Context, certId PathCertificateId, reqEditors ...RequestEditorFn) (*DeleteCertificateV1Response, error) { + rsp, err := c.DeleteCertificateV1(ctx, certId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteCertificateV1Response(rsp) +} + +// GetCertificateV1WithResponse Get Certificate +// +// Get a single certificate.\ +// \ +// **Required permissions:** _certman.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/certman/v1/certificates/{certId} (the `GetCertificateV1` operationId). +func (c *ClientWithResponses) GetCertificateV1WithResponse(ctx context.Context, certId PathCertificateId, reqEditors ...RequestEditorFn) (*GetCertificateV1Response, error) { + rsp, err := c.GetCertificateV1(ctx, certId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCertificateV1Response(rsp) +} + +// GetCertificateRegistrationV1WithResponse List Services +// +// Returns he list of integrations using this certificate.\ +// \ +// **Required permissions:** _certman.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/certman/v1/certificates/{certId}/services (the `GetCertificateRegistrationV1` operationId). +func (c *ClientWithResponses) GetCertificateRegistrationV1WithResponse(ctx context.Context, certId PathCertificateId, reqEditors ...RequestEditorFn) (*GetCertificateRegistrationV1Response, error) { + rsp, err := c.GetCertificateRegistrationV1(ctx, certId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCertificateRegistrationV1Response(rsp) +} + +// CreateCSRV1WithResponse Create CSR +// +// Creates a Certificate Signing Request generated from the customer unique +// private key. The CSR is generated on the fly.\ +// \ +// **Required permissions:** _certman.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/certman/v1/csr (the `CreateCSRV1` operationId). +func (c *ClientWithResponses) CreateCSRV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CreateCSRV1Response, error) { + rsp, err := c.CreateCSRV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCSRV1Response(rsp) +} + +// ListEFOChannelsByIntegrationV1WithResponse List Channels +// +// Returns the list of supported Channels (Data types) for a given integration type. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v1/channels (the `ListEFOChannelsByIntegrationV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) ListEFOChannelsByIntegrationV1WithResponse(ctx context.Context, params *ListEFOChannelsByIntegrationV1Params, reqEditors ...RequestEditorFn) (*ListEFOChannelsByIntegrationV1Response, error) { + rsp, err := c.ListEFOChannelsByIntegrationV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEFOChannelsByIntegrationV1Response(rsp) +} + +// ListEFOIntegrationsV1WithResponse List Integrations +// +// Returns the Events Forwarder integrations set up. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/listEFOIntegrationsV2) by then. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v1/integrations (the `ListEFOIntegrationsV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) ListEFOIntegrationsV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsV1Response, error) { + rsp, err := c.ListEFOIntegrationsV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEFOIntegrationsV1Response(rsp) +} + +// CreateEFOIntegrationV1WithBodyWithResponse Create Integration +// +// Configures a new integration to forward a data type to a destination, given the specified connection parameters. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/createEFOIntegrationV2) by then. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/events-forwarder/v1/integrations (the `CreateEFOIntegrationV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) CreateEFOIntegrationV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV1Response, error) { + rsp, err := c.CreateEFOIntegrationV1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateEFOIntegrationV1Response(rsp) +} + +// CreateEFOIntegrationV1WithResponse Create Integration +// +// Configures a new integration to forward a data type to a destination, given the specified connection parameters. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/createEFOIntegrationV2) by then. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/events-forwarder/v1/integrations (the `CreateEFOIntegrationV1` operationId). +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) CreateEFOIntegrationV1WithResponse(ctx context.Context, body CreateEFOIntegrationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV1Response, error) { + rsp, err := c.CreateEFOIntegrationV1(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateEFOIntegrationV1Response(rsp) +} + +// DeleteEFOIntegrationByIdV1WithResponse Delete Integration +// +// Delete an integration. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/deleteEFOIntegrationByIdV2) by then. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/events-forwarder/v1/integrations/{integrationId} (the `DeleteEFOIntegrationByIdV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) DeleteEFOIntegrationByIdV1WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*DeleteEFOIntegrationByIdV1Response, error) { + rsp, err := c.DeleteEFOIntegrationByIdV1(ctx, integrationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteEFOIntegrationByIdV1Response(rsp) +} + +// GetEFOIntegrationByIdV1WithResponse Get Integration +// +// Returns the configuration for an integration. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/getEFOIntegrationByIdV2) by then. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v1/integrations/{integrationId} (the `GetEFOIntegrationByIdV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) GetEFOIntegrationByIdV1WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetEFOIntegrationByIdV1Response, error) { + rsp, err := c.GetEFOIntegrationByIdV1(ctx, integrationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetEFOIntegrationByIdV1Response(rsp) +} + +// UpdateEFOIntegrationByIdV1WithBodyWithResponse Update Integration +// +// Updates an integration, replacing its configuration. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/updateEFOIntegrationByIdV2) by then. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/events-forwarder/v1/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) UpdateEFOIntegrationByIdV1WithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV1Response, error) { + rsp, err := c.UpdateEFOIntegrationByIdV1WithBody(ctx, integrationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEFOIntegrationByIdV1Response(rsp) +} + +// UpdateEFOIntegrationByIdV1WithResponse Update Integration +// +// Updates an integration, replacing its configuration. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/updateEFOIntegrationByIdV2) by then. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/events-forwarder/v1/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV1` operationId). +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) UpdateEFOIntegrationByIdV1WithResponse(ctx context.Context, integrationId IntegrationId, body UpdateEFOIntegrationByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV1Response, error) { + rsp, err := c.UpdateEFOIntegrationByIdV1(ctx, integrationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEFOIntegrationByIdV1Response(rsp) +} + +// ListEFOIntegrationsTypesV1WithResponse List Integrations types +// +// Returns the list of supported integrations, to which Events Forwarder can send data. +// This API is deprecated and will stop working by Nov, 25th. Please migrate to [the V2 endpoint](#tag/Events-Forwarder/operation/listEFOChannelsByIntegrationV2) by then. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v1/types (the `ListEFOIntegrationsTypesV1` operationId). +// +// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set +func (c *ClientWithResponses) ListEFOIntegrationsTypesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsTypesV1Response, error) { + rsp, err := c.ListEFOIntegrationsTypesV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEFOIntegrationsTypesV1Response(rsp) +} + +// ListEFOChannelsByIntegrationV2WithResponse List Channels +// +// Returns the list of supported Channels (Data types) for a given integration type. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v2/channels (the `ListEFOChannelsByIntegrationV2` operationId). +func (c *ClientWithResponses) ListEFOChannelsByIntegrationV2WithResponse(ctx context.Context, params *ListEFOChannelsByIntegrationV2Params, reqEditors ...RequestEditorFn) (*ListEFOChannelsByIntegrationV2Response, error) { + rsp, err := c.ListEFOChannelsByIntegrationV2(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEFOChannelsByIntegrationV2Response(rsp) +} + +// ListEFOIntegrationsV2WithResponse List Integrations +// +// Returns the Events Forwarder integrations set up. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v2/integrations (the `ListEFOIntegrationsV2` operationId). +func (c *ClientWithResponses) ListEFOIntegrationsV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsV2Response, error) { + rsp, err := c.ListEFOIntegrationsV2(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEFOIntegrationsV2Response(rsp) +} + +// CreateEFOIntegrationV2WithBodyWithResponse Create Integration +// +// # Configures a new integration to forward a data type to a destination, given the specified connection parameters +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/events-forwarder/v2/integrations (the `CreateEFOIntegrationV2` operationId). +func (c *ClientWithResponses) CreateEFOIntegrationV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV2Response, error) { + rsp, err := c.CreateEFOIntegrationV2WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateEFOIntegrationV2Response(rsp) +} + +// CreateEFOIntegrationV2WithResponse Create Integration +// +// # Configures a new integration to forward a data type to a destination, given the specified connection parameters +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/events-forwarder/v2/integrations (the `CreateEFOIntegrationV2` operationId). +func (c *ClientWithResponses) CreateEFOIntegrationV2WithResponse(ctx context.Context, body CreateEFOIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEFOIntegrationV2Response, error) { + rsp, err := c.CreateEFOIntegrationV2(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateEFOIntegrationV2Response(rsp) +} + +// DeleteEFOIntegrationByIdV2WithResponse Delete Integration +// +// Delete an integration. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/events-forwarder/v2/integrations/{integrationId} (the `DeleteEFOIntegrationByIdV2` operationId). +func (c *ClientWithResponses) DeleteEFOIntegrationByIdV2WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*DeleteEFOIntegrationByIdV2Response, error) { + rsp, err := c.DeleteEFOIntegrationByIdV2(ctx, integrationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteEFOIntegrationByIdV2Response(rsp) +} + +// GetEFOIntegrationByIdV2WithResponse Get Integration +// +// Returns the configuration for an integration. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v2/integrations/{integrationId} (the `GetEFOIntegrationByIdV2` operationId). +func (c *ClientWithResponses) GetEFOIntegrationByIdV2WithResponse(ctx context.Context, integrationId IntegrationId, reqEditors ...RequestEditorFn) (*GetEFOIntegrationByIdV2Response, error) { + rsp, err := c.GetEFOIntegrationByIdV2(ctx, integrationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetEFOIntegrationByIdV2Response(rsp) +} + +// UpdateEFOIntegrationByIdV2WithBodyWithResponse Update Integration +// +// # Updates an integration, replacing its configuration +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/events-forwarder/v2/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV2` operationId). +func (c *ClientWithResponses) UpdateEFOIntegrationByIdV2WithBodyWithResponse(ctx context.Context, integrationId IntegrationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV2Response, error) { + rsp, err := c.UpdateEFOIntegrationByIdV2WithBody(ctx, integrationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEFOIntegrationByIdV2Response(rsp) +} + +// UpdateEFOIntegrationByIdV2WithResponse Update Integration +// +// # Updates an integration, replacing its configuration +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/events-forwarder/v2/integrations/{integrationId} (the `UpdateEFOIntegrationByIdV2` operationId). +func (c *ClientWithResponses) UpdateEFOIntegrationByIdV2WithResponse(ctx context.Context, integrationId IntegrationId, body UpdateEFOIntegrationByIdV2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEFOIntegrationByIdV2Response, error) { + rsp, err := c.UpdateEFOIntegrationByIdV2(ctx, integrationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEFOIntegrationByIdV2Response(rsp) +} + +// ListEFOIntegrationsTypesV2WithResponse List Integrations types +// +// # Returns the list of supported integrations, to which Events Forwarder can send data +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events-forwarder/v2/types (the `ListEFOIntegrationsTypesV2` operationId). +func (c *ClientWithResponses) ListEFOIntegrationsTypesV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEFOIntegrationsTypesV2Response, error) { + rsp, err := c.ListEFOIntegrationsTypesV2(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListEFOIntegrationsTypesV2Response(rsp) +} + +// GetEventsV1WithResponse List events +// +// Retrieves the list of events matching the expressed search criteria. +// The pair `from` and `to` and the `cursor` parameter are mutually exclusive. If you supply a `from` and `to` you must not supply a `cursor` and vice-versa. +// The time criteria is required and can be specified in two different ways: +// - Using `from` and `to`, the list of events within the timeframe (max 2 weeks) will be returned, starting from the most recent ones. +// - Using a `cursor` the events returned will be in the before, after or around the event, depending on the event the cursor is taken from and the cursor type. More details are available in the `cursor` attribute in the response. +// The event content can be filtered using `zones`, to select one or more zones, or with the filter, directly expressing a condition on fields and labels. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events/v1/events (the `GetEventsV1` operationId). +func (c *ClientWithResponses) GetEventsV1WithResponse(ctx context.Context, params *GetEventsV1Params, reqEditors ...RequestEditorFn) (*GetEventsV1Response, error) { + rsp, err := c.GetEventsV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetEventsV1Response(rsp) +} + +// GetEventV1WithResponse Get event +// +// Retrieves an event given its id. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events/v1/events/{eventId} (the `GetEventV1` operationId). +func (c *ClientWithResponses) GetEventV1WithResponse(ctx context.Context, eventId EventId, reqEditors ...RequestEditorFn) (*GetEventV1Response, error) { + rsp, err := c.GetEventV1(ctx, eventId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetEventV1Response(rsp) +} + +// GetEventsSupportedFiltersV1WithResponse Get available filters +// +// Events can be filtered by a set of attributes. This endpoint returns the list of those for which filtering is supported. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/events/v1/supported-filters (the `GetEventsSupportedFiltersV1` operationId). +func (c *ClientWithResponses) GetEventsSupportedFiltersV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEventsSupportedFiltersV1Response, error) { + rsp, err := c.GetEventsSupportedFiltersV1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetEventsSupportedFiltersV1Response(rsp) +} + +// GetResourcesWithResponse List Resources +// +// Search for Inventory Resources based on the given filter. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/inventory/v1/resources (the `GetResources` operationId). +func (c *ClientWithResponses) GetResourcesWithResponse(ctx context.Context, params *GetResourcesParams, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error) { + rsp, err := c.GetResources(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetResourcesResponse(rsp) +} + +// GetResourceWithResponse Get Resource +// +// Retrieve an Inventory Resource by its unique hash value. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/inventory/v1/resources/{hash} (the `GetResource` operationId). +func (c *ClientWithResponses) GetResourceWithResponse(ctx context.Context, hash string, reqEditors ...RequestEditorFn) (*GetResourceResponse, error) { + rsp, err := c.GetResource(ctx, hash, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetResourceResponse(rsp) +} + +// GetActionExecutionsv1WithResponse Returns the list of Response Actions executions. You can filter them with the available query parameters. +// +// Returns a list of action executions. +// **Required permissions:** _containment-response-actions.read_ or _data-gathering-response-actions.read_, depending on the action type. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/response-actions/v1alpha1/action-executions (the `GetActionExecutionsv1` operationId). +func (c *ClientWithResponses) GetActionExecutionsv1WithResponse(ctx context.Context, params *GetActionExecutionsv1Params, reqEditors ...RequestEditorFn) (*GetActionExecutionsv1Response, error) { + rsp, err := c.GetActionExecutionsv1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActionExecutionsv1Response(rsp) +} + +// SubmitActionExecutionv1WithBodyWithResponse Execute a Response Action +// +// Submit a Response Action for execution. The action runs asynchronously, and the response includes the action execution ID. \ +// Each action has its own set of required and optional input parameters. You can view the parameters for each action in the list of available actions. +// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/response-actions/v1alpha1/action-executions (the `SubmitActionExecutionv1` operationId). +func (c *ClientWithResponses) SubmitActionExecutionv1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitActionExecutionv1Response, error) { + rsp, err := c.SubmitActionExecutionv1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSubmitActionExecutionv1Response(rsp) +} + +// SubmitActionExecutionv1WithResponse Execute a Response Action +// +// Submit a Response Action for execution. The action runs asynchronously, and the response includes the action execution ID. \ +// Each action has its own set of required and optional input parameters. You can view the parameters for each action in the list of available actions. +// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/response-actions/v1alpha1/action-executions (the `SubmitActionExecutionv1` operationId). +func (c *ClientWithResponses) SubmitActionExecutionv1WithResponse(ctx context.Context, body SubmitActionExecutionv1JSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitActionExecutionv1Response, error) { + rsp, err := c.SubmitActionExecutionv1(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSubmitActionExecutionv1Response(rsp) +} + +// UndoActionExecutionV1WithResponse Undoes an Action Execution +// +// Undoes an action execution.\ +// \ +// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/response-actions/v1alpha1/action-executions/{actionExecutionId} (the `UndoActionExecutionV1` operationId). +func (c *ClientWithResponses) UndoActionExecutionV1WithResponse(ctx context.Context, actionExecutionId ActionExecutionId, params *UndoActionExecutionV1Params, reqEditors ...RequestEditorFn) (*UndoActionExecutionV1Response, error) { + rsp, err := c.UndoActionExecutionV1(ctx, actionExecutionId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseUndoActionExecutionV1Response(rsp) +} + +// GetActionExecutionV1WithResponse Get Action Execution +// +// Retrieve details about a previously submitted Response Action execution. \ +// \ +// **Required permissions:** _containment-response-actions.read_ or _data-gathering-response-actions.read_, depending on the action type. Results will include the executions of the Response Actions you are allowed to see. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/response-actions/v1alpha1/action-executions/{actionExecutionId} (the `GetActionExecutionV1` operationId). +func (c *ClientWithResponses) GetActionExecutionV1WithResponse(ctx context.Context, actionExecutionId ActionExecutionId, reqEditors ...RequestEditorFn) (*GetActionExecutionV1Response, error) { + rsp, err := c.GetActionExecutionV1(ctx, actionExecutionId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActionExecutionV1Response(rsp) +} + +// GetActionExecutionFileAcquireV1WithResponse Get Acquired File +// +// Download a file collected from a previously executed "File Acquire" Response Action. \ +// \ +// **Required permissions:** _data-gathering-response-actions.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/response-actions/v1alpha1/action-executions/{actionExecutionId}/acquired-file (the `GetActionExecutionFileAcquireV1` operationId). +func (c *ClientWithResponses) GetActionExecutionFileAcquireV1WithResponse(ctx context.Context, actionExecutionId ActionExecutionId, reqEditors ...RequestEditorFn) (*GetActionExecutionFileAcquireV1Response, error) { + rsp, err := c.GetActionExecutionFileAcquireV1(ctx, actionExecutionId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActionExecutionFileAcquireV1Response(rsp) +} + +// GetActionsV1WithResponse Get All Response Actions +// +// Retrieve a list of available Response Actions. \ +// You can get all available Response Actions without specifying a `context`. +// If you specify a `context`, the API returns only the Response Actions available in that context.\ +// \ +// **Required permissions:** _containment-response-actions.exec_ or _data-gathering-response-actions.exec_, depending on the action type. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/response-actions/v1alpha1/actions (the `GetActionsV1` operationId). +func (c *ClientWithResponses) GetActionsV1WithResponse(ctx context.Context, params *GetActionsV1Params, reqEditors ...RequestEditorFn) (*GetActionsV1Response, error) { + rsp, err := c.GetActionsV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActionsV1Response(rsp) +} + +// GetSecureVulnerabilityV1BundlesWithResponse List Bundles +// +// Retrieves all bundles, including those defined by users and those defined by Sysdig. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/bundles (the `GetSecureVulnerabilityV1Bundles` operationId). +func (c *ClientWithResponses) GetSecureVulnerabilityV1BundlesWithResponse(ctx context.Context, params *GetSecureVulnerabilityV1BundlesParams, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1BundlesResponse, error) { + rsp, err := c.GetSecureVulnerabilityV1Bundles(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecureVulnerabilityV1BundlesResponse(rsp) +} + +// PostSecureVulnerabilityV1BundlesWithBodyWithResponse Create a new Bundle +// +// Creates a new Bundle definition. +// The Bundle definition is tested for structural correctness. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/vulnerability/v1/bundles (the `PostSecureVulnerabilityV1Bundles` operationId). +func (c *ClientWithResponses) PostSecureVulnerabilityV1BundlesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1BundlesResponse, error) { + rsp, err := c.PostSecureVulnerabilityV1BundlesWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostSecureVulnerabilityV1BundlesResponse(rsp) +} + +// PostSecureVulnerabilityV1BundlesWithResponse Create a new Bundle +// +// Creates a new Bundle definition. +// The Bundle definition is tested for structural correctness. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/vulnerability/v1/bundles (the `PostSecureVulnerabilityV1Bundles` operationId). +func (c *ClientWithResponses) PostSecureVulnerabilityV1BundlesWithResponse(ctx context.Context, body PostSecureVulnerabilityV1BundlesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1BundlesResponse, error) { + rsp, err := c.PostSecureVulnerabilityV1Bundles(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostSecureVulnerabilityV1BundlesResponse(rsp) +} + +// DeleteSecureVulnerabilityV1BundlesBundleIdWithResponse Delete Bundle +// +// Deletes an existing Rule Bundle only if it is not used by any Policy. +// An HTTP error is returned if the Bundle being deleted is the only one currently attached to any Policy. +// Once deleted, subsequent calls to the Service will not return that Bundle anymore. +// However, some instances of the Inline Scanner might be running concurrently and may have already downloaded a Policy containing that Bundle. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/vulnerability/v1/bundles/{bundleId} (the `DeleteSecureVulnerabilityV1BundlesBundleId` operationId). +func (c *ClientWithResponses) DeleteSecureVulnerabilityV1BundlesBundleIdWithResponse(ctx context.Context, bundleId int64, reqEditors ...RequestEditorFn) (*DeleteSecureVulnerabilityV1BundlesBundleIdResponse, error) { + rsp, err := c.DeleteSecureVulnerabilityV1BundlesBundleId(ctx, bundleId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp) +} + +// GetSecureVulnerabilityV1BundlesBundleIdWithResponse Get a Bundle +// +// Retrieves a specific rule bundle. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/bundles/{bundleId} (the `GetSecureVulnerabilityV1BundlesBundleId` operationId). +func (c *ClientWithResponses) GetSecureVulnerabilityV1BundlesBundleIdWithResponse(ctx context.Context, bundleId int64, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1BundlesBundleIdResponse, error) { + rsp, err := c.GetSecureVulnerabilityV1BundlesBundleId(ctx, bundleId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp) +} + +// PutSecureVulnerabilityV1BundlesBundleIdWithBodyWithResponse Edit Bundle +// +// Edits a specific Rule Bundle definition. The Bundle definition is +// tested for structural correctness. If the Bundle being edited is a +// Sysdig predefined one, no modifications are applied, and an HTTP error is +// returned. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/vulnerability/v1/bundles/{bundleId} (the `PutSecureVulnerabilityV1BundlesBundleId` operationId). +func (c *ClientWithResponses) PutSecureVulnerabilityV1BundlesBundleIdWithBodyWithResponse(ctx context.Context, bundleId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1BundlesBundleIdResponse, error) { + rsp, err := c.PutSecureVulnerabilityV1BundlesBundleIdWithBody(ctx, bundleId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp) +} + +// PutSecureVulnerabilityV1BundlesBundleIdWithResponse Edit Bundle +// +// Edits a specific Rule Bundle definition. The Bundle definition is +// tested for structural correctness. If the Bundle being edited is a +// Sysdig predefined one, no modifications are applied, and an HTTP error is +// returned. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/vulnerability/v1/bundles/{bundleId} (the `PutSecureVulnerabilityV1BundlesBundleId` operationId). +func (c *ClientWithResponses) PutSecureVulnerabilityV1BundlesBundleIdWithResponse(ctx context.Context, bundleId int64, body PutSecureVulnerabilityV1BundlesBundleIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1BundlesBundleIdResponse, error) { + rsp, err := c.PutSecureVulnerabilityV1BundlesBundleId(ctx, bundleId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp) +} + +// GetSecureVulnerabilityV1PipelineResultsWithResponse Get a list of pipeline scan results +// +// Retrieves a list of scan results produced by pipelines that match a filter given a specified cursor. No sorting is supported, the items are sorted in a stable way by their ID. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/pipeline-results (the `GetSecureVulnerabilityV1PipelineResults` operationId). +func (c *ClientWithResponses) GetSecureVulnerabilityV1PipelineResultsWithResponse(ctx context.Context, params *GetSecureVulnerabilityV1PipelineResultsParams, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1PipelineResultsResponse, error) { + rsp, err := c.GetSecureVulnerabilityV1PipelineResults(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp) +} + +// GetSecureVulnerabilityV1PoliciesWithResponse List Policies +// +// Retrieves all Policy definitions. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/policies (the `GetSecureVulnerabilityV1Policies` operationId). +func (c *ClientWithResponses) GetSecureVulnerabilityV1PoliciesWithResponse(ctx context.Context, params *GetSecureVulnerabilityV1PoliciesParams, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1PoliciesResponse, error) { + rsp, err := c.GetSecureVulnerabilityV1Policies(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecureVulnerabilityV1PoliciesResponse(rsp) +} + +// PostSecureVulnerabilityV1PoliciesWithBodyWithResponse Create a new Policy +// +// Creates a Policy definition. +// The Policy definition is validated for structural correctness +// and partially for semantic correctness. However, semantic +// correctness cannot be fully guaranteed, and checks will be performed +// on a best-effort basis. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/vulnerability/v1/policies (the `PostSecureVulnerabilityV1Policies` operationId). +func (c *ClientWithResponses) PostSecureVulnerabilityV1PoliciesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1PoliciesResponse, error) { + rsp, err := c.PostSecureVulnerabilityV1PoliciesWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostSecureVulnerabilityV1PoliciesResponse(rsp) +} + +// PostSecureVulnerabilityV1PoliciesWithResponse Create a new Policy +// +// Creates a Policy definition. +// The Policy definition is validated for structural correctness +// and partially for semantic correctness. However, semantic +// correctness cannot be fully guaranteed, and checks will be performed +// on a best-effort basis. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/vulnerability/v1/policies (the `PostSecureVulnerabilityV1Policies` operationId). +func (c *ClientWithResponses) PostSecureVulnerabilityV1PoliciesWithResponse(ctx context.Context, body PostSecureVulnerabilityV1PoliciesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSecureVulnerabilityV1PoliciesResponse, error) { + rsp, err := c.PostSecureVulnerabilityV1Policies(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostSecureVulnerabilityV1PoliciesResponse(rsp) +} + +// DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse Delete a Policy +// +// Deletes an existing Policy definition. Subsequent calls to the service +// will not return that Policy anymore. However, some instances of the Inline +// Scanner might be running concurrently and may have already downloaded the +// Policy. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/vulnerability/v1/policies/{policyId} (the `DeleteSecureVulnerabilityV1PoliciesPolicyId` operationId). +func (c *ClientWithResponses) DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse(ctx context.Context, policyId int64, reqEditors ...RequestEditorFn) (*DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { + rsp, err := c.DeleteSecureVulnerabilityV1PoliciesPolicyId(ctx, policyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) +} + +// GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse Get a Policy +// +// Retrieves a specific Policy definition. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/policies/{policyId} (the `GetSecureVulnerabilityV1PoliciesPolicyId` operationId). +func (c *ClientWithResponses) GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse(ctx context.Context, policyId int64, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { + rsp, err := c.GetSecureVulnerabilityV1PoliciesPolicyId(ctx, policyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) +} + +// PutSecureVulnerabilityV1PoliciesPolicyIdWithBodyWithResponse Edit a Policy +// +// Edits a specific Policy definition. The Policy definition is validated for both +// structural and partial semantic correctness. However, semantic +// correctness cannot be fully guaranteed, and checks will be performed +// on a best-effort basis. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/vulnerability/v1/policies/{policyId} (the `PutSecureVulnerabilityV1PoliciesPolicyId` operationId). +func (c *ClientWithResponses) PutSecureVulnerabilityV1PoliciesPolicyIdWithBodyWithResponse(ctx context.Context, policyId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { + rsp, err := c.PutSecureVulnerabilityV1PoliciesPolicyIdWithBody(ctx, policyId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) +} + +// PutSecureVulnerabilityV1PoliciesPolicyIdWithResponse Edit a Policy +// +// Edits a specific Policy definition. The Policy definition is validated for both +// structural and partial semantic correctness. However, semantic +// correctness cannot be fully guaranteed, and checks will be performed +// on a best-effort basis. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/vulnerability/v1/policies/{policyId} (the `PutSecureVulnerabilityV1PoliciesPolicyId` operationId). +func (c *ClientWithResponses) PutSecureVulnerabilityV1PoliciesPolicyIdWithResponse(ctx context.Context, policyId int64, body PutSecureVulnerabilityV1PoliciesPolicyIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { + rsp, err := c.PutSecureVulnerabilityV1PoliciesPolicyId(ctx, policyId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) +} + +// ScannerAPIServiceListRegistryResultsWithResponse Get a list of registry scan results +// +// Retrieves a list of registry scan results discovered by the registry scanner that match a filter given a specified cursor. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/registry-results (the `ScannerAPIServiceListRegistryResults` operationId). +func (c *ClientWithResponses) ScannerAPIServiceListRegistryResultsWithResponse(ctx context.Context, params *ScannerAPIServiceListRegistryResultsParams, reqEditors ...RequestEditorFn) (*ScannerAPIServiceListRegistryResultsResponse, error) { + rsp, err := c.ScannerAPIServiceListRegistryResults(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseScannerAPIServiceListRegistryResultsResponse(rsp) +} + +// GetSecureVulnerabilityV1ResultsResultIdWithResponse Get full scan result +// +// Retrieve a full scan result produced by any scanner that match a given ID. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/results/{resultId} (the `GetSecureVulnerabilityV1ResultsResultId` operationId). +func (c *ClientWithResponses) GetSecureVulnerabilityV1ResultsResultIdWithResponse(ctx context.Context, resultId string, reqEditors ...RequestEditorFn) (*GetSecureVulnerabilityV1ResultsResultIdResponse, error) { + rsp, err := c.GetSecureVulnerabilityV1ResultsResultId(ctx, resultId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp) +} + +// ScannerAPIServiceListRuntimeResultsWithResponse Get a list of runtime scan results +// +// Retrieves a list of runtime scan results discovered by the runtime scanner that match a filter given a specified cursor. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1/runtime-results (the `ScannerAPIServiceListRuntimeResults` operationId). +func (c *ClientWithResponses) ScannerAPIServiceListRuntimeResultsWithResponse(ctx context.Context, params *ScannerAPIServiceListRuntimeResultsParams, reqEditors ...RequestEditorFn) (*ScannerAPIServiceListRuntimeResultsResponse, error) { + rsp, err := c.ScannerAPIServiceListRuntimeResults(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseScannerAPIServiceListRuntimeResultsResponse(rsp) +} + +// GetAcceptedRisksV1WithResponse List all Accepted Risks +// +// List all Accepted Risks for a given account. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1beta1/accepted-risks (the `GetAcceptedRisksV1` operationId). +func (c *ClientWithResponses) GetAcceptedRisksV1WithResponse(ctx context.Context, params *GetAcceptedRisksV1Params, reqEditors ...RequestEditorFn) (*GetAcceptedRisksV1Response, error) { + rsp, err := c.GetAcceptedRisksV1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAcceptedRisksV1Response(rsp) +} + +// PostAcceptedRiskV1WithBodyWithResponse Create Accepted Risk +// +// Creates an Accepted Risk. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/vulnerability/v1beta1/accepted-risks (the `PostAcceptedRiskV1` operationId). +func (c *ClientWithResponses) PostAcceptedRiskV1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAcceptedRiskV1Response, error) { + rsp, err := c.PostAcceptedRiskV1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAcceptedRiskV1Response(rsp) +} + +// PostAcceptedRiskV1WithResponse Create Accepted Risk +// +// Creates an Accepted Risk. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with POST /secure/vulnerability/v1beta1/accepted-risks (the `PostAcceptedRiskV1` operationId). +func (c *ClientWithResponses) PostAcceptedRiskV1WithResponse(ctx context.Context, body PostAcceptedRiskV1JSONRequestBody, reqEditors ...RequestEditorFn) (*PostAcceptedRiskV1Response, error) { + rsp, err := c.PostAcceptedRiskV1(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAcceptedRiskV1Response(rsp) +} + +// DeleteAcceptedRiskV1WithResponse Delete an Accepted Risk +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `DeleteAcceptedRiskV1` operationId). +func (c *ClientWithResponses) DeleteAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, reqEditors ...RequestEditorFn) (*DeleteAcceptedRiskV1Response, error) { + rsp, err := c.DeleteAcceptedRiskV1(ctx, acceptedRiskID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAcceptedRiskV1Response(rsp) +} + +// GetAcceptedRiskV1WithResponse Get Accepted Risk +// +// Get the Accepted Risk given the ID. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `GetAcceptedRiskV1` operationId). +func (c *ClientWithResponses) GetAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, reqEditors ...RequestEditorFn) (*GetAcceptedRiskV1Response, error) { + rsp, err := c.GetAcceptedRiskV1(ctx, acceptedRiskID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAcceptedRiskV1Response(rsp) +} + +// UpdateAcceptedRiskV1WithBodyWithResponse Update an Accepted Risk +// +// Update an Accepted Risk by changing the expirationDate, reason, or description. +// +// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `UpdateAcceptedRiskV1` operationId). +func (c *ClientWithResponses) UpdateAcceptedRiskV1WithBodyWithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAcceptedRiskV1Response, error) { + rsp, err := c.UpdateAcceptedRiskV1WithBody(ctx, acceptedRiskID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAcceptedRiskV1Response(rsp) +} + +// UpdateAcceptedRiskV1WithResponse Update an Accepted Risk +// +// Update an Accepted Risk by changing the expirationDate, reason, or description. +// +// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PUT /secure/vulnerability/v1beta1/accepted-risks/{acceptedRiskID} (the `UpdateAcceptedRiskV1` operationId). +func (c *ClientWithResponses) UpdateAcceptedRiskV1WithResponse(ctx context.Context, acceptedRiskID AcceptedRiskID, body UpdateAcceptedRiskV1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAcceptedRiskV1Response, error) { + rsp, err := c.UpdateAcceptedRiskV1(ctx, acceptedRiskID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAcceptedRiskV1Response(rsp) +} + +// ListCveCatalogV1beta1WithResponse List CVEs +// +// List CVEs in the Sysdig vulnerability catalog. Supports free-text search plus dedicated +// equality filters for severity, CVSS score range, publish date range, and exploit/KEV/fix +// availability. Filters are combined with AND.\ +// \ +// **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1beta1/cves (the `ListCveCatalogV1beta1` operationId). +func (c *ClientWithResponses) ListCveCatalogV1beta1WithResponse(ctx context.Context, params *ListCveCatalogV1beta1Params, reqEditors ...RequestEditorFn) (*ListCveCatalogV1beta1Response, error) { + rsp, err := c.ListCveCatalogV1beta1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListCveCatalogV1beta1Response(rsp) +} + +// GetCveCatalogEntryV1beta1WithResponse Get CVE +// +// Retrieve the full catalog record for a single CVE, including per-vendor metadata and the +// affected component ranges across ecosystems.\ +// \ +// **Required permissions:** _secure.vm.scanresults.read_ or _secure.images.read_ +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1beta1/cves/{cveId} (the `GetCveCatalogEntryV1beta1` operationId). +func (c *ClientWithResponses) GetCveCatalogEntryV1beta1WithResponse(ctx context.Context, cveId string, reqEditors ...RequestEditorFn) (*GetCveCatalogEntryV1beta1Response, error) { + rsp, err := c.GetCveCatalogEntryV1beta1(ctx, cveId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCveCatalogEntryV1beta1Response(rsp) +} + +// GetSBOMV1beta1WithResponse Get SBOM +// +// Retrieve a SBOM (Software Bill Of Material) in CycloneDX format. +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /secure/vulnerability/v1beta1/sboms (the `GetSBOMV1beta1` operationId). +func (c *ClientWithResponses) GetSBOMV1beta1WithResponse(ctx context.Context, params *GetSBOMV1beta1Params, reqEditors ...RequestEditorFn) (*GetSBOMV1beta1Response, error) { + rsp, err := c.GetSBOMV1beta1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSBOMV1beta1Response(rsp) +} + +// ParseDeleteZonePolicyAssociationResponse parses an HTTP response from a DeleteZonePolicyAssociationWithResponse call +func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePolicyAssociationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteZonePolicyAssociationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case rsp.StatusCode == 204: + break // No content-type + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized + 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 Forbidden + 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 NotFound + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 204: + var headers DeleteZonePolicyAssociationResponse204Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers204 = &headers + case rsp.StatusCode == 400: + var headers DeleteZonePolicyAssociationResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers DeleteZonePolicyAssociationResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteZonePolicyAssociationResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteZonePolicyAssociationResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 429: + var headers DeleteZonePolicyAssociationResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers DeleteZonePolicyAssociationResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetZonePolicyAssociationResponse parses an HTTP response from a GetZonePolicyAssociationWithResponse call +func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAssociationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetZonePolicyAssociationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ZonePolicyAssociationResponse + 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 BadRequest + 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 Unauthorized + 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 Forbidden + 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 NotFound + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers GetZonePolicyAssociationResponse200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetZonePolicyAssociationResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetZonePolicyAssociationResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetZonePolicyAssociationResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetZonePolicyAssociationResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 429: + var headers GetZonePolicyAssociationResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers GetZonePolicyAssociationResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseCreateZonePolicyAssociationResponse parses an HTTP response from a CreateZonePolicyAssociationWithResponse call +func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePolicyAssociationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateZonePolicyAssociationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ZonePolicyAssociationResponse + 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 BadRequest + 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 Unauthorized + 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 Forbidden + 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 NotFound + 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 == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers CreateZonePolicyAssociationResponse200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers CreateZonePolicyAssociationResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers CreateZonePolicyAssociationResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers CreateZonePolicyAssociationResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers CreateZonePolicyAssociationResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers CreateZonePolicyAssociationResponse409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 422: + var headers CreateZonePolicyAssociationResponse422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers + case rsp.StatusCode == 429: + var headers CreateZonePolicyAssociationResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers CreateZonePolicyAssociationResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseUpdateZonePolicyAssociationResponse parses an HTTP response from a UpdateZonePolicyAssociationWithResponse call +func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePolicyAssociationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateZonePolicyAssociationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ZonePolicyAssociationResponse + 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 BadRequest + 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 Unauthorized + 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 Forbidden + 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 NotFound + 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 UnprocessableEntity + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers UpdateZonePolicyAssociationResponse200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers UpdateZonePolicyAssociationResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers UpdateZonePolicyAssociationResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers UpdateZonePolicyAssociationResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers UpdateZonePolicyAssociationResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers UpdateZonePolicyAssociationResponse422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers + case rsp.StatusCode == 429: + var headers UpdateZonePolicyAssociationResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers UpdateZonePolicyAssociationResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetQueryResultResponse parses an HTTP response from a GetQueryResultWithResponse call +func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetQueryResultResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest QueryResponse + 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 BadRequest + 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 Unauthorized + 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 Forbidden + 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 == 422: + var dest ParseErrorResponse + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers GetQueryResultResponse200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetQueryResultResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetQueryResultResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetQueryResultResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 422: + var headers GetQueryResultResponse422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers + case rsp.StatusCode == 429: + var headers GetQueryResultResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers GetQueryResultResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParsePostQueryResultResponse parses an HTTP response from a PostQueryResultWithResponse call +func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostQueryResultResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest QueryResponse + 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 BadRequest + 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 Unauthorized + 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 Forbidden + 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 == 422: + var dest ParseErrorResponse + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers PostQueryResultResponse200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers PostQueryResultResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers PostQueryResultResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers PostQueryResultResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 422: + var headers PostQueryResultResponse422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers + case rsp.StatusCode == 429: + var headers PostQueryResultResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers PostQueryResultResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetSchemaResponse parses an HTTP response from a GetSchemaWithResponse call +func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSchemaResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest string + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -85361,13 +91546,6 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -85385,8 +91563,8 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } switch { - case rsp.StatusCode == 204: - var headers DeleteZonePolicyAssociationResponse204Headers + case rsp.StatusCode == 200: + var headers GetSchemaResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85394,9 +91572,9 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteZonePolicyAssociationResponse400Headers + var headers GetSchemaResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85406,7 +91584,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteZonePolicyAssociationResponse401Headers + var headers GetSchemaResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85416,7 +91594,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteZonePolicyAssociationResponse403Headers + var headers GetSchemaResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85425,18 +91603,8 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers DeleteZonePolicyAssociationResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteZonePolicyAssociationResponse429Headers + var headers GetSchemaResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85453,7 +91621,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteZonePolicyAssociationResponse500Headers + var headers GetSchemaResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85488,22 +91656,22 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo return response, nil } -// ParseGetZonePolicyAssociationResponse parses an HTTP response from a GetZonePolicyAssociationWithResponse call -func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAssociationResponse, error) { +// ParseGetInhibitionRulesResponse parses an HTTP response from a GetInhibitionRulesWithResponse call +func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetZonePolicyAssociationResponse{ + response := &GetInhibitionRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZonePolicyAssociationResponse + var dest GetInhibitionRulesPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -85523,20 +91691,6 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -85555,7 +91709,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs switch { case rsp.StatusCode == 200: - var headers GetZonePolicyAssociationResponse200Headers + var headers GetInhibitionRulesResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85565,7 +91719,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetZonePolicyAssociationResponse400Headers + var headers GetInhibitionRulesResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85575,7 +91729,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetZonePolicyAssociationResponse401Headers + var headers GetInhibitionRulesResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85584,28 +91738,8 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetZonePolicyAssociationResponse403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetZonePolicyAssociationResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetZonePolicyAssociationResponse429Headers + var headers GetInhibitionRulesResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85622,7 +91756,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetZonePolicyAssociationResponse500Headers + var headers GetInhibitionRulesResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85657,26 +91791,26 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs return response, nil } -// ParseCreateZonePolicyAssociationResponse parses an HTTP response from a CreateZonePolicyAssociationWithResponse call -func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePolicyAssociationResponse, error) { +// ParseCreateInhibitionRuleResponse parses an HTTP response from a CreateInhibitionRuleWithResponse call +func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateZonePolicyAssociationResponse{ + response := &CreateInhibitionRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZonePolicyAssociationResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest InhibitionRuleResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -85699,19 +91833,12 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON415 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -85737,8 +91864,8 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } switch { - case rsp.StatusCode == 200: - var headers CreateZonePolicyAssociationResponse200Headers + case rsp.StatusCode == 201: + var headers CreateInhibitionRuleResponse201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85746,9 +91873,9 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateZonePolicyAssociationResponse400Headers + var headers CreateInhibitionRuleResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85758,7 +91885,7 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateZonePolicyAssociationResponse401Headers + var headers CreateInhibitionRuleResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85768,7 +91895,7 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateZonePolicyAssociationResponse403Headers + var headers CreateInhibitionRuleResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85777,18 +91904,8 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers CreateZonePolicyAssociationResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers CreateZonePolicyAssociationResponse409Headers + case rsp.StatusCode == 415: + var headers CreateInhibitionRuleResponse415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85796,9 +91913,9 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateZonePolicyAssociationResponse422Headers + var headers CreateInhibitionRuleResponse422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85808,7 +91925,7 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateZonePolicyAssociationResponse429Headers + var headers CreateInhibitionRuleResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85825,7 +91942,7 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateZonePolicyAssociationResponse500Headers + var headers CreateInhibitionRuleResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85860,26 +91977,22 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo return response, nil } -// ParseUpdateZonePolicyAssociationResponse parses an HTTP response from a UpdateZonePolicyAssociationWithResponse call -func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePolicyAssociationResponse, error) { +// ParseDeleteInhibitionRuleByIdResponse parses an HTTP response from a DeleteInhibitionRuleByIdWithResponse call +func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitionRuleByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateZonePolicyAssociationResponse{ + response := &DeleteInhibitionRuleByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZonePolicyAssociationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -85895,13 +92008,6 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -85909,13 +92015,6 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -85933,8 +92032,8 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } switch { - case rsp.StatusCode == 200: - var headers UpdateZonePolicyAssociationResponse200Headers + case rsp.StatusCode == 204: + var headers DeleteInhibitionRuleByIdResponse204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85942,9 +92041,9 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers UpdateZonePolicyAssociationResponse400Headers + var headers DeleteInhibitionRuleByIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85954,7 +92053,7 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateZonePolicyAssociationResponse401Headers + var headers DeleteInhibitionRuleByIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85963,8 +92062,8 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateZonePolicyAssociationResponse403Headers + case rsp.StatusCode == 404: + var headers DeleteInhibitionRuleByIdResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85972,9 +92071,16 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers UpdateZonePolicyAssociationResponse404Headers + response.Headers404 = &headers + case rsp.StatusCode == 429: + var headers DeleteInhibitionRuleByIdResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85982,9 +92088,9 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers UpdateZonePolicyAssociationResponse422Headers + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers DeleteInhibitionRuleByIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -85992,9 +92098,134 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetInhibitionRuleByIdResponse parses an HTTP response from a GetInhibitionRuleByIdWithResponse call +func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInhibitionRuleByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InhibitionRuleResponseV1 + 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 BadRequest + 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 Unauthorized + 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 == 404: + var dest NotFound + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers GetInhibitionRuleByIdResponse200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetInhibitionRuleByIdResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetInhibitionRuleByIdResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers GetInhibitionRuleByIdResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdateZonePolicyAssociationResponse429Headers + var headers GetInhibitionRuleByIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86011,7 +92242,7 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateZonePolicyAssociationResponse500Headers + var headers GetInhibitionRuleByIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86046,22 +92277,22 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo return response, nil } -// ParseGetQueryResultResponse parses an HTTP response from a GetQueryResultWithResponse call -func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, error) { +// ParseUpdateInhibitionRuleResponse parses an HTTP response from a UpdateInhibitionRuleWithResponse call +func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetQueryResultResponse{ + response := &UpdateInhibitionRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest QueryResponse + var dest InhibitionRuleResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -86081,15 +92312,29 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ParseErrorResponse + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -86113,7 +92358,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e switch { case rsp.StatusCode == 200: - var headers GetQueryResultResponse200Headers + var headers UpdateInhibitionRuleResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86123,7 +92368,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetQueryResultResponse400Headers + var headers UpdateInhibitionRuleResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86133,7 +92378,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetQueryResultResponse401Headers + var headers UpdateInhibitionRuleResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86142,8 +92387,8 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetQueryResultResponse403Headers + case rsp.StatusCode == 404: + var headers UpdateInhibitionRuleResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86151,9 +92396,29 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateInhibitionRuleResponse409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateInhibitionRuleResponse415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers case rsp.StatusCode == 422: - var headers GetQueryResultResponse422Headers + var headers UpdateInhibitionRuleResponse422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86163,7 +92428,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetQueryResultResponse429Headers + var headers UpdateInhibitionRuleResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86180,7 +92445,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetQueryResultResponse500Headers + var headers UpdateInhibitionRuleResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86215,22 +92480,22 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e return response, nil } -// ParsePostQueryResultResponse parses an HTTP response from a PostQueryResultWithResponse call -func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, error) { +// ParseGetPricingV1Response parses an HTTP response from a GetPricingV1WithResponse call +func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostQueryResultResponse{ + response := &GetPricingV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest QueryResponse + var dest GetPricingPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -86250,19 +92515,12 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 422: - var dest ParseErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -86282,7 +92540,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, switch { case rsp.StatusCode == 200: - var headers PostQueryResultResponse200Headers + var headers GetPricingV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86292,7 +92550,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PostQueryResultResponse400Headers + var headers GetPricingV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86302,7 +92560,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PostQueryResultResponse401Headers + var headers GetPricingV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86311,18 +92569,8 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers PostQueryResultResponse403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 422: - var headers PostQueryResultResponse422Headers + case rsp.StatusCode == 404: + var headers GetPricingV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86330,9 +92578,9 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers PostQueryResultResponse429Headers + var headers GetPricingV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86349,7 +92597,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PostQueryResultResponse500Headers + var headers GetPricingV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86384,26 +92632,26 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, return response, nil } -// ParseGetSchemaResponse parses an HTTP response from a GetSchemaWithResponse call -func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { +// ParseCreatePricingV1Response parses an HTTP response from a CreatePricingV1WithResponse call +func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSchemaResponse{ + response := &CreatePricingV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest string - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest PricingResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.YAML200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -86419,12 +92667,26 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests @@ -86443,8 +92705,8 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } switch { - case rsp.StatusCode == 200: - var headers GetSchemaResponse200Headers + case rsp.StatusCode == 201: + var headers CreatePricingV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86452,9 +92714,9 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetSchemaResponse400Headers + var headers CreatePricingV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86464,7 +92726,7 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSchemaResponse401Headers + var headers CreatePricingV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86473,8 +92735,8 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetSchemaResponse403Headers + case rsp.StatusCode == 409: + var headers CreatePricingV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86482,9 +92744,29 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers CreatePricingV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreatePricingV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetSchemaResponse429Headers + var headers CreatePricingV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86501,7 +92783,7 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSchemaResponse500Headers + var headers CreatePricingV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86536,26 +92818,22 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { return response, nil } -// ParseGetInhibitionRulesResponse parses an HTTP response from a GetInhibitionRulesWithResponse call -func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesResponse, error) { +// ParseDeletePricingByIdV1Response parses an HTTP response from a DeletePricingByIdV1WithResponse call +func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetInhibitionRulesResponse{ + response := &DeletePricingByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetInhibitionRulesPaginatedResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -86571,6 +92849,27 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -86588,8 +92887,8 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } switch { - case rsp.StatusCode == 200: - var headers GetInhibitionRulesResponse200Headers + case rsp.StatusCode == 204: + var headers DeletePricingByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86597,9 +92896,9 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetInhibitionRulesResponse400Headers + var headers DeletePricingByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86609,7 +92908,7 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetInhibitionRulesResponse401Headers + var headers DeletePricingByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86618,8 +92917,38 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeletePricingByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeletePricingByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers DeletePricingByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetInhibitionRulesResponse429Headers + var headers DeletePricingByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86636,7 +92965,7 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetInhibitionRulesResponse500Headers + var headers DeletePricingByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86671,26 +93000,26 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes return response, nil } -// ParseCreateInhibitionRuleResponse parses an HTTP response from a CreateInhibitionRuleWithResponse call -func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRuleResponse, error) { +// ParseGetPricingByIdV1Response parses an HTTP response from a GetPricingByIdV1WithResponse call +func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateInhibitionRuleResponse{ + response := &GetPricingByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest InhibitionRuleResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PricingResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -86706,26 +93035,12 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -86744,8 +93059,8 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } switch { - case rsp.StatusCode == 201: - var headers CreateInhibitionRuleResponse201Headers + case rsp.StatusCode == 200: + var headers GetPricingByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86753,9 +93068,9 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateInhibitionRuleResponse400Headers + var headers GetPricingByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86765,7 +93080,7 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateInhibitionRuleResponse401Headers + var headers GetPricingByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86774,28 +93089,8 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateInhibitionRuleResponse403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 415: - var headers CreateInhibitionRuleResponse415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateInhibitionRuleResponse422Headers + case rsp.StatusCode == 404: + var headers GetPricingByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86803,9 +93098,9 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateInhibitionRuleResponse429Headers + var headers GetPricingByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86822,7 +93117,7 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateInhibitionRuleResponse500Headers + var headers GetPricingByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86857,22 +93152,26 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul return response, nil } -// ParseDeleteInhibitionRuleByIdResponse parses an HTTP response from a DeleteInhibitionRuleByIdWithResponse call -func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitionRuleByIdResponse, error) { +// ParseUpdatePricingByIdV1Response parses an HTTP response from a UpdatePricingByIdV1WithResponse call +func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteInhibitionRuleByIdResponse{ + response := &UpdatePricingByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PricingResponseV1 + 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 BadRequest @@ -86895,6 +93194,27 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -86912,8 +93232,8 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } switch { - case rsp.StatusCode == 204: - var headers DeleteInhibitionRuleByIdResponse204Headers + case rsp.StatusCode == 200: + var headers UpdatePricingByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86921,9 +93241,9 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteInhibitionRuleByIdResponse400Headers + var headers UpdatePricingByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86933,7 +93253,7 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteInhibitionRuleByIdResponse401Headers + var headers UpdatePricingByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86943,7 +93263,7 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers DeleteInhibitionRuleByIdResponse404Headers + var headers UpdatePricingByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86952,8 +93272,38 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdatePricingByIdV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdatePricingByIdV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdatePricingByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteInhibitionRuleByIdResponse429Headers + var headers UpdatePricingByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -86970,7 +93320,7 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteInhibitionRuleByIdResponse500Headers + var headers UpdatePricingByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87005,22 +93355,22 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio return response, nil } -// ParseGetInhibitionRuleByIdResponse parses an HTTP response from a GetInhibitionRuleByIdWithResponse call -func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleByIdResponse, error) { +// ParseGetPricingProjectedCostsV1Response parses an HTTP response from a GetPricingProjectedCostsV1WithResponse call +func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingProjectedCostsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetInhibitionRuleByIdResponse{ + response := &GetPricingProjectedCostsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InhibitionRuleResponseV1 + var dest GetPricingProjectedPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -87065,7 +93415,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB switch { case rsp.StatusCode == 200: - var headers GetInhibitionRuleByIdResponse200Headers + var headers GetPricingProjectedCostsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87075,7 +93425,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetInhibitionRuleByIdResponse400Headers + var headers GetPricingProjectedCostsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87085,7 +93435,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetInhibitionRuleByIdResponse401Headers + var headers GetPricingProjectedCostsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87095,7 +93445,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetInhibitionRuleByIdResponse404Headers + var headers GetPricingProjectedCostsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87105,7 +93455,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetInhibitionRuleByIdResponse429Headers + var headers GetPricingProjectedCostsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87122,7 +93472,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetInhibitionRuleByIdResponse500Headers + var headers GetPricingProjectedCostsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87157,22 +93507,22 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB return response, nil } -// ParseUpdateInhibitionRuleResponse parses an HTTP response from a UpdateInhibitionRuleWithResponse call -func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRuleResponse, error) { +// ParseGetWastedWorkloadDataResponse parses an HTTP response from a GetWastedWorkloadDataWithResponse call +func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateInhibitionRuleResponse{ + response := &GetWastedWorkloadDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InhibitionRuleResponseV1 + var dest WastedWorkloadSpendDataResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -87192,34 +93542,6 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -87238,7 +93560,7 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul switch { case rsp.StatusCode == 200: - var headers UpdateInhibitionRuleResponse200Headers + var headers GetWastedWorkloadDataResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87248,7 +93570,7 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateInhibitionRuleResponse400Headers + var headers GetWastedWorkloadDataResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87258,7 +93580,7 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateInhibitionRuleResponse401Headers + var headers GetWastedWorkloadDataResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87267,48 +93589,8 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateInhibitionRuleResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateInhibitionRuleResponse409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdateInhibitionRuleResponse415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateInhibitionRuleResponse422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateInhibitionRuleResponse429Headers + var headers GetWastedWorkloadDataResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87325,7 +93607,7 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateInhibitionRuleResponse500Headers + var headers GetWastedWorkloadDataResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87360,22 +93642,22 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul return response, nil } -// ParseGetPricingV1Response parses an HTTP response from a GetPricingV1WithResponse call -func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error) { +// ParseGetWorkloadCostDataV1Response parses an HTTP response from a GetWorkloadCostDataV1WithResponse call +func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDataV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPricingV1Response{ + response := &GetWorkloadCostDataV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetPricingPaginatedResponseV1 + var dest WorkloadCostTrendsDataResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -87395,13 +93677,6 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -87420,7 +93695,7 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error switch { case rsp.StatusCode == 200: - var headers GetPricingV1Response200Headers + var headers GetWorkloadCostDataV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87430,7 +93705,7 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetPricingV1Response400Headers + var headers GetWorkloadCostDataV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87440,7 +93715,7 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPricingV1Response401Headers + var headers GetWorkloadCostDataV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87449,18 +93724,8 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetPricingV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetPricingV1Response429Headers + var headers GetWorkloadCostDataV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87477,7 +93742,7 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPricingV1Response500Headers + var headers GetWorkloadCostDataV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87512,26 +93777,26 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error return response, nil } -// ParseCreatePricingV1Response parses an HTTP response from a CreatePricingV1WithResponse call -func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, error) { +// ParseGetWorkloadRightsizingDataResponse parses an HTTP response from a GetWorkloadRightsizingDataWithResponse call +func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRightsizingDataResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreatePricingV1Response{ + response := &GetWorkloadRightsizingDataResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest PricingResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadRightsizingDataResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -87547,27 +93812,6 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -87585,8 +93829,8 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } switch { - case rsp.StatusCode == 201: - var headers CreatePricingV1Response201Headers + case rsp.StatusCode == 200: + var headers GetWorkloadRightsizingDataResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87594,9 +93838,9 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreatePricingV1Response400Headers + var headers GetWorkloadRightsizingDataResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87606,7 +93850,7 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreatePricingV1Response401Headers + var headers GetWorkloadRightsizingDataResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87615,38 +93859,8 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 409: - var headers CreatePricingV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers CreatePricingV1Response415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreatePricingV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreatePricingV1Response429Headers + var headers GetWorkloadRightsizingDataResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87663,7 +93877,7 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreatePricingV1Response500Headers + var headers GetWorkloadRightsizingDataResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87698,25 +93912,29 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, return response, nil } -// ParseDeletePricingByIdV1Response parses an HTTP response from a DeletePricingByIdV1WithResponse call -func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1Response, error) { +// ParseGetMonitorEventsV1Response parses an HTTP response from a GetMonitorEventsV1WithResponse call +func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeletePricingByIdV1Response{ + response := &GetMonitorEventsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ListMonitorEventsResponse + 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 BadRequest + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -87743,13 +93961,6 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -87767,8 +93978,8 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } switch { - case rsp.StatusCode == 204: - var headers DeletePricingByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetMonitorEventsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87776,9 +93987,9 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeletePricingByIdV1Response400Headers + var headers GetMonitorEventsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87788,7 +93999,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeletePricingByIdV1Response401Headers + var headers GetMonitorEventsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87798,7 +94009,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeletePricingByIdV1Response403Headers + var headers GetMonitorEventsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87808,7 +94019,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeletePricingByIdV1Response404Headers + var headers GetMonitorEventsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87817,18 +94028,8 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeletePricingByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeletePricingByIdV1Response429Headers + var headers GetMonitorEventsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87845,7 +94046,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeletePricingByIdV1Response500Headers + var headers GetMonitorEventsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87880,22 +94081,22 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R return response, nil } -// ParseGetPricingByIdV1Response parses an HTTP response from a GetPricingByIdV1WithResponse call -func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Response, error) { +// ParseGetDisabledMetricsByJobV1Response parses an HTTP response from a GetDisabledMetricsByJobV1WithResponse call +func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMetricsByJobV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPricingByIdV1Response{ + response := &GetDisabledMetricsByJobV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PricingResponseV1 + var dest ResponseListDisabledMetricsV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -87940,7 +94141,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons switch { case rsp.StatusCode == 200: - var headers GetPricingByIdV1Response200Headers + var headers GetDisabledMetricsByJobV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87950,7 +94151,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetPricingByIdV1Response400Headers + var headers GetDisabledMetricsByJobV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87960,7 +94161,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPricingByIdV1Response401Headers + var headers GetDisabledMetricsByJobV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87970,7 +94171,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetPricingByIdV1Response404Headers + var headers GetDisabledMetricsByJobV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87980,7 +94181,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetPricingByIdV1Response429Headers + var headers GetDisabledMetricsByJobV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -87997,7 +94198,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPricingByIdV1Response500Headers + var headers GetDisabledMetricsByJobV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88032,27 +94233,34 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons return response, nil } -// ParseUpdatePricingByIdV1Response parses an HTTP response from a UpdatePricingByIdV1WithResponse call -func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1Response, error) { +// ParsePostDisabledMetricsV1Response parses an HTTP response from a PostDisabledMetricsV1WithResponse call +func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetricsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdatePricingByIdV1Response{ + response := &PostDisabledMetricsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PricingResponseV1 + var dest ResponseListDisabledMetricsV1 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 == 207: + var dest ResponseListDisabledMetricsAndErrorV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON207 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -88074,27 +94282,6 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -88113,7 +94300,7 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R switch { case rsp.StatusCode == 200: - var headers UpdatePricingByIdV1Response200Headers + var headers PostDisabledMetricsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88122,28 +94309,8 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers UpdatePricingByIdV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers UpdatePricingByIdV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdatePricingByIdV1Response404Headers + case rsp.StatusCode == 207: + var headers PostDisabledMetricsV1Response207Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88151,9 +94318,9 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdatePricingByIdV1Response409Headers + response.Headers207 = &headers + case rsp.StatusCode == 400: + var headers PostDisabledMetricsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88161,9 +94328,9 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdatePricingByIdV1Response415Headers + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers PostDisabledMetricsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88171,9 +94338,9 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdatePricingByIdV1Response422Headers + response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers PostDisabledMetricsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88181,9 +94348,9 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdatePricingByIdV1Response429Headers + var headers PostDisabledMetricsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88200,7 +94367,7 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdatePricingByIdV1Response500Headers + var headers PostDisabledMetricsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88235,22 +94402,22 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R return response, nil } -// ParseGetPricingProjectedCostsV1Response parses an HTTP response from a GetPricingProjectedCostsV1WithResponse call -func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingProjectedCostsV1Response, error) { +// ParseGetCustomPrometheusJobsV1Response parses an HTTP response from a GetCustomPrometheusJobsV1WithResponse call +func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomPrometheusJobsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPricingProjectedCostsV1Response{ + response := &GetCustomPrometheusJobsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetPricingProjectedPaginatedResponseV1 + var dest GetCustomJobsPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -88295,7 +94462,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro switch { case rsp.StatusCode == 200: - var headers GetPricingProjectedCostsV1Response200Headers + var headers GetCustomPrometheusJobsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88305,7 +94472,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetPricingProjectedCostsV1Response400Headers + var headers GetCustomPrometheusJobsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88315,7 +94482,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPricingProjectedCostsV1Response401Headers + var headers GetCustomPrometheusJobsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88325,7 +94492,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetPricingProjectedCostsV1Response404Headers + var headers GetCustomPrometheusJobsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88335,7 +94502,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetPricingProjectedCostsV1Response429Headers + var headers GetCustomPrometheusJobsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88352,7 +94519,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPricingProjectedCostsV1Response500Headers + var headers GetCustomPrometheusJobsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88387,26 +94554,22 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro return response, nil } -// ParseGetWastedWorkloadDataResponse parses an HTTP response from a GetWastedWorkloadDataWithResponse call -func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadDataResponse, error) { +// ParseDeleteCustomPrometheusJobByIdV1Response parses an HTTP response from a DeleteCustomPrometheusJobByIdV1WithResponse call +func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCustomPrometheusJobByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWastedWorkloadDataResponse{ + response := &DeleteCustomPrometheusJobByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WastedWorkloadSpendDataResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -88422,6 +94585,27 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -88439,8 +94623,8 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } switch { - case rsp.StatusCode == 200: - var headers GetWastedWorkloadDataResponse200Headers + case rsp.StatusCode == 204: + var headers DeleteCustomPrometheusJobByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88448,9 +94632,9 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetWastedWorkloadDataResponse400Headers + var headers DeleteCustomPrometheusJobByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88460,7 +94644,7 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetWastedWorkloadDataResponse401Headers + var headers DeleteCustomPrometheusJobByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88469,8 +94653,38 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteCustomPrometheusJobByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteCustomPrometheusJobByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers DeleteCustomPrometheusJobByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetWastedWorkloadDataResponse429Headers + var headers DeleteCustomPrometheusJobByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88487,7 +94701,7 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetWastedWorkloadDataResponse500Headers + var headers DeleteCustomPrometheusJobByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88522,26 +94736,26 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD return response, nil } -// ParseGetWorkloadCostDataV1Response parses an HTTP response from a GetWorkloadCostDataV1WithResponse call -func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDataV1Response, error) { +// ParseGetCustomPrometheusJobByNameV1Response parses an HTTP response from a GetCustomPrometheusJobByNameV1WithResponse call +func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustomPrometheusJobByNameV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkloadCostDataV1Response{ + response := &GetCustomPrometheusJobByNameV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkloadCostTrendsDataResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest CustomJobContentV1 + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.YAML200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -88557,6 +94771,13 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -88575,7 +94796,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat switch { case rsp.StatusCode == 200: - var headers GetWorkloadCostDataV1Response200Headers + var headers GetCustomPrometheusJobByNameV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88585,7 +94806,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetWorkloadCostDataV1Response400Headers + var headers GetCustomPrometheusJobByNameV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88595,7 +94816,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetWorkloadCostDataV1Response401Headers + var headers GetCustomPrometheusJobByNameV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88604,8 +94825,18 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers GetCustomPrometheusJobByNameV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetWorkloadCostDataV1Response429Headers + var headers GetCustomPrometheusJobByNameV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88622,7 +94853,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetWorkloadCostDataV1Response500Headers + var headers GetCustomPrometheusJobByNameV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88657,26 +94888,26 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat return response, nil } -// ParseGetWorkloadRightsizingDataResponse parses an HTTP response from a GetWorkloadRightsizingDataWithResponse call -func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRightsizingDataResponse, error) { +// ParseCreateCustomPrometheusJobV1Response parses an HTTP response from a CreateCustomPrometheusJobV1WithResponse call +func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustomPrometheusJobV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetWorkloadRightsizingDataResponse{ + response := &CreateCustomPrometheusJobV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkloadRightsizingDataResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 201: + var dest CustomJobContentV1 + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.YAML201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -88692,6 +94923,27 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -88709,8 +94961,8 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } switch { - case rsp.StatusCode == 200: - var headers GetWorkloadRightsizingDataResponse200Headers + case rsp.StatusCode == 201: + var headers CreateCustomPrometheusJobV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88718,9 +94970,9 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetWorkloadRightsizingDataResponse400Headers + var headers CreateCustomPrometheusJobV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88730,7 +94982,7 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetWorkloadRightsizingDataResponse401Headers + var headers CreateCustomPrometheusJobV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88739,8 +94991,38 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 409: + var headers CreateCustomPrometheusJobV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers CreateCustomPrometheusJobV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateCustomPrometheusJobV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetWorkloadRightsizingDataResponse429Headers + var headers CreateCustomPrometheusJobV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88757,7 +95039,7 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetWorkloadRightsizingDataResponse500Headers + var headers CreateCustomPrometheusJobV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88792,29 +95074,29 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi return response, nil } -// ParseGetMonitorEventsV1Response parses an HTTP response from a GetMonitorEventsV1WithResponse call -func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Response, error) { +// ParseUpdateCustomPrometheusJobByIdV1Response parses an HTTP response from a UpdateCustomPrometheusJobByIdV1WithResponse call +func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCustomPrometheusJobByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetMonitorEventsV1Response{ + response := &UpdateCustomPrometheusJobByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListMonitorEventsResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest CustomJobContentV1 + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.YAML200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest Error + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -88827,19 +95109,33 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests @@ -88859,7 +95155,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res switch { case rsp.StatusCode == 200: - var headers GetMonitorEventsV1Response200Headers + var headers UpdateCustomPrometheusJobByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88869,7 +95165,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetMonitorEventsV1Response400Headers + var headers UpdateCustomPrometheusJobByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88879,7 +95175,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetMonitorEventsV1Response401Headers + var headers UpdateCustomPrometheusJobByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88888,8 +95184,8 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetMonitorEventsV1Response403Headers + case rsp.StatusCode == 404: + var headers UpdateCustomPrometheusJobByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88897,9 +95193,9 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetMonitorEventsV1Response404Headers + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateCustomPrometheusJobByIdV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88907,9 +95203,29 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateCustomPrometheusJobByIdV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateCustomPrometheusJobByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetMonitorEventsV1Response429Headers + var headers UpdateCustomPrometheusJobByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88926,7 +95242,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetMonitorEventsV1Response500Headers + var headers UpdateCustomPrometheusJobByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -88961,22 +95277,22 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res return response, nil } -// ParseGetDisabledMetricsByJobV1Response parses an HTTP response from a GetDisabledMetricsByJobV1WithResponse call -func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMetricsByJobV1Response, error) { +// ParseGetCustomPrometheusJobEnablementV1Response parses an HTTP response from a GetCustomPrometheusJobEnablementV1WithResponse call +func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCustomPrometheusJobEnablementV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDisabledMetricsByJobV1Response{ + response := &GetCustomPrometheusJobEnablementV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResponseListDisabledMetricsV1 + var dest CustomJobsEnablementV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -89021,7 +95337,7 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet switch { case rsp.StatusCode == 200: - var headers GetDisabledMetricsByJobV1Response200Headers + var headers GetCustomPrometheusJobEnablementV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89031,7 +95347,7 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetDisabledMetricsByJobV1Response400Headers + var headers GetCustomPrometheusJobEnablementV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89041,7 +95357,7 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetDisabledMetricsByJobV1Response401Headers + var headers GetCustomPrometheusJobEnablementV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89051,7 +95367,7 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetDisabledMetricsByJobV1Response404Headers + var headers GetCustomPrometheusJobEnablementV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89061,7 +95377,7 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetDisabledMetricsByJobV1Response429Headers + var headers GetCustomPrometheusJobEnablementV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89078,7 +95394,7 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetDisabledMetricsByJobV1Response500Headers + var headers GetCustomPrometheusJobEnablementV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89113,34 +95429,27 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet return response, nil } -// ParsePostDisabledMetricsV1Response parses an HTTP response from a PostDisabledMetricsV1WithResponse call -func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetricsV1Response, error) { +// ParseUpdateCustomPrometheusJobEnablementV1Response parses an HTTP response from a UpdateCustomPrometheusJobEnablementV1WithResponse call +func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*UpdateCustomPrometheusJobEnablementV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDisabledMetricsV1Response{ + response := &UpdateCustomPrometheusJobEnablementV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResponseListDisabledMetricsV1 + var dest CustomJobsEnablementV1 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 == 207: - var dest ResponseListDisabledMetricsAndErrorV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON207 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -89162,6 +95471,27 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -89180,7 +95510,7 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric switch { case rsp.StatusCode == 200: - var headers PostDisabledMetricsV1Response200Headers + var headers UpdateCustomPrometheusJobEnablementV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89189,8 +95519,8 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 207: - var headers PostDisabledMetricsV1Response207Headers + case rsp.StatusCode == 400: + var headers UpdateCustomPrometheusJobEnablementV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89198,9 +95528,9 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers207 = &headers - case rsp.StatusCode == 400: - var headers PostDisabledMetricsV1Response400Headers + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers UpdateCustomPrometheusJobEnablementV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89208,9 +95538,9 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers PostDisabledMetricsV1Response401Headers + response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers UpdateCustomPrometheusJobEnablementV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89218,9 +95548,9 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers PostDisabledMetricsV1Response404Headers + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateCustomPrometheusJobEnablementV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89228,9 +95558,29 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateCustomPrometheusJobEnablementV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateCustomPrometheusJobEnablementV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers PostDisabledMetricsV1Response429Headers + var headers UpdateCustomPrometheusJobEnablementV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89247,7 +95597,7 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PostDisabledMetricsV1Response500Headers + var headers UpdateCustomPrometheusJobEnablementV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89282,22 +95632,22 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric return response, nil } -// ParseGetCustomPrometheusJobsV1Response parses an HTTP response from a GetCustomPrometheusJobsV1WithResponse call -func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomPrometheusJobsV1Response, error) { +// ParseGetJiraIntegrationsV1Response parses an HTTP response from a GetJiraIntegrationsV1WithResponse call +func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegrationsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomPrometheusJobsV1Response{ + response := &GetJiraIntegrationsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetCustomJobsPaginatedResponseV1 + var dest PaginatedIntegrationsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -89317,12 +95667,12 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -89342,7 +95692,7 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme switch { case rsp.StatusCode == 200: - var headers GetCustomPrometheusJobsV1Response200Headers + var headers GetJiraIntegrationsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89352,7 +95702,7 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetCustomPrometheusJobsV1Response400Headers + var headers GetJiraIntegrationsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89362,7 +95712,7 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetCustomPrometheusJobsV1Response401Headers + var headers GetJiraIntegrationsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89371,8 +95721,8 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetCustomPrometheusJobsV1Response404Headers + case rsp.StatusCode == 403: + var headers GetJiraIntegrationsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89380,9 +95730,9 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetCustomPrometheusJobsV1Response429Headers + var headers GetJiraIntegrationsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89399,7 +95749,7 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetCustomPrometheusJobsV1Response500Headers + var headers GetJiraIntegrationsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89434,22 +95784,26 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme return response, nil } -// ParseDeleteCustomPrometheusJobByIdV1Response parses an HTTP response from a DeleteCustomPrometheusJobByIdV1WithResponse call -func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCustomPrometheusJobByIdV1Response, error) { +// ParseCreateJiraIntegrationV1Response parses an HTTP response from a CreateJiraIntegrationV1WithResponse call +func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteCustomPrometheusJobByIdV1Response{ + response := &CreateJiraIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest IntegrationResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -89472,20 +95826,6 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -89503,8 +95843,8 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } switch { - case rsp.StatusCode == 204: - var headers DeleteCustomPrometheusJobByIdV1Response204Headers + case rsp.StatusCode == 201: + var headers CreateJiraIntegrationV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89512,9 +95852,9 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers DeleteCustomPrometheusJobByIdV1Response400Headers + var headers CreateJiraIntegrationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89524,7 +95864,7 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteCustomPrometheusJobByIdV1Response401Headers + var headers CreateJiraIntegrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89534,7 +95874,7 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteCustomPrometheusJobByIdV1Response403Headers + var headers CreateJiraIntegrationV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89543,28 +95883,8 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers DeleteCustomPrometheusJobByIdV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeleteCustomPrometheusJobByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteCustomPrometheusJobByIdV1Response429Headers + var headers CreateJiraIntegrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89581,7 +95901,7 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteCustomPrometheusJobByIdV1Response500Headers + var headers CreateJiraIntegrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89616,26 +95936,22 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu return response, nil } -// ParseGetCustomPrometheusJobByNameV1Response parses an HTTP response from a GetCustomPrometheusJobByNameV1WithResponse call -func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustomPrometheusJobByNameV1Response, error) { +// ParseDeleteJiraIntegrationV1Response parses an HTTP response from a DeleteJiraIntegrationV1WithResponse call +func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomPrometheusJobByNameV1Response{ + response := &DeleteJiraIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest CustomJobContentV1 - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.YAML200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -89651,6 +95967,13 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -89658,6 +95981,13 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -89675,8 +96005,8 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } switch { - case rsp.StatusCode == 200: - var headers GetCustomPrometheusJobByNameV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteJiraIntegrationV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89684,9 +96014,9 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetCustomPrometheusJobByNameV1Response400Headers + var headers DeleteJiraIntegrationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89696,7 +96026,7 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetCustomPrometheusJobByNameV1Response401Headers + var headers DeleteJiraIntegrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89705,8 +96035,18 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteJiraIntegrationV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetCustomPrometheusJobByNameV1Response404Headers + var headers DeleteJiraIntegrationV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89715,8 +96055,18 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers DeleteJiraIntegrationV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers GetCustomPrometheusJobByNameV1Response429Headers + var headers DeleteJiraIntegrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89733,7 +96083,7 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetCustomPrometheusJobByNameV1Response500Headers + var headers DeleteJiraIntegrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89768,26 +96118,26 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom return response, nil } -// ParseCreateCustomPrometheusJobV1Response parses an HTTP response from a CreateCustomPrometheusJobV1WithResponse call -func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustomPrometheusJobV1Response, error) { +// ParseGetJiraIntegrationV1Response parses an HTTP response from a GetJiraIntegrationV1WithResponse call +func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateCustomPrometheusJobV1Response{ + response := &GetJiraIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 201: - var dest CustomJobContentV1 - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IntegrationResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.YAML201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -89803,26 +96153,19 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -89841,8 +96184,8 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } switch { - case rsp.StatusCode == 201: - var headers CreateCustomPrometheusJobV1Response201Headers + case rsp.StatusCode == 200: + var headers GetJiraIntegrationV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89850,9 +96193,9 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateCustomPrometheusJobV1Response400Headers + var headers GetJiraIntegrationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89862,7 +96205,7 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateCustomPrometheusJobV1Response401Headers + var headers GetJiraIntegrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89871,18 +96214,8 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 409: - var headers CreateCustomPrometheusJobV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers CreateCustomPrometheusJobV1Response415Headers + case rsp.StatusCode == 403: + var headers GetJiraIntegrationV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89890,9 +96223,9 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateCustomPrometheusJobV1Response422Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetJiraIntegrationV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89900,9 +96233,9 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateCustomPrometheusJobV1Response429Headers + var headers GetJiraIntegrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89919,7 +96252,7 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateCustomPrometheusJobV1Response500Headers + var headers GetJiraIntegrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -89954,26 +96287,26 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom return response, nil } -// ParseUpdateCustomPrometheusJobByIdV1Response parses an HTTP response from a UpdateCustomPrometheusJobByIdV1WithResponse call -func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCustomPrometheusJobByIdV1Response, error) { +// ParseUpdateJiraIntegrationV1Response parses an HTTP response from a UpdateJiraIntegrationV1WithResponse call +func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCustomPrometheusJobByIdV1Response{ + response := &UpdateJiraIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest CustomJobContentV1 - if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IntegrationResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.YAML200 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -89989,33 +96322,19 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -90035,7 +96354,7 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu switch { case rsp.StatusCode == 200: - var headers UpdateCustomPrometheusJobByIdV1Response200Headers + var headers UpdateJiraIntegrationV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90045,7 +96364,7 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateCustomPrometheusJobByIdV1Response400Headers + var headers UpdateJiraIntegrationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90055,7 +96374,7 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateCustomPrometheusJobByIdV1Response401Headers + var headers UpdateJiraIntegrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90064,28 +96383,8 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateCustomPrometheusJobByIdV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateCustomPrometheusJobByIdV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdateCustomPrometheusJobByIdV1Response415Headers + case rsp.StatusCode == 403: + var headers UpdateJiraIntegrationV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90093,9 +96392,9 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateCustomPrometheusJobByIdV1Response422Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers UpdateJiraIntegrationV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90103,9 +96402,9 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdateCustomPrometheusJobByIdV1Response429Headers + var headers UpdateJiraIntegrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90122,7 +96421,7 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateCustomPrometheusJobByIdV1Response500Headers + var headers UpdateJiraIntegrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90157,22 +96456,22 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu return response, nil } -// ParseGetCustomPrometheusJobEnablementV1Response parses an HTTP response from a GetCustomPrometheusJobEnablementV1WithResponse call -func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCustomPrometheusJobEnablementV1Response, error) { +// ParseGetJiraIssueTypesV1Response parses an HTTP response from a GetJiraIssueTypesV1WithResponse call +func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomPrometheusJobEnablementV1Response{ + response := &GetJiraIssueTypesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CustomJobsEnablementV1 + var dest IssueTypesResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -90192,12 +96491,12 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -90217,7 +96516,7 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu switch { case rsp.StatusCode == 200: - var headers GetCustomPrometheusJobEnablementV1Response200Headers + var headers GetJiraIssueTypesV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90227,7 +96526,7 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetCustomPrometheusJobEnablementV1Response400Headers + var headers GetJiraIssueTypesV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90237,7 +96536,7 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetCustomPrometheusJobEnablementV1Response401Headers + var headers GetJiraIssueTypesV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90246,8 +96545,8 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetCustomPrometheusJobEnablementV1Response404Headers + case rsp.StatusCode == 403: + var headers GetJiraIssueTypesV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90255,9 +96554,9 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetCustomPrometheusJobEnablementV1Response429Headers + var headers GetJiraIssueTypesV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90274,7 +96573,7 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetCustomPrometheusJobEnablementV1Response500Headers + var headers GetJiraIssueTypesV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90309,26 +96608,26 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu return response, nil } -// ParseUpdateCustomPrometheusJobEnablementV1Response parses an HTTP response from a UpdateCustomPrometheusJobEnablementV1WithResponse call -func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*UpdateCustomPrometheusJobEnablementV1Response, error) { +// ParseCreateJiraIssueTypeV1Response parses an HTTP response from a CreateJiraIssueTypeV1WithResponse call +func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTypeV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCustomPrometheusJobEnablementV1Response{ + response := &CreateJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CustomJobsEnablementV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest IssueTypeResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -90344,33 +96643,19 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -90389,8 +96674,8 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } switch { - case rsp.StatusCode == 200: - var headers UpdateCustomPrometheusJobEnablementV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateJiraIssueTypeV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90398,9 +96683,9 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdateCustomPrometheusJobEnablementV1Response400Headers + var headers CreateJiraIssueTypeV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90410,7 +96695,7 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateCustomPrometheusJobEnablementV1Response401Headers + var headers CreateJiraIssueTypeV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90419,28 +96704,8 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateCustomPrometheusJobEnablementV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateCustomPrometheusJobEnablementV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdateCustomPrometheusJobEnablementV1Response415Headers + case rsp.StatusCode == 403: + var headers CreateJiraIssueTypeV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90448,9 +96713,9 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateCustomPrometheusJobEnablementV1Response422Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers CreateJiraIssueTypeV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90458,9 +96723,9 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdateCustomPrometheusJobEnablementV1Response429Headers + var headers CreateJiraIssueTypeV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90477,7 +96742,7 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateCustomPrometheusJobEnablementV1Response500Headers + var headers CreateJiraIssueTypeV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90512,26 +96777,22 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up return response, nil } -// ParseGetJiraIntegrationsV1Response parses an HTTP response from a GetJiraIntegrationsV1WithResponse call -func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegrationsV1Response, error) { +// ParseDeleteJiraIssueTypeV1Response parses an HTTP response from a DeleteJiraIssueTypeV1WithResponse call +func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTypeV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIntegrationsV1Response{ + response := &DeleteJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedIntegrationsResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -90554,6 +96815,13 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -90571,8 +96839,8 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } switch { - case rsp.StatusCode == 200: - var headers GetJiraIntegrationsV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteJiraIssueTypeV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90580,9 +96848,9 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetJiraIntegrationsV1Response400Headers + var headers DeleteJiraIssueTypeV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90592,7 +96860,7 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetJiraIntegrationsV1Response401Headers + var headers DeleteJiraIssueTypeV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90602,7 +96870,7 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetJiraIntegrationsV1Response403Headers + var headers DeleteJiraIssueTypeV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90611,8 +96879,18 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteJiraIssueTypeV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetJiraIntegrationsV1Response429Headers + var headers DeleteJiraIssueTypeV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90629,7 +96907,7 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetJiraIntegrationsV1Response500Headers + var headers DeleteJiraIssueTypeV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90664,26 +96942,26 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration return response, nil } -// ParseCreateJiraIntegrationV1Response parses an HTTP response from a CreateJiraIntegrationV1WithResponse call -func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegrationV1Response, error) { +// ParseGetJiraIssueTypeV1Response parses an HTTP response from a GetJiraIssueTypeV1WithResponse call +func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateJiraIntegrationV1Response{ + response := &GetJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest IntegrationResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IssueTypeResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -90706,6 +96984,13 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -90723,8 +97008,8 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } switch { - case rsp.StatusCode == 201: - var headers CreateJiraIntegrationV1Response201Headers + case rsp.StatusCode == 200: + var headers GetJiraIssueTypeV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90732,9 +97017,9 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateJiraIntegrationV1Response400Headers + var headers GetJiraIssueTypeV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90744,7 +97029,7 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateJiraIntegrationV1Response401Headers + var headers GetJiraIssueTypeV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90754,7 +97039,7 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateJiraIntegrationV1Response403Headers + var headers GetJiraIssueTypeV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90763,8 +97048,18 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetJiraIssueTypeV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateJiraIntegrationV1Response429Headers + var headers GetJiraIssueTypeV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90781,7 +97076,7 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateJiraIntegrationV1Response500Headers + var headers GetJiraIssueTypeV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90816,22 +97111,26 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr return response, nil } -// ParseDeleteJiraIntegrationV1Response parses an HTTP response from a DeleteJiraIntegrationV1WithResponse call -func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegrationV1Response, error) { +// ParseUpdateJiraIssueTypeV1Response parses an HTTP response from a UpdateJiraIssueTypeV1WithResponse call +func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTypeV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteJiraIntegrationV1Response{ + response := &UpdateJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IssueTypeResponseV1 + 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 BadRequest @@ -90861,13 +97160,6 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -90885,8 +97177,8 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } switch { - case rsp.StatusCode == 204: - var headers DeleteJiraIntegrationV1Response204Headers + case rsp.StatusCode == 200: + var headers UpdateJiraIssueTypeV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90894,9 +97186,9 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteJiraIntegrationV1Response400Headers + var headers UpdateJiraIssueTypeV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90906,7 +97198,7 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteJiraIntegrationV1Response401Headers + var headers UpdateJiraIssueTypeV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90916,7 +97208,7 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteJiraIntegrationV1Response403Headers + var headers UpdateJiraIssueTypeV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90926,7 +97218,7 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteJiraIntegrationV1Response404Headers + var headers UpdateJiraIssueTypeV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90935,18 +97227,8 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers DeleteJiraIntegrationV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers case rsp.StatusCode == 429: - var headers DeleteJiraIntegrationV1Response429Headers + var headers UpdateJiraIssueTypeV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90963,7 +97245,7 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteJiraIntegrationV1Response500Headers + var headers UpdateJiraIssueTypeV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -90998,22 +97280,22 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr return response, nil } -// ParseGetJiraIntegrationV1Response parses an HTTP response from a GetJiraIntegrationV1WithResponse call -func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV1Response, error) { +// ParseListJobsV1Response parses an HTTP response from a ListJobsV1WithResponse call +func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIntegrationV1Response{ + response := &ListJobsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationResponseV1 + var dest ListJobs if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91033,19 +97315,12 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -91065,7 +97340,7 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV switch { case rsp.StatusCode == 200: - var headers GetJiraIntegrationV1Response200Headers + var headers ListJobsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91075,7 +97350,7 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetJiraIntegrationV1Response400Headers + var headers ListJobsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91085,7 +97360,7 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetJiraIntegrationV1Response401Headers + var headers ListJobsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91094,18 +97369,8 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetJiraIntegrationV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetJiraIntegrationV1Response404Headers + case rsp.StatusCode == 422: + var headers ListJobsV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91113,9 +97378,9 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetJiraIntegrationV1Response429Headers + var headers ListJobsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91132,7 +97397,7 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetJiraIntegrationV1Response500Headers + var headers ListJobsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91167,22 +97432,22 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV return response, nil } -// ParseUpdateJiraIntegrationV1Response parses an HTTP response from a UpdateJiraIntegrationV1WithResponse call -func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegrationV1Response, error) { +// ParseListSchedulesV1Response parses an HTTP response from a ListSchedulesV1WithResponse call +func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateJiraIntegrationV1Response{ + response := &ListSchedulesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationResponseV1 + var dest ListSchedules if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91202,19 +97467,12 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -91234,7 +97492,7 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr switch { case rsp.StatusCode == 200: - var headers UpdateJiraIntegrationV1Response200Headers + var headers ListSchedulesV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91244,7 +97502,7 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateJiraIntegrationV1Response400Headers + var headers ListSchedulesV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91254,7 +97512,7 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateJiraIntegrationV1Response401Headers + var headers ListSchedulesV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91263,18 +97521,8 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateJiraIntegrationV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers UpdateJiraIntegrationV1Response404Headers + case rsp.StatusCode == 422: + var headers ListSchedulesV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91282,9 +97530,9 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateJiraIntegrationV1Response429Headers + var headers ListSchedulesV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91301,7 +97549,7 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateJiraIntegrationV1Response500Headers + var headers ListSchedulesV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91336,22 +97584,22 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr return response, nil } -// ParseGetJiraIssueTypesV1Response parses an HTTP response from a GetJiraIssueTypesV1WithResponse call -func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1Response, error) { +// ParseGetAccessKeysV1Response parses an HTTP response from a GetAccessKeysV1WithResponse call +func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIssueTypesV1Response{ + response := &GetAccessKeysV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IssueTypesResponseV1 + var dest GetAccessKeysPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91371,13 +97619,6 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -91396,7 +97637,7 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R switch { case rsp.StatusCode == 200: - var headers GetJiraIssueTypesV1Response200Headers + var headers GetAccessKeysV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91406,7 +97647,7 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetJiraIssueTypesV1Response400Headers + var headers GetAccessKeysV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91416,7 +97657,7 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetJiraIssueTypesV1Response401Headers + var headers GetAccessKeysV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91425,18 +97666,8 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetJiraIssueTypesV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetJiraIssueTypesV1Response429Headers + var headers GetAccessKeysV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91453,7 +97684,7 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetJiraIssueTypesV1Response500Headers + var headers GetAccessKeysV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91488,22 +97719,22 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R return response, nil } -// ParseCreateJiraIssueTypeV1Response parses an HTTP response from a CreateJiraIssueTypeV1WithResponse call -func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTypeV1Response, error) { +// ParseCreateAccessKeyV1Response parses an HTTP response from a CreateAccessKeyV1WithResponse call +func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateJiraIssueTypeV1Response{ + response := &CreateAccessKeyV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest IssueTypeResponseV1 + var dest AccessKeyResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91530,12 +97761,26 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests @@ -91555,7 +97800,7 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp switch { case rsp.StatusCode == 201: - var headers CreateJiraIssueTypeV1Response201Headers + var headers CreateAccessKeyV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91565,7 +97810,7 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateJiraIssueTypeV1Response400Headers + var headers CreateAccessKeyV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91575,7 +97820,7 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateJiraIssueTypeV1Response401Headers + var headers CreateAccessKeyV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91585,7 +97830,7 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateJiraIssueTypeV1Response403Headers + var headers CreateAccessKeyV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91594,8 +97839,8 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers CreateJiraIssueTypeV1Response404Headers + case rsp.StatusCode == 409: + var headers CreateAccessKeyV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91603,9 +97848,29 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers CreateAccessKeyV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateAccessKeyV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateJiraIssueTypeV1Response429Headers + var headers CreateAccessKeyV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91622,7 +97887,7 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateJiraIssueTypeV1Response500Headers + var headers CreateAccessKeyV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91657,15 +97922,15 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp return response, nil } -// ParseDeleteJiraIssueTypeV1Response parses an HTTP response from a DeleteJiraIssueTypeV1WithResponse call -func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTypeV1Response, error) { +// ParseDeleteAccessKeyByIdV1Response parses an HTTP response from a DeleteAccessKeyByIdV1WithResponse call +func ParseDeleteAccessKeyByIdV1Response(rsp *http.Response) (*DeleteAccessKeyByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteJiraIssueTypeV1Response{ + response := &DeleteAccessKeyByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -91702,6 +97967,13 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -91720,7 +97992,7 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp switch { case rsp.StatusCode == 204: - var headers DeleteJiraIssueTypeV1Response204Headers + var headers DeleteAccessKeyByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91730,7 +98002,7 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } response.Headers204 = &headers case rsp.StatusCode == 400: - var headers DeleteJiraIssueTypeV1Response400Headers + var headers DeleteAccessKeyByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91740,7 +98012,7 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteJiraIssueTypeV1Response401Headers + var headers DeleteAccessKeyByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91750,7 +98022,7 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteJiraIssueTypeV1Response403Headers + var headers DeleteAccessKeyByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91760,7 +98032,7 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteJiraIssueTypeV1Response404Headers + var headers DeleteAccessKeyByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91769,8 +98041,18 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers DeleteAccessKeyByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteJiraIssueTypeV1Response429Headers + var headers DeleteAccessKeyByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91787,7 +98069,7 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteJiraIssueTypeV1Response500Headers + var headers DeleteAccessKeyByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91822,22 +98104,22 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp return response, nil } -// ParseGetJiraIssueTypeV1Response parses an HTTP response from a GetJiraIssueTypeV1WithResponse call -func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Response, error) { +// ParseGetAccessKeyByIdV1Response parses an HTTP response from a GetAccessKeyByIdV1WithResponse call +func ParseGetAccessKeyByIdV1Response(rsp *http.Response) (*GetAccessKeyByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIssueTypeV1Response{ + response := &GetAccessKeyByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IssueTypeResponseV1 + var dest AccessKeyResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91857,13 +98139,6 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -91889,7 +98164,7 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res switch { case rsp.StatusCode == 200: - var headers GetJiraIssueTypeV1Response200Headers + var headers GetAccessKeyByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91899,7 +98174,7 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetJiraIssueTypeV1Response400Headers + var headers GetAccessKeyByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91909,7 +98184,7 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetJiraIssueTypeV1Response401Headers + var headers GetAccessKeyByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91918,18 +98193,8 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetJiraIssueTypeV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetJiraIssueTypeV1Response404Headers + var headers GetAccessKeyByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91939,7 +98204,7 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetJiraIssueTypeV1Response429Headers + var headers GetAccessKeyByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91956,7 +98221,7 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetJiraIssueTypeV1Response500Headers + var headers GetAccessKeyByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -91991,22 +98256,22 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res return response, nil } -// ParseUpdateJiraIssueTypeV1Response parses an HTTP response from a UpdateJiraIssueTypeV1WithResponse call -func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTypeV1Response, error) { +// ParseUpdateAccessKeyByIdV1Response parses an HTTP response from a UpdateAccessKeyByIdV1WithResponse call +func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateJiraIssueTypeV1Response{ + response := &UpdateAccessKeyByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IssueTypeResponseV1 + var dest AccessKeyResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -92040,6 +98305,27 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -92058,7 +98344,7 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp switch { case rsp.StatusCode == 200: - var headers UpdateJiraIssueTypeV1Response200Headers + var headers UpdateAccessKeyByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92068,7 +98354,7 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateJiraIssueTypeV1Response400Headers + var headers UpdateAccessKeyByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92078,7 +98364,7 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateJiraIssueTypeV1Response401Headers + var headers UpdateAccessKeyByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92088,7 +98374,7 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateJiraIssueTypeV1Response403Headers + var headers UpdateAccessKeyByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92098,7 +98384,7 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateJiraIssueTypeV1Response404Headers + var headers UpdateAccessKeyByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92107,8 +98393,38 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateAccessKeyByIdV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateAccessKeyByIdV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateAccessKeyByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateJiraIssueTypeV1Response429Headers + var headers UpdateAccessKeyByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92125,7 +98441,7 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateJiraIssueTypeV1Response500Headers + var headers UpdateAccessKeyByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92160,22 +98476,22 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp return response, nil } -// ParseListJobsV1Response parses an HTTP response from a ListJobsV1WithResponse call -func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { +// ParseGetCaptureStorageConfigurationV1Response parses an HTTP response from a GetCaptureStorageConfigurationV1WithResponse call +func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCaptureStorageConfigurationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListJobsV1Response{ + response := &GetCaptureStorageConfigurationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListJobs + var dest CaptureStorageConfigurationResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -92195,13 +98511,6 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -92220,7 +98529,7 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { switch { case rsp.StatusCode == 200: - var headers ListJobsV1Response200Headers + var headers GetCaptureStorageConfigurationV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92230,7 +98539,7 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers ListJobsV1Response400Headers + var headers GetCaptureStorageConfigurationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92240,7 +98549,7 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers ListJobsV1Response401Headers + var headers GetCaptureStorageConfigurationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92249,18 +98558,8 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 422: - var headers ListJobsV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers ListJobsV1Response429Headers + var headers GetCaptureStorageConfigurationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92277,7 +98576,7 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListJobsV1Response500Headers + var headers GetCaptureStorageConfigurationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92312,22 +98611,22 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { return response, nil } -// ParseListSchedulesV1Response parses an HTTP response from a ListSchedulesV1WithResponse call -func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, error) { +// ParseUpdateCaptureStorageConfigurationV1Response parses an HTTP response from a UpdateCaptureStorageConfigurationV1WithResponse call +func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*UpdateCaptureStorageConfigurationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSchedulesV1Response{ + response := &UpdateCaptureStorageConfigurationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSchedules + var dest CaptureStorageConfigurationResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -92347,6 +98646,20 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -92372,7 +98685,27 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, switch { case rsp.StatusCode == 200: - var headers ListSchedulesV1Response200Headers + var headers UpdateCaptureStorageConfigurationV1Response200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers UpdateCaptureStorageConfigurationV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers UpdateCaptureStorageConfigurationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92380,9 +98713,9 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers ListSchedulesV1Response400Headers + response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers UpdateCaptureStorageConfigurationV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92390,9 +98723,9 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers ListSchedulesV1Response401Headers + response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers UpdateCaptureStorageConfigurationV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92400,9 +98733,9 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } headers.XRateLimitLimit = &value } - response.Headers401 = &headers + response.Headers415 = &headers case rsp.StatusCode == 422: - var headers ListSchedulesV1Response422Headers + var headers UpdateCaptureStorageConfigurationV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92412,7 +98745,7 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers ListSchedulesV1Response429Headers + var headers UpdateCaptureStorageConfigurationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92429,7 +98762,7 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListSchedulesV1Response500Headers + var headers UpdateCaptureStorageConfigurationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92464,22 +98797,22 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, return response, nil } -// ParseGetAccessKeysV1Response parses an HTTP response from a GetAccessKeysV1WithResponse call -func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, error) { +// ParseGetUserDeactivationConfigurationV1Response parses an HTTP response from a GetUserDeactivationConfigurationV1WithResponse call +func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUserDeactivationConfigurationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAccessKeysV1Response{ + response := &GetUserDeactivationConfigurationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetAccessKeysPaginatedResponseV1 + var dest UserDeactivationConfigurationResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -92499,6 +98832,13 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -92517,7 +98857,7 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, switch { case rsp.StatusCode == 200: - var headers GetAccessKeysV1Response200Headers + var headers GetUserDeactivationConfigurationV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92527,7 +98867,7 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetAccessKeysV1Response400Headers + var headers GetUserDeactivationConfigurationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92537,7 +98877,7 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetAccessKeysV1Response401Headers + var headers GetUserDeactivationConfigurationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92546,8 +98886,18 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers GetUserDeactivationConfigurationV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetAccessKeysV1Response429Headers + var headers GetUserDeactivationConfigurationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92564,7 +98914,7 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetAccessKeysV1Response500Headers + var headers GetUserDeactivationConfigurationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92599,26 +98949,26 @@ func ParseGetAccessKeysV1Response(rsp *http.Response) (*GetAccessKeysV1Response, return response, nil } -// ParseCreateAccessKeyV1Response parses an HTTP response from a CreateAccessKeyV1WithResponse call -func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Response, error) { +// ParseUpdateUserDeactivationConfigurationByIdV1Response parses an HTTP response from a UpdateUserDeactivationConfigurationByIdV1WithResponse call +func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) (*UpdateUserDeactivationConfigurationByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateAccessKeyV1Response{ + response := &UpdateUserDeactivationConfigurationByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest AccessKeyResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDeactivationConfigurationResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -92634,19 +98984,12 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -92655,13 +98998,6 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } response.JSON415 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -92679,8 +99015,8 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } switch { - case rsp.StatusCode == 201: - var headers CreateAccessKeyV1Response201Headers + case rsp.StatusCode == 200: + var headers UpdateUserDeactivationConfigurationByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92688,9 +99024,9 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateAccessKeyV1Response400Headers + var headers UpdateUserDeactivationConfigurationByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92700,7 +99036,7 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateAccessKeyV1Response401Headers + var headers UpdateUserDeactivationConfigurationByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92709,18 +99045,8 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateAccessKeyV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers CreateAccessKeyV1Response409Headers + case rsp.StatusCode == 404: + var headers UpdateUserDeactivationConfigurationByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92728,9 +99054,9 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 415: - var headers CreateAccessKeyV1Response415Headers + var headers UpdateUserDeactivationConfigurationByIdV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92739,18 +99065,8 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo headers.XRateLimitLimit = &value } response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateAccessKeyV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateAccessKeyV1Response429Headers + var headers UpdateUserDeactivationConfigurationByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92767,7 +99083,7 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateAccessKeyV1Response500Headers + var headers UpdateUserDeactivationConfigurationByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92802,67 +99118,64 @@ func ParseCreateAccessKeyV1Response(rsp *http.Response) (*CreateAccessKeyV1Respo return response, nil } -// ParseDeleteAccessKeyByIdV1Response parses an HTTP response from a DeleteAccessKeyByIdV1WithResponse call -func ParseDeleteAccessKeyByIdV1Response(rsp *http.Response) (*DeleteAccessKeyByIdV1Response, error) { +// ParseGetDefaultNotificationTemplateV1Response parses an HTTP response from a GetDefaultNotificationTemplateV1WithResponse call +func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefaultNotificationTemplateV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteAccessKeyByIdV1Response{ + response := &GetDefaultNotificationTemplateV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetDefaultNotificationTemplateResponseV1 + 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 NotFound + var dest NotFoundV2 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 UnprocessableEntity - 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -92871,8 +99184,8 @@ func ParseDeleteAccessKeyByIdV1Response(rsp *http.Response) (*DeleteAccessKeyByI } switch { - case rsp.StatusCode == 204: - var headers DeleteAccessKeyByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetDefaultNotificationTemplateV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92880,39 +99193,30 @@ func ParseDeleteAccessKeyByIdV1Response(rsp *http.Response) (*DeleteAccessKeyByI } headers.XRateLimitLimit = &value } - response.Headers204 = &headers - case rsp.StatusCode == 400: - var headers DeleteAccessKeyByIdV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers DeleteAccessKeyByIdV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteAccessKeyByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers DeleteAccessKeyByIdV1Response404Headers + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetDefaultNotificationTemplateV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92920,36 +99224,30 @@ func ParseDeleteAccessKeyByIdV1Response(rsp *http.Response) (*DeleteAccessKeyByI } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeleteAccessKeyByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers DeleteAccessKeyByIdV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitReset = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers DeleteAccessKeyByIdV1Response500Headers + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetDefaultNotificationTemplateV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -92978,73 +99276,9 @@ func ParseDeleteAccessKeyByIdV1Response(rsp *http.Response) (*DeleteAccessKeyByI } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseGetAccessKeyByIdV1Response parses an HTTP response from a GetAccessKeyByIdV1WithResponse call -func ParseGetAccessKeyByIdV1Response(rsp *http.Response) (*GetAccessKeyByIdV1Response, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAccessKeyByIdV1Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AccessKeyResponseV1 - 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 BadRequest - 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 Unauthorized - 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 == 404: - var dest NotFound - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 200: - var headers GetAccessKeyByIdV1Response200Headers + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetDefaultNotificationTemplateV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93052,29 +99286,30 @@ func ParseGetAccessKeyByIdV1Response(rsp *http.Response) (*GetAccessKeyByIdV1Res } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetAccessKeyByIdV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetAccessKeyByIdV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers401 = &headers + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetAccessKeyByIdV1Response404Headers + var headers GetDefaultNotificationTemplateV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93082,9 +99317,30 @@ func ParseGetAccessKeyByIdV1Response(rsp *http.Response) (*GetAccessKeyByIdV1Res } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetAccessKeyByIdV1Response429Headers + var headers GetDefaultNotificationTemplateV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93099,9 +99355,30 @@ func ParseGetAccessKeyByIdV1Response(rsp *http.Response) (*GetAccessKeyByIdV1Res } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetAccessKeyByIdV1Response500Headers + var headers GetDefaultNotificationTemplateV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93136,22 +99413,22 @@ func ParseGetAccessKeyByIdV1Response(rsp *http.Response) (*GetAccessKeyByIdV1Res return response, nil } -// ParseUpdateAccessKeyByIdV1Response parses an HTTP response from a UpdateAccessKeyByIdV1WithResponse call -func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByIdV1Response, error) { +// ParseGetDefaultRoleByDisplayNameV1Response parses an HTTP response from a GetDefaultRoleByDisplayNameV1WithResponse call +func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefaultRoleByDisplayNameV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateAccessKeyByIdV1Response{ + response := &GetDefaultRoleByDisplayNameV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AccessKeyResponseV1 + var dest DefaultRoleResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93171,13 +99448,6 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -93185,27 +99455,6 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -93224,7 +99473,7 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI switch { case rsp.StatusCode == 200: - var headers UpdateAccessKeyByIdV1Response200Headers + var headers GetDefaultRoleByDisplayNameV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93234,7 +99483,7 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateAccessKeyByIdV1Response400Headers + var headers GetDefaultRoleByDisplayNameV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93244,7 +99493,7 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateAccessKeyByIdV1Response401Headers + var headers GetDefaultRoleByDisplayNameV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93253,18 +99502,8 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateAccessKeyByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateAccessKeyByIdV1Response404Headers + var headers GetDefaultRoleByDisplayNameV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93273,38 +99512,8 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateAccessKeyByIdV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdateAccessKeyByIdV1Response415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateAccessKeyByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateAccessKeyByIdV1Response429Headers + var headers GetDefaultRoleByDisplayNameV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93321,7 +99530,7 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateAccessKeyByIdV1Response500Headers + var headers GetDefaultRoleByDisplayNameV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93356,40 +99565,40 @@ func ParseUpdateAccessKeyByIdV1Response(rsp *http.Response) (*UpdateAccessKeyByI return response, nil } -// ParseGetCaptureStorageConfigurationV1Response parses an HTTP response from a GetCaptureStorageConfigurationV1WithResponse call -func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCaptureStorageConfigurationV1Response, error) { +// ParseGetGlobalSsoSettingsV1Response parses an HTTP response from a GetGlobalSsoSettingsV1WithResponse call +func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCaptureStorageConfigurationV1Response{ + response := &GetGlobalSsoSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CaptureStorageConfigurationResponseV1 + var dest GlobalSsoSettingsResponseV1 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 BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -93409,7 +99618,7 @@ func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCapt switch { case rsp.StatusCode == 200: - var headers GetCaptureStorageConfigurationV1Response200Headers + var headers GetGlobalSsoSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93418,8 +99627,8 @@ func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCapt headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetCaptureStorageConfigurationV1Response400Headers + case rsp.StatusCode == 401: + var headers GetGlobalSsoSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93427,9 +99636,9 @@ func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCapt } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetCaptureStorageConfigurationV1Response401Headers + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetGlobalSsoSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93437,9 +99646,9 @@ func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCapt } headers.XRateLimitLimit = &value } - response.Headers401 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetCaptureStorageConfigurationV1Response429Headers + var headers GetGlobalSsoSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93456,7 +99665,7 @@ func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCapt } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetCaptureStorageConfigurationV1Response500Headers + var headers GetGlobalSsoSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93491,22 +99700,22 @@ func ParseGetCaptureStorageConfigurationV1Response(rsp *http.Response) (*GetCapt return response, nil } -// ParseUpdateCaptureStorageConfigurationV1Response parses an HTTP response from a UpdateCaptureStorageConfigurationV1WithResponse call -func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*UpdateCaptureStorageConfigurationV1Response, error) { +// ParseUpdateGlobalSsoSettingsV1Response parses an HTTP response from a UpdateGlobalSsoSettingsV1WithResponse call +func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSsoSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCaptureStorageConfigurationV1Response{ + response := &UpdateGlobalSsoSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CaptureStorageConfigurationResponseV1 + var dest GlobalSsoSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93526,19 +99735,12 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -93565,7 +99767,7 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda switch { case rsp.StatusCode == 200: - var headers UpdateCaptureStorageConfigurationV1Response200Headers + var headers UpdateGlobalSsoSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93575,7 +99777,7 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateCaptureStorageConfigurationV1Response400Headers + var headers UpdateGlobalSsoSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93585,7 +99787,7 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateCaptureStorageConfigurationV1Response401Headers + var headers UpdateGlobalSsoSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93594,18 +99796,8 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateCaptureStorageConfigurationV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers UpdateCaptureStorageConfigurationV1Response415Headers + case rsp.StatusCode == 403: + var headers UpdateGlobalSsoSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93613,9 +99805,9 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda } headers.XRateLimitLimit = &value } - response.Headers415 = &headers + response.Headers403 = &headers case rsp.StatusCode == 422: - var headers UpdateCaptureStorageConfigurationV1Response422Headers + var headers UpdateGlobalSsoSettingsV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93625,7 +99817,7 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateCaptureStorageConfigurationV1Response429Headers + var headers UpdateGlobalSsoSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93642,7 +99834,7 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateCaptureStorageConfigurationV1Response500Headers + var headers UpdateGlobalSsoSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93677,22 +99869,22 @@ func ParseUpdateCaptureStorageConfigurationV1Response(rsp *http.Response) (*Upda return response, nil } -// ParseGetUserDeactivationConfigurationV1Response parses an HTTP response from a GetUserDeactivationConfigurationV1WithResponse call -func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUserDeactivationConfigurationV1Response, error) { +// ParseGetGroupMappingsV1Response parses an HTTP response from a GetGroupMappingsV1WithResponse call +func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserDeactivationConfigurationV1Response{ + response := &GetGroupMappingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserDeactivationConfigurationResponseV1 + var dest GroupMappingsPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93712,13 +99904,6 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -93737,7 +99922,7 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs switch { case rsp.StatusCode == 200: - var headers GetUserDeactivationConfigurationV1Response200Headers + var headers GetGroupMappingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93747,7 +99932,7 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetUserDeactivationConfigurationV1Response400Headers + var headers GetGroupMappingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93757,7 +99942,7 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetUserDeactivationConfigurationV1Response401Headers + var headers GetGroupMappingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93766,18 +99951,8 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetUserDeactivationConfigurationV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetUserDeactivationConfigurationV1Response429Headers + var headers GetGroupMappingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93794,7 +99969,7 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetUserDeactivationConfigurationV1Response500Headers + var headers GetGroupMappingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93829,26 +100004,26 @@ func ParseGetUserDeactivationConfigurationV1Response(rsp *http.Response) (*GetUs return response, nil } -// ParseUpdateUserDeactivationConfigurationByIdV1Response parses an HTTP response from a UpdateUserDeactivationConfigurationByIdV1WithResponse call -func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) (*UpdateUserDeactivationConfigurationByIdV1Response, error) { +// ParseCreateGroupMappingV1Response parses an HTTP response from a CreateGroupMappingV1WithResponse call +func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateUserDeactivationConfigurationByIdV1Response{ + response := &CreateGroupMappingV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserDeactivationConfigurationResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest GroupMappingResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -93864,12 +100039,12 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -93878,6 +100053,13 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -93895,8 +100077,8 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } switch { - case rsp.StatusCode == 200: - var headers UpdateUserDeactivationConfigurationByIdV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateGroupMappingV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93904,9 +100086,9 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdateUserDeactivationConfigurationByIdV1Response400Headers + var headers CreateGroupMappingV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93916,7 +100098,7 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateUserDeactivationConfigurationByIdV1Response401Headers + var headers CreateGroupMappingV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93925,8 +100107,8 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateUserDeactivationConfigurationByIdV1Response404Headers + case rsp.StatusCode == 409: + var headers CreateGroupMappingV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93934,9 +100116,9 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers409 = &headers case rsp.StatusCode == 415: - var headers UpdateUserDeactivationConfigurationByIdV1Response415Headers + var headers CreateGroupMappingV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93945,8 +100127,18 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) headers.XRateLimitLimit = &value } response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateGroupMappingV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateUserDeactivationConfigurationByIdV1Response429Headers + var headers CreateGroupMappingV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93963,7 +100155,7 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateUserDeactivationConfigurationByIdV1Response500Headers + var headers CreateGroupMappingV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -93998,64 +100190,43 @@ func ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp *http.Response) return response, nil } -// ParseGetDefaultNotificationTemplateV1Response parses an HTTP response from a GetDefaultNotificationTemplateV1WithResponse call -func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefaultNotificationTemplateV1Response, error) { +// ParseGetGroupMappingSettingsV1Response parses an HTTP response from a GetGroupMappingSettingsV1WithResponse call +func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappingSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDefaultNotificationTemplateV1Response{ + response := &GetGroupMappingSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetDefaultNotificationTemplateResponseV1 + var dest GroupMappingSettingsV1 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 BadRequestV2 - 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 UnauthorizedV2 + var dest Unauthorized 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 ForbiddenV2 - 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 NotFoundV2 - 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 == 429: - var dest TooManyRequestsV2 + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerErrorV2 + var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -94065,7 +100236,7 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa switch { case rsp.StatusCode == 200: - var headers GetDefaultNotificationTemplateV1Response200Headers + var headers GetGroupMappingSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94073,30 +100244,9 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetDefaultNotificationTemplateV1Response400Headers + case rsp.StatusCode == 401: + var headers GetGroupMappingSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94104,30 +100254,26 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers401 = &headers + case rsp.StatusCode == 429: + var headers GetGroupMappingSettingsV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.RetryAfter = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetDefaultNotificationTemplateV1Response401Headers + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers GetGroupMappingSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94156,9 +100302,87 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa } headers.XRequestId = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetDefaultNotificationTemplateV1Response403Headers + response.Headers500 = &headers + } + + return response, nil +} + +// ParseSaveGroupMappingSettingsV1Response parses an HTTP response from a SaveGroupMappingSettingsV1WithResponse call +func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMappingSettingsV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SaveGroupMappingSettingsV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GroupMappingSettingsV1 + 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 BadRequest + 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 Unauthorized + 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 == 404: + var dest NotFound + 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 == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers SaveGroupMappingSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94166,30 +100390,29 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers SaveGroupMappingSettingsV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers SaveGroupMappingSettingsV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetDefaultNotificationTemplateV1Response404Headers + var headers SaveGroupMappingSettingsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94197,30 +100420,29 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers SaveGroupMappingSettingsV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers SaveGroupMappingSettingsV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetDefaultNotificationTemplateV1Response429Headers + var headers SaveGroupMappingSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94235,30 +100457,9 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetDefaultNotificationTemplateV1Response500Headers + var headers SaveGroupMappingSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94293,26 +100494,22 @@ func ParseGetDefaultNotificationTemplateV1Response(rsp *http.Response) (*GetDefa return response, nil } -// ParseGetDefaultRoleByDisplayNameV1Response parses an HTTP response from a GetDefaultRoleByDisplayNameV1WithResponse call -func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefaultRoleByDisplayNameV1Response, error) { +// ParseDeleteGroupMappingByIdV1Response parses an HTTP response from a DeleteGroupMappingByIdV1WithResponse call +func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMappingByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDefaultRoleByDisplayNameV1Response{ + response := &DeleteGroupMappingByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest DefaultRoleResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -94328,6 +100525,13 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -94352,8 +100556,8 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault } switch { - case rsp.StatusCode == 200: - var headers GetDefaultRoleByDisplayNameV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteGroupMappingByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94361,9 +100565,9 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetDefaultRoleByDisplayNameV1Response400Headers + var headers DeleteGroupMappingByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94373,7 +100577,7 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetDefaultRoleByDisplayNameV1Response401Headers + var headers DeleteGroupMappingByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94382,8 +100586,18 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteGroupMappingByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetDefaultRoleByDisplayNameV1Response404Headers + var headers DeleteGroupMappingByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94393,7 +100607,7 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetDefaultRoleByDisplayNameV1Response429Headers + var headers DeleteGroupMappingByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94410,7 +100624,7 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetDefaultRoleByDisplayNameV1Response500Headers + var headers DeleteGroupMappingByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94445,27 +100659,34 @@ func ParseGetDefaultRoleByDisplayNameV1Response(rsp *http.Response) (*GetDefault return response, nil } -// ParseGetGlobalSsoSettingsV1Response parses an HTTP response from a GetGlobalSsoSettingsV1WithResponse call -func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSettingsV1Response, error) { +// ParseGetGroupMappingByIdV1Response parses an HTTP response from a GetGroupMappingByIdV1WithResponse call +func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGlobalSsoSettingsV1Response{ + response := &GetGroupMappingByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GlobalSsoSettingsResponseV1 + var dest GroupMappingResponseV1 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 BadRequest + 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -94473,12 +100694,12 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -94498,7 +100719,7 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti switch { case rsp.StatusCode == 200: - var headers GetGlobalSsoSettingsV1Response200Headers + var headers GetGroupMappingByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94507,8 +100728,18 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti headers.XRateLimitLimit = &value } response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetGroupMappingByIdV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetGlobalSsoSettingsV1Response401Headers + var headers GetGroupMappingByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94517,8 +100748,8 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetGlobalSsoSettingsV1Response403Headers + case rsp.StatusCode == 404: + var headers GetGroupMappingByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94526,9 +100757,9 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetGlobalSsoSettingsV1Response429Headers + var headers GetGroupMappingByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94545,7 +100776,7 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGlobalSsoSettingsV1Response500Headers + var headers GetGroupMappingByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94580,22 +100811,22 @@ func ParseGetGlobalSsoSettingsV1Response(rsp *http.Response) (*GetGlobalSsoSetti return response, nil } -// ParseUpdateGlobalSsoSettingsV1Response parses an HTTP response from a UpdateGlobalSsoSettingsV1WithResponse call -func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSsoSettingsV1Response, error) { +// ParseUpdateGroupMappingByIdV1Response parses an HTTP response from a UpdateGroupMappingByIdV1WithResponse call +func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMappingByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateGlobalSsoSettingsV1Response{ + response := &UpdateGroupMappingByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GlobalSsoSettingsResponseV1 + var dest GroupMappingResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -94622,6 +100853,20 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -94647,7 +100892,7 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs switch { case rsp.StatusCode == 200: - var headers UpdateGlobalSsoSettingsV1Response200Headers + var headers UpdateGroupMappingByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94657,7 +100902,7 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateGlobalSsoSettingsV1Response400Headers + var headers UpdateGroupMappingByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94667,7 +100912,7 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateGlobalSsoSettingsV1Response401Headers + var headers UpdateGroupMappingByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94677,7 +100922,7 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateGlobalSsoSettingsV1Response403Headers + var headers UpdateGroupMappingByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94686,8 +100931,28 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers UpdateGroupMappingByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers UpdateGroupMappingByIdV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers case rsp.StatusCode == 422: - var headers UpdateGlobalSsoSettingsV1Response422Headers + var headers UpdateGroupMappingByIdV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94697,7 +100962,7 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateGlobalSsoSettingsV1Response429Headers + var headers UpdateGroupMappingByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94714,7 +100979,7 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateGlobalSsoSettingsV1Response500Headers + var headers UpdateGroupMappingByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94749,22 +101014,22 @@ func ParseUpdateGlobalSsoSettingsV1Response(rsp *http.Response) (*UpdateGlobalSs return response, nil } -// ParseGetGroupMappingsV1Response parses an HTTP response from a GetGroupMappingsV1WithResponse call -func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Response, error) { +// ParseGetIpFiltersV1Response parses an HTTP response from a GetIpFiltersV1WithResponse call +func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGroupMappingsV1Response{ + response := &GetIpFiltersV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GroupMappingsPaginatedResponseV1 + var dest IpFiltersPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -94802,7 +101067,7 @@ func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Res switch { case rsp.StatusCode == 200: - var headers GetGroupMappingsV1Response200Headers + var headers GetIpFiltersV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94812,7 +101077,7 @@ func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Res } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetGroupMappingsV1Response400Headers + var headers GetIpFiltersV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94822,7 +101087,7 @@ func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Res } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetGroupMappingsV1Response401Headers + var headers GetIpFiltersV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94832,7 +101097,7 @@ func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Res } response.Headers401 = &headers case rsp.StatusCode == 429: - var headers GetGroupMappingsV1Response429Headers + var headers GetIpFiltersV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94849,7 +101114,7 @@ func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Res } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGroupMappingsV1Response500Headers + var headers GetIpFiltersV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94884,22 +101149,22 @@ func ParseGetGroupMappingsV1Response(rsp *http.Response) (*GetGroupMappingsV1Res return response, nil } -// ParseCreateGroupMappingV1Response parses an HTTP response from a CreateGroupMappingV1WithResponse call -func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV1Response, error) { +// ParseCreateIpFilterV1Response parses an HTTP response from a CreateIpFilterV1WithResponse call +func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateGroupMappingV1Response{ + response := &CreateIpFilterV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest GroupMappingResponseV1 + var dest IpFilterResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -94958,7 +101223,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV switch { case rsp.StatusCode == 201: - var headers CreateGroupMappingV1Response201Headers + var headers CreateIpFilterV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94968,7 +101233,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateGroupMappingV1Response400Headers + var headers CreateIpFilterV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94978,7 +101243,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateGroupMappingV1Response401Headers + var headers CreateIpFilterV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94988,7 +101253,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers401 = &headers case rsp.StatusCode == 409: - var headers CreateGroupMappingV1Response409Headers + var headers CreateIpFilterV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94998,7 +101263,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers409 = &headers case rsp.StatusCode == 415: - var headers CreateGroupMappingV1Response415Headers + var headers CreateIpFilterV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95008,7 +101273,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateGroupMappingV1Response422Headers + var headers CreateIpFilterV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95018,7 +101283,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateGroupMappingV1Response429Headers + var headers CreateIpFilterV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95035,7 +101300,7 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateGroupMappingV1Response500Headers + var headers CreateIpFilterV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95070,22 +101335,22 @@ func ParseCreateGroupMappingV1Response(rsp *http.Response) (*CreateGroupMappingV return response, nil } -// ParseGetGroupMappingSettingsV1Response parses an HTTP response from a GetGroupMappingSettingsV1WithResponse call -func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappingSettingsV1Response, error) { +// ParseGetIpFiltersSettingsV1Response parses an HTTP response from a GetIpFiltersSettingsV1WithResponse call +func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGroupMappingSettingsV1Response{ + response := &GetIpFiltersSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GroupMappingSettingsV1 + var dest IpFiltersSettingsV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -95116,7 +101381,7 @@ func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappin switch { case rsp.StatusCode == 200: - var headers GetGroupMappingSettingsV1Response200Headers + var headers GetIpFiltersSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95126,7 +101391,7 @@ func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappin } response.Headers200 = &headers case rsp.StatusCode == 401: - var headers GetGroupMappingSettingsV1Response401Headers + var headers GetIpFiltersSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95136,7 +101401,7 @@ func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappin } response.Headers401 = &headers case rsp.StatusCode == 429: - var headers GetGroupMappingSettingsV1Response429Headers + var headers GetIpFiltersSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95153,7 +101418,7 @@ func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappin } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGroupMappingSettingsV1Response500Headers + var headers GetIpFiltersSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95188,22 +101453,22 @@ func ParseGetGroupMappingSettingsV1Response(rsp *http.Response) (*GetGroupMappin return response, nil } -// ParseSaveGroupMappingSettingsV1Response parses an HTTP response from a SaveGroupMappingSettingsV1WithResponse call -func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMappingSettingsV1Response, error) { +// ParseSaveIpFiltersSettingsV1Response parses an HTTP response from a SaveIpFiltersSettingsV1WithResponse call +func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SaveGroupMappingSettingsV1Response{ + response := &SaveIpFiltersSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GroupMappingSettingsV1 + var dest IpFiltersSettingsV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -95230,6 +101495,13 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -95262,7 +101534,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp switch { case rsp.StatusCode == 200: - var headers SaveGroupMappingSettingsV1Response200Headers + var headers SaveIpFiltersSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95272,7 +101544,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers SaveGroupMappingSettingsV1Response400Headers + var headers SaveIpFiltersSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95282,7 +101554,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers SaveGroupMappingSettingsV1Response401Headers + var headers SaveIpFiltersSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95292,7 +101564,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers SaveGroupMappingSettingsV1Response404Headers + var headers SaveIpFiltersSettingsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95301,8 +101573,18 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers SaveIpFiltersSettingsV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 415: - var headers SaveGroupMappingSettingsV1Response415Headers + var headers SaveIpFiltersSettingsV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95312,7 +101594,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers SaveGroupMappingSettingsV1Response422Headers + var headers SaveIpFiltersSettingsV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95322,7 +101604,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers SaveGroupMappingSettingsV1Response429Headers + var headers SaveIpFiltersSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95339,7 +101621,7 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers SaveGroupMappingSettingsV1Response500Headers + var headers SaveIpFiltersSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95374,15 +101656,15 @@ func ParseSaveGroupMappingSettingsV1Response(rsp *http.Response) (*SaveGroupMapp return response, nil } -// ParseDeleteGroupMappingByIdV1Response parses an HTTP response from a DeleteGroupMappingByIdV1WithResponse call -func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMappingByIdV1Response, error) { +// ParseDeleteIpFilterByIdV1Response parses an HTTP response from a DeleteIpFilterByIdV1WithResponse call +func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteGroupMappingByIdV1Response{ + response := &DeleteIpFilterByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -95419,6 +101701,13 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -95437,7 +101726,7 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp switch { case rsp.StatusCode == 204: - var headers DeleteGroupMappingByIdV1Response204Headers + var headers DeleteIpFilterByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95447,7 +101736,7 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp } response.Headers204 = &headers case rsp.StatusCode == 400: - var headers DeleteGroupMappingByIdV1Response400Headers + var headers DeleteIpFilterByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95457,7 +101746,7 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteGroupMappingByIdV1Response401Headers + var headers DeleteIpFilterByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95467,7 +101756,7 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteGroupMappingByIdV1Response403Headers + var headers DeleteIpFilterByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95477,7 +101766,7 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteGroupMappingByIdV1Response404Headers + var headers DeleteIpFilterByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95486,8 +101775,18 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers DeleteIpFilterByIdV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers DeleteGroupMappingByIdV1Response429Headers + var headers DeleteIpFilterByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95504,7 +101803,7 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteGroupMappingByIdV1Response500Headers + var headers DeleteIpFilterByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95539,22 +101838,22 @@ func ParseDeleteGroupMappingByIdV1Response(rsp *http.Response) (*DeleteGroupMapp return response, nil } -// ParseGetGroupMappingByIdV1Response parses an HTTP response from a GetGroupMappingByIdV1WithResponse call -func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByIdV1Response, error) { +// ParseGetIpFilterByIdV1Response parses an HTTP response from a GetIpFilterByIdV1WithResponse call +func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGroupMappingByIdV1Response{ + response := &GetIpFilterByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GroupMappingResponseV1 + var dest IpFilterResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -95599,7 +101898,7 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI switch { case rsp.StatusCode == 200: - var headers GetGroupMappingByIdV1Response200Headers + var headers GetIpFilterByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95609,7 +101908,7 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetGroupMappingByIdV1Response400Headers + var headers GetIpFilterByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95619,7 +101918,7 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetGroupMappingByIdV1Response401Headers + var headers GetIpFilterByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95629,7 +101928,7 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetGroupMappingByIdV1Response404Headers + var headers GetIpFilterByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95639,7 +101938,7 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetGroupMappingByIdV1Response429Headers + var headers GetIpFilterByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95656,7 +101955,7 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGroupMappingByIdV1Response500Headers + var headers GetIpFilterByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95691,22 +101990,22 @@ func ParseGetGroupMappingByIdV1Response(rsp *http.Response) (*GetGroupMappingByI return response, nil } -// ParseUpdateGroupMappingByIdV1Response parses an HTTP response from a UpdateGroupMappingByIdV1WithResponse call -func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMappingByIdV1Response, error) { +// ParseUpdateIpFilterV1Response parses an HTTP response from a UpdateIpFilterV1WithResponse call +func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateGroupMappingByIdV1Response{ + response := &UpdateIpFilterV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GroupMappingResponseV1 + var dest IpFilterResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -95740,19 +102039,12 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -95772,7 +102064,7 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp switch { case rsp.StatusCode == 200: - var headers UpdateGroupMappingByIdV1Response200Headers + var headers UpdateIpFilterV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95782,7 +102074,7 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateGroupMappingByIdV1Response400Headers + var headers UpdateIpFilterV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95792,7 +102084,7 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateGroupMappingByIdV1Response401Headers + var headers UpdateIpFilterV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95802,7 +102094,7 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateGroupMappingByIdV1Response403Headers + var headers UpdateIpFilterV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95812,7 +102104,7 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateGroupMappingByIdV1Response404Headers + var headers UpdateIpFilterV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95821,18 +102113,8 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers UpdateGroupMappingByIdV1Response415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateGroupMappingByIdV1Response422Headers + case rsp.StatusCode == 409: + var headers UpdateIpFilterV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95840,9 +102122,9 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers UpdateGroupMappingByIdV1Response429Headers + var headers UpdateIpFilterV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95859,7 +102141,7 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateGroupMappingByIdV1Response500Headers + var headers UpdateIpFilterV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95894,22 +102176,22 @@ func ParseUpdateGroupMappingByIdV1Response(rsp *http.Response) (*UpdateGroupMapp return response, nil } -// ParseGetIpFiltersV1Response parses an HTTP response from a GetIpFiltersV1WithResponse call -func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, error) { +// ParseGetNotificationChannelsResponse parses an HTTP response from a GetNotificationChannelsWithResponse call +func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationChannelsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetIpFiltersV1Response{ + response := &GetNotificationChannelsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IpFiltersPaginatedResponseV1 + var dest GetNotificationChannelsPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -95947,7 +102229,7 @@ func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, e switch { case rsp.StatusCode == 200: - var headers GetIpFiltersV1Response200Headers + var headers GetNotificationChannelsResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95957,7 +102239,7 @@ func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, e } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetIpFiltersV1Response400Headers + var headers GetNotificationChannelsResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95967,7 +102249,7 @@ func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, e } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetIpFiltersV1Response401Headers + var headers GetNotificationChannelsResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95977,7 +102259,7 @@ func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, e } response.Headers401 = &headers case rsp.StatusCode == 429: - var headers GetIpFiltersV1Response429Headers + var headers GetNotificationChannelsResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95994,7 +102276,7 @@ func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, e } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetIpFiltersV1Response500Headers + var headers GetNotificationChannelsResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96029,22 +102311,22 @@ func ParseGetIpFiltersV1Response(rsp *http.Response) (*GetIpFiltersV1Response, e return response, nil } -// ParseCreateIpFilterV1Response parses an HTTP response from a CreateIpFilterV1WithResponse call -func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Response, error) { +// ParseCreateNotificationChannelResponse parses an HTTP response from a CreateNotificationChannelWithResponse call +func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotificationChannelResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateIpFilterV1Response{ + response := &CreateNotificationChannelResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest IpFilterResponseV1 + var dest NotificationChannelResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -96064,12 +102346,12 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -96103,7 +102385,7 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons switch { case rsp.StatusCode == 201: - var headers CreateIpFilterV1Response201Headers + var headers CreateNotificationChannelResponse201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96113,7 +102395,7 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateIpFilterV1Response400Headers + var headers CreateNotificationChannelResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96123,7 +102405,7 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateIpFilterV1Response401Headers + var headers CreateNotificationChannelResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96132,8 +102414,8 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 409: - var headers CreateIpFilterV1Response409Headers + case rsp.StatusCode == 403: + var headers CreateNotificationChannelResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96141,9 +102423,9 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers403 = &headers case rsp.StatusCode == 415: - var headers CreateIpFilterV1Response415Headers + var headers CreateNotificationChannelResponse415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96153,7 +102435,7 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateIpFilterV1Response422Headers + var headers CreateNotificationChannelResponse422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96163,7 +102445,7 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateIpFilterV1Response429Headers + var headers CreateNotificationChannelResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96180,7 +102462,7 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateIpFilterV1Response500Headers + var headers CreateNotificationChannelResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96215,27 +102497,182 @@ func ParseCreateIpFilterV1Response(rsp *http.Response) (*CreateIpFilterV1Respons return response, nil } -// ParseGetIpFiltersSettingsV1Response parses an HTTP response from a GetIpFiltersSettingsV1WithResponse call -func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSettingsV1Response, error) { +// ParseDeleteNotificationChannelByIdResponse parses an HTTP response from a DeleteNotificationChannelByIdWithResponse call +func ParseDeleteNotificationChannelByIdResponse(rsp *http.Response) (*DeleteNotificationChannelByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteNotificationChannelByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case rsp.StatusCode == 204: + break // No content-type + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized + 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 == 404: + var dest NotFound + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 204: + var headers DeleteNotificationChannelByIdResponse204Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers204 = &headers + case rsp.StatusCode == 400: + var headers DeleteNotificationChannelByIdResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers DeleteNotificationChannelByIdResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers DeleteNotificationChannelByIdResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 429: + var headers DeleteNotificationChannelByIdResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers DeleteNotificationChannelByIdResponse500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetNotificationChannelByIdResponse parses an HTTP response from a GetNotificationChannelByIdWithResponse call +func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificationChannelByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetIpFiltersSettingsV1Response{ + response := &GetNotificationChannelByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IpFiltersSettingsV1 + var dest NotificationChannelResponseV1 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 BadRequest + 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -96243,6 +102680,20 @@ func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSetti } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -96261,7 +102712,7 @@ func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSetti switch { case rsp.StatusCode == 200: - var headers GetIpFiltersSettingsV1Response200Headers + var headers GetNotificationChannelByIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96270,8 +102721,18 @@ func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSetti headers.XRateLimitLimit = &value } response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetNotificationChannelByIdResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetIpFiltersSettingsV1Response401Headers + var headers GetNotificationChannelByIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96280,8 +102741,28 @@ func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSetti headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetNotificationChannelByIdResponse403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetNotificationChannelByIdResponse404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetIpFiltersSettingsV1Response429Headers + var headers GetNotificationChannelByIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96298,7 +102779,7 @@ func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSetti } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetIpFiltersSettingsV1Response500Headers + var headers GetNotificationChannelByIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96333,22 +102814,22 @@ func ParseGetIpFiltersSettingsV1Response(rsp *http.Response) (*GetIpFiltersSetti return response, nil } -// ParseSaveIpFiltersSettingsV1Response parses an HTTP response from a SaveIpFiltersSettingsV1WithResponse call -func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSettingsV1Response, error) { +// ParseUpdateNotificationChannelByIdResponse parses an HTTP response from a UpdateNotificationChannelByIdWithResponse call +func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNotificationChannelByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SaveIpFiltersSettingsV1Response{ + response := &UpdateNotificationChannelByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IpFiltersSettingsV1 + var dest NotificationChannelResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -96414,7 +102895,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet switch { case rsp.StatusCode == 200: - var headers SaveIpFiltersSettingsV1Response200Headers + var headers UpdateNotificationChannelByIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96424,7 +102905,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers SaveIpFiltersSettingsV1Response400Headers + var headers UpdateNotificationChannelByIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96434,7 +102915,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers SaveIpFiltersSettingsV1Response401Headers + var headers UpdateNotificationChannelByIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96444,7 +102925,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers SaveIpFiltersSettingsV1Response404Headers + var headers UpdateNotificationChannelByIdResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96454,7 +102935,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers404 = &headers case rsp.StatusCode == 409: - var headers SaveIpFiltersSettingsV1Response409Headers + var headers UpdateNotificationChannelByIdResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96464,7 +102945,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers409 = &headers case rsp.StatusCode == 415: - var headers SaveIpFiltersSettingsV1Response415Headers + var headers UpdateNotificationChannelByIdResponse415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96474,7 +102955,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers SaveIpFiltersSettingsV1Response422Headers + var headers UpdateNotificationChannelByIdResponse422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96484,7 +102965,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers SaveIpFiltersSettingsV1Response429Headers + var headers UpdateNotificationChannelByIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96501,7 +102982,7 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers SaveIpFiltersSettingsV1Response500Headers + var headers UpdateNotificationChannelByIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96536,67 +103017,50 @@ func ParseSaveIpFiltersSettingsV1Response(rsp *http.Response) (*SaveIpFiltersSet return response, nil } -// ParseDeleteIpFilterByIdV1Response parses an HTTP response from a DeleteIpFilterByIdV1WithResponse call -func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV1Response, error) { +// ParseGetNotificationTemplatesV1Response parses an HTTP response from a GetNotificationTemplatesV1WithResponse call +func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificationTemplatesV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteIpFilterByIdV1Response{ + response := &GetNotificationTemplatesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetNotificationTemplatesPaginatedResponseV1 + 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden - 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 NotFound - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -96605,8 +103069,8 @@ func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV } switch { - case rsp.StatusCode == 204: - var headers DeleteIpFilterByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetNotificationTemplatesV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96614,9 +103078,30 @@ func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteIpFilterByIdV1Response400Headers + var headers GetNotificationTemplatesV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96624,9 +103109,30 @@ func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteIpFilterByIdV1Response401Headers + var headers GetNotificationTemplatesV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96634,39 +103140,30 @@ func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteIpFilterByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers DeleteIpFilterByIdV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers DeleteIpFilterByIdV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers409 = &headers + response.Headers401 = &headers case rsp.StatusCode == 429: - var headers DeleteIpFilterByIdV1Response429Headers + var headers GetNotificationTemplatesV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96681,9 +103178,30 @@ func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteIpFilterByIdV1Response500Headers + var headers GetNotificationTemplatesV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96718,57 +103236,78 @@ func ParseDeleteIpFilterByIdV1Response(rsp *http.Response) (*DeleteIpFilterByIdV return response, nil } -// ParseGetIpFilterByIdV1Response parses an HTTP response from a GetIpFilterByIdV1WithResponse call -func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Response, error) { +// ParseCreateNotificationTemplateV1Response parses an HTTP response from a CreateNotificationTemplateV1WithResponse call +func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotificationTemplateV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetIpFilterByIdV1Response{ + response := &CreateNotificationTemplateV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IpFilterResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest NotificationTemplateResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest ForbiddenV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest ConflictV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaTypeV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntityV2 + 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -96777,8 +103316,15 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo } switch { - case rsp.StatusCode == 200: - var headers GetIpFilterByIdV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateNotificationTemplateV1Response201Headers + if values := rsp.Header.Values("Location"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Location", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Location = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96786,9 +103332,30 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetIpFilterByIdV1Response400Headers + var headers CreateNotificationTemplateV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96796,9 +103363,30 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetIpFilterByIdV1Response401Headers + var headers CreateNotificationTemplateV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96806,9 +103394,30 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetIpFilterByIdV1Response404Headers + case rsp.StatusCode == 403: + var headers CreateNotificationTemplateV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96816,9 +103425,123 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers CreateNotificationTemplateV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers CreateNotificationTemplateV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateNotificationTemplateV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetIpFilterByIdV1Response429Headers + var headers CreateNotificationTemplateV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96833,9 +103556,30 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetIpFilterByIdV1Response500Headers + var headers CreateNotificationTemplateV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96870,71 +103614,53 @@ func ParseGetIpFilterByIdV1Response(rsp *http.Response) (*GetIpFilterByIdV1Respo return response, nil } -// ParseUpdateIpFilterV1Response parses an HTTP response from a UpdateIpFilterV1WithResponse call -func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Response, error) { +// ParseDeleteNotificationTemplateByIdV1Response parses an HTTP response from a DeleteNotificationTemplateByIdV1WithResponse call +func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteNotificationTemplateByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateIpFilterV1Response{ + response := &DeleteNotificationTemplateByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IpFilterResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden - 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 NotFound + var dest NotFoundV2 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -96943,8 +103669,8 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons } switch { - case rsp.StatusCode == 200: - var headers UpdateIpFilterV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteNotificationTemplateByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96952,9 +103678,30 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers UpdateIpFilterV1Response400Headers + var headers DeleteNotificationTemplateByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96962,9 +103709,30 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateIpFilterV1Response401Headers + var headers DeleteNotificationTemplateByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96972,19 +103740,30 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateIpFilterV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers403 = &headers + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers401 = &headers case rsp.StatusCode == 404: - var headers UpdateIpFilterV1Response404Headers + var headers DeleteNotificationTemplateByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96992,19 +103771,30 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateIpFilterV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers409 = &headers + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdateIpFilterV1Response429Headers + var headers DeleteNotificationTemplateByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97019,9 +103809,30 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateIpFilterV1Response500Headers + var headers DeleteNotificationTemplateByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97056,50 +103867,64 @@ func ParseUpdateIpFilterV1Response(rsp *http.Response) (*UpdateIpFilterV1Respons return response, nil } -// ParseGetNotificationChannelsResponse parses an HTTP response from a GetNotificationChannelsWithResponse call -func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationChannelsResponse, error) { +// ParseGetNotificationTemplateByIdV1Response parses an HTTP response from a GetNotificationTemplateByIdV1WithResponse call +func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotificationTemplateByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNotificationChannelsResponse{ + response := &GetNotificationTemplateByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetNotificationChannelsPaginatedResponseV1 + var dest NotificationTemplateResponseV1 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 ForbiddenV2 + 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 NotFoundV2 + 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -97109,7 +103934,7 @@ func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationC switch { case rsp.StatusCode == 200: - var headers GetNotificationChannelsResponse200Headers + var headers GetNotificationTemplateByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97117,9 +103942,30 @@ func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationC } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetNotificationChannelsResponse400Headers + var headers GetNotificationTemplateByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97127,9 +103973,30 @@ func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationC } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetNotificationChannelsResponse401Headers + var headers GetNotificationTemplateByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97137,9 +104004,92 @@ func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationC } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetNotificationTemplateByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetNotificationTemplateByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetNotificationChannelsResponse429Headers + var headers GetNotificationTemplateByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97154,9 +104104,30 @@ func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationC } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetNotificationChannelsResponse500Headers + var headers GetNotificationTemplateByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97191,71 +104162,78 @@ func ParseGetNotificationChannelsResponse(rsp *http.Response) (*GetNotificationC return response, nil } -// ParseCreateNotificationChannelResponse parses an HTTP response from a CreateNotificationChannelWithResponse call -func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotificationChannelResponse, error) { +// ParseUpdateNotificationTemplateByIdV1Response parses an HTTP response from a UpdateNotificationTemplateByIdV1WithResponse call +func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateNotificationTemplateByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateNotificationChannelResponse{ + response := &UpdateNotificationTemplateByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest NotificationChannelResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NotificationTemplateResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFoundV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest ConflictV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + var dest UnsupportedMediaTypeV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON415 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + var dest UnprocessableEntityV2 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -97264,8 +104242,8 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } switch { - case rsp.StatusCode == 201: - var headers CreateNotificationChannelResponse201Headers + case rsp.StatusCode == 200: + var headers UpdateNotificationTemplateByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97273,9 +104251,30 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateNotificationChannelResponse400Headers + var headers UpdateNotificationTemplateByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97283,9 +104282,30 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateNotificationChannelResponse401Headers + var headers UpdateNotificationTemplateByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97293,9 +104313,30 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateNotificationChannelResponse403Headers + case rsp.StatusCode == 404: + var headers UpdateNotificationTemplateByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97303,19 +104344,30 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 415: - var headers CreateNotificationChannelResponse415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateNotificationChannelResponse422Headers + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateNotificationTemplateByIdV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97323,26 +104375,30 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers CreateNotificationChannelResponse429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers CreateNotificationChannelResponse500Headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateNotificationTemplateByIdV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97371,69 +104427,9 @@ func ParseCreateNotificationChannelResponse(rsp *http.Response) (*CreateNotifica } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseDeleteNotificationChannelByIdResponse parses an HTTP response from a DeleteNotificationChannelByIdWithResponse call -func ParseDeleteNotificationChannelByIdResponse(rsp *http.Response) (*DeleteNotificationChannelByIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteNotificationChannelByIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case rsp.StatusCode == 204: - break // No content-type - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 Unauthorized - 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 == 404: - var dest NotFound - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 204: - var headers DeleteNotificationChannelByIdResponse204Headers + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateNotificationTemplateByIdV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97441,39 +104437,30 @@ func ParseDeleteNotificationChannelByIdResponse(rsp *http.Response) (*DeleteNoti } headers.XRateLimitLimit = &value } - response.Headers204 = &headers - case rsp.StatusCode == 400: - var headers DeleteNotificationChannelByIdResponse400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers DeleteNotificationChannelByIdResponse401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers DeleteNotificationChannelByIdResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers404 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteNotificationChannelByIdResponse429Headers + var headers UpdateNotificationTemplateByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97488,9 +104475,30 @@ func ParseDeleteNotificationChannelByIdResponse(rsp *http.Response) (*DeleteNoti } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteNotificationChannelByIdResponse500Headers + var headers UpdateNotificationTemplateByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97525,22 +104533,22 @@ func ParseDeleteNotificationChannelByIdResponse(rsp *http.Response) (*DeleteNoti return response, nil } -// ParseGetNotificationChannelByIdResponse parses an HTTP response from a GetNotificationChannelByIdWithResponse call -func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificationChannelByIdResponse, error) { +// ParseGetPermissionsV1Response parses an HTTP response from a GetPermissionsV1WithResponse call +func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNotificationChannelByIdResponse{ + response := &GetPermissionsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationChannelResponseV1 + var dest GetPermissionsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -97560,20 +104568,6 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -97592,7 +104586,7 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati switch { case rsp.StatusCode == 200: - var headers GetNotificationChannelByIdResponse200Headers + var headers GetPermissionsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97602,7 +104596,7 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetNotificationChannelByIdResponse400Headers + var headers GetPermissionsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97612,7 +104606,7 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetNotificationChannelByIdResponse401Headers + var headers GetPermissionsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97621,28 +104615,8 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetNotificationChannelByIdResponse403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetNotificationChannelByIdResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetNotificationChannelByIdResponse429Headers + var headers GetPermissionsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97659,7 +104633,7 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetNotificationChannelByIdResponse500Headers + var headers GetPermissionsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97694,22 +104668,22 @@ func ParseGetNotificationChannelByIdResponse(rsp *http.Response) (*GetNotificati return response, nil } -// ParseUpdateNotificationChannelByIdResponse parses an HTTP response from a UpdateNotificationChannelByIdWithResponse call -func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNotificationChannelByIdResponse, error) { +// ParseGetPlatformAuditEventsV1Response parses an HTTP response from a GetPlatformAuditEventsV1WithResponse call +func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAuditEventsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateNotificationChannelByIdResponse{ + response := &GetPlatformAuditEventsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationChannelResponseV1 + var dest ListAuditEventsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -97729,34 +104703,6 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -97775,7 +104721,7 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti switch { case rsp.StatusCode == 200: - var headers UpdateNotificationChannelByIdResponse200Headers + var headers GetPlatformAuditEventsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97785,7 +104731,7 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateNotificationChannelByIdResponse400Headers + var headers GetPlatformAuditEventsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97795,7 +104741,7 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateNotificationChannelByIdResponse401Headers + var headers GetPlatformAuditEventsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97804,48 +104750,8 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateNotificationChannelByIdResponse404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateNotificationChannelByIdResponse409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdateNotificationChannelByIdResponse415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateNotificationChannelByIdResponse422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateNotificationChannelByIdResponse429Headers + var headers GetPlatformAuditEventsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97862,7 +104768,7 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateNotificationChannelByIdResponse500Headers + var headers GetPlatformAuditEventsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97897,50 +104803,50 @@ func ParseUpdateNotificationChannelByIdResponse(rsp *http.Response) (*UpdateNoti return response, nil } -// ParseGetNotificationTemplatesV1Response parses an HTTP response from a GetNotificationTemplatesV1WithResponse call -func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificationTemplatesV1Response, error) { +// ParseGetRolesV1Response parses an HTTP response from a GetRolesV1WithResponse call +func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNotificationTemplatesV1Response{ + response := &GetRolesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetNotificationTemplatesPaginatedResponseV1 + var dest GetRolesPaginatedResponseV1 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 BadRequestV2 + var dest BadRequest 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 UnauthorizedV2 + var dest Unauthorized 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 == 429: - var dest TooManyRequestsV2 + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerErrorV2 + var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -97950,7 +104856,7 @@ func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificati switch { case rsp.StatusCode == 200: - var headers GetNotificationTemplatesV1Response200Headers + var headers GetRolesV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97958,30 +104864,9 @@ func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificati } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetNotificationTemplatesV1Response400Headers + var headers GetRolesV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97989,30 +104874,9 @@ func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificati } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetNotificationTemplatesV1Response401Headers + var headers GetRolesV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98020,30 +104884,9 @@ func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificati } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers401 = &headers case rsp.StatusCode == 429: - var headers GetNotificationTemplatesV1Response429Headers + var headers GetRolesV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98058,30 +104901,9 @@ func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificati } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetNotificationTemplatesV1Response500Headers + var headers GetRolesV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98116,78 +104938,78 @@ func ParseGetNotificationTemplatesV1Response(rsp *http.Response) (*GetNotificati return response, nil } -// ParseCreateNotificationTemplateV1Response parses an HTTP response from a CreateNotificationTemplateV1WithResponse call -func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotificationTemplateV1Response, error) { +// ParseCreateRoleV1Response parses an HTTP response from a CreateRoleV1WithResponse call +func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateNotificationTemplateV1Response{ + response := &CreateRoleV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest NotificationTemplateResponseV1 + var dest RoleResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequestV2 + var dest BadRequest 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 UnauthorizedV2 + var dest Unauthorized 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 ForbiddenV2 + var dest Forbidden 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 == 409: - var dest ConflictV2 + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaTypeV2 + var dest UnsupportedMediaType if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON415 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntityV2 + var dest UnprocessableEntity 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 == 429: - var dest TooManyRequestsV2 + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerErrorV2 + var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -98195,109 +105017,9 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif } - switch { - case rsp.StatusCode == 201: - var headers CreateNotificationTemplateV1Response201Headers - if values := rsp.Header.Values("Location"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Location", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { - return nil, err - } - headers.Location = &value - } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } - response.Headers201 = &headers - case rsp.StatusCode == 400: - var headers CreateNotificationTemplateV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers CreateNotificationTemplateV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateNotificationTemplateV1Response403Headers + switch { + case rsp.StatusCode == 201: + var headers CreateRoleV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98305,30 +105027,39 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers201 = &headers + case rsp.StatusCode == 400: + var headers CreateRoleV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers CreateRoleV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitReset = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers CreateRoleV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers CreateNotificationTemplateV1Response409Headers + var headers CreateRoleV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98336,30 +105067,9 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers409 = &headers case rsp.StatusCode == 415: - var headers CreateNotificationTemplateV1Response415Headers + var headers CreateRoleV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98367,30 +105077,9 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateNotificationTemplateV1Response422Headers + var headers CreateRoleV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98398,30 +105087,9 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateNotificationTemplateV1Response429Headers + var headers CreateRoleV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98436,30 +105104,9 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateNotificationTemplateV1Response500Headers + var headers CreateRoleV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98494,15 +105141,15 @@ func ParseCreateNotificationTemplateV1Response(rsp *http.Response) (*CreateNotif return response, nil } -// ParseDeleteNotificationTemplateByIdV1Response parses an HTTP response from a DeleteNotificationTemplateByIdV1WithResponse call -func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteNotificationTemplateByIdV1Response, error) { +// ParseDeleteRoleByIdV1Response parses an HTTP response from a DeleteRoleByIdV1WithResponse call +func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteNotificationTemplateByIdV1Response{ + response := &DeleteRoleByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -98512,35 +105159,49 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequestV2 + var dest BadRequest 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 UnauthorizedV2 + var dest Unauthorized 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 Forbidden + 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 NotFoundV2 + var dest NotFound 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 UnprocessableEntity + 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 == 429: - var dest TooManyRequestsV2 + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerErrorV2 + var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -98550,7 +105211,7 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN switch { case rsp.StatusCode == 204: - var headers DeleteNotificationTemplateByIdV1Response204Headers + var headers DeleteRoleByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98558,30 +105219,39 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers204 = &headers + case rsp.StatusCode == 400: + var headers DeleteRoleByIdV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers DeleteRoleByIdV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitReset = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteRoleByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } - response.Headers204 = &headers - case rsp.StatusCode == 400: - var headers DeleteNotificationTemplateByIdV1Response400Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteRoleByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98589,30 +105259,36 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers DeleteRoleByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers422 = &headers + case rsp.StatusCode == 429: + var headers DeleteRoleByIdV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitReset = &value + headers.RetryAfter = &value } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers DeleteNotificationTemplateByIdV1Response401Headers + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers DeleteRoleByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98641,9 +105317,73 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN } headers.XRequestId = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers DeleteNotificationTemplateByIdV1Response404Headers + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetRoleByIdV1Response parses an HTTP response from a GetRoleByIdV1WithResponse call +func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRoleByIdV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest RoleResponseV1 + 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 BadRequest + 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 Unauthorized + 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 == 404: + var dest NotFound + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers GetRoleByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98651,30 +105391,39 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetRoleByIdV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetRoleByIdV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitReset = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers GetRoleByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteNotificationTemplateByIdV1Response429Headers + var headers GetRoleByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98689,30 +105438,9 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteNotificationTemplateByIdV1Response500Headers + var headers GetRoleByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98747,64 +105475,85 @@ func ParseDeleteNotificationTemplateByIdV1Response(rsp *http.Response) (*DeleteN return response, nil } -// ParseGetNotificationTemplateByIdV1Response parses an HTTP response from a GetNotificationTemplateByIdV1WithResponse call -func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotificationTemplateByIdV1Response, error) { +// ParseUpdateRoleByIdV1Response parses an HTTP response from a UpdateRoleByIdV1WithResponse call +func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNotificationTemplateByIdV1Response{ + response := &UpdateRoleByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationTemplateResponseV1 + var dest RoleResponseV1 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 BadRequestV2 + var dest BadRequest 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 UnauthorizedV2 + var dest Unauthorized 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 ForbiddenV2 + var dest Forbidden 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 NotFoundV2 + var dest NotFound 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 == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: - var dest TooManyRequestsV2 + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerErrorV2 + var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -98814,7 +105563,7 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific switch { case rsp.StatusCode == 200: - var headers GetNotificationTemplateByIdV1Response200Headers + var headers UpdateRoleByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98822,30 +105571,9 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetNotificationTemplateByIdV1Response400Headers + var headers UpdateRoleByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98853,30 +105581,9 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetNotificationTemplateByIdV1Response401Headers + var headers UpdateRoleByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98884,30 +105591,9 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetNotificationTemplateByIdV1Response403Headers + var headers UpdateRoleByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98915,30 +105601,9 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetNotificationTemplateByIdV1Response404Headers + var headers UpdateRoleByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98946,37 +105611,19 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetNotificationTemplateByIdV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + case rsp.StatusCode == 409: + var headers UpdateRoleByIdV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitLimit = &value } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateRoleByIdV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -98984,30 +105631,36 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateRoleByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers422 = &headers + case rsp.StatusCode == 429: + var headers UpdateRoleByIdV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitReset = &value + headers.RetryAfter = &value } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetNotificationTemplateByIdV1Response500Headers + var headers UpdateRoleByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99042,78 +105695,50 @@ func ParseGetNotificationTemplateByIdV1Response(rsp *http.Response) (*GetNotific return response, nil } -// ParseUpdateNotificationTemplateByIdV1Response parses an HTTP response from a UpdateNotificationTemplateByIdV1WithResponse call -func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateNotificationTemplateByIdV1Response, error) { +// ParseGetGlobalServiceAccountsV1Response parses an HTTP response from a GetGlobalServiceAccountsV1WithResponse call +func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServiceAccountsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateNotificationTemplateByIdV1Response{ + response := &GetGlobalServiceAccountsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest NotificationTemplateResponseV1 + var dest GetServiceAccountsPaginatedResponseV1 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 BadRequestV2 + var dest BadRequest 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 UnauthorizedV2 + var dest Unauthorized 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 == 404: - var dest NotFoundV2 - 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 == 409: - var dest ConflictV2 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaTypeV2 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntityV2 - 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 == 429: - var dest TooManyRequestsV2 + var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerErrorV2 + var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -99123,7 +105748,7 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN switch { case rsp.StatusCode == 200: - var headers UpdateNotificationTemplateByIdV1Response200Headers + var headers GetGlobalServiceAccountsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99131,30 +105756,9 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateNotificationTemplateByIdV1Response400Headers + var headers GetGlobalServiceAccountsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99162,30 +105766,9 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateNotificationTemplateByIdV1Response401Headers + var headers GetGlobalServiceAccountsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99193,30 +105776,26 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers401 = &headers + case rsp.StatusCode == 429: + var headers GetGlobalServiceAccountsV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.RetryAfter = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers UpdateNotificationTemplateByIdV1Response404Headers + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers GetGlobalServiceAccountsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99245,9 +105824,87 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRequestId = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateNotificationTemplateByIdV1Response409Headers + response.Headers500 = &headers + } + + return response, nil +} + +// ParseCreateGlobalServiceAccountV1Response parses an HTTP response from a CreateGlobalServiceAccountV1WithResponse call +func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGlobalServiceAccountV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateGlobalServiceAccountV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ServiceAccountWithKeyResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized + 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 == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 201: + var headers CreateGlobalServiceAccountV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99255,30 +105912,39 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + response.Headers201 = &headers + case rsp.StatusCode == 400: + var headers CreateGlobalServiceAccountV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitRemaining = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers CreateGlobalServiceAccountV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitReset = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + response.Headers401 = &headers + case rsp.StatusCode == 409: + var headers CreateGlobalServiceAccountV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRequestId = &value + headers.XRateLimitLimit = &value } response.Headers409 = &headers case rsp.StatusCode == 415: - var headers UpdateNotificationTemplateByIdV1Response415Headers + var headers CreateGlobalServiceAccountV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99286,30 +105952,9 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers UpdateNotificationTemplateByIdV1Response422Headers + var headers CreateGlobalServiceAccountV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99317,30 +105962,9 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateNotificationTemplateByIdV1Response429Headers + var headers CreateGlobalServiceAccountV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99355,30 +105979,9 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateNotificationTemplateByIdV1Response500Headers + var headers CreateGlobalServiceAccountV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99413,26 +106016,22 @@ func ParseUpdateNotificationTemplateByIdV1Response(rsp *http.Response) (*UpdateN return response, nil } -// ParseGetPermissionsV1Response parses an HTTP response from a GetPermissionsV1WithResponse call -func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Response, error) { +// ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse call +func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*DeleteGlobalServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPermissionsV1Response{ + response := &DeleteGlobalServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetPermissionsResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -99448,6 +106047,20 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -99465,8 +106078,8 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons } switch { - case rsp.StatusCode == 200: - var headers GetPermissionsV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99474,9 +106087,9 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetPermissionsV1Response400Headers + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99486,7 +106099,7 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPermissionsV1Response401Headers + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99495,8 +106108,28 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetPermissionsV1Response429Headers + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99513,7 +106146,7 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPermissionsV1Response500Headers + var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99548,22 +106181,22 @@ func ParseGetPermissionsV1Response(rsp *http.Response) (*GetPermissionsV1Respons return response, nil } -// ParseGetPlatformAuditEventsV1Response parses an HTTP response from a GetPlatformAuditEventsV1WithResponse call -func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAuditEventsV1Response, error) { +// ParseGetGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a GetGlobalServiceAccountsNotificationSettingsV1WithResponse call +func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*GetGlobalServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetPlatformAuditEventsV1Response{ + response := &GetGlobalServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListAuditEventsResponse + var dest ServiceAccountsNotificationSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -99583,6 +106216,13 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -99601,7 +106241,7 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi switch { case rsp.StatusCode == 200: - var headers GetPlatformAuditEventsV1Response200Headers + var headers GetGlobalServiceAccountsNotificationSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99611,7 +106251,7 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetPlatformAuditEventsV1Response400Headers + var headers GetGlobalServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99621,7 +106261,7 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPlatformAuditEventsV1Response401Headers + var headers GetGlobalServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99630,8 +106270,18 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers GetGlobalServiceAccountsNotificationSettingsV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetPlatformAuditEventsV1Response429Headers + var headers GetGlobalServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99648,7 +106298,7 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPlatformAuditEventsV1Response500Headers + var headers GetGlobalServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99683,26 +106333,26 @@ func ParseGetPlatformAuditEventsV1Response(rsp *http.Response) (*GetPlatformAudi return response, nil } -// ParseGetRolesV1Response parses an HTTP response from a GetRolesV1WithResponse call -func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { +// ParseCreateGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a CreateGlobalServiceAccountsNotificationSettingsV1WithResponse call +func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*CreateGlobalServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetRolesV1Response{ + response := &CreateGlobalServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetRolesPaginatedResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ServiceAccountsNotificationSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -99718,6 +106368,27 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -99735,8 +106406,8 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { } switch { - case rsp.StatusCode == 200: - var headers GetRolesV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99744,9 +106415,9 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetRolesV1Response400Headers + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99756,7 +106427,7 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetRolesV1Response401Headers + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99765,8 +106436,38 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetRolesV1Response429Headers + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99783,7 +106484,7 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetRolesV1Response500Headers + var headers CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99818,26 +106519,26 @@ func ParseGetRolesV1Response(rsp *http.Response) (*GetRolesV1Response, error) { return response, nil } -// ParseCreateRoleV1Response parses an HTTP response from a CreateRoleV1WithResponse call -func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error) { +// ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse call +func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*UpdateGlobalServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateRoleV1Response{ + response := &UpdateGlobalServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest RoleResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ServiceAccountsNotificationSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -99860,12 +106561,12 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -99874,13 +106575,6 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } response.JSON415 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -99898,8 +106592,8 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } switch { - case rsp.StatusCode == 201: - var headers CreateRoleV1Response201Headers + case rsp.StatusCode == 200: + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99907,9 +106601,9 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateRoleV1Response400Headers + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99919,7 +106613,7 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateRoleV1Response401Headers + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99929,7 +106623,7 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateRoleV1Response403Headers + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99938,8 +106632,8 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers CreateRoleV1Response409Headers + case rsp.StatusCode == 404: + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99947,9 +106641,9 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 415: - var headers CreateRoleV1Response415Headers + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99958,18 +106652,8 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error headers.XRateLimitLimit = &value } response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateRoleV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateRoleV1Response429Headers + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -99986,7 +106670,7 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateRoleV1Response500Headers + var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100021,15 +106705,15 @@ func ParseCreateRoleV1Response(rsp *http.Response) (*CreateRoleV1Response, error return response, nil } -// ParseDeleteRoleByIdV1Response parses an HTTP response from a DeleteRoleByIdV1WithResponse call -func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Response, error) { +// ParseDeleteGlobalServiceAccountByIdV1Response parses an HTTP response from a DeleteGlobalServiceAccountByIdV1WithResponse call +func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteGlobalServiceAccountByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteRoleByIdV1Response{ + response := &DeleteGlobalServiceAccountByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -100091,7 +106775,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons switch { case rsp.StatusCode == 204: - var headers DeleteRoleByIdV1Response204Headers + var headers DeleteGlobalServiceAccountByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100101,7 +106785,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers204 = &headers case rsp.StatusCode == 400: - var headers DeleteRoleByIdV1Response400Headers + var headers DeleteGlobalServiceAccountByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100111,7 +106795,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteRoleByIdV1Response401Headers + var headers DeleteGlobalServiceAccountByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100121,7 +106805,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteRoleByIdV1Response403Headers + var headers DeleteGlobalServiceAccountByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100131,7 +106815,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteRoleByIdV1Response404Headers + var headers DeleteGlobalServiceAccountByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100141,7 +106825,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers404 = &headers case rsp.StatusCode == 422: - var headers DeleteRoleByIdV1Response422Headers + var headers DeleteGlobalServiceAccountByIdV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100151,7 +106835,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteRoleByIdV1Response429Headers + var headers DeleteGlobalServiceAccountByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100168,7 +106852,7 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteRoleByIdV1Response500Headers + var headers DeleteGlobalServiceAccountByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100203,22 +106887,22 @@ func ParseDeleteRoleByIdV1Response(rsp *http.Response) (*DeleteRoleByIdV1Respons return response, nil } -// ParseGetRoleByIdV1Response parses an HTTP response from a GetRoleByIdV1WithResponse call -func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, error) { +// ParseGetGlobalServiceAccountByIdV1Response parses an HTTP response from a GetGlobalServiceAccountByIdV1WithResponse call +func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalServiceAccountByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetRoleByIdV1Response{ + response := &GetGlobalServiceAccountByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RoleResponseV1 + var dest ServiceAccountResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -100263,7 +106947,7 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err switch { case rsp.StatusCode == 200: - var headers GetRoleByIdV1Response200Headers + var headers GetGlobalServiceAccountByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100273,7 +106957,7 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetRoleByIdV1Response400Headers + var headers GetGlobalServiceAccountByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100283,7 +106967,7 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetRoleByIdV1Response401Headers + var headers GetGlobalServiceAccountByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100293,7 +106977,7 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetRoleByIdV1Response404Headers + var headers GetGlobalServiceAccountByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100303,7 +106987,7 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetRoleByIdV1Response429Headers + var headers GetGlobalServiceAccountByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100320,7 +107004,7 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetRoleByIdV1Response500Headers + var headers GetGlobalServiceAccountByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100355,22 +107039,22 @@ func ParseGetRoleByIdV1Response(rsp *http.Response) (*GetRoleByIdV1Response, err return response, nil } -// ParseUpdateRoleByIdV1Response parses an HTTP response from a UpdateRoleByIdV1WithResponse call -func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Response, error) { +// ParseGetSsoSettingsV1Response parses an HTTP response from a GetSsoSettingsV1WithResponse call +func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateRoleByIdV1Response{ + response := &GetSsoSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RoleResponseV1 + var dest AllSsoSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -100397,20 +107081,158 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers GetSsoSettingsV1Response200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetSsoSettingsV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetSsoSettingsV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetSsoSettingsV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 429: + var headers GetSsoSettingsV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers GetSsoSettingsV1Response500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseCreateSsoSettingsV1Response parses an HTTP response from a CreateSsoSettingsV1WithResponse call +func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSsoSettingsV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest SsoSettingsResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized + 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 Forbidden + 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 == 415: var dest UnsupportedMediaType if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -100442,8 +107264,8 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } switch { - case rsp.StatusCode == 200: - var headers UpdateRoleByIdV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateSsoSettingsV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100451,9 +107273,9 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdateRoleByIdV1Response400Headers + var headers CreateSsoSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100463,7 +107285,7 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateRoleByIdV1Response401Headers + var headers CreateSsoSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100473,7 +107295,7 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateRoleByIdV1Response403Headers + var headers CreateSsoSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100482,28 +107304,8 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers UpdateRoleByIdV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateRoleByIdV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers case rsp.StatusCode == 415: - var headers UpdateRoleByIdV1Response415Headers + var headers CreateSsoSettingsV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100513,7 +107315,7 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers UpdateRoleByIdV1Response422Headers + var headers CreateSsoSettingsV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100523,7 +107325,7 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateRoleByIdV1Response429Headers + var headers CreateSsoSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100540,7 +107342,7 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateRoleByIdV1Response500Headers + var headers CreateSsoSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100575,26 +107377,22 @@ func ParseUpdateRoleByIdV1Response(rsp *http.Response) (*UpdateRoleByIdV1Respons return response, nil } -// ParseGetGlobalServiceAccountsV1Response parses an HTTP response from a GetGlobalServiceAccountsV1WithResponse call -func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServiceAccountsV1Response, error) { +// ParseDeleteSsoSettingsByIdV1Response parses an HTTP response from a DeleteSsoSettingsByIdV1WithResponse call +func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSettingsByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGlobalServiceAccountsV1Response{ + response := &DeleteSsoSettingsByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetServiceAccountsPaginatedResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -100610,6 +107408,20 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -100627,8 +107439,8 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ } switch { - case rsp.StatusCode == 200: - var headers GetGlobalServiceAccountsV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteSsoSettingsByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100636,9 +107448,9 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetGlobalServiceAccountsV1Response400Headers + var headers DeleteSsoSettingsByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100648,7 +107460,7 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetGlobalServiceAccountsV1Response401Headers + var headers DeleteSsoSettingsByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100657,8 +107469,28 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteSsoSettingsByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteSsoSettingsByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetGlobalServiceAccountsV1Response429Headers + var headers DeleteSsoSettingsByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100675,7 +107507,7 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGlobalServiceAccountsV1Response500Headers + var headers DeleteSsoSettingsByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100710,26 +107542,26 @@ func ParseGetGlobalServiceAccountsV1Response(rsp *http.Response) (*GetGlobalServ return response, nil } -// ParseCreateGlobalServiceAccountV1Response parses an HTTP response from a CreateGlobalServiceAccountV1WithResponse call -func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGlobalServiceAccountV1Response, error) { +// ParseGetSsoSettingsByIdV1Response parses an HTTP response from a GetSsoSettingsByIdV1WithResponse call +func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateGlobalServiceAccountV1Response{ + response := &GetSsoSettingsByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ServiceAccountWithKeyResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SsoSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -100745,26 +107577,19 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -100783,8 +107608,8 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } switch { - case rsp.StatusCode == 201: - var headers CreateGlobalServiceAccountV1Response201Headers + case rsp.StatusCode == 200: + var headers GetSsoSettingsByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100792,9 +107617,9 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateGlobalServiceAccountV1Response400Headers + var headers GetSsoSettingsByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100804,7 +107629,7 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateGlobalServiceAccountV1Response401Headers + var headers GetSsoSettingsByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100813,18 +107638,8 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 409: - var headers CreateGlobalServiceAccountV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers CreateGlobalServiceAccountV1Response415Headers + case rsp.StatusCode == 403: + var headers GetSsoSettingsByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100832,9 +107647,9 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateGlobalServiceAccountV1Response422Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetSsoSettingsByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100842,9 +107657,9 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateGlobalServiceAccountV1Response429Headers + var headers GetSsoSettingsByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100861,7 +107676,7 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateGlobalServiceAccountV1Response500Headers + var headers GetSsoSettingsByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100896,22 +107711,26 @@ func ParseCreateGlobalServiceAccountV1Response(rsp *http.Response) (*CreateGloba return response, nil } -// ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse call -func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*DeleteGlobalServiceAccountsNotificationSettingsV1Response, error) { +// ParseUpdateSsoSettingsByIdV1Response parses an HTTP response from a UpdateSsoSettingsByIdV1WithResponse call +func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSettingsByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteGlobalServiceAccountsNotificationSettingsV1Response{ + response := &UpdateSsoSettingsByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SsoSettingsResponseV1 + 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 BadRequest @@ -100941,6 +107760,13 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -100958,8 +107784,8 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } switch { - case rsp.StatusCode == 204: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers + case rsp.StatusCode == 200: + var headers UpdateSsoSettingsByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100967,9 +107793,9 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers + var headers UpdateSsoSettingsByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100979,7 +107805,7 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers + var headers UpdateSsoSettingsByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100989,7 +107815,7 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers + var headers UpdateSsoSettingsByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -100999,7 +107825,7 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers + var headers UpdateSsoSettingsByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101008,8 +107834,18 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers UpdateSsoSettingsByIdV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers case rsp.StatusCode == 429: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers + var headers UpdateSsoSettingsByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101026,7 +107862,7 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers + var headers UpdateSsoSettingsByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101061,22 +107897,22 @@ func ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re return response, nil } -// ParseGetGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a GetGlobalServiceAccountsNotificationSettingsV1WithResponse call -func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*GetGlobalServiceAccountsNotificationSettingsV1Response, error) { +// ParseGetSystemSsoSettingsV1Response parses an HTTP response from a GetSystemSsoSettingsV1WithResponse call +func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGlobalServiceAccountsNotificationSettingsV1Response{ + response := &GetSystemSsoSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceAccountsNotificationSettingsResponseV1 + var dest AllSsoSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -101096,12 +107932,12 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -101121,7 +107957,7 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo switch { case rsp.StatusCode == 200: - var headers GetGlobalServiceAccountsNotificationSettingsV1Response200Headers + var headers GetSystemSsoSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101131,7 +107967,7 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetGlobalServiceAccountsNotificationSettingsV1Response400Headers + var headers GetSystemSsoSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101141,7 +107977,7 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetGlobalServiceAccountsNotificationSettingsV1Response401Headers + var headers GetSystemSsoSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101150,8 +107986,8 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetGlobalServiceAccountsNotificationSettingsV1Response404Headers + case rsp.StatusCode == 403: + var headers GetSystemSsoSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101159,9 +107995,9 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetGlobalServiceAccountsNotificationSettingsV1Response429Headers + var headers GetSystemSsoSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101178,7 +108014,7 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGlobalServiceAccountsNotificationSettingsV1Response500Headers + var headers GetSystemSsoSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101213,22 +108049,22 @@ func ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Respo return response, nil } -// ParseCreateGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a CreateGlobalServiceAccountsNotificationSettingsV1WithResponse call -func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*CreateGlobalServiceAccountsNotificationSettingsV1Response, error) { +// ParseCreateSystemSsoSettingsV1Response parses an HTTP response from a CreateSystemSsoSettingsV1WithResponse call +func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSsoSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateGlobalServiceAccountsNotificationSettingsV1Response{ + response := &CreateSystemSsoSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ServiceAccountsNotificationSettingsResponseV1 + var dest SsoSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -101248,12 +108084,12 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -101287,7 +108123,7 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re switch { case rsp.StatusCode == 201: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers + var headers CreateSystemSsoSettingsV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101297,7 +108133,7 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers + var headers CreateSystemSsoSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101307,7 +108143,7 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers + var headers CreateSystemSsoSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101316,8 +108152,8 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers + case rsp.StatusCode == 403: + var headers CreateSystemSsoSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101325,9 +108161,9 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 415: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers + var headers CreateSystemSsoSettingsV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101337,7 +108173,7 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers + var headers CreateSystemSsoSettingsV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101347,7 +108183,7 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers + var headers CreateSystemSsoSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101364,7 +108200,7 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers + var headers CreateSystemSsoSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101399,26 +108235,22 @@ func ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re return response, nil } -// ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response parses an HTTP response from a UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse call -func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*UpdateGlobalServiceAccountsNotificationSettingsV1Response, error) { +// ParseDeleteSystemSsoSettingsByIdV1Response parses an HTTP response from a DeleteSystemSsoSettingsByIdV1WithResponse call +func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSystemSsoSettingsByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateGlobalServiceAccountsNotificationSettingsV1Response{ + response := &DeleteSystemSsoSettingsByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceAccountsNotificationSettingsResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -101448,13 +108280,6 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -101472,8 +108297,8 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } switch { - case rsp.StatusCode == 200: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteSystemSsoSettingsByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101481,9 +108306,9 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers + var headers DeleteSystemSsoSettingsByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101493,7 +108318,7 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers + var headers DeleteSystemSsoSettingsByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101503,7 +108328,7 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers + var headers DeleteSystemSsoSettingsByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101513,7 +108338,7 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers + var headers DeleteSystemSsoSettingsByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101522,18 +108347,8 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers case rsp.StatusCode == 429: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers + var headers DeleteSystemSsoSettingsByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101550,7 +108365,7 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers + var headers DeleteSystemSsoSettingsByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101585,22 +108400,26 @@ func ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp *http.Re return response, nil } -// ParseDeleteGlobalServiceAccountByIdV1Response parses an HTTP response from a DeleteGlobalServiceAccountByIdV1WithResponse call -func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteGlobalServiceAccountByIdV1Response, error) { +// ParseGetSystemSsoSettingsByIdV1Response parses an HTTP response from a GetSystemSsoSettingsByIdV1WithResponse call +func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoSettingsByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteGlobalServiceAccountByIdV1Response{ + response := &GetSystemSsoSettingsByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SsoSettingsResponseV1 + 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 BadRequest @@ -101630,13 +108449,6 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -101654,8 +108466,8 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } switch { - case rsp.StatusCode == 204: - var headers DeleteGlobalServiceAccountByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetSystemSsoSettingsByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101663,9 +108475,9 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteGlobalServiceAccountByIdV1Response400Headers + var headers GetSystemSsoSettingsByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101675,7 +108487,7 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteGlobalServiceAccountByIdV1Response401Headers + var headers GetSystemSsoSettingsByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101685,7 +108497,7 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteGlobalServiceAccountByIdV1Response403Headers + var headers GetSystemSsoSettingsByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101695,7 +108507,7 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteGlobalServiceAccountByIdV1Response404Headers + var headers GetSystemSsoSettingsByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101704,18 +108516,8 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeleteGlobalServiceAccountByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteGlobalServiceAccountByIdV1Response429Headers + var headers GetSystemSsoSettingsByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101732,7 +108534,7 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteGlobalServiceAccountByIdV1Response500Headers + var headers GetSystemSsoSettingsByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101767,22 +108569,22 @@ func ParseDeleteGlobalServiceAccountByIdV1Response(rsp *http.Response) (*DeleteG return response, nil } -// ParseGetGlobalServiceAccountByIdV1Response parses an HTTP response from a GetGlobalServiceAccountByIdV1WithResponse call -func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalServiceAccountByIdV1Response, error) { +// ParseUpdateSystemSsoSettingsByIdV1Response parses an HTTP response from a UpdateSystemSsoSettingsByIdV1WithResponse call +func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSystemSsoSettingsByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGlobalServiceAccountByIdV1Response{ + response := &UpdateSystemSsoSettingsByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceAccountResponseV1 + var dest SsoSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -101802,6 +108604,13 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -101809,6 +108618,13 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -101827,7 +108643,7 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS switch { case rsp.StatusCode == 200: - var headers GetGlobalServiceAccountByIdV1Response200Headers + var headers UpdateSystemSsoSettingsByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101837,7 +108653,7 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetGlobalServiceAccountByIdV1Response400Headers + var headers UpdateSystemSsoSettingsByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101847,7 +108663,7 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetGlobalServiceAccountByIdV1Response401Headers + var headers UpdateSystemSsoSettingsByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101856,8 +108672,18 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers UpdateSystemSsoSettingsByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetGlobalServiceAccountByIdV1Response404Headers + var headers UpdateSystemSsoSettingsByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101866,8 +108692,18 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers UpdateSystemSsoSettingsByIdV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers case rsp.StatusCode == 429: - var headers GetGlobalServiceAccountByIdV1Response429Headers + var headers UpdateSystemSsoSettingsByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101884,7 +108720,7 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetGlobalServiceAccountByIdV1Response500Headers + var headers UpdateSystemSsoSettingsByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101919,22 +108755,22 @@ func ParseGetGlobalServiceAccountByIdV1Response(rsp *http.Response) (*GetGlobalS return response, nil } -// ParseGetSsoSettingsV1Response parses an HTTP response from a GetSsoSettingsV1WithResponse call -func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Response, error) { +// ParseGetTeamsV1Response parses an HTTP response from a GetTeamsV1WithResponse call +func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSsoSettingsV1Response{ + response := &GetTeamsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AllSsoSettingsResponseV1 + var dest GetTeamsPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -101954,13 +108790,6 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -101979,7 +108808,7 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons switch { case rsp.StatusCode == 200: - var headers GetSsoSettingsV1Response200Headers + var headers GetTeamsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101989,7 +108818,7 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSsoSettingsV1Response400Headers + var headers GetTeamsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -101999,7 +108828,7 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSsoSettingsV1Response401Headers + var headers GetTeamsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102008,18 +108837,8 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetSsoSettingsV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetSsoSettingsV1Response429Headers + var headers GetTeamsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102036,7 +108855,7 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSsoSettingsV1Response500Headers + var headers GetTeamsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102071,22 +108890,22 @@ func ParseGetSsoSettingsV1Response(rsp *http.Response) (*GetSsoSettingsV1Respons return response, nil } -// ParseCreateSsoSettingsV1Response parses an HTTP response from a CreateSsoSettingsV1WithResponse call -func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1Response, error) { +// ParseCreateTeamV1Response parses an HTTP response from a CreateTeamV1WithResponse call +func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSsoSettingsV1Response{ + response := &CreateTeamV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SsoSettingsResponseV1 + var dest TeamResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -102106,12 +108925,12 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -102145,7 +108964,7 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R switch { case rsp.StatusCode == 201: - var headers CreateSsoSettingsV1Response201Headers + var headers CreateTeamV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102155,7 +108974,7 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateSsoSettingsV1Response400Headers + var headers CreateTeamV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102165,7 +108984,7 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateSsoSettingsV1Response401Headers + var headers CreateTeamV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102174,8 +108993,8 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateSsoSettingsV1Response403Headers + case rsp.StatusCode == 409: + var headers CreateTeamV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102183,9 +109002,9 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers409 = &headers case rsp.StatusCode == 415: - var headers CreateSsoSettingsV1Response415Headers + var headers CreateTeamV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102195,7 +109014,7 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateSsoSettingsV1Response422Headers + var headers CreateTeamV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102205,7 +109024,7 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateSsoSettingsV1Response429Headers + var headers CreateTeamV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102222,7 +109041,7 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateSsoSettingsV1Response500Headers + var headers CreateTeamV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102257,15 +109076,15 @@ func ParseCreateSsoSettingsV1Response(rsp *http.Response) (*CreateSsoSettingsV1R return response, nil } -// ParseDeleteSsoSettingsByIdV1Response parses an HTTP response from a DeleteSsoSettingsByIdV1WithResponse call -func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSettingsByIdV1Response, error) { +// ParseDeleteTeamByIdV1Response parses an HTTP response from a DeleteTeamByIdV1WithResponse call +func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSsoSettingsByIdV1Response{ + response := &DeleteTeamByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -102302,6 +109121,13 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -102320,7 +109146,7 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting switch { case rsp.StatusCode == 204: - var headers DeleteSsoSettingsByIdV1Response204Headers + var headers DeleteTeamByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102330,7 +109156,7 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting } response.Headers204 = &headers case rsp.StatusCode == 400: - var headers DeleteSsoSettingsByIdV1Response400Headers + var headers DeleteTeamByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102340,7 +109166,7 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteSsoSettingsByIdV1Response401Headers + var headers DeleteTeamByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102350,7 +109176,7 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteSsoSettingsByIdV1Response403Headers + var headers DeleteTeamByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102360,7 +109186,7 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteSsoSettingsByIdV1Response404Headers + var headers DeleteTeamByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102369,8 +109195,18 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers DeleteTeamByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteSsoSettingsByIdV1Response429Headers + var headers DeleteTeamByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102387,7 +109223,7 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteSsoSettingsByIdV1Response500Headers + var headers DeleteTeamByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102422,22 +109258,22 @@ func ParseDeleteSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSsoSetting return response, nil } -// ParseGetSsoSettingsByIdV1Response parses an HTTP response from a GetSsoSettingsByIdV1WithResponse call -func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV1Response, error) { +// ParseGetTeamByIdV1Response parses an HTTP response from a GetTeamByIdV1WithResponse call +func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSsoSettingsByIdV1Response{ + response := &GetTeamByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SsoSettingsResponseV1 + var dest TeamResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -102457,13 +109293,6 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -102489,7 +109318,7 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV switch { case rsp.StatusCode == 200: - var headers GetSsoSettingsByIdV1Response200Headers + var headers GetTeamByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102499,7 +109328,7 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSsoSettingsByIdV1Response400Headers + var headers GetTeamByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102509,7 +109338,7 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSsoSettingsByIdV1Response401Headers + var headers GetTeamByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102518,18 +109347,8 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetSsoSettingsByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetSsoSettingsByIdV1Response404Headers + var headers GetTeamByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102539,7 +109358,7 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetSsoSettingsByIdV1Response429Headers + var headers GetTeamByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102556,7 +109375,7 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSsoSettingsByIdV1Response500Headers + var headers GetTeamByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102591,22 +109410,22 @@ func ParseGetSsoSettingsByIdV1Response(rsp *http.Response) (*GetSsoSettingsByIdV return response, nil } -// ParseUpdateSsoSettingsByIdV1Response parses an HTTP response from a UpdateSsoSettingsByIdV1WithResponse call -func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSettingsByIdV1Response, error) { +// ParseUpdateTeamByIdV1Response parses an HTTP response from a UpdateTeamByIdV1WithResponse call +func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSsoSettingsByIdV1Response{ + response := &UpdateTeamByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SsoSettingsResponseV1 + var dest TeamResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -102640,6 +109459,13 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -102647,6 +109473,13 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -102665,7 +109498,7 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting switch { case rsp.StatusCode == 200: - var headers UpdateSsoSettingsByIdV1Response200Headers + var headers UpdateTeamByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102675,7 +109508,7 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateSsoSettingsByIdV1Response400Headers + var headers UpdateTeamByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102685,7 +109518,7 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateSsoSettingsByIdV1Response401Headers + var headers UpdateTeamByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102695,7 +109528,7 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateSsoSettingsByIdV1Response403Headers + var headers UpdateTeamByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102705,7 +109538,7 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateSsoSettingsByIdV1Response404Headers + var headers UpdateTeamByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102714,8 +109547,18 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateTeamByIdV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 415: - var headers UpdateSsoSettingsByIdV1Response415Headers + var headers UpdateTeamByIdV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102724,8 +109567,18 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting headers.XRateLimitLimit = &value } response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateTeamByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateSsoSettingsByIdV1Response429Headers + var headers UpdateTeamByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102742,7 +109595,7 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateSsoSettingsByIdV1Response500Headers + var headers UpdateTeamByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102777,22 +109630,22 @@ func ParseUpdateSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSsoSetting return response, nil } -// ParseGetSystemSsoSettingsV1Response parses an HTTP response from a GetSystemSsoSettingsV1WithResponse call -func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSettingsV1Response, error) { +// ParseGetTeamServiceAccountsV1Response parses an HTTP response from a GetTeamServiceAccountsV1WithResponse call +func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceAccountsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSystemSsoSettingsV1Response{ + response := &GetTeamServiceAccountsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest AllSsoSettingsResponseV1 + var dest GetServiceAccountsPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -102812,13 +109665,6 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -102837,7 +109683,7 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti switch { case rsp.StatusCode == 200: - var headers GetSystemSsoSettingsV1Response200Headers + var headers GetTeamServiceAccountsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102847,7 +109693,7 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSystemSsoSettingsV1Response400Headers + var headers GetTeamServiceAccountsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102857,7 +109703,7 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSystemSsoSettingsV1Response401Headers + var headers GetTeamServiceAccountsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102866,18 +109712,8 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetSystemSsoSettingsV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetSystemSsoSettingsV1Response429Headers + var headers GetTeamServiceAccountsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102894,7 +109730,7 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSystemSsoSettingsV1Response500Headers + var headers GetTeamServiceAccountsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -102929,22 +109765,22 @@ func ParseGetSystemSsoSettingsV1Response(rsp *http.Response) (*GetSystemSsoSetti return response, nil } -// ParseCreateSystemSsoSettingsV1Response parses an HTTP response from a CreateSystemSsoSettingsV1WithResponse call -func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSsoSettingsV1Response, error) { +// ParseCreateTeamServiceAccountV1Response parses an HTTP response from a CreateTeamServiceAccountV1WithResponse call +func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamServiceAccountV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateSystemSsoSettingsV1Response{ + response := &CreateTeamServiceAccountV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest SsoSettingsResponseV1 + var dest ServiceAccountWithKeyResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -102964,12 +109800,19 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -103003,7 +109846,7 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs switch { case rsp.StatusCode == 201: - var headers CreateSystemSsoSettingsV1Response201Headers + var headers CreateTeamServiceAccountV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103013,7 +109856,7 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateSystemSsoSettingsV1Response400Headers + var headers CreateTeamServiceAccountV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103023,7 +109866,7 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateSystemSsoSettingsV1Response401Headers + var headers CreateTeamServiceAccountV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103032,8 +109875,8 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateSystemSsoSettingsV1Response403Headers + case rsp.StatusCode == 404: + var headers CreateTeamServiceAccountV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103041,9 +109884,19 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers CreateTeamServiceAccountV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 415: - var headers CreateSystemSsoSettingsV1Response415Headers + var headers CreateTeamServiceAccountV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103053,7 +109906,7 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } response.Headers415 = &headers case rsp.StatusCode == 422: - var headers CreateSystemSsoSettingsV1Response422Headers + var headers CreateTeamServiceAccountV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103063,7 +109916,7 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateSystemSsoSettingsV1Response429Headers + var headers CreateTeamServiceAccountV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103080,7 +109933,7 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateSystemSsoSettingsV1Response500Headers + var headers CreateTeamServiceAccountV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103115,15 +109968,15 @@ func ParseCreateSystemSsoSettingsV1Response(rsp *http.Response) (*CreateSystemSs return response, nil } -// ParseDeleteSystemSsoSettingsByIdV1Response parses an HTTP response from a DeleteSystemSsoSettingsByIdV1WithResponse call -func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSystemSsoSettingsByIdV1Response, error) { +// ParseDeleteServiceAccountsNotificationSettingsV1Response parses an HTTP response from a DeleteServiceAccountsNotificationSettingsV1WithResponse call +func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*DeleteServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSystemSsoSettingsByIdV1Response{ + response := &DeleteServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -103178,7 +110031,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst switch { case rsp.StatusCode == 204: - var headers DeleteSystemSsoSettingsByIdV1Response204Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103188,7 +110041,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst } response.Headers204 = &headers case rsp.StatusCode == 400: - var headers DeleteSystemSsoSettingsByIdV1Response400Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103198,7 +110051,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteSystemSsoSettingsByIdV1Response401Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103208,7 +110061,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteSystemSsoSettingsByIdV1Response403Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103218,7 +110071,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteSystemSsoSettingsByIdV1Response404Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103228,7 +110081,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteSystemSsoSettingsByIdV1Response429Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103245,7 +110098,7 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteSystemSsoSettingsByIdV1Response500Headers + var headers DeleteServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103280,22 +110133,22 @@ func ParseDeleteSystemSsoSettingsByIdV1Response(rsp *http.Response) (*DeleteSyst return response, nil } -// ParseGetSystemSsoSettingsByIdV1Response parses an HTTP response from a GetSystemSsoSettingsByIdV1WithResponse call -func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoSettingsByIdV1Response, error) { +// ParseGetServiceAccountsNotificationSettingsV1Response parses an HTTP response from a GetServiceAccountsNotificationSettingsV1WithResponse call +func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*GetServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSystemSsoSettingsByIdV1Response{ + response := &GetServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SsoSettingsResponseV1 + var dest ServiceAccountsNotificationSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -103315,13 +110168,6 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -103347,7 +110193,7 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS switch { case rsp.StatusCode == 200: - var headers GetSystemSsoSettingsByIdV1Response200Headers + var headers GetServiceAccountsNotificationSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103357,7 +110203,7 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSystemSsoSettingsByIdV1Response400Headers + var headers GetServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103367,7 +110213,7 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSystemSsoSettingsByIdV1Response401Headers + var headers GetServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103376,18 +110222,8 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetSystemSsoSettingsByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetSystemSsoSettingsByIdV1Response404Headers + var headers GetServiceAccountsNotificationSettingsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103397,7 +110233,7 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetSystemSsoSettingsByIdV1Response429Headers + var headers GetServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103414,7 +110250,7 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSystemSsoSettingsByIdV1Response500Headers + var headers GetServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103449,26 +110285,26 @@ func ParseGetSystemSsoSettingsByIdV1Response(rsp *http.Response) (*GetSystemSsoS return response, nil } -// ParseUpdateSystemSsoSettingsByIdV1Response parses an HTTP response from a UpdateSystemSsoSettingsByIdV1WithResponse call -func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSystemSsoSettingsByIdV1Response, error) { +// ParseCreateServiceAccountsNotificationSettingsV1Response parses an HTTP response from a CreateServiceAccountsNotificationSettingsV1WithResponse call +func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*CreateServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateSystemSsoSettingsByIdV1Response{ + response := &CreateServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SsoSettingsResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ServiceAccountsNotificationSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -103484,13 +110320,6 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -103505,6 +110334,13 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -103522,8 +110358,8 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } switch { - case rsp.StatusCode == 200: - var headers UpdateSystemSsoSettingsByIdV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateServiceAccountsNotificationSettingsV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103531,9 +110367,9 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdateSystemSsoSettingsByIdV1Response400Headers + var headers CreateServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103543,7 +110379,7 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateSystemSsoSettingsByIdV1Response401Headers + var headers CreateServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103552,8 +110388,8 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateSystemSsoSettingsByIdV1Response403Headers + case rsp.StatusCode == 404: + var headers CreateServiceAccountsNotificationSettingsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103561,9 +110397,9 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers UpdateSystemSsoSettingsByIdV1Response404Headers + response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers CreateServiceAccountsNotificationSettingsV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103571,9 +110407,9 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers UpdateSystemSsoSettingsByIdV1Response415Headers + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateServiceAccountsNotificationSettingsV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103581,9 +110417,9 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } headers.XRateLimitLimit = &value } - response.Headers415 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateSystemSsoSettingsByIdV1Response429Headers + var headers CreateServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103600,7 +110436,7 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateSystemSsoSettingsByIdV1Response500Headers + var headers CreateServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103635,22 +110471,22 @@ func ParseUpdateSystemSsoSettingsByIdV1Response(rsp *http.Response) (*UpdateSyst return response, nil } -// ParseGetTeamsV1Response parses an HTTP response from a GetTeamsV1WithResponse call -func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { +// ParseUpdateServiceAccountsNotificationSettingsV1Response parses an HTTP response from a UpdateServiceAccountsNotificationSettingsV1WithResponse call +func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*UpdateServiceAccountsNotificationSettingsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamsV1Response{ + response := &UpdateServiceAccountsNotificationSettingsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetTeamsPaginatedResponseV1 + var dest ServiceAccountsNotificationSettingsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -103670,6 +110506,27 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 == 415: + var dest UnsupportedMediaType + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -103688,7 +110545,7 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { switch { case rsp.StatusCode == 200: - var headers GetTeamsV1Response200Headers + var headers UpdateServiceAccountsNotificationSettingsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103698,7 +110555,7 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetTeamsV1Response400Headers + var headers UpdateServiceAccountsNotificationSettingsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103708,7 +110565,7 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetTeamsV1Response401Headers + var headers UpdateServiceAccountsNotificationSettingsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103717,8 +110574,38 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers UpdateServiceAccountsNotificationSettingsV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers UpdateServiceAccountsNotificationSettingsV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 415: + var headers UpdateServiceAccountsNotificationSettingsV1Response415Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers415 = &headers case rsp.StatusCode == 429: - var headers GetTeamsV1Response429Headers + var headers UpdateServiceAccountsNotificationSettingsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103735,7 +110622,7 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetTeamsV1Response500Headers + var headers UpdateServiceAccountsNotificationSettingsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103770,26 +110657,22 @@ func ParseGetTeamsV1Response(rsp *http.Response) (*GetTeamsV1Response, error) { return response, nil } -// ParseCreateTeamV1Response parses an HTTP response from a CreateTeamV1WithResponse call -func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error) { +// ParseDeleteTeamServiceAccountByIdV1Response parses an HTTP response from a DeleteTeamServiceAccountByIdV1WithResponse call +func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTeamServiceAccountByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTeamV1Response{ + response := &DeleteTeamServiceAccountByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest TeamResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -103805,19 +110688,19 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest UnprocessableEntity @@ -103843,8 +110726,8 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } switch { - case rsp.StatusCode == 201: - var headers CreateTeamV1Response201Headers + case rsp.StatusCode == 204: + var headers DeleteTeamServiceAccountByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103852,9 +110735,9 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers CreateTeamV1Response400Headers + var headers DeleteTeamServiceAccountByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103864,7 +110747,7 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateTeamV1Response401Headers + var headers DeleteTeamServiceAccountByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103873,8 +110756,8 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 409: - var headers CreateTeamV1Response409Headers + case rsp.StatusCode == 403: + var headers DeleteTeamServiceAccountByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103882,9 +110765,9 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } headers.XRateLimitLimit = &value } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers CreateTeamV1Response415Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteTeamServiceAccountByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103892,9 +110775,9 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } headers.XRateLimitLimit = &value } - response.Headers415 = &headers + response.Headers404 = &headers case rsp.StatusCode == 422: - var headers CreateTeamV1Response422Headers + var headers DeleteTeamServiceAccountByIdV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103904,7 +110787,7 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateTeamV1Response429Headers + var headers DeleteTeamServiceAccountByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103921,7 +110804,7 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateTeamV1Response500Headers + var headers DeleteTeamServiceAccountByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -103956,22 +110839,26 @@ func ParseCreateTeamV1Response(rsp *http.Response) (*CreateTeamV1Response, error return response, nil } -// ParseDeleteTeamByIdV1Response parses an HTTP response from a DeleteTeamByIdV1WithResponse call -func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Response, error) { +// ParseGetTeamServiceAccountByIdV1Response parses an HTTP response from a GetTeamServiceAccountByIdV1WithResponse call +func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServiceAccountByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamByIdV1Response{ + response := &GetTeamServiceAccountByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ServiceAccountResponseV1 + 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 BadRequest @@ -103987,13 +110874,6 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -104001,13 +110881,6 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -104025,8 +110898,8 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons } switch { - case rsp.StatusCode == 204: - var headers DeleteTeamByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetTeamServiceAccountByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104034,9 +110907,9 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteTeamByIdV1Response400Headers + var headers GetTeamServiceAccountByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104046,7 +110919,7 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteTeamByIdV1Response401Headers + var headers GetTeamServiceAccountByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104055,18 +110928,8 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteTeamByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteTeamByIdV1Response404Headers + var headers GetTeamServiceAccountByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104075,18 +110938,8 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeleteTeamByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteTeamByIdV1Response429Headers + var headers GetTeamServiceAccountByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104103,7 +110956,7 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteTeamByIdV1Response500Headers + var headers GetTeamServiceAccountByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104138,22 +110991,22 @@ func ParseDeleteTeamByIdV1Response(rsp *http.Response) (*DeleteTeamByIdV1Respons return response, nil } -// ParseGetTeamByIdV1Response parses an HTTP response from a GetTeamByIdV1WithResponse call -func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, error) { +// ParseGetTeamUsersV1Response parses an HTTP response from a GetTeamUsersV1WithResponse call +func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamByIdV1Response{ + response := &GetTeamUsersV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TeamResponseV1 + var dest GetTeamUsersPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -104198,7 +111051,7 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err switch { case rsp.StatusCode == 200: - var headers GetTeamByIdV1Response200Headers + var headers GetTeamUsersV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104208,7 +111061,7 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetTeamByIdV1Response400Headers + var headers GetTeamUsersV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104218,7 +111071,7 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetTeamByIdV1Response401Headers + var headers GetTeamUsersV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104228,7 +111081,7 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers GetTeamByIdV1Response404Headers + var headers GetTeamUsersV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104238,7 +111091,7 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetTeamByIdV1Response429Headers + var headers GetTeamUsersV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104255,7 +111108,7 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetTeamByIdV1Response500Headers + var headers GetTeamUsersV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104290,26 +111143,22 @@ func ParseGetTeamByIdV1Response(rsp *http.Response) (*GetTeamByIdV1Response, err return response, nil } -// ParseUpdateTeamByIdV1Response parses an HTTP response from a UpdateTeamByIdV1WithResponse call -func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Response, error) { +// ParseDeleteTeamUserByIdV1Response parses an HTTP response from a DeleteTeamUserByIdV1WithResponse call +func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateTeamByIdV1Response{ + response := &DeleteTeamUserByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TeamResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -104339,27 +111188,6 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -104377,8 +111205,8 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } switch { - case rsp.StatusCode == 200: - var headers UpdateTeamByIdV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteTeamUserByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104386,9 +111214,9 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers UpdateTeamByIdV1Response400Headers + var headers DeleteTeamUserByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104398,7 +111226,7 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateTeamByIdV1Response401Headers + var headers DeleteTeamUserByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104408,7 +111236,7 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateTeamByIdV1Response403Headers + var headers DeleteTeamUserByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104418,7 +111246,7 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateTeamByIdV1Response404Headers + var headers DeleteTeamUserByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104427,38 +111255,8 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateTeamByIdV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers - case rsp.StatusCode == 415: - var headers UpdateTeamByIdV1Response415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdateTeamByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateTeamByIdV1Response429Headers + var headers DeleteTeamUserByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104475,7 +111273,7 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateTeamByIdV1Response500Headers + var headers DeleteTeamUserByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104510,22 +111308,22 @@ func ParseUpdateTeamByIdV1Response(rsp *http.Response) (*UpdateTeamByIdV1Respons return response, nil } -// ParseGetTeamServiceAccountsV1Response parses an HTTP response from a GetTeamServiceAccountsV1WithResponse call -func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceAccountsV1Response, error) { +// ParseGetTeamUserByIdV1Response parses an HTTP response from a GetTeamUserByIdV1WithResponse call +func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamServiceAccountsV1Response{ + response := &GetTeamUserByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetServiceAccountsPaginatedResponseV1 + var dest TeamUserResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -104545,6 +111343,13 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -104563,7 +111368,7 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA switch { case rsp.StatusCode == 200: - var headers GetTeamServiceAccountsV1Response200Headers + var headers GetTeamUserByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104573,7 +111378,7 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetTeamServiceAccountsV1Response400Headers + var headers GetTeamUserByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104583,7 +111388,7 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetTeamServiceAccountsV1Response401Headers + var headers GetTeamUserByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104592,8 +111397,18 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 404: + var headers GetTeamUserByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetTeamServiceAccountsV1Response429Headers + var headers GetTeamUserByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104610,7 +111425,7 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetTeamServiceAccountsV1Response500Headers + var headers GetTeamUserByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104645,22 +111460,29 @@ func ParseGetTeamServiceAccountsV1Response(rsp *http.Response) (*GetTeamServiceA return response, nil } -// ParseCreateTeamServiceAccountV1Response parses an HTTP response from a CreateTeamServiceAccountV1WithResponse call -func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamServiceAccountV1Response, error) { +// ParseSaveTeamUserV1Response parses an HTTP response from a SaveTeamUserV1WithResponse call +func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateTeamServiceAccountV1Response{ + response := &SaveTeamUserV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TeamUserResponseV1 + 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 == 201: - var dest ServiceAccountWithKeyResponseV1 + var dest TeamUserResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -104680,19 +111502,19 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: var dest UnsupportedMediaType @@ -104701,13 +111523,6 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } response.JSON415 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -104725,8 +111540,18 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } switch { + case rsp.StatusCode == 200: + var headers SaveTeamUserV1Response200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers case rsp.StatusCode == 201: - var headers CreateTeamServiceAccountV1Response201Headers + var headers SaveTeamUserV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104736,7 +111561,7 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } response.Headers201 = &headers case rsp.StatusCode == 400: - var headers CreateTeamServiceAccountV1Response400Headers + var headers SaveTeamUserV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104746,7 +111571,7 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateTeamServiceAccountV1Response401Headers + var headers SaveTeamUserV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104755,8 +111580,8 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers CreateTeamServiceAccountV1Response404Headers + case rsp.StatusCode == 403: + var headers SaveTeamUserV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104764,9 +111589,9 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers CreateTeamServiceAccountV1Response409Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers SaveTeamUserV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104774,9 +111599,9 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 415: - var headers CreateTeamServiceAccountV1Response415Headers + var headers SaveTeamUserV1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104785,18 +111610,8 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer headers.XRateLimitLimit = &value } response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateTeamServiceAccountV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers422 = &headers case rsp.StatusCode == 429: - var headers CreateTeamServiceAccountV1Response429Headers + var headers SaveTeamUserV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104813,7 +111628,7 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateTeamServiceAccountV1Response500Headers + var headers SaveTeamUserV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104848,22 +111663,26 @@ func ParseCreateTeamServiceAccountV1Response(rsp *http.Response) (*CreateTeamSer return response, nil } -// ParseDeleteServiceAccountsNotificationSettingsV1Response parses an HTTP response from a DeleteServiceAccountsNotificationSettingsV1WithResponse call -func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*DeleteServiceAccountsNotificationSettingsV1Response, error) { +// ParseGetUsersV1Response parses an HTTP response from a GetUsersV1WithResponse call +func ParseGetUsersV1Response(rsp *http.Response) (*GetUsersV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteServiceAccountsNotificationSettingsV1Response{ + response := &GetUsersV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetUsersPaginatedResponseV1 + 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 BadRequest @@ -104879,20 +111698,6 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -104910,8 +111715,8 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response } switch { - case rsp.StatusCode == 204: - var headers DeleteServiceAccountsNotificationSettingsV1Response204Headers + case rsp.StatusCode == 200: + var headers GetUsersV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104919,9 +111724,9 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteServiceAccountsNotificationSettingsV1Response400Headers + var headers GetUsersV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104931,7 +111736,7 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteServiceAccountsNotificationSettingsV1Response401Headers + var headers GetUsersV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104940,28 +111745,8 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteServiceAccountsNotificationSettingsV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers DeleteServiceAccountsNotificationSettingsV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteServiceAccountsNotificationSettingsV1Response429Headers + var headers GetUsersV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -104978,7 +111763,7 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteServiceAccountsNotificationSettingsV1Response500Headers + var headers GetUsersV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105013,26 +111798,26 @@ func ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp *http.Response return response, nil } -// ParseGetServiceAccountsNotificationSettingsV1Response parses an HTTP response from a GetServiceAccountsNotificationSettingsV1WithResponse call -func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*GetServiceAccountsNotificationSettingsV1Response, error) { +// ParseCreateUserV1Response parses an HTTP response from a CreateUserV1WithResponse call +func ParseCreateUserV1Response(rsp *http.Response) (*CreateUserV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetServiceAccountsNotificationSettingsV1Response{ + response := &CreateUserV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceAccountsNotificationSettingsResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest UserResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -105048,12 +111833,19 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests @@ -105072,8 +111864,8 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( } switch { - case rsp.StatusCode == 200: - var headers GetServiceAccountsNotificationSettingsV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateUserV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105081,9 +111873,9 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetServiceAccountsNotificationSettingsV1Response400Headers + var headers CreateUserV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105093,7 +111885,7 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetServiceAccountsNotificationSettingsV1Response401Headers + var headers CreateUserV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105102,8 +111894,8 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetServiceAccountsNotificationSettingsV1Response404Headers + case rsp.StatusCode == 409: + var headers CreateUserV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105111,9 +111903,19 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers409 = &headers + case rsp.StatusCode == 422: + var headers CreateUserV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetServiceAccountsNotificationSettingsV1Response429Headers + var headers CreateUserV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105130,7 +111932,7 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetServiceAccountsNotificationSettingsV1Response500Headers + var headers CreateUserV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105165,26 +111967,22 @@ func ParseGetServiceAccountsNotificationSettingsV1Response(rsp *http.Response) ( return response, nil } -// ParseCreateServiceAccountsNotificationSettingsV1Response parses an HTTP response from a CreateServiceAccountsNotificationSettingsV1WithResponse call -func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*CreateServiceAccountsNotificationSettingsV1Response, error) { +// ParseDeleteUserByIdV1Response parses an HTTP response from a DeleteUserByIdV1WithResponse call +func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateServiceAccountsNotificationSettingsV1Response{ + response := &DeleteUserByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest ServiceAccountsNotificationSettingsResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -105200,26 +111998,19 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -105238,8 +112029,8 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } switch { - case rsp.StatusCode == 201: - var headers CreateServiceAccountsNotificationSettingsV1Response201Headers + case rsp.StatusCode == 204: + var headers DeleteUserByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105247,9 +112038,9 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers CreateServiceAccountsNotificationSettingsV1Response400Headers + var headers DeleteUserByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105259,7 +112050,7 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateServiceAccountsNotificationSettingsV1Response401Headers + var headers DeleteUserByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105268,18 +112059,8 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers CreateServiceAccountsNotificationSettingsV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers CreateServiceAccountsNotificationSettingsV1Response415Headers + case rsp.StatusCode == 403: + var headers DeleteUserByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105287,9 +112068,9 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreateServiceAccountsNotificationSettingsV1Response422Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteUserByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105297,9 +112078,9 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateServiceAccountsNotificationSettingsV1Response429Headers + var headers DeleteUserByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105316,7 +112097,7 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateServiceAccountsNotificationSettingsV1Response500Headers + var headers DeleteUserByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105351,22 +112132,22 @@ func ParseCreateServiceAccountsNotificationSettingsV1Response(rsp *http.Response return response, nil } -// ParseUpdateServiceAccountsNotificationSettingsV1Response parses an HTTP response from a UpdateServiceAccountsNotificationSettingsV1WithResponse call -func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response) (*UpdateServiceAccountsNotificationSettingsV1Response, error) { +// ParseGetUserByIdV1Response parses an HTTP response from a GetUserByIdV1WithResponse call +func ParseGetUserByIdV1Response(rsp *http.Response) (*GetUserByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateServiceAccountsNotificationSettingsV1Response{ + response := &GetUserByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceAccountsNotificationSettingsResponseV1 + var dest UserResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -105386,13 +112167,6 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -105400,13 +112174,6 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON415 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -105425,7 +112192,7 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response switch { case rsp.StatusCode == 200: - var headers UpdateServiceAccountsNotificationSettingsV1Response200Headers + var headers GetUserByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105435,7 +112202,7 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateServiceAccountsNotificationSettingsV1Response400Headers + var headers GetUserByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105445,7 +112212,7 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateServiceAccountsNotificationSettingsV1Response401Headers + var headers GetUserByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105454,18 +112221,8 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateServiceAccountsNotificationSettingsV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateServiceAccountsNotificationSettingsV1Response404Headers + var headers GetUserByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105474,18 +112231,8 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers UpdateServiceAccountsNotificationSettingsV1Response415Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers415 = &headers case rsp.StatusCode == 429: - var headers UpdateServiceAccountsNotificationSettingsV1Response429Headers + var headers GetUserByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105502,7 +112249,7 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateServiceAccountsNotificationSettingsV1Response500Headers + var headers GetUserByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105537,22 +112284,26 @@ func ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp *http.Response return response, nil } -// ParseDeleteTeamServiceAccountByIdV1Response parses an HTTP response from a DeleteTeamServiceAccountByIdV1WithResponse call -func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTeamServiceAccountByIdV1Response, error) { +// ParseUpdateUserV1Response parses an HTTP response from a UpdateUserV1WithResponse call +func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamServiceAccountByIdV1Response{ + response := &UpdateUserV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserResponseV1 + 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 BadRequest @@ -105582,12 +112333,12 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON409 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -105606,8 +112357,8 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } switch { - case rsp.StatusCode == 204: - var headers DeleteTeamServiceAccountByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers UpdateUserV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105615,9 +112366,9 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteTeamServiceAccountByIdV1Response400Headers + var headers UpdateUserV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105627,7 +112378,7 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteTeamServiceAccountByIdV1Response401Headers + var headers UpdateUserV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105637,7 +112388,7 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteTeamServiceAccountByIdV1Response403Headers + var headers UpdateUserV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105647,7 +112398,7 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteTeamServiceAccountByIdV1Response404Headers + var headers UpdateUserV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105656,8 +112407,8 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeleteTeamServiceAccountByIdV1Response422Headers + case rsp.StatusCode == 409: + var headers UpdateUserV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105665,9 +112416,9 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers DeleteTeamServiceAccountByIdV1Response429Headers + var headers UpdateUserV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105684,7 +112435,7 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteTeamServiceAccountByIdV1Response500Headers + var headers UpdateUserV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105719,22 +112470,22 @@ func ParseDeleteTeamServiceAccountByIdV1Response(rsp *http.Response) (*DeleteTea return response, nil } -// ParseGetTeamServiceAccountByIdV1Response parses an HTTP response from a GetTeamServiceAccountByIdV1WithResponse call -func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServiceAccountByIdV1Response, error) { +// ParseListZonesV1Response parses an HTTP response from a ListZonesV1WithResponse call +func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamServiceAccountByIdV1Response{ + response := &ListZonesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServiceAccountResponseV1 + var dest ListZonesResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -105754,12 +112505,19 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests @@ -105779,7 +112537,28 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi switch { case rsp.StatusCode == 200: - var headers GetTeamServiceAccountByIdV1Response200Headers + var headers ListZonesV1Response200Headers + if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Deprecation = &value + } + if values := rsp.Header.Values("Link"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Link = &value + } + if values := rsp.Header.Values("Sunset"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Sunset = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105789,7 +112568,7 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetTeamServiceAccountByIdV1Response400Headers + var headers ListZonesV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105799,7 +112578,7 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetTeamServiceAccountByIdV1Response401Headers + var headers ListZonesV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105808,8 +112587,8 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetTeamServiceAccountByIdV1Response404Headers + case rsp.StatusCode == 403: + var headers ListZonesV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105817,9 +112596,19 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers + case rsp.StatusCode == 422: + var headers ListZonesV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetTeamServiceAccountByIdV1Response429Headers + var headers ListZonesV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105836,7 +112625,7 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetTeamServiceAccountByIdV1Response500Headers + var headers ListZonesV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105871,22 +112660,22 @@ func ParseGetTeamServiceAccountByIdV1Response(rsp *http.Response) (*GetTeamServi return response, nil } -// ParseGetTeamUsersV1Response parses an HTTP response from a GetTeamUsersV1WithResponse call -func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, error) { +// ParseCreateZoneV1Response parses an HTTP response from a CreateZoneV1WithResponse call +func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamUsersV1Response{ + response := &CreateZoneV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetTeamUsersPaginatedResponseV1 + var dest ZoneResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -105906,12 +112695,26 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests @@ -105931,7 +112734,28 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e switch { case rsp.StatusCode == 200: - var headers GetTeamUsersV1Response200Headers + var headers CreateZoneV1Response200Headers + if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Deprecation = &value + } + if values := rsp.Header.Values("Link"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Link = &value + } + if values := rsp.Header.Values("Sunset"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Sunset = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105941,7 +112765,7 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetTeamUsersV1Response400Headers + var headers CreateZoneV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105951,7 +112775,7 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetTeamUsersV1Response401Headers + var headers CreateZoneV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105960,8 +112784,8 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetTeamUsersV1Response404Headers + case rsp.StatusCode == 403: + var headers CreateZoneV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105969,9 +112793,29 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers CreateZoneV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 422: + var headers CreateZoneV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetTeamUsersV1Response429Headers + var headers CreateZoneV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -105988,7 +112832,7 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetTeamUsersV1Response500Headers + var headers CreateZoneV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106023,15 +112867,15 @@ func ParseGetTeamUsersV1Response(rsp *http.Response) (*GetTeamUsersV1Response, e return response, nil } -// ParseDeleteTeamUserByIdV1Response parses an HTTP response from a DeleteTeamUserByIdV1WithResponse call -func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV1Response, error) { +// ParseDeleteZoneV1Response parses an HTTP response from a DeleteZoneV1WithResponse call +func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteTeamUserByIdV1Response{ + response := &DeleteZoneV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -106068,6 +112912,20 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -106086,7 +112944,28 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV switch { case rsp.StatusCode == 204: - var headers DeleteTeamUserByIdV1Response204Headers + var headers DeleteZoneV1Response204Headers + if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Deprecation = &value + } + if values := rsp.Header.Values("Link"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Link = &value + } + if values := rsp.Header.Values("Sunset"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Sunset = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106096,7 +112975,7 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV } response.Headers204 = &headers case rsp.StatusCode == 400: - var headers DeleteTeamUserByIdV1Response400Headers + var headers DeleteZoneV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106106,7 +112985,7 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteTeamUserByIdV1Response401Headers + var headers DeleteZoneV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106116,7 +112995,7 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteTeamUserByIdV1Response403Headers + var headers DeleteZoneV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106126,7 +113005,7 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteTeamUserByIdV1Response404Headers + var headers DeleteZoneV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106135,8 +113014,28 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers DeleteZoneV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 422: + var headers DeleteZoneV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers DeleteTeamUserByIdV1Response429Headers + var headers DeleteZoneV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106153,7 +113052,7 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteTeamUserByIdV1Response500Headers + var headers DeleteZoneV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106188,22 +113087,22 @@ func ParseDeleteTeamUserByIdV1Response(rsp *http.Response) (*DeleteTeamUserByIdV return response, nil } -// ParseGetTeamUserByIdV1Response parses an HTTP response from a GetTeamUserByIdV1WithResponse call -func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Response, error) { +// ParseGetZoneByIdV1Response parses an HTTP response from a GetZoneByIdV1WithResponse call +func ParseGetZoneByIdV1Response(rsp *http.Response) (*GetZoneByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetTeamUserByIdV1Response{ + response := &GetZoneByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TeamUserResponseV1 + var dest ZoneResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -106223,6 +113122,13 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -106230,6 +113136,13 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -106248,7 +113161,28 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo switch { case rsp.StatusCode == 200: - var headers GetTeamUserByIdV1Response200Headers + var headers GetZoneByIdV1Response200Headers + if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Deprecation = &value + } + if values := rsp.Header.Values("Link"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Link = &value + } + if values := rsp.Header.Values("Sunset"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Sunset = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106258,7 +113192,7 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetTeamUserByIdV1Response400Headers + var headers GetZoneByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106268,7 +113202,7 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetTeamUserByIdV1Response401Headers + var headers GetZoneByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106277,8 +113211,18 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetZoneByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetTeamUserByIdV1Response404Headers + var headers GetZoneByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106287,8 +113231,18 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo headers.XRateLimitLimit = &value } response.Headers404 = &headers + case rsp.StatusCode == 422: + var headers GetZoneByIdV1Response422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetTeamUserByIdV1Response429Headers + var headers GetZoneByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106305,7 +113259,7 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetTeamUserByIdV1Response500Headers + var headers GetZoneByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106340,34 +113294,27 @@ func ParseGetTeamUserByIdV1Response(rsp *http.Response) (*GetTeamUserByIdV1Respo return response, nil } -// ParseSaveTeamUserV1Response parses an HTTP response from a SaveTeamUserV1WithResponse call -func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, error) { +// ParseEditZoneV1Response parses an HTTP response from a EditZoneV1WithResponse call +func ParseEditZoneV1Response(rsp *http.Response) (*EditZoneV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SaveTeamUserV1Response{ + response := &EditZoneV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest TeamUserResponseV1 + var dest ZoneResponseV1 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 == 201: - var dest TeamUserResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -106396,12 +113343,12 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: - var dest UnsupportedMediaType + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON415 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -106421,17 +113368,28 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e switch { case rsp.StatusCode == 200: - var headers SaveTeamUserV1Response200Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + var headers EditZoneV1Response200Headers + if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.Deprecation = &value + } + if values := rsp.Header.Values("Link"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Link = &value + } + if values := rsp.Header.Values("Sunset"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.Sunset = &value } - response.Headers200 = &headers - case rsp.StatusCode == 201: - var headers SaveTeamUserV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106439,9 +113397,9 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers SaveTeamUserV1Response400Headers + var headers EditZoneV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106451,7 +113409,7 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers SaveTeamUserV1Response401Headers + var headers EditZoneV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106461,7 +113419,7 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers SaveTeamUserV1Response403Headers + var headers EditZoneV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106471,7 +113429,7 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers SaveTeamUserV1Response404Headers + var headers EditZoneV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106480,8 +113438,8 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 415: - var headers SaveTeamUserV1Response415Headers + case rsp.StatusCode == 422: + var headers EditZoneV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106489,9 +113447,9 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } headers.XRateLimitLimit = &value } - response.Headers415 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers SaveTeamUserV1Response429Headers + var headers EditZoneV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106508,7 +113466,7 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers SaveTeamUserV1Response500Headers + var headers EditZoneV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106543,50 +113501,57 @@ func ParseSaveTeamUserV1Response(rsp *http.Response) (*SaveTeamUserV1Response, e return response, nil } -// ParseGetUsersV1Response parses an HTTP response from a GetUsersV1WithResponse call -func ParseGetUsersV1Response(rsp *http.Response) (*GetUsersV1Response, error) { +// ParseListAutomationExecutionsResponse parses an HTTP response from a ListAutomationExecutionsWithResponse call +func ParseListAutomationExecutionsResponse(rsp *http.Response) (*ListAutomationExecutionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUsersV1Response{ + response := &ListAutomationExecutionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetUsersPaginatedResponseV1 + var dest ListAutomationExecutionsPaginatedResponseV1Alpha1 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 ForbiddenV2 + 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -106596,17 +113561,14 @@ func ParseGetUsersV1Response(rsp *http.Response) (*GetUsersV1Response, error) { switch { case rsp.StatusCode == 200: - var headers GetUsersV1Response200Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + var headers ListAutomationExecutionsResponse200Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.ETag = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetUsersV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106614,36 +113576,30 @@ func ParseGetUsersV1Response(rsp *http.Response) (*GetUsersV1Response, error) { } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetUsersV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers401 = &headers - case rsp.StatusCode == 429: - var headers GetUsersV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitReset = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = value } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers GetUsersV1Response500Headers + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers ListAutomationExecutionsResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106672,80 +113628,9 @@ func ParseGetUsersV1Response(rsp *http.Response) (*GetUsersV1Response, error) { } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseCreateUserV1Response parses an HTTP response from a CreateUserV1WithResponse call -func ParseCreateUserV1Response(rsp *http.Response) (*CreateUserV1Response, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &CreateUserV1Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest UserResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 Unauthorized - 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 201: - var headers CreateUserV1Response201Headers + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers ListAutomationExecutionsResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106753,29 +113638,30 @@ func ParseCreateUserV1Response(rsp *http.Response) (*CreateUserV1Response, error } headers.XRateLimitLimit = &value } - response.Headers201 = &headers - case rsp.StatusCode == 400: - var headers CreateUserV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers CreateUserV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value } response.Headers401 = &headers - case rsp.StatusCode == 409: - var headers CreateUserV1Response409Headers + case rsp.StatusCode == 403: + var headers ListAutomationExecutionsResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106783,19 +113669,30 @@ func ParseCreateUserV1Response(rsp *http.Response) (*CreateUserV1Response, error } headers.XRateLimitLimit = &value } - response.Headers409 = &headers - case rsp.StatusCode == 422: - var headers CreateUserV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers422 = &headers + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers CreateUserV1Response429Headers + var headers ListAutomationExecutionsResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106810,9 +113707,30 @@ func ParseCreateUserV1Response(rsp *http.Response) (*CreateUserV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateUserV1Response500Headers + var headers ListAutomationExecutionsResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106847,60 +113765,64 @@ func ParseCreateUserV1Response(rsp *http.Response) (*CreateUserV1Response, error return response, nil } -// ParseDeleteUserByIdV1Response parses an HTTP response from a DeleteUserByIdV1WithResponse call -func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Response, error) { +// ParseGetAutomationExecutionResponse parses an HTTP response from a GetAutomationExecutionWithResponse call +func ParseGetAutomationExecutionResponse(rsp *http.Response) (*GetAutomationExecutionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteUserByIdV1Response{ + response := &GetAutomationExecutionResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetAutomationExecutionResponseV1Alpha1 + 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 NotFound + var dest NotFoundV2 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -106909,8 +113831,8 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } switch { - case rsp.StatusCode == 204: - var headers DeleteUserByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetAutomationExecutionResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106918,9 +113840,30 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteUserByIdV1Response400Headers + var headers GetAutomationExecutionResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106928,9 +113871,30 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteUserByIdV1Response401Headers + var headers GetAutomationExecutionResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106938,9 +113902,30 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteUserByIdV1Response403Headers + var headers GetAutomationExecutionResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106948,9 +113933,30 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteUserByIdV1Response404Headers + var headers GetAutomationExecutionResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106958,9 +113964,30 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteUserByIdV1Response429Headers + var headers GetAutomationExecutionResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -106975,9 +114002,30 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteUserByIdV1Response500Headers + var headers GetAutomationExecutionResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107012,57 +114060,57 @@ func ParseDeleteUserByIdV1Response(rsp *http.Response) (*DeleteUserByIdV1Respons return response, nil } -// ParseGetUserByIdV1Response parses an HTTP response from a GetUserByIdV1WithResponse call -func ParseGetUserByIdV1Response(rsp *http.Response) (*GetUserByIdV1Response, error) { +// ParseListAutomationsResponse parses an HTTP response from a ListAutomationsWithResponse call +func ParseListAutomationsResponse(rsp *http.Response) (*ListAutomationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetUserByIdV1Response{ + response := &ListAutomationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserResponseV1 + var dest ListAutomationsPaginatedResponseV1Alpha1 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 == 404: - var dest NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest ForbiddenV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -107072,7 +114120,14 @@ func ParseGetUserByIdV1Response(rsp *http.Response) (*GetUserByIdV1Response, err switch { case rsp.StatusCode == 200: - var headers GetUserByIdV1Response200Headers + var headers ListAutomationsResponse200Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.ETag = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107080,19 +114135,130 @@ func ParseGetUserByIdV1Response(rsp *http.Response) (*GetUserByIdV1Response, err } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value + } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetUserByIdV1Response400Headers + var headers ListAutomationsResponse400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers ListAutomationsResponse401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers ListAutomationsResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 429: + var headers ListAutomationsResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.RetryAfter = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetUserByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107100,36 +114266,30 @@ func ParseGetUserByIdV1Response(rsp *http.Response) (*GetUserByIdV1Response, err } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetUserByIdV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetUserByIdV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitReset = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetUserByIdV1Response500Headers + var headers ListAutomationsResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107164,71 +114324,78 @@ func ParseGetUserByIdV1Response(rsp *http.Response) (*GetUserByIdV1Response, err return response, nil } -// ParseUpdateUserV1Response parses an HTTP response from a UpdateUserV1WithResponse call -func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error) { +// ParseCreateAutomationResponse parses an HTTP response from a CreateAutomationWithResponse call +func ParseCreateAutomationResponse(rsp *http.Response) (*CreateAutomationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateUserV1Response{ + response := &CreateAutomationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest UserResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CreateAutomationResponseV1Alpha1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 NotFound + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest ConflictV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaTypeV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON415 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnprocessableEntityV2 + 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -107237,8 +114404,22 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } switch { - case rsp.StatusCode == 200: - var headers UpdateUserV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateAutomationResponse201Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.ETag = &value + } + if values := rsp.Header.Values("Location"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "Location", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uri-reference"}); err != nil { + return nil, err + } + headers.Location = value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107246,9 +114427,30 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdateUserV1Response400Headers + var headers CreateAutomationResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107256,9 +114458,30 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateUserV1Response401Headers + var headers CreateAutomationResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107266,9 +114489,30 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateUserV1Response403Headers + var headers CreateAutomationResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107276,9 +114520,30 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers UpdateUserV1Response404Headers + case rsp.StatusCode == 409: + var headers CreateAutomationResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107286,9 +114551,30 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateUserV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers CreateAutomationResponse415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107296,9 +114582,61 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateAutomationResponse422Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers UpdateUserV1Response429Headers + var headers CreateAutomationResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107313,9 +114651,30 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateUserV1Response500Headers + var headers CreateAutomationResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107350,64 +114709,74 @@ func ParseUpdateUserV1Response(rsp *http.Response) (*UpdateUserV1Response, error return response, nil } -// ParseListZonesV1Response parses an HTTP response from a ListZonesV1WithResponse call -func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) { +// ParseDeleteAutomationByIdResponse parses an HTTP response from a DeleteAutomationByIdWithResponse call +func ParseDeleteAutomationByIdResponse(rsp *http.Response) (*DeleteAutomationByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListZonesV1Response{ + response := &DeleteAutomationByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListZonesResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFoundV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: + var dest ErrorV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON412 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 428: + var dest ErrorV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON428 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -107416,39 +114785,46 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) } switch { - case rsp.StatusCode == 200: - var headers ListZonesV1Response200Headers - if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + case rsp.StatusCode == 204: + var headers DeleteAutomationByIdResponse204Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.Deprecation = &value + headers.ETag = &value } - if values := rsp.Header.Values("Link"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Link = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("Sunset"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Sunset = &value + headers.XRateLimitRemaining = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers200 = &headers + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers ListZonesV1Response400Headers + var headers DeleteAutomationByIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107456,9 +114832,30 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers ListZonesV1Response401Headers + var headers DeleteAutomationByIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107466,9 +114863,30 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers ListZonesV1Response403Headers + var headers DeleteAutomationByIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107476,9 +114894,30 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers403 = &headers - case rsp.StatusCode == 422: - var headers ListZonesV1Response422Headers + case rsp.StatusCode == 404: + var headers DeleteAutomationByIdResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107486,9 +114925,106 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 412: + var headers DeleteAutomationByIdResponse412Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.ETag = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers412 = &headers + case rsp.StatusCode == 428: + var headers DeleteAutomationByIdResponse428Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.ETag = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers428 = &headers case rsp.StatusCode == 429: - var headers ListZonesV1Response429Headers + var headers DeleteAutomationByIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107503,9 +115039,30 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListZonesV1Response500Headers + var headers DeleteAutomationByIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107540,71 +115097,64 @@ func ParseListZonesV1Response(rsp *http.Response) (*ListZonesV1Response, error) return response, nil } -// ParseCreateZoneV1Response parses an HTTP response from a CreateZoneV1WithResponse call -func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error) { +// ParseGetAutomationByIdResponse parses an HTTP response from a GetAutomationByIdWithResponse call +func ParseGetAutomationByIdResponse(rsp *http.Response) (*GetAutomationByIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateZoneV1Response{ + response := &GetAutomationByIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZoneResponseV1 + var dest GetAutomationByIdResponseV1Alpha1 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFoundV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -107614,38 +115164,45 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error switch { case rsp.StatusCode == 200: - var headers CreateZoneV1Response200Headers - if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + var headers GetAutomationByIdResponse200Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.Deprecation = &value + headers.ETag = &value } - if values := rsp.Header.Values("Link"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Link = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("Sunset"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Sunset = &value + headers.XRateLimitRemaining = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateZoneV1Response400Headers + var headers GetAutomationByIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107653,9 +115210,30 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateZoneV1Response401Headers + var headers GetAutomationByIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107663,9 +115241,30 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateZoneV1Response403Headers + var headers GetAutomationByIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107673,9 +115272,30 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers CreateZoneV1Response409Headers + case rsp.StatusCode == 404: + var headers GetAutomationByIdResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107683,19 +115303,30 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error } headers.XRateLimitLimit = &value } - response.Headers409 = &headers - case rsp.StatusCode == 422: - var headers CreateZoneV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers422 = &headers + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateZoneV1Response429Headers + var headers GetAutomationByIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107710,9 +115341,30 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateZoneV1Response500Headers + var headers GetAutomationByIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107747,74 +115399,99 @@ func ParseCreateZoneV1Response(rsp *http.Response) (*CreateZoneV1Response, error return response, nil } -// ParseDeleteZoneV1Response parses an HTTP response from a DeleteZoneV1WithResponse call -func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error) { +// ParseUpdateAutomationResponse parses an HTTP response from a UpdateAutomationWithResponse call +func ParseUpdateAutomationResponse(rsp *http.Response) (*UpdateAutomationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteZoneV1Response{ + response := &UpdateAutomationResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UpdateAutomationResponseV1Alpha1 + 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 NotFound + var dest NotFoundV2 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 == 409: - var dest Conflict + var dest ConflictV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: + var dest ErrorV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON412 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 415: + var dest UnsupportedMediaTypeV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON415 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnprocessableEntity + var dest UnprocessableEntityV2 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 == 428: + var dest ErrorV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON428 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -107823,39 +115500,46 @@ func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error } switch { - case rsp.StatusCode == 204: - var headers DeleteZoneV1Response204Headers - if values := rsp.Header.Values("Deprecation"); len(values) > 0 { + case rsp.StatusCode == 200: + var headers UpdateAutomationResponse200Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.Deprecation = &value + headers.ETag = &value } - if values := rsp.Header.Values("Link"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Link = &value + headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("Sunset"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Sunset = &value + headers.XRateLimitRemaining = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers204 = &headers + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteZoneV1Response400Headers + var headers UpdateAutomationResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107863,9 +115547,30 @@ func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteZoneV1Response401Headers + var headers UpdateAutomationResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107873,39 +115578,30 @@ func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteZoneV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers DeleteZoneV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers DeleteZoneV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers409 = &headers - case rsp.StatusCode == 422: - var headers DeleteZoneV1Response422Headers + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers UpdateAutomationResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107913,26 +115609,30 @@ func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers DeleteZoneV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitRemaining = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers DeleteZoneV1Response500Headers + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers UpdateAutomationResponse404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -107961,107 +115661,46 @@ func ParseDeleteZoneV1Response(rsp *http.Response) (*DeleteZoneV1Response, error } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseGetZoneByIdV1Response parses an HTTP response from a GetZoneByIdV1WithResponse call -func ParseGetZoneByIdV1Response(rsp *http.Response) (*GetZoneByIdV1Response, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetZoneByIdV1Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZoneResponseV1 - 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 BadRequest - 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 Unauthorized - 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 Forbidden - 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 NotFound - 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 UnprocessableEntity - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers UpdateAutomationResponse409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 200: - var headers GetZoneByIdV1Response200Headers - if values := rsp.Header.Values("Deprecation"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.Deprecation = &value + headers.XRateLimitReset = &value } - if values := rsp.Header.Values("Link"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.Link = &value + headers.XRequestId = &value } - if values := rsp.Header.Values("Sunset"); len(values) > 0 { + response.Headers409 = &headers + case rsp.StatusCode == 412: + var headers UpdateAutomationResponse412Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.Sunset = &value + headers.ETag = &value } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 @@ -108070,39 +115709,30 @@ func ParseGetZoneByIdV1Response(rsp *http.Response) (*GetZoneByIdV1Response, err } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetZoneByIdV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetZoneByIdV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetZoneByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetZoneByIdV1Response404Headers + response.Headers412 = &headers + case rsp.StatusCode == 415: + var headers UpdateAutomationResponse415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -108110,36 +115740,30 @@ func ParseGetZoneByIdV1Response(rsp *http.Response) (*GetZoneByIdV1Response, err } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers GetZoneByIdV1Response422Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers GetZoneByIdV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitReset = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers GetZoneByIdV1Response500Headers + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateAutomationResponse422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -108168,107 +115792,15 @@ func ParseGetZoneByIdV1Response(rsp *http.Response) (*GetZoneByIdV1Response, err } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseEditZoneV1Response parses an HTTP response from a EditZoneV1WithResponse call -func ParseEditZoneV1Response(rsp *http.Response) (*EditZoneV1Response, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &EditZoneV1Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZoneResponseV1 - 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 BadRequest - 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 Unauthorized - 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 Forbidden - 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 NotFound - 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 UnprocessableEntity - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 200: - var headers EditZoneV1Response200Headers - if values := rsp.Header.Values("Deprecation"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Deprecation", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { - return nil, err - } - headers.Deprecation = &value - } - if values := rsp.Header.Values("Link"); len(values) > 0 { - var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Link", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { - return nil, err - } - headers.Link = &value - } - if values := rsp.Header.Values("Sunset"); len(values) > 0 { + response.Headers422 = &headers + case rsp.StatusCode == 428: + var headers UpdateAutomationResponse428Headers + if values := rsp.Header.Values("ETag"); len(values) > 0 { var value string - if err := runtime.BindStyledParameterWithOptions("simple", "Sunset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "ETag", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: ""}); err != nil { return nil, err } - headers.Sunset = &value + headers.ETag = &value } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 @@ -108277,49 +115809,37 @@ func ParseEditZoneV1Response(rsp *http.Response) (*EditZoneV1Response, error) { } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers EditZoneV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers EditZoneV1Response401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers EditZoneV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: "uuid"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRequestId = value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers EditZoneV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + response.Headers428 = &headers + case rsp.StatusCode == 429: + var headers UpdateAutomationResponse429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.RetryAfter = &value } - response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers EditZoneV1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -108327,26 +115847,30 @@ func ParseEditZoneV1Response(rsp *http.Response) (*EditZoneV1Response, error) { } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers EditZoneV1Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.RetryAfter = &value + headers.XRateLimitRemaining = &value } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers EditZoneV1Response500Headers + var headers UpdateAutomationResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112640,25 +120164,211 @@ func ParseUploadCertificateV1Response(rsp *http.Response) (*UploadCertificateV1R return response, nil } -// ParseDeleteCertificateV1Response parses an HTTP response from a DeleteCertificateV1WithResponse call -func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1Response, error) { +// ParseDeleteCertificateV1Response parses an HTTP response from a DeleteCertificateV1WithResponse call +func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteCertificateV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case rsp.StatusCode == 204: + break // No content-type + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized + 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 Forbidden + 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 NotFound + 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 == 409: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 204: + var headers DeleteCertificateV1Response204Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers204 = &headers + case rsp.StatusCode == 400: + var headers DeleteCertificateV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers DeleteCertificateV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers DeleteCertificateV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers DeleteCertificateV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 409: + var headers DeleteCertificateV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 429: + var headers DeleteCertificateV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers DeleteCertificateV1Response500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetCertificateV1Response parses an HTTP response from a GetCertificateV1WithResponse call +func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteCertificateV1Response{ + response := &GetCertificateV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Certificate + 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 BadRequest + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -112685,13 +120395,6 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -112709,8 +120412,8 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } switch { - case rsp.StatusCode == 204: - var headers DeleteCertificateV1Response204Headers + case rsp.StatusCode == 200: + var headers GetCertificateV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112718,9 +120421,9 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteCertificateV1Response400Headers + var headers GetCertificateV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112730,7 +120433,7 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteCertificateV1Response401Headers + var headers GetCertificateV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112740,7 +120443,7 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteCertificateV1Response403Headers + var headers GetCertificateV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112750,7 +120453,7 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteCertificateV1Response404Headers + var headers GetCertificateV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112759,18 +120462,8 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R headers.XRateLimitLimit = &value } response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers DeleteCertificateV1Response409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers case rsp.StatusCode == 429: - var headers DeleteCertificateV1Response429Headers + var headers GetCertificateV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112787,7 +120480,7 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteCertificateV1Response500Headers + var headers GetCertificateV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112822,22 +120515,22 @@ func ParseDeleteCertificateV1Response(rsp *http.Response) (*DeleteCertificateV1R return response, nil } -// ParseGetCertificateV1Response parses an HTTP response from a GetCertificateV1WithResponse call -func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Response, error) { +// ParseGetCertificateRegistrationV1Response parses an HTTP response from a GetCertificateRegistrationV1WithResponse call +func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertificateRegistrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCertificateV1Response{ + response := &GetCertificateRegistrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Certificate + var dest ServicesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -112889,7 +120582,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons switch { case rsp.StatusCode == 200: - var headers GetCertificateV1Response200Headers + var headers GetCertificateRegistrationV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112899,7 +120592,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetCertificateV1Response400Headers + var headers GetCertificateRegistrationV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112909,7 +120602,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetCertificateV1Response401Headers + var headers GetCertificateRegistrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112919,7 +120612,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetCertificateV1Response403Headers + var headers GetCertificateRegistrationV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112929,7 +120622,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetCertificateV1Response404Headers + var headers GetCertificateRegistrationV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112939,7 +120632,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetCertificateV1Response429Headers + var headers GetCertificateRegistrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112956,7 +120649,7 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetCertificateV1Response500Headers + var headers GetCertificateRegistrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -112991,34 +120684,20 @@ func ParseGetCertificateV1Response(rsp *http.Response) (*GetCertificateV1Respons return response, nil } -// ParseGetCertificateRegistrationV1Response parses an HTTP response from a GetCertificateRegistrationV1WithResponse call -func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertificateRegistrationV1Response, error) { +// ParseCreateCSRV1Response parses an HTTP response from a CreateCSRV1WithResponse call +func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCertificateRegistrationV1Response{ + response := &CreateCSRV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ServicesResponse - 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 Error - 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -113033,13 +120712,6 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -113058,7 +120730,7 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific switch { case rsp.StatusCode == 200: - var headers GetCertificateRegistrationV1Response200Headers + var headers CreateCSRV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113067,18 +120739,8 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetCertificateRegistrationV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetCertificateRegistrationV1Response401Headers + var headers CreateCSRV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113088,7 +120750,7 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetCertificateRegistrationV1Response403Headers + var headers CreateCSRV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113097,18 +120759,8 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetCertificateRegistrationV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetCertificateRegistrationV1Response429Headers + var headers CreateCSRV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113125,7 +120777,7 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetCertificateRegistrationV1Response500Headers + var headers CreateCSRV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113160,33 +120812,33 @@ func ParseGetCertificateRegistrationV1Response(rsp *http.Response) (*GetCertific return response, nil } -// ParseCreateCSRV1Response parses an HTTP response from a CreateCSRV1WithResponse call -func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) { +// ParseListEFOChannelsByIntegrationV1Response parses an HTTP response from a ListEFOChannelsByIntegrationV1WithResponse call +func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOChannelsByIntegrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateCSRV1Response{ + response := &ListEFOChannelsByIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: - var dest Unauthorized + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IntegrationChannelsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON401 = &dest + response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON401 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -113206,7 +120858,7 @@ func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) switch { case rsp.StatusCode == 200: - var headers CreateCSRV1Response200Headers + var headers ListEFOChannelsByIntegrationV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113216,7 +120868,7 @@ func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) } response.Headers200 = &headers case rsp.StatusCode == 401: - var headers CreateCSRV1Response401Headers + var headers ListEFOChannelsByIntegrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113225,18 +120877,8 @@ func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateCSRV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 429: - var headers CreateCSRV1Response429Headers + var headers ListEFOChannelsByIntegrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113253,7 +120895,7 @@ func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateCSRV1Response500Headers + var headers ListEFOChannelsByIntegrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113288,22 +120930,22 @@ func ParseCreateCSRV1Response(rsp *http.Response) (*CreateCSRV1Response, error) return response, nil } -// ParseListEFOChannelsByIntegrationV1Response parses an HTTP response from a ListEFOChannelsByIntegrationV1WithResponse call -func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOChannelsByIntegrationV1Response, error) { +// ParseListEFOIntegrationsV1Response parses an HTTP response from a ListEFOIntegrationsV1WithResponse call +func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegrationsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEFOChannelsByIntegrationV1Response{ + response := &ListEFOIntegrationsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationChannelsResponse + var dest ListEfoIntegrationsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -113334,7 +120976,7 @@ func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOCh switch { case rsp.StatusCode == 200: - var headers ListEFOChannelsByIntegrationV1Response200Headers + var headers ListEFOIntegrationsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113344,7 +120986,7 @@ func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOCh } response.Headers200 = &headers case rsp.StatusCode == 401: - var headers ListEFOChannelsByIntegrationV1Response401Headers + var headers ListEFOIntegrationsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113354,7 +120996,7 @@ func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOCh } response.Headers401 = &headers case rsp.StatusCode == 429: - var headers ListEFOChannelsByIntegrationV1Response429Headers + var headers ListEFOIntegrationsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113371,7 +121013,7 @@ func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOCh } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListEFOChannelsByIntegrationV1Response500Headers + var headers ListEFOIntegrationsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113406,26 +121048,33 @@ func ParseListEFOChannelsByIntegrationV1Response(rsp *http.Response) (*ListEFOCh return response, nil } -// ParseListEFOIntegrationsV1Response parses an HTTP response from a ListEFOIntegrationsV1WithResponse call -func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegrationsV1Response, error) { +// ParseCreateEFOIntegrationV1Response parses an HTTP response from a CreateEFOIntegrationV1WithResponse call +func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrationV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEFOIntegrationsV1Response{ + response := &CreateEFOIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListEfoIntegrationsResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest EfoIntegrationResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized @@ -113434,6 +121083,20 @@ func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegration } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -113451,8 +121114,8 @@ func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegration } switch { - case rsp.StatusCode == 200: - var headers ListEFOIntegrationsV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateEFOIntegrationV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113460,9 +121123,19 @@ func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegration } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers + case rsp.StatusCode == 400: + var headers CreateEFOIntegrationV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers case rsp.StatusCode == 401: - var headers ListEFOIntegrationsV1Response401Headers + var headers CreateEFOIntegrationV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113471,8 +121144,28 @@ func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegration headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers CreateEFOIntegrationV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers CreateEFOIntegrationV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers ListEFOIntegrationsV1Response429Headers + var headers CreateEFOIntegrationV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113489,7 +121182,7 @@ func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegration } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListEFOIntegrationsV1Response500Headers + var headers CreateEFOIntegrationV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113524,26 +121217,22 @@ func ParseListEFOIntegrationsV1Response(rsp *http.Response) (*ListEFOIntegration return response, nil } -// ParseCreateEFOIntegrationV1Response parses an HTTP response from a CreateEFOIntegrationV1WithResponse call -func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrationV1Response, error) { +// ParseDeleteEFOIntegrationByIdV1Response parses an HTTP response from a DeleteEFOIntegrationByIdV1WithResponse call +func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOIntegrationByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateEFOIntegrationV1Response{ + response := &DeleteEFOIntegrationByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest EfoIntegrationResponseV1 - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -113566,12 +121255,8 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest + case rsp.StatusCode == 404: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -113590,8 +121275,8 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } switch { - case rsp.StatusCode == 201: - var headers CreateEFOIntegrationV1Response201Headers + case rsp.StatusCode == 204: + var headers DeleteEFOIntegrationByIdV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113599,9 +121284,9 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers CreateEFOIntegrationV1Response400Headers + var headers DeleteEFOIntegrationByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113611,7 +121296,7 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateEFOIntegrationV1Response401Headers + var headers DeleteEFOIntegrationByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113621,7 +121306,7 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateEFOIntegrationV1Response403Headers + var headers DeleteEFOIntegrationByIdV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113630,8 +121315,8 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers CreateEFOIntegrationV1Response409Headers + case rsp.StatusCode == 404: + var headers DeleteEFOIntegrationByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113639,9 +121324,9 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateEFOIntegrationV1Response429Headers + var headers DeleteEFOIntegrationByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113658,7 +121343,7 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateEFOIntegrationV1Response500Headers + var headers DeleteEFOIntegrationByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113693,22 +121378,26 @@ func ParseCreateEFOIntegrationV1Response(rsp *http.Response) (*CreateEFOIntegrat return response, nil } -// ParseDeleteEFOIntegrationByIdV1Response parses an HTTP response from a DeleteEFOIntegrationByIdV1WithResponse call -func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOIntegrationByIdV1Response, error) { +// ParseGetEFOIntegrationByIdV1Response parses an HTTP response from a GetEFOIntegrationByIdV1WithResponse call +func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegrationByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteEFOIntegrationByIdV1Response{ + response := &GetEFOIntegrationByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EfoIntegrationResponseV1 + 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 BadRequest @@ -113724,13 +121413,6 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - case rsp.StatusCode == 404: break // No content-type @@ -113751,8 +121433,8 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte } switch { - case rsp.StatusCode == 204: - var headers DeleteEFOIntegrationByIdV1Response204Headers + case rsp.StatusCode == 200: + var headers GetEFOIntegrationByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113760,9 +121442,9 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteEFOIntegrationByIdV1Response400Headers + var headers GetEFOIntegrationByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113772,7 +121454,7 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteEFOIntegrationByIdV1Response401Headers + var headers GetEFOIntegrationByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113781,18 +121463,8 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteEFOIntegrationByIdV1Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteEFOIntegrationByIdV1Response404Headers + var headers GetEFOIntegrationByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113802,7 +121474,7 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteEFOIntegrationByIdV1Response429Headers + var headers GetEFOIntegrationByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113819,7 +121491,7 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteEFOIntegrationByIdV1Response500Headers + var headers GetEFOIntegrationByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113854,15 +121526,15 @@ func ParseDeleteEFOIntegrationByIdV1Response(rsp *http.Response) (*DeleteEFOInte return response, nil } -// ParseGetEFOIntegrationByIdV1Response parses an HTTP response from a GetEFOIntegrationByIdV1WithResponse call -func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegrationByIdV1Response, error) { +// ParseUpdateEFOIntegrationByIdV1Response parses an HTTP response from a UpdateEFOIntegrationByIdV1WithResponse call +func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOIntegrationByIdV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEFOIntegrationByIdV1Response{ + response := &UpdateEFOIntegrationByIdV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -113889,6 +121561,13 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + case rsp.StatusCode == 404: break // No content-type @@ -113910,7 +121589,7 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio switch { case rsp.StatusCode == 200: - var headers GetEFOIntegrationByIdV1Response200Headers + var headers UpdateEFOIntegrationByIdV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113920,7 +121599,7 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetEFOIntegrationByIdV1Response400Headers + var headers UpdateEFOIntegrationByIdV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113930,7 +121609,7 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetEFOIntegrationByIdV1Response401Headers + var headers UpdateEFOIntegrationByIdV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113939,8 +121618,18 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers UpdateEFOIntegrationByIdV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetEFOIntegrationByIdV1Response404Headers + var headers UpdateEFOIntegrationByIdV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113950,7 +121639,7 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetEFOIntegrationByIdV1Response429Headers + var headers UpdateEFOIntegrationByIdV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -113967,7 +121656,7 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetEFOIntegrationByIdV1Response500Headers + var headers UpdateEFOIntegrationByIdV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114002,34 +121691,27 @@ func ParseGetEFOIntegrationByIdV1Response(rsp *http.Response) (*GetEFOIntegratio return response, nil } -// ParseUpdateEFOIntegrationByIdV1Response parses an HTTP response from a UpdateEFOIntegrationByIdV1WithResponse call -func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOIntegrationByIdV1Response, error) { +// ParseListEFOIntegrationsTypesV1Response parses an HTTP response from a ListEFOIntegrationsTypesV1WithResponse call +func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegrationsTypesV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateEFOIntegrationByIdV1Response{ + response := &ListEFOIntegrationsTypesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EfoIntegrationResponseV1 + var dest IntegrationTypesResponse 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 BadRequest - 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -114037,16 +121719,6 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case rsp.StatusCode == 404: - break // No content-type - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -114065,7 +121737,7 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte switch { case rsp.StatusCode == 200: - var headers UpdateEFOIntegrationByIdV1Response200Headers + var headers ListEFOIntegrationsTypesV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114074,8 +121746,8 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers UpdateEFOIntegrationByIdV1Response400Headers + case rsp.StatusCode == 401: + var headers ListEFOIntegrationsTypesV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114083,9 +121755,16 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers UpdateEFOIntegrationByIdV1Response401Headers + response.Headers401 = &headers + case rsp.StatusCode == 429: + var headers ListEFOIntegrationsTypesV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114093,9 +121772,9 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers UpdateEFOIntegrationByIdV1Response403Headers + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers ListEFOIntegrationsTypesV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114103,9 +121782,80 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers UpdateEFOIntegrationByIdV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseListEFOChannelsByIntegrationV2Response parses an HTTP response from a ListEFOChannelsByIntegrationV2WithResponse call +func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOChannelsByIntegrationV2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListEFOChannelsByIntegrationV2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IntegrationChannelsResponse + 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 == 401: + var dest Unauthorized + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers ListEFOChannelsByIntegrationV2Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114113,9 +121863,19 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers200 = &headers + case rsp.StatusCode == 401: + var headers ListEFOChannelsByIntegrationV2Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers case rsp.StatusCode == 429: - var headers UpdateEFOIntegrationByIdV1Response429Headers + var headers ListEFOChannelsByIntegrationV2Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114132,7 +121892,7 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateEFOIntegrationByIdV1Response500Headers + var headers ListEFOChannelsByIntegrationV2Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114167,22 +121927,22 @@ func ParseUpdateEFOIntegrationByIdV1Response(rsp *http.Response) (*UpdateEFOInte return response, nil } -// ParseListEFOIntegrationsTypesV1Response parses an HTTP response from a ListEFOIntegrationsTypesV1WithResponse call -func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegrationsTypesV1Response, error) { +// ParseListEFOIntegrationsV2Response parses an HTTP response from a ListEFOIntegrationsV2WithResponse call +func ParseListEFOIntegrationsV2Response(rsp *http.Response) (*ListEFOIntegrationsV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEFOIntegrationsTypesV1Response{ + response := &ListEFOIntegrationsV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationTypesResponse + var dest ListIntegrationsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -114213,7 +121973,7 @@ func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegr switch { case rsp.StatusCode == 200: - var headers ListEFOIntegrationsTypesV1Response200Headers + var headers ListEFOIntegrationsV2Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114223,7 +121983,7 @@ func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegr } response.Headers200 = &headers case rsp.StatusCode == 401: - var headers ListEFOIntegrationsTypesV1Response401Headers + var headers ListEFOIntegrationsV2Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114233,7 +121993,7 @@ func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegr } response.Headers401 = &headers case rsp.StatusCode == 429: - var headers ListEFOIntegrationsTypesV1Response429Headers + var headers ListEFOIntegrationsV2Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114250,7 +122010,7 @@ func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegr } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListEFOIntegrationsTypesV1Response500Headers + var headers ListEFOIntegrationsV2Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114285,26 +122045,33 @@ func ParseListEFOIntegrationsTypesV1Response(rsp *http.Response) (*ListEFOIntegr return response, nil } -// ParseListEFOChannelsByIntegrationV2Response parses an HTTP response from a ListEFOChannelsByIntegrationV2WithResponse call -func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOChannelsByIntegrationV2Response, error) { +// ParseCreateEFOIntegrationV2Response parses an HTTP response from a CreateEFOIntegrationV2WithResponse call +func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrationV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEFOChannelsByIntegrationV2Response{ + response := &CreateEFOIntegrationV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationChannelsResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest IntegrationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized @@ -114313,6 +122080,20 @@ func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOCh } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -114330,18 +122111,8 @@ func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOCh } switch { - case rsp.StatusCode == 200: - var headers ListEFOChannelsByIntegrationV2Response200Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers200 = &headers - case rsp.StatusCode == 401: - var headers ListEFOChannelsByIntegrationV2Response401Headers + case rsp.StatusCode == 201: + var headers CreateEFOIntegrationV2Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114349,16 +122120,9 @@ func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOCh } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 429: - var headers ListEFOChannelsByIntegrationV2Response429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.RetryAfter = &value - } + response.Headers201 = &headers + case rsp.StatusCode == 400: + var headers CreateEFOIntegrationV2Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114366,9 +122130,9 @@ func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOCh } headers.XRateLimitLimit = &value } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers ListEFOChannelsByIntegrationV2Response500Headers + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers CreateEFOIntegrationV2Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114376,80 +122140,9 @@ func ParseListEFOChannelsByIntegrationV2Response(rsp *http.Response) (*ListEFOCh } headers.XRateLimitLimit = &value } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseListEFOIntegrationsV2Response parses an HTTP response from a ListEFOIntegrationsV2WithResponse call -func ParseListEFOIntegrationsV2Response(rsp *http.Response) (*ListEFOIntegrationsV2Response, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &ListEFOIntegrationsV2Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListIntegrationsResponse - 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 == 401: - var dest Unauthorized - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 200: - var headers ListEFOIntegrationsV2Response200Headers + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers CreateEFOIntegrationV2Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114457,9 +122150,9 @@ func ParseListEFOIntegrationsV2Response(rsp *http.Response) (*ListEFOIntegration } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 401: - var headers ListEFOIntegrationsV2Response401Headers + response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers CreateEFOIntegrationV2Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114467,9 +122160,9 @@ func ParseListEFOIntegrationsV2Response(rsp *http.Response) (*ListEFOIntegration } headers.XRateLimitLimit = &value } - response.Headers401 = &headers + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers ListEFOIntegrationsV2Response429Headers + var headers CreateEFOIntegrationV2Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114486,7 +122179,7 @@ func ParseListEFOIntegrationsV2Response(rsp *http.Response) (*ListEFOIntegration } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListEFOIntegrationsV2Response500Headers + var headers CreateEFOIntegrationV2Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114521,26 +122214,22 @@ func ParseListEFOIntegrationsV2Response(rsp *http.Response) (*ListEFOIntegration return response, nil } -// ParseCreateEFOIntegrationV2Response parses an HTTP response from a CreateEFOIntegrationV2WithResponse call -func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrationV2Response, error) { +// ParseDeleteEFOIntegrationByIdV2Response parses an HTTP response from a DeleteEFOIntegrationByIdV2WithResponse call +func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOIntegrationByIdV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateEFOIntegrationV2Response{ + response := &DeleteEFOIntegrationByIdV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest IntegrationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -114563,12 +122252,12 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -114587,8 +122276,8 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } switch { - case rsp.StatusCode == 201: - var headers CreateEFOIntegrationV2Response201Headers + case rsp.StatusCode == 204: + var headers DeleteEFOIntegrationByIdV2Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114596,9 +122285,9 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers CreateEFOIntegrationV2Response400Headers + var headers DeleteEFOIntegrationByIdV2Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114608,7 +122297,7 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateEFOIntegrationV2Response401Headers + var headers DeleteEFOIntegrationByIdV2Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114618,7 +122307,7 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers CreateEFOIntegrationV2Response403Headers + var headers DeleteEFOIntegrationByIdV2Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114627,8 +122316,8 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers CreateEFOIntegrationV2Response409Headers + case rsp.StatusCode == 404: + var headers DeleteEFOIntegrationByIdV2Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114636,9 +122325,9 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreateEFOIntegrationV2Response429Headers + var headers DeleteEFOIntegrationByIdV2Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114655,7 +122344,7 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateEFOIntegrationV2Response500Headers + var headers DeleteEFOIntegrationByIdV2Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114690,22 +122379,26 @@ func ParseCreateEFOIntegrationV2Response(rsp *http.Response) (*CreateEFOIntegrat return response, nil } -// ParseDeleteEFOIntegrationByIdV2Response parses an HTTP response from a DeleteEFOIntegrationByIdV2WithResponse call -func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOIntegrationByIdV2Response, error) { +// ParseGetEFOIntegrationByIdV2Response parses an HTTP response from a GetEFOIntegrationByIdV2WithResponse call +func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegrationByIdV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteEFOIntegrationByIdV2Response{ + response := &GetEFOIntegrationByIdV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest IntegrationResponse + 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 BadRequest @@ -114721,13 +122414,6 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest Forbidden - 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -114752,8 +122438,8 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte } switch { - case rsp.StatusCode == 204: - var headers DeleteEFOIntegrationByIdV2Response204Headers + case rsp.StatusCode == 200: + var headers GetEFOIntegrationByIdV2Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114761,9 +122447,9 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteEFOIntegrationByIdV2Response400Headers + var headers GetEFOIntegrationByIdV2Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114773,7 +122459,7 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteEFOIntegrationByIdV2Response401Headers + var headers GetEFOIntegrationByIdV2Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114782,18 +122468,8 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteEFOIntegrationByIdV2Response403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteEFOIntegrationByIdV2Response404Headers + var headers GetEFOIntegrationByIdV2Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114803,7 +122479,7 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteEFOIntegrationByIdV2Response429Headers + var headers GetEFOIntegrationByIdV2Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114820,7 +122496,7 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteEFOIntegrationByIdV2Response500Headers + var headers GetEFOIntegrationByIdV2Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114855,15 +122531,15 @@ func ParseDeleteEFOIntegrationByIdV2Response(rsp *http.Response) (*DeleteEFOInte return response, nil } -// ParseGetEFOIntegrationByIdV2Response parses an HTTP response from a GetEFOIntegrationByIdV2WithResponse call -func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegrationByIdV2Response, error) { +// ParseUpdateEFOIntegrationByIdV2Response parses an HTTP response from a UpdateEFOIntegrationByIdV2WithResponse call +func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOIntegrationByIdV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEFOIntegrationByIdV2Response{ + response := &UpdateEFOIntegrationByIdV2Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -114890,6 +122566,13 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -114915,7 +122598,7 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio switch { case rsp.StatusCode == 200: - var headers GetEFOIntegrationByIdV2Response200Headers + var headers UpdateEFOIntegrationByIdV2Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114925,7 +122608,7 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetEFOIntegrationByIdV2Response400Headers + var headers UpdateEFOIntegrationByIdV2Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114935,7 +122618,7 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetEFOIntegrationByIdV2Response401Headers + var headers UpdateEFOIntegrationByIdV2Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114944,8 +122627,18 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers UpdateEFOIntegrationByIdV2Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetEFOIntegrationByIdV2Response404Headers + var headers UpdateEFOIntegrationByIdV2Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114955,7 +122648,7 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetEFOIntegrationByIdV2Response429Headers + var headers UpdateEFOIntegrationByIdV2Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -114972,7 +122665,7 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetEFOIntegrationByIdV2Response500Headers + var headers UpdateEFOIntegrationByIdV2Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115007,29 +122700,147 @@ func ParseGetEFOIntegrationByIdV2Response(rsp *http.Response) (*GetEFOIntegratio return response, nil } -// ParseUpdateEFOIntegrationByIdV2Response parses an HTTP response from a UpdateEFOIntegrationByIdV2WithResponse call -func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOIntegrationByIdV2Response, error) { +// ParseListEFOIntegrationsTypesV2Response parses an HTTP response from a ListEFOIntegrationsTypesV2WithResponse call +func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegrationsTypesV2Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateEFOIntegrationByIdV2Response{ + response := &ListEFOIntegrationsTypesV2Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationResponse + var dest IntegrationTypesResponse + 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 == 401: + var dest Unauthorized + 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 == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 200: + var headers ListEFOIntegrationsTypesV2Response200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 401: + var headers ListEFOIntegrationsTypesV2Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 429: + var headers ListEFOIntegrationsTypesV2Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers ListEFOIntegrationsTypesV2Response500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParseGetEventsV1Response parses an HTTP response from a GetEventsV1WithResponse call +func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetEventsV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ListEventsResponse 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 BadRequest + var dest Error if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -115074,7 +122885,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte switch { case rsp.StatusCode == 200: - var headers UpdateEFOIntegrationByIdV2Response200Headers + var headers GetEventsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115084,7 +122895,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateEFOIntegrationByIdV2Response400Headers + var headers GetEventsV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115094,7 +122905,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateEFOIntegrationByIdV2Response401Headers + var headers GetEventsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115104,7 +122915,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateEFOIntegrationByIdV2Response403Headers + var headers GetEventsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115114,7 +122925,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateEFOIntegrationByIdV2Response404Headers + var headers GetEventsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115124,7 +122935,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdateEFOIntegrationByIdV2Response429Headers + var headers GetEventsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115141,7 +122952,7 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateEFOIntegrationByIdV2Response500Headers + var headers GetEventsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115176,27 +122987,34 @@ func ParseUpdateEFOIntegrationByIdV2Response(rsp *http.Response) (*UpdateEFOInte return response, nil } -// ParseListEFOIntegrationsTypesV2Response parses an HTTP response from a ListEFOIntegrationsTypesV2WithResponse call -func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegrationsTypesV2Response, error) { +// ParseGetEventV1Response parses an HTTP response from a GetEventV1WithResponse call +func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListEFOIntegrationsTypesV2Response{ + response := &GetEventV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IntegrationTypesResponse + var dest Event 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 Error + 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -115204,6 +123022,20 @@ func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegr } response.JSON401 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest Forbidden + 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 NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -115222,7 +123054,7 @@ func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegr switch { case rsp.StatusCode == 200: - var headers ListEFOIntegrationsTypesV2Response200Headers + var headers GetEventV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115231,8 +123063,18 @@ func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegr headers.XRateLimitLimit = &value } response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetEventV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers case rsp.StatusCode == 401: - var headers ListEFOIntegrationsTypesV2Response401Headers + var headers GetEventV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115241,8 +123083,28 @@ func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegr headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetEventV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers GetEventV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers ListEFOIntegrationsTypesV2Response429Headers + var headers GetEventV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115259,7 +123121,7 @@ func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegr } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ListEFOIntegrationsTypesV2Response500Headers + var headers GetEventV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115294,22 +123156,22 @@ func ParseListEFOIntegrationsTypesV2Response(rsp *http.Response) (*ListEFOIntegr return response, nil } -// ParseGetEventsV1Response parses an HTTP response from a GetEventsV1WithResponse call -func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) { +// ParseGetEventsSupportedFiltersV1Response parses an HTTP response from a GetEventsSupportedFiltersV1WithResponse call +func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSupportedFiltersV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEventsV1Response{ + response := &GetEventsSupportedFiltersV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListEventsResponse + var dest SupportedFiltersResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -115361,7 +123223,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) switch { case rsp.StatusCode == 200: - var headers GetEventsV1Response200Headers + var headers GetEventsSupportedFiltersV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115371,7 +123233,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetEventsV1Response400Headers + var headers GetEventsSupportedFiltersV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115381,7 +123243,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetEventsV1Response401Headers + var headers GetEventsSupportedFiltersV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115391,7 +123253,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetEventsV1Response403Headers + var headers GetEventsSupportedFiltersV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115401,7 +123263,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetEventsV1Response404Headers + var headers GetEventsSupportedFiltersV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115411,7 +123273,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetEventsV1Response429Headers + var headers GetEventsSupportedFiltersV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115428,7 +123290,7 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetEventsV1Response500Headers + var headers GetEventsSupportedFiltersV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115463,29 +123325,29 @@ func ParseGetEventsV1Response(rsp *http.Response) (*GetEventsV1Response, error) return response, nil } -// ParseGetEventV1Response parses an HTTP response from a GetEventV1WithResponse call -func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { +// ParseGetResourcesResponse parses an HTTP response from a GetResourcesWithResponse call +func ParseGetResourcesResponse(rsp *http.Response) (*GetResourcesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEventV1Response{ + response := &GetResourcesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Event + var dest InventoryResourceResponse 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 Error + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -115505,13 +123367,6 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -115530,7 +123385,7 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { switch { case rsp.StatusCode == 200: - var headers GetEventV1Response200Headers + var headers GetResourcesResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115540,7 +123395,7 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetEventV1Response400Headers + var headers GetResourcesResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115550,7 +123405,7 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetEventV1Response401Headers + var headers GetResourcesResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115560,7 +123415,7 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetEventV1Response403Headers + var headers GetResourcesResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115569,18 +123424,8 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetEventV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetEventV1Response429Headers + var headers GetResourcesResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115597,7 +123442,7 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetEventV1Response500Headers + var headers GetResourcesResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115632,29 +123477,29 @@ func ParseGetEventV1Response(rsp *http.Response) (*GetEventV1Response, error) { return response, nil } -// ParseGetEventsSupportedFiltersV1Response parses an HTTP response from a GetEventsSupportedFiltersV1WithResponse call -func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSupportedFiltersV1Response, error) { +// ParseGetResourceResponse parses an HTTP response from a GetResourceWithResponse call +func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetEventsSupportedFiltersV1Response{ + response := &GetResourceResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest SupportedFiltersResponse + var dest InventoryResourceExtended 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 Error + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -115674,13 +123519,6 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -115699,7 +123537,7 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup switch { case rsp.StatusCode == 200: - var headers GetEventsSupportedFiltersV1Response200Headers + var headers GetResourceResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115709,7 +123547,7 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetEventsSupportedFiltersV1Response400Headers + var headers GetResourceResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115719,7 +123557,7 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetEventsSupportedFiltersV1Response401Headers + var headers GetResourceResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115729,7 +123567,7 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetEventsSupportedFiltersV1Response403Headers + var headers GetResourceResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115738,18 +123576,8 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetEventsSupportedFiltersV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetEventsSupportedFiltersV1Response429Headers + var headers GetResourceResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115766,7 +123594,7 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetEventsSupportedFiltersV1Response500Headers + var headers GetResourceResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -115801,181 +123629,37 @@ func ParseGetEventsSupportedFiltersV1Response(rsp *http.Response) (*GetEventsSup return response, nil } -// ParseGetResourcesResponse parses an HTTP response from a GetResourcesWithResponse call -func ParseGetResourcesResponse(rsp *http.Response) (*GetResourcesResponse, error) { +// ParseGetActionExecutionsv1Response parses an HTTP response from a GetActionExecutionsv1WithResponse call +func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecutionsv1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetResourcesResponse{ + response := &GetActionExecutionsv1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InventoryResourceResponse + var dest ActionExecutions 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 BadRequest - 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 Unauthorized - 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 Forbidden - 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 == 429: - var dest TooManyRequests - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON500 = &dest - - } - - switch { - case rsp.StatusCode == 200: - var headers GetResourcesResponse200Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetResourcesResponse400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers GetResourcesResponse401Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetResourcesResponse403Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 429: - var headers GetResourcesResponse429Headers - if values := rsp.Header.Values("Retry-After"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.RetryAfter = &value - } - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers429 = &headers - case rsp.StatusCode == 500: - var headers GetResourcesResponse500Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitRemaining = &value - } - if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitReset = &value - } - if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { - var value openapi_types.UUID - if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { - return nil, err - } - headers.XRequestId = &value - } - response.Headers500 = &headers - } - - return response, nil -} - -// ParseGetResourceResponse parses an HTTP response from a GetResourceWithResponse call -func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } + var dest struct { + Details *[]interface{} `json:"details,omitempty"` - response := &GetResourceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } + // Message Example: could not parse the provided certificate + Message GetActionExecutionsv1400JSONResponseBodyMessage `json:"message"` - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InventoryResourceExtended - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err + // Type Example: parsing_error + Type GetActionExecutionsv1400JSONResponseBodyType `json:"type"` } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -116013,7 +123697,7 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) switch { case rsp.StatusCode == 200: - var headers GetResourceResponse200Headers + var headers GetActionExecutionsv1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116023,7 +123707,7 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetResourceResponse400Headers + var headers GetActionExecutionsv1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116033,7 +123717,7 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetResourceResponse401Headers + var headers GetActionExecutionsv1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116043,7 +123727,7 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetResourceResponse403Headers + var headers GetActionExecutionsv1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116053,7 +123737,7 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) } response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetResourceResponse429Headers + var headers GetActionExecutionsv1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116070,7 +123754,7 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetResourceResponse500Headers + var headers GetActionExecutionsv1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116105,36 +123789,36 @@ func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error) return response, nil } -// ParseGetActionExecutionsv1Response parses an HTTP response from a GetActionExecutionsv1WithResponse call -func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecutionsv1Response, error) { +// ParseSubmitActionExecutionv1Response parses an HTTP response from a SubmitActionExecutionv1WithResponse call +func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExecutionv1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetActionExecutionsv1Response{ + response := &SubmitActionExecutionv1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ActionExecutions + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ActionExecution if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest struct { Details *[]interface{} `json:"details,omitempty"` - // Message Example: could not parse the provided certificate - Message GetActionExecutionsv1400JSONResponseBodyMessage `json:"message"` + // Message Example: Missing required parameter + Message string `json:"message"` - // Type Example: parsing_error - Type GetActionExecutionsv1400JSONResponseBodyType `json:"type"` + // Type Example: missing_required_parameter + Type string `json:"type"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -116172,8 +123856,8 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution } switch { - case rsp.StatusCode == 200: - var headers GetActionExecutionsv1Response200Headers + case rsp.StatusCode == 201: + var headers SubmitActionExecutionv1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116181,9 +123865,9 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetActionExecutionsv1Response400Headers + var headers SubmitActionExecutionv1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116193,7 +123877,7 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetActionExecutionsv1Response401Headers + var headers SubmitActionExecutionv1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116203,7 +123887,7 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetActionExecutionsv1Response403Headers + var headers SubmitActionExecutionv1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116213,7 +123897,7 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution } response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetActionExecutionsv1Response429Headers + var headers SubmitActionExecutionv1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116230,7 +123914,7 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetActionExecutionsv1Response500Headers + var headers SubmitActionExecutionv1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116265,37 +123949,29 @@ func ParseGetActionExecutionsv1Response(rsp *http.Response) (*GetActionExecution return response, nil } -// ParseSubmitActionExecutionv1Response parses an HTTP response from a SubmitActionExecutionv1WithResponse call -func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExecutionv1Response, error) { +// ParseUndoActionExecutionV1Response parses an HTTP response from a UndoActionExecutionV1WithResponse call +func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutionV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &SubmitActionExecutionv1Response{ + response := &UndoActionExecutionV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest ActionExecution if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest struct { - Details *[]interface{} `json:"details,omitempty"` - - // Message Example: Missing required parameter - Message string `json:"message"` - - // Type Example: missing_required_parameter - Type string `json:"type"` - } + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -116315,6 +123991,13 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound + 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -116332,8 +124015,8 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec } switch { - case rsp.StatusCode == 201: - var headers SubmitActionExecutionv1Response201Headers + case rsp.StatusCode == 200: + var headers UndoActionExecutionV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116341,9 +124024,9 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers SubmitActionExecutionv1Response400Headers + var headers UndoActionExecutionV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116353,7 +124036,7 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers SubmitActionExecutionv1Response401Headers + var headers UndoActionExecutionV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116363,7 +124046,7 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers SubmitActionExecutionv1Response403Headers + var headers UndoActionExecutionV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116372,8 +124055,18 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers UndoActionExecutionV1Response404Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers SubmitActionExecutionv1Response429Headers + var headers UndoActionExecutionV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116390,7 +124083,7 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers SubmitActionExecutionv1Response500Headers + var headers UndoActionExecutionV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116425,15 +124118,15 @@ func ParseSubmitActionExecutionv1Response(rsp *http.Response) (*SubmitActionExec return response, nil } -// ParseUndoActionExecutionV1Response parses an HTTP response from a UndoActionExecutionV1WithResponse call -func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutionV1Response, error) { +// ParseGetActionExecutionV1Response parses an HTTP response from a GetActionExecutionV1WithResponse call +func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UndoActionExecutionV1Response{ + response := &GetActionExecutionV1Response{ Body: bodyBytes, HTTPResponse: rsp, } @@ -116446,13 +124139,6 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio } response.JSON200 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest - 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -116492,7 +124178,7 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio switch { case rsp.StatusCode == 200: - var headers UndoActionExecutionV1Response200Headers + var headers GetActionExecutionV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116501,18 +124187,8 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers UndoActionExecutionV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UndoActionExecutionV1Response401Headers + var headers GetActionExecutionV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116522,7 +124198,7 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UndoActionExecutionV1Response403Headers + var headers GetActionExecutionV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116532,7 +124208,7 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UndoActionExecutionV1Response404Headers + var headers GetActionExecutionV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116542,7 +124218,7 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UndoActionExecutionV1Response429Headers + var headers GetActionExecutionV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116559,7 +124235,7 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UndoActionExecutionV1Response500Headers + var headers GetActionExecutionV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116594,26 +124270,26 @@ func ParseUndoActionExecutionV1Response(rsp *http.Response) (*UndoActionExecutio return response, nil } -// ParseGetActionExecutionV1Response parses an HTTP response from a GetActionExecutionV1WithResponse call -func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV1Response, error) { +// ParseGetActionExecutionFileAcquireV1Response parses an HTTP response from a GetActionExecutionFileAcquireV1WithResponse call +func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActionExecutionFileAcquireV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetActionExecutionV1Response{ + response := &GetActionExecutionFileAcquireV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ActionExecution + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -116654,7 +124330,7 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV switch { case rsp.StatusCode == 200: - var headers GetActionExecutionV1Response200Headers + var headers GetActionExecutionFileAcquireV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116663,8 +124339,18 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV headers.XRateLimitLimit = &value } response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetActionExecutionFileAcquireV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetActionExecutionV1Response401Headers + var headers GetActionExecutionFileAcquireV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116674,7 +124360,7 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetActionExecutionV1Response403Headers + var headers GetActionExecutionFileAcquireV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116684,7 +124370,7 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetActionExecutionV1Response404Headers + var headers GetActionExecutionFileAcquireV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116694,7 +124380,7 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetActionExecutionV1Response429Headers + var headers GetActionExecutionFileAcquireV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116711,7 +124397,7 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetActionExecutionV1Response500Headers + var headers GetActionExecutionFileAcquireV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116746,26 +124432,26 @@ func ParseGetActionExecutionV1Response(rsp *http.Response) (*GetActionExecutionV return response, nil } -// ParseGetActionExecutionFileAcquireV1Response parses an HTTP response from a GetActionExecutionFileAcquireV1WithResponse call -func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActionExecutionFileAcquireV1Response, error) { +// ParseGetActionsV1Response parses an HTTP response from a GetActionsV1WithResponse call +func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetActionExecutionFileAcquireV1Response{ + response := &GetActionsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest BadRequest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Actions if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: var dest Unauthorized @@ -116806,7 +124492,7 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio switch { case rsp.StatusCode == 200: - var headers GetActionExecutionFileAcquireV1Response200Headers + var headers GetActionsV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116815,18 +124501,8 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetActionExecutionFileAcquireV1Response400Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetActionExecutionFileAcquireV1Response401Headers + var headers GetActionsV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116836,7 +124512,7 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetActionExecutionFileAcquireV1Response403Headers + var headers GetActionsV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116846,7 +124522,7 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetActionExecutionFileAcquireV1Response404Headers + var headers GetActionsV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116856,7 +124532,7 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetActionExecutionFileAcquireV1Response429Headers + var headers GetActionsV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116873,7 +124549,7 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetActionExecutionFileAcquireV1Response500Headers + var headers GetActionsV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116908,27 +124584,34 @@ func ParseGetActionExecutionFileAcquireV1Response(rsp *http.Response) (*GetActio return response, nil } -// ParseGetActionsV1Response parses an HTTP response from a GetActionsV1WithResponse call -func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error) { +// ParseGetSecureVulnerabilityV1BundlesResponse parses an HTTP response from a GetSecureVulnerabilityV1BundlesWithResponse call +func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecureVulnerabilityV1BundlesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetActionsV1Response{ + response := &GetSecureVulnerabilityV1BundlesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest Actions + var dest ListBundlesResponse 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 BadRequest + 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 Unauthorized if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -116943,13 +124626,6 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NotFound - 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -116968,7 +124644,7 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error switch { case rsp.StatusCode == 200: - var headers GetActionsV1Response200Headers + var headers GetSecureVulnerabilityV1BundlesResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116977,8 +124653,8 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 401: - var headers GetActionsV1Response401Headers + case rsp.StatusCode == 400: + var headers GetSecureVulnerabilityV1BundlesResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116986,9 +124662,9 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers GetActionsV1Response403Headers + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetSecureVulnerabilityV1BundlesResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -116996,9 +124672,9 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetActionsV1Response404Headers + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetSecureVulnerabilityV1BundlesResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117006,9 +124682,9 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetActionsV1Response429Headers + var headers GetSecureVulnerabilityV1BundlesResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117025,7 +124701,7 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetActionsV1Response500Headers + var headers GetSecureVulnerabilityV1BundlesResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117060,26 +124736,26 @@ func ParseGetActionsV1Response(rsp *http.Response) (*GetActionsV1Response, error return response, nil } -// ParseGetSecureVulnerabilityV1BundlesResponse parses an HTTP response from a GetSecureVulnerabilityV1BundlesWithResponse call -func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecureVulnerabilityV1BundlesResponse, error) { +// ParsePostSecureVulnerabilityV1BundlesResponse parses an HTTP response from a PostSecureVulnerabilityV1BundlesWithResponse call +func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSecureVulnerabilityV1BundlesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecureVulnerabilityV1BundlesResponse{ + response := &PostSecureVulnerabilityV1BundlesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListBundlesResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest GetBundleResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -117102,6 +124778,13 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -117119,8 +124802,8 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur } switch { - case rsp.StatusCode == 200: - var headers GetSecureVulnerabilityV1BundlesResponse200Headers + case rsp.StatusCode == 201: + var headers PostSecureVulnerabilityV1BundlesResponse201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117128,9 +124811,9 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetSecureVulnerabilityV1BundlesResponse400Headers + var headers PostSecureVulnerabilityV1BundlesResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117140,7 +124823,7 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSecureVulnerabilityV1BundlesResponse401Headers + var headers PostSecureVulnerabilityV1BundlesResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117150,7 +124833,7 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetSecureVulnerabilityV1BundlesResponse403Headers + var headers PostSecureVulnerabilityV1BundlesResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117159,8 +124842,18 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers PostSecureVulnerabilityV1BundlesResponse409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers GetSecureVulnerabilityV1BundlesResponse429Headers + var headers PostSecureVulnerabilityV1BundlesResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117177,7 +124870,7 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSecureVulnerabilityV1BundlesResponse500Headers + var headers PostSecureVulnerabilityV1BundlesResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117212,26 +124905,22 @@ func ParseGetSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*GetSecur return response, nil } -// ParsePostSecureVulnerabilityV1BundlesResponse parses an HTTP response from a PostSecureVulnerabilityV1BundlesWithResponse call -func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSecureVulnerabilityV1BundlesResponse, error) { +// ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse parses an HTTP response from a DeleteSecureVulnerabilityV1BundlesBundleIdWithResponse call +func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (*DeleteSecureVulnerabilityV1BundlesBundleIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostSecureVulnerabilityV1BundlesResponse{ + response := &DeleteSecureVulnerabilityV1BundlesBundleIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest GetBundleResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + case rsp.StatusCode == 200: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -117254,13 +124943,6 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -117278,8 +124960,8 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec } switch { - case rsp.StatusCode == 201: - var headers PostSecureVulnerabilityV1BundlesResponse201Headers + case rsp.StatusCode == 200: + var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117287,9 +124969,9 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PostSecureVulnerabilityV1BundlesResponse400Headers + var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117299,7 +124981,7 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PostSecureVulnerabilityV1BundlesResponse401Headers + var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117309,7 +124991,7 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers PostSecureVulnerabilityV1BundlesResponse403Headers + var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117318,18 +125000,8 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers PostSecureVulnerabilityV1BundlesResponse409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers case rsp.StatusCode == 429: - var headers PostSecureVulnerabilityV1BundlesResponse429Headers + var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117346,7 +125018,7 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PostSecureVulnerabilityV1BundlesResponse500Headers + var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117381,22 +125053,26 @@ func ParsePostSecureVulnerabilityV1BundlesResponse(rsp *http.Response) (*PostSec return response, nil } -// ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse parses an HTTP response from a DeleteSecureVulnerabilityV1BundlesBundleIdWithResponse call -func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (*DeleteSecureVulnerabilityV1BundlesBundleIdResponse, error) { +// ParseGetSecureVulnerabilityV1BundlesBundleIdResponse parses an HTTP response from a GetSecureVulnerabilityV1BundlesBundleIdWithResponse call +func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (*GetSecureVulnerabilityV1BundlesBundleIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSecureVulnerabilityV1BundlesBundleIdResponse{ + response := &GetSecureVulnerabilityV1BundlesBundleIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 200: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetBundleResponse + 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 BadRequest @@ -117437,7 +125113,7 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) switch { case rsp.StatusCode == 200: - var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers + var headers GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117447,7 +125123,7 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers + var headers GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117457,7 +125133,7 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers + var headers GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117467,7 +125143,7 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers + var headers GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117477,7 +125153,7 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) } response.Headers403 = &headers case rsp.StatusCode == 429: - var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers + var headers GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117494,7 +125170,7 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers + var headers GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117529,15 +125205,15 @@ func ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) return response, nil } -// ParseGetSecureVulnerabilityV1BundlesBundleIdResponse parses an HTTP response from a GetSecureVulnerabilityV1BundlesBundleIdWithResponse call -func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (*GetSecureVulnerabilityV1BundlesBundleIdResponse, error) { +// ParsePutSecureVulnerabilityV1BundlesBundleIdResponse parses an HTTP response from a PutSecureVulnerabilityV1BundlesBundleIdWithResponse call +func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (*PutSecureVulnerabilityV1BundlesBundleIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecureVulnerabilityV1BundlesBundleIdResponse{ + response := &PutSecureVulnerabilityV1BundlesBundleIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -117589,7 +125265,7 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* switch { case rsp.StatusCode == 200: - var headers GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers + var headers PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117599,7 +125275,7 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers + var headers PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117609,7 +125285,7 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers + var headers PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117619,7 +125295,7 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers + var headers PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117629,7 +125305,7 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers + var headers PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117646,7 +125322,7 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers + var headers PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117681,22 +125357,22 @@ func ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* return response, nil } -// ParsePutSecureVulnerabilityV1BundlesBundleIdResponse parses an HTTP response from a PutSecureVulnerabilityV1BundlesBundleIdWithResponse call -func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (*PutSecureVulnerabilityV1BundlesBundleIdResponse, error) { +// ParseGetSecureVulnerabilityV1PipelineResultsResponse parses an HTTP response from a GetSecureVulnerabilityV1PipelineResultsWithResponse call +func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (*GetSecureVulnerabilityV1PipelineResultsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutSecureVulnerabilityV1BundlesBundleIdResponse{ + response := &GetSecureVulnerabilityV1PipelineResultsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetBundleResponse + var dest PipelineResultsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -117723,6 +125399,13 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -117741,7 +125424,7 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* switch { case rsp.StatusCode == 200: - var headers PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers + var headers GetSecureVulnerabilityV1PipelineResultsResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117751,7 +125434,7 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers + var headers GetSecureVulnerabilityV1PipelineResultsResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117761,7 +125444,7 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers + var headers GetSecureVulnerabilityV1PipelineResultsResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117771,7 +125454,7 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers + var headers GetSecureVulnerabilityV1PipelineResultsResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117780,8 +125463,18 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers GetSecureVulnerabilityV1PipelineResultsResponse409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers + var headers GetSecureVulnerabilityV1PipelineResultsResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117798,7 +125491,7 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers + var headers GetSecureVulnerabilityV1PipelineResultsResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117833,22 +125526,22 @@ func ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp *http.Response) (* return response, nil } -// ParseGetSecureVulnerabilityV1PipelineResultsResponse parses an HTTP response from a GetSecureVulnerabilityV1PipelineResultsWithResponse call -func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (*GetSecureVulnerabilityV1PipelineResultsResponse, error) { +// ParseGetSecureVulnerabilityV1PoliciesResponse parses an HTTP response from a GetSecureVulnerabilityV1PoliciesWithResponse call +func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecureVulnerabilityV1PoliciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecureVulnerabilityV1PipelineResultsResponse{ + response := &GetSecureVulnerabilityV1PoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PipelineResultsResponse + var dest ListPoliciesResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -117900,7 +125593,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* switch { case rsp.StatusCode == 200: - var headers GetSecureVulnerabilityV1PipelineResultsResponse200Headers + var headers GetSecureVulnerabilityV1PoliciesResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117910,7 +125603,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSecureVulnerabilityV1PipelineResultsResponse400Headers + var headers GetSecureVulnerabilityV1PoliciesResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117920,7 +125613,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSecureVulnerabilityV1PipelineResultsResponse401Headers + var headers GetSecureVulnerabilityV1PoliciesResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117930,7 +125623,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetSecureVulnerabilityV1PipelineResultsResponse403Headers + var headers GetSecureVulnerabilityV1PoliciesResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117940,7 +125633,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers GetSecureVulnerabilityV1PipelineResultsResponse409Headers + var headers GetSecureVulnerabilityV1PoliciesResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117950,7 +125643,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers GetSecureVulnerabilityV1PipelineResultsResponse429Headers + var headers GetSecureVulnerabilityV1PoliciesResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -117967,7 +125660,7 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSecureVulnerabilityV1PipelineResultsResponse500Headers + var headers GetSecureVulnerabilityV1PoliciesResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118002,26 +125695,26 @@ func ParseGetSecureVulnerabilityV1PipelineResultsResponse(rsp *http.Response) (* return response, nil } -// ParseGetSecureVulnerabilityV1PoliciesResponse parses an HTTP response from a GetSecureVulnerabilityV1PoliciesWithResponse call -func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecureVulnerabilityV1PoliciesResponse, error) { +// ParsePostSecureVulnerabilityV1PoliciesResponse parses an HTTP response from a PostSecureVulnerabilityV1PoliciesWithResponse call +func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSecureVulnerabilityV1PoliciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecureVulnerabilityV1PoliciesResponse{ + response := &PostSecureVulnerabilityV1PoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListPoliciesResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest GetPolicyResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -118068,8 +125761,8 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } switch { - case rsp.StatusCode == 200: - var headers GetSecureVulnerabilityV1PoliciesResponse200Headers + case rsp.StatusCode == 201: + var headers PostSecureVulnerabilityV1PoliciesResponse201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118077,9 +125770,9 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers GetSecureVulnerabilityV1PoliciesResponse400Headers + var headers PostSecureVulnerabilityV1PoliciesResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118089,7 +125782,7 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSecureVulnerabilityV1PoliciesResponse401Headers + var headers PostSecureVulnerabilityV1PoliciesResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118099,7 +125792,7 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetSecureVulnerabilityV1PoliciesResponse403Headers + var headers PostSecureVulnerabilityV1PoliciesResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118109,7 +125802,7 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers GetSecureVulnerabilityV1PoliciesResponse409Headers + var headers PostSecureVulnerabilityV1PoliciesResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118119,7 +125812,7 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers GetSecureVulnerabilityV1PoliciesResponse429Headers + var headers PostSecureVulnerabilityV1PoliciesResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118136,7 +125829,7 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSecureVulnerabilityV1PoliciesResponse500Headers + var headers PostSecureVulnerabilityV1PoliciesResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118171,26 +125864,22 @@ func ParseGetSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*GetSecu return response, nil } -// ParsePostSecureVulnerabilityV1PoliciesResponse parses an HTTP response from a PostSecureVulnerabilityV1PoliciesWithResponse call -func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSecureVulnerabilityV1PoliciesResponse, error) { +// ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse parses an HTTP response from a DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse call +func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) (*DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostSecureVulnerabilityV1PoliciesResponse{ + response := &DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest GetPolicyResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON201 = &dest + case rsp.StatusCode == 200: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -118213,13 +125902,6 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -118237,8 +125919,8 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe } switch { - case rsp.StatusCode == 201: - var headers PostSecureVulnerabilityV1PoliciesResponse201Headers + case rsp.StatusCode == 200: + var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118246,9 +125928,9 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PostSecureVulnerabilityV1PoliciesResponse400Headers + var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118258,7 +125940,7 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PostSecureVulnerabilityV1PoliciesResponse401Headers + var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118268,7 +125950,7 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers PostSecureVulnerabilityV1PoliciesResponse403Headers + var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118277,18 +125959,8 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers PostSecureVulnerabilityV1PoliciesResponse409Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { - var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers409 = &headers case rsp.StatusCode == 429: - var headers PostSecureVulnerabilityV1PoliciesResponse429Headers + var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118305,7 +125977,7 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PostSecureVulnerabilityV1PoliciesResponse500Headers + var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118340,22 +126012,26 @@ func ParsePostSecureVulnerabilityV1PoliciesResponse(rsp *http.Response) (*PostSe return response, nil } -// ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse parses an HTTP response from a DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse call -func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) (*DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { +// ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse parses an HTTP response from a GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse call +func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) (*GetSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse{ + response := &GetSecureVulnerabilityV1PoliciesPolicyIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 200: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetPolicyResponse + 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 BadRequest @@ -118378,6 +126054,13 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -118396,7 +126079,7 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response switch { case rsp.StatusCode == 200: - var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118406,7 +126089,7 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118416,7 +126099,7 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118426,7 +126109,7 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118435,8 +126118,18 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response headers.XRateLimitLimit = &value } response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers case rsp.StatusCode == 429: - var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118453,7 +126146,7 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118488,15 +126181,15 @@ func ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response return response, nil } -// ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse parses an HTTP response from a GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse call -func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) (*GetSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { +// ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse parses an HTTP response from a PutSecureVulnerabilityV1PoliciesPolicyIdWithResponse call +func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) (*PutSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecureVulnerabilityV1PoliciesPolicyIdResponse{ + response := &PutSecureVulnerabilityV1PoliciesPolicyIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -118555,7 +126248,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( switch { case rsp.StatusCode == 200: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118565,7 +126258,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118575,7 +126268,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118585,7 +126278,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118595,7 +126288,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118605,7 +126298,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118622,7 +126315,7 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118657,22 +126350,22 @@ func ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( return response, nil } -// ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse parses an HTTP response from a PutSecureVulnerabilityV1PoliciesPolicyIdWithResponse call -func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) (*PutSecureVulnerabilityV1PoliciesPolicyIdResponse, error) { +// ParseScannerAPIServiceListRegistryResultsResponse parses an HTTP response from a ScannerAPIServiceListRegistryResultsWithResponse call +func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*ScannerAPIServiceListRegistryResultsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutSecureVulnerabilityV1PoliciesPolicyIdResponse{ + response := &ScannerAPIServiceListRegistryResultsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetPolicyResponse + var dest RegistryResultsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -118724,7 +126417,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( switch { case rsp.StatusCode == 200: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + var headers ScannerAPIServiceListRegistryResultsResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118734,7 +126427,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + var headers ScannerAPIServiceListRegistryResultsResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118744,7 +126437,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + var headers ScannerAPIServiceListRegistryResultsResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118754,7 +126447,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + var headers ScannerAPIServiceListRegistryResultsResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118764,7 +126457,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers + var headers ScannerAPIServiceListRegistryResultsResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118774,7 +126467,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + var headers ScannerAPIServiceListRegistryResultsResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118791,7 +126484,7 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + var headers ScannerAPIServiceListRegistryResultsResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118826,22 +126519,22 @@ func ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp *http.Response) ( return response, nil } -// ParseScannerAPIServiceListRegistryResultsResponse parses an HTTP response from a ScannerAPIServiceListRegistryResultsWithResponse call -func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*ScannerAPIServiceListRegistryResultsResponse, error) { +// ParseGetSecureVulnerabilityV1ResultsResultIdResponse parses an HTTP response from a GetSecureVulnerabilityV1ResultsResultIdWithResponse call +func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (*GetSecureVulnerabilityV1ResultsResultIdResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ScannerAPIServiceListRegistryResultsResponse{ + response := &GetSecureVulnerabilityV1ResultsResultIdResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RegistryResultsResponse + var dest ScanResultResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -118893,7 +126586,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca switch { case rsp.StatusCode == 200: - var headers ScannerAPIServiceListRegistryResultsResponse200Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118903,7 +126596,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers ScannerAPIServiceListRegistryResultsResponse400Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118913,7 +126606,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers ScannerAPIServiceListRegistryResultsResponse401Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118923,7 +126616,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers ScannerAPIServiceListRegistryResultsResponse403Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118933,7 +126626,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers ScannerAPIServiceListRegistryResultsResponse409Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118943,7 +126636,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers ScannerAPIServiceListRegistryResultsResponse429Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118960,7 +126653,7 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ScannerAPIServiceListRegistryResultsResponse500Headers + var headers GetSecureVulnerabilityV1ResultsResultIdResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -118995,22 +126688,22 @@ func ParseScannerAPIServiceListRegistryResultsResponse(rsp *http.Response) (*Sca return response, nil } -// ParseGetSecureVulnerabilityV1ResultsResultIdResponse parses an HTTP response from a GetSecureVulnerabilityV1ResultsResultIdWithResponse call -func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (*GetSecureVulnerabilityV1ResultsResultIdResponse, error) { +// ParseScannerAPIServiceListRuntimeResultsResponse parses an HTTP response from a ScannerAPIServiceListRuntimeResultsWithResponse call +func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*ScannerAPIServiceListRuntimeResultsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetSecureVulnerabilityV1ResultsResultIdResponse{ + response := &ScannerAPIServiceListRuntimeResultsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ScanResultResponse + var dest RuntimeResultsResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -119062,7 +126755,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* switch { case rsp.StatusCode == 200: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse200Headers + var headers ScannerAPIServiceListRuntimeResultsResponse200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119072,7 +126765,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse400Headers + var headers ScannerAPIServiceListRuntimeResultsResponse400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119082,7 +126775,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse401Headers + var headers ScannerAPIServiceListRuntimeResultsResponse401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119092,7 +126785,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse403Headers + var headers ScannerAPIServiceListRuntimeResultsResponse403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119102,7 +126795,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse409Headers + var headers ScannerAPIServiceListRuntimeResultsResponse409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119112,7 +126805,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse429Headers + var headers ScannerAPIServiceListRuntimeResultsResponse429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119129,7 +126822,7 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSecureVulnerabilityV1ResultsResultIdResponse500Headers + var headers ScannerAPIServiceListRuntimeResultsResponse500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119164,22 +126857,22 @@ func ParseGetSecureVulnerabilityV1ResultsResultIdResponse(rsp *http.Response) (* return response, nil } -// ParseScannerAPIServiceListRuntimeResultsResponse parses an HTTP response from a ScannerAPIServiceListRuntimeResultsWithResponse call -func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*ScannerAPIServiceListRuntimeResultsResponse, error) { +// ParseGetAcceptedRisksV1Response parses an HTTP response from a GetAcceptedRisksV1WithResponse call +func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ScannerAPIServiceListRuntimeResultsResponse{ + response := &GetAcceptedRisksV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RuntimeResultsResponse + var dest ListRiskAcceptedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -119230,8 +126923,177 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } switch { - case rsp.StatusCode == 200: - var headers ScannerAPIServiceListRuntimeResultsResponse200Headers + case rsp.StatusCode == 200: + var headers GetAcceptedRisksV1Response200Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + var headers GetAcceptedRisksV1Response400Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + var headers GetAcceptedRisksV1Response401Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers GetAcceptedRisksV1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 409: + var headers GetAcceptedRisksV1Response409Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers409 = &headers + case rsp.StatusCode == 429: + var headers GetAcceptedRisksV1Response429Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers429 = &headers + case rsp.StatusCode == 500: + var headers GetAcceptedRisksV1Response500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers500 = &headers + } + + return response, nil +} + +// ParsePostAcceptedRiskV1Response parses an HTTP response from a PostAcceptedRiskV1WithResponse call +func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAcceptedRiskV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest RiskAcceptedResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest BadRequest + 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 Unauthorized + 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 Forbidden + 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 == 409: + var dest Conflict + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + switch { + case rsp.StatusCode == 201: + var headers PostAcceptedRiskV1Response201Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119239,9 +127101,9 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers ScannerAPIServiceListRuntimeResultsResponse400Headers + var headers PostAcceptedRiskV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119251,7 +127113,7 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers ScannerAPIServiceListRuntimeResultsResponse401Headers + var headers PostAcceptedRiskV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119261,7 +127123,7 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers ScannerAPIServiceListRuntimeResultsResponse403Headers + var headers PostAcceptedRiskV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119271,7 +127133,7 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } response.Headers403 = &headers case rsp.StatusCode == 409: - var headers ScannerAPIServiceListRuntimeResultsResponse409Headers + var headers PostAcceptedRiskV1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119281,7 +127143,7 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } response.Headers409 = &headers case rsp.StatusCode == 429: - var headers ScannerAPIServiceListRuntimeResultsResponse429Headers + var headers PostAcceptedRiskV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119298,7 +127160,7 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers ScannerAPIServiceListRuntimeResultsResponse500Headers + var headers PostAcceptedRiskV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119333,26 +127195,22 @@ func ParseScannerAPIServiceListRuntimeResultsResponse(rsp *http.Response) (*Scan return response, nil } -// ParseGetAcceptedRisksV1Response parses an HTTP response from a GetAcceptedRisksV1WithResponse call -func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Response, error) { +// ParseDeleteAcceptedRiskV1Response parses an HTTP response from a DeleteAcceptedRiskV1WithResponse call +func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAcceptedRisksV1Response{ + response := &DeleteAcceptedRiskV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListRiskAcceptedResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest + case rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -119375,12 +127233,12 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -119399,8 +127257,8 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } switch { - case rsp.StatusCode == 200: - var headers GetAcceptedRisksV1Response200Headers + case rsp.StatusCode == 204: + var headers DeleteAcceptedRiskV1Response204Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119408,9 +127266,9 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetAcceptedRisksV1Response400Headers + var headers DeleteAcceptedRiskV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119420,7 +127278,7 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetAcceptedRisksV1Response401Headers + var headers DeleteAcceptedRiskV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119430,7 +127288,7 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetAcceptedRisksV1Response403Headers + var headers DeleteAcceptedRiskV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119439,8 +127297,8 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers GetAcceptedRisksV1Response409Headers + case rsp.StatusCode == 404: + var headers DeleteAcceptedRiskV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119448,9 +127306,9 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetAcceptedRisksV1Response429Headers + var headers DeleteAcceptedRiskV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119467,7 +127325,7 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetAcceptedRisksV1Response500Headers + var headers DeleteAcceptedRiskV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119502,26 +127360,26 @@ func ParseGetAcceptedRisksV1Response(rsp *http.Response) (*GetAcceptedRisksV1Res return response, nil } -// ParsePostAcceptedRiskV1Response parses an HTTP response from a PostAcceptedRiskV1WithResponse call -func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Response, error) { +// ParseGetAcceptedRiskV1Response parses an HTTP response from a GetAcceptedRiskV1WithResponse call +func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostAcceptedRiskV1Response{ + response := &GetAcceptedRiskV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest RiskAcceptedResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -119544,12 +127402,12 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest Conflict + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest NotFound if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -119568,8 +127426,8 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } switch { - case rsp.StatusCode == 201: - var headers PostAcceptedRiskV1Response201Headers + case rsp.StatusCode == 200: + var headers GetAcceptedRiskV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119577,9 +127435,9 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } headers.XRateLimitLimit = &value } - response.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PostAcceptedRiskV1Response400Headers + var headers GetAcceptedRiskV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119589,7 +127447,7 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PostAcceptedRiskV1Response401Headers + var headers GetAcceptedRiskV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119599,7 +127457,7 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers PostAcceptedRiskV1Response403Headers + var headers GetAcceptedRiskV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119608,8 +127466,8 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res headers.XRateLimitLimit = &value } response.Headers403 = &headers - case rsp.StatusCode == 409: - var headers PostAcceptedRiskV1Response409Headers + case rsp.StatusCode == 404: + var headers GetAcceptedRiskV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119617,9 +127475,9 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } headers.XRateLimitLimit = &value } - response.Headers409 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers PostAcceptedRiskV1Response429Headers + var headers GetAcceptedRiskV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119636,7 +127494,7 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PostAcceptedRiskV1Response500Headers + var headers GetAcceptedRiskV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119671,22 +127529,26 @@ func ParsePostAcceptedRiskV1Response(rsp *http.Response) (*PostAcceptedRiskV1Res return response, nil } -// ParseDeleteAcceptedRiskV1Response parses an HTTP response from a DeleteAcceptedRiskV1WithResponse call -func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV1Response, error) { +// ParseUpdateAcceptedRiskV1Response parses an HTTP response from a UpdateAcceptedRiskV1WithResponse call +func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteAcceptedRiskV1Response{ + response := &UpdateAcceptedRiskV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case rsp.StatusCode == 204: - break // No content-type + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest RiskAcceptedResponse + 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 BadRequest @@ -119733,8 +127595,8 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } switch { - case rsp.StatusCode == 204: - var headers DeleteAcceptedRiskV1Response204Headers + case rsp.StatusCode == 200: + var headers UpdateAcceptedRiskV1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119742,9 +127604,9 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } headers.XRateLimitLimit = &value } - response.Headers204 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers DeleteAcceptedRiskV1Response400Headers + var headers UpdateAcceptedRiskV1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119754,7 +127616,7 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteAcceptedRiskV1Response401Headers + var headers UpdateAcceptedRiskV1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119764,7 +127626,7 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteAcceptedRiskV1Response403Headers + var headers UpdateAcceptedRiskV1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119774,7 +127636,7 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteAcceptedRiskV1Response404Headers + var headers UpdateAcceptedRiskV1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119784,7 +127646,7 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteAcceptedRiskV1Response429Headers + var headers UpdateAcceptedRiskV1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119801,7 +127663,7 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteAcceptedRiskV1Response500Headers + var headers UpdateAcceptedRiskV1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119836,74 +127698,74 @@ func ParseDeleteAcceptedRiskV1Response(rsp *http.Response) (*DeleteAcceptedRiskV return response, nil } -// ParseGetAcceptedRiskV1Response parses an HTTP response from a GetAcceptedRiskV1WithResponse call -func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Response, error) { +// ParseListCveCatalogV1beta1Response parses an HTTP response from a ListCveCatalogV1beta1WithResponse call +func ParseListCveCatalogV1beta1Response(rsp *http.Response) (*ListCveCatalogV1beta1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAcceptedRiskV1Response{ + response := &ListCveCatalogV1beta1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RiskAcceptedResponse + var dest ListCveCatalogResponseV1Beta1 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 NotFound - 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest CveCatalogInternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest ErrorV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } switch { case rsp.StatusCode == 200: - var headers GetAcceptedRiskV1Response200Headers + var headers ListCveCatalogV1beta1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119911,9 +127773,30 @@ func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.XRequestId = value + } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetAcceptedRiskV1Response400Headers + var headers ListCveCatalogV1beta1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119921,9 +127804,30 @@ func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetAcceptedRiskV1Response401Headers + var headers ListCveCatalogV1beta1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119931,9 +127835,30 @@ func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetAcceptedRiskV1Response403Headers + var headers ListCveCatalogV1beta1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119941,19 +127866,30 @@ func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Respo } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetAcceptedRiskV1Response404Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { var value int32 - if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.XRateLimitRemaining = &value } - response.Headers404 = &headers + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetAcceptedRiskV1Response429Headers + var headers ListCveCatalogV1beta1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119968,9 +127904,68 @@ func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Respo } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetAcceptedRiskV1Response500Headers + var headers ListCveCatalogV1beta1Response500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers500 = &headers + case rsp.StatusCode == 503: + var headers ListCveCatalogV1beta1Response503Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -119999,80 +127994,87 @@ func ParseGetAcceptedRiskV1Response(rsp *http.Response) (*GetAcceptedRiskV1Respo } headers.XRequestId = &value } - response.Headers500 = &headers + response.Headers503 = &headers } return response, nil } -// ParseUpdateAcceptedRiskV1Response parses an HTTP response from a UpdateAcceptedRiskV1WithResponse call -func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV1Response, error) { +// ParseGetCveCatalogEntryV1beta1Response parses an HTTP response from a GetCveCatalogEntryV1beta1WithResponse call +func ParseGetCveCatalogEntryV1beta1Response(rsp *http.Response) (*GetCveCatalogEntryV1beta1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateAcceptedRiskV1Response{ + response := &GetCveCatalogEntryV1beta1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest RiskAcceptedResponse + var dest CveDetailV1Beta1 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 BadRequest + var dest BadRequestV2 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 Unauthorized + var dest UnauthorizedV2 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 Forbidden + var dest ForbiddenV2 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 NotFound + var dest NotFoundV2 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 == 429: - var dest TooManyRequests + var dest TooManyRequestsV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: - var dest InternalServerError + var dest CveCatalogInternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON500 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest ErrorV2 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } switch { case rsp.StatusCode == 200: - var headers UpdateAcceptedRiskV1Response200Headers + var headers GetCveCatalogEntryV1beta1Response200Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120080,9 +128082,30 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.XRequestId = value + } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateAcceptedRiskV1Response400Headers + var headers GetCveCatalogEntryV1beta1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120090,9 +128113,30 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateAcceptedRiskV1Response401Headers + var headers GetCveCatalogEntryV1beta1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120100,9 +128144,30 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers UpdateAcceptedRiskV1Response403Headers + var headers GetCveCatalogEntryV1beta1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120110,9 +128175,30 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers UpdateAcceptedRiskV1Response404Headers + var headers GetCveCatalogEntryV1beta1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120120,9 +128206,30 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers UpdateAcceptedRiskV1Response429Headers + var headers GetCveCatalogEntryV1beta1Response429Headers if values := rsp.Header.Values("Retry-After"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120137,9 +128244,68 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRateLimitLimit = &value } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value openapi_types.UUID + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "string", Format: "uuid"}); err != nil { + return nil, err + } + headers.XRequestId = &value + } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateAcceptedRiskV1Response500Headers + var headers GetCveCatalogEntryV1beta1Response500Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitLimit = &value + } + if values := rsp.Header.Values("X-RateLimit-Remaining"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Remaining", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.XRateLimitRemaining = &value + } + if values := rsp.Header.Values("X-RateLimit-Reset"); len(values) > 0 { + var value int64 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Reset", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } + headers.XRateLimitReset = &value + } + if values := rsp.Header.Values("X-Request-Id"); len(values) > 0 { + var value string + if err := runtime.BindStyledParameterWithOptions("simple", "X-Request-Id", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: true, Type: "string", Format: ""}); err != nil { + return nil, err + } + headers.XRequestId = value + } + response.Headers500 = &headers + case rsp.StatusCode == 503: + var headers GetCveCatalogEntryV1beta1Response503Headers + if values := rsp.Header.Values("Retry-After"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "Retry-After", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { + return nil, err + } + headers.RetryAfter = &value + } if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -120168,7 +128334,7 @@ func ParseUpdateAcceptedRiskV1Response(rsp *http.Response) (*UpdateAcceptedRiskV } headers.XRequestId = &value } - response.Headers500 = &headers + response.Headers503 = &headers } return response, nil diff --git a/internal/infra/sysdig/mocks/client_extension.go b/internal/infra/sysdig/mocks/client_extension.go index 2248f88..2998c35 100644 --- a/internal/infra/sysdig/mocks/client_extension.go +++ b/internal/infra/sysdig/mocks/client_extension.go @@ -123,6 +123,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateAccessKeyV return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessKeyV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateAccessKeyV1WithResponse), varargs...) } +// CreateAutomation mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateAutomation(ctx context.Context, params *sysdig.CreateAutomationParams, body sysdig.CreateAutomationJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutomation", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutomation indicates an expected call of CreateAutomation. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateAutomation(ctx, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutomation", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateAutomation), varargs...) +} + +// CreateAutomationWithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateAutomationWithBody(ctx context.Context, params *sysdig.CreateAutomationParams, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutomationWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutomationWithBody indicates an expected call of CreateAutomationWithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateAutomationWithBody(ctx, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutomationWithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateAutomationWithBody), varargs...) +} + +// CreateAutomationWithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateAutomationWithBodyWithResponse(ctx context.Context, params *sysdig.CreateAutomationParams, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateAutomationResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutomationWithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateAutomationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutomationWithBodyWithResponse indicates an expected call of CreateAutomationWithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateAutomationWithBodyWithResponse(ctx, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutomationWithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateAutomationWithBodyWithResponse), varargs...) +} + +// CreateAutomationWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateAutomationWithResponse(ctx context.Context, params *sysdig.CreateAutomationParams, body sysdig.CreateAutomationJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateAutomationResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateAutomationWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateAutomationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateAutomationWithResponse indicates an expected call of CreateAutomationWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateAutomationWithResponse(ctx, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAutomationWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateAutomationWithResponse), varargs...) +} + // CreateCSRV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) CreateCSRV1(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -2043,6 +2123,46 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteAccessKeyB return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessKeyByIdV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteAccessKeyByIdV1WithResponse), varargs...) } +// DeleteAutomationById mocks base method. +func (m *MockExtendedClientWithResponsesInterface) DeleteAutomationById(ctx context.Context, automationID sysdig.AutomationID, params *sysdig.DeleteAutomationByIdParams, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAutomationById", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAutomationById indicates an expected call of DeleteAutomationById. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteAutomationById(ctx, automationID, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAutomationById", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteAutomationById), varargs...) +} + +// DeleteAutomationByIdWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) DeleteAutomationByIdWithResponse(ctx context.Context, automationID sysdig.AutomationID, params *sysdig.DeleteAutomationByIdParams, reqEditors ...sysdig.RequestEditorFn) (*sysdig.DeleteAutomationByIdResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteAutomationByIdWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.DeleteAutomationByIdResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteAutomationByIdWithResponse indicates an expected call of DeleteAutomationByIdWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteAutomationByIdWithResponse(ctx, automationID, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAutomationByIdWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteAutomationByIdWithResponse), varargs...) +} + // DeleteCertificateV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) DeleteCertificateV1(ctx context.Context, certId sysdig.PathCertificateId, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -3923,6 +4043,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetAlertsV1WithR return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAlertsV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetAlertsV1WithResponse), varargs...) } +// GetAutomationById mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetAutomationById(ctx context.Context, automationID sysdig.AutomationID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAutomationById", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAutomationById indicates an expected call of GetAutomationById. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetAutomationById(ctx, automationID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAutomationById", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetAutomationById), varargs...) +} + +// GetAutomationByIdWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetAutomationByIdWithResponse(ctx context.Context, automationID sysdig.AutomationID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetAutomationByIdResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAutomationByIdWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetAutomationByIdResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAutomationByIdWithResponse indicates an expected call of GetAutomationByIdWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetAutomationByIdWithResponse(ctx, automationID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAutomationByIdWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetAutomationByIdWithResponse), varargs...) +} + +// GetAutomationExecution mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetAutomationExecution(ctx context.Context, automationExecutionID sysdig.AutomationExecutionID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationExecutionID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAutomationExecution", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAutomationExecution indicates an expected call of GetAutomationExecution. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetAutomationExecution(ctx, automationExecutionID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationExecutionID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAutomationExecution", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetAutomationExecution), varargs...) +} + +// GetAutomationExecutionWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetAutomationExecutionWithResponse(ctx context.Context, automationExecutionID sysdig.AutomationExecutionID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetAutomationExecutionResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationExecutionID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAutomationExecutionWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetAutomationExecutionResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAutomationExecutionWithResponse indicates an expected call of GetAutomationExecutionWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetAutomationExecutionWithResponse(ctx, automationExecutionID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationExecutionID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAutomationExecutionWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetAutomationExecutionWithResponse), varargs...) +} + // GetCaptureStorageConfigurationV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) GetCaptureStorageConfigurationV1(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -4203,6 +4403,46 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetCustomPrometh return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCustomPrometheusJobsV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetCustomPrometheusJobsV1WithResponse), varargs...) } +// GetCveCatalogEntryV1beta1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetCveCatalogEntryV1beta1(ctx context.Context, cveId string, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, cveId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCveCatalogEntryV1beta1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCveCatalogEntryV1beta1 indicates an expected call of GetCveCatalogEntryV1beta1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetCveCatalogEntryV1beta1(ctx, cveId any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, cveId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCveCatalogEntryV1beta1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetCveCatalogEntryV1beta1), varargs...) +} + +// GetCveCatalogEntryV1beta1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetCveCatalogEntryV1beta1WithResponse(ctx context.Context, cveId string, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetCveCatalogEntryV1beta1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, cveId} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetCveCatalogEntryV1beta1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetCveCatalogEntryV1beta1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetCveCatalogEntryV1beta1WithResponse indicates an expected call of GetCveCatalogEntryV1beta1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetCveCatalogEntryV1beta1WithResponse(ctx, cveId any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, cveId}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCveCatalogEntryV1beta1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetCveCatalogEntryV1beta1WithResponse), varargs...) +} + // GetDefaultNotificationTemplateV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) GetDefaultNotificationTemplateV1(ctx context.Context, params *sysdig.GetDefaultNotificationTemplateV1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -7823,6 +8063,126 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetZonePolicyAss return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetZonePolicyAssociationWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetZonePolicyAssociationWithResponse), varargs...) } +// ListAutomationExecutions mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListAutomationExecutions(ctx context.Context, params *sysdig.ListAutomationExecutionsParams, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAutomationExecutions", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAutomationExecutions indicates an expected call of ListAutomationExecutions. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListAutomationExecutions(ctx, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutomationExecutions", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListAutomationExecutions), varargs...) +} + +// ListAutomationExecutionsWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListAutomationExecutionsWithResponse(ctx context.Context, params *sysdig.ListAutomationExecutionsParams, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListAutomationExecutionsResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAutomationExecutionsWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListAutomationExecutionsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAutomationExecutionsWithResponse indicates an expected call of ListAutomationExecutionsWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListAutomationExecutionsWithResponse(ctx, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutomationExecutionsWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListAutomationExecutionsWithResponse), varargs...) +} + +// ListAutomations mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListAutomations(ctx context.Context, params *sysdig.ListAutomationsParams, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAutomations", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAutomations indicates an expected call of ListAutomations. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListAutomations(ctx, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutomations", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListAutomations), varargs...) +} + +// ListAutomationsWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListAutomationsWithResponse(ctx context.Context, params *sysdig.ListAutomationsParams, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListAutomationsResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListAutomationsWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListAutomationsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListAutomationsWithResponse indicates an expected call of ListAutomationsWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListAutomationsWithResponse(ctx, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAutomationsWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListAutomationsWithResponse), varargs...) +} + +// ListCveCatalogV1beta1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListCveCatalogV1beta1(ctx context.Context, params *sysdig.ListCveCatalogV1beta1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCveCatalogV1beta1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCveCatalogV1beta1 indicates an expected call of ListCveCatalogV1beta1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListCveCatalogV1beta1(ctx, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCveCatalogV1beta1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListCveCatalogV1beta1), varargs...) +} + +// ListCveCatalogV1beta1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListCveCatalogV1beta1WithResponse(ctx context.Context, params *sysdig.ListCveCatalogV1beta1Params, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListCveCatalogV1beta1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListCveCatalogV1beta1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListCveCatalogV1beta1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListCveCatalogV1beta1WithResponse indicates an expected call of ListCveCatalogV1beta1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListCveCatalogV1beta1WithResponse(ctx, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListCveCatalogV1beta1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListCveCatalogV1beta1WithResponse), varargs...) +} + // ListEFOChannelsByIntegrationV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) ListEFOChannelsByIntegrationV1(ctx context.Context, params *sysdig.ListEFOChannelsByIntegrationV1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -9823,6 +10183,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateAccessKeyB return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccessKeyByIdV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateAccessKeyByIdV1WithResponse), varargs...) } +// UpdateAutomation mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateAutomation(ctx context.Context, automationID sysdig.AutomationID, params *sysdig.UpdateAutomationParams, body sysdig.UpdateAutomationJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAutomation", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAutomation indicates an expected call of UpdateAutomation. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateAutomation(ctx, automationID, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutomation", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateAutomation), varargs...) +} + +// UpdateAutomationWithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateAutomationWithBody(ctx context.Context, automationID sysdig.AutomationID, params *sysdig.UpdateAutomationParams, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAutomationWithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAutomationWithBody indicates an expected call of UpdateAutomationWithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateAutomationWithBody(ctx, automationID, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutomationWithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateAutomationWithBody), varargs...) +} + +// UpdateAutomationWithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateAutomationWithBodyWithResponse(ctx context.Context, automationID sysdig.AutomationID, params *sysdig.UpdateAutomationParams, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.UpdateAutomationResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAutomationWithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.UpdateAutomationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAutomationWithBodyWithResponse indicates an expected call of UpdateAutomationWithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateAutomationWithBodyWithResponse(ctx, automationID, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutomationWithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateAutomationWithBodyWithResponse), varargs...) +} + +// UpdateAutomationWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateAutomationWithResponse(ctx context.Context, automationID sysdig.AutomationID, params *sysdig.UpdateAutomationParams, body sysdig.UpdateAutomationJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.UpdateAutomationResponse, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, automationID, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateAutomationWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.UpdateAutomationResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateAutomationWithResponse indicates an expected call of UpdateAutomationWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateAutomationWithResponse(ctx, automationID, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, automationID, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAutomationWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateAutomationWithResponse), varargs...) +} + // UpdateCaptureStorageConfigurationV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) UpdateCaptureStorageConfigurationV1(ctx context.Context, body sysdig.UpdateCaptureStorageConfigurationV1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() diff --git a/package.nix b/package.nix index f15a495..bf17780 100644 --- a/package.nix +++ b/package.nix @@ -1,10 +1,10 @@ { buildGoLatestModule, versionCheckHook }: buildGoLatestModule (finalAttrs: { pname = "sysdig-mcp-server"; - version = "3.0.2"; + version = "3.0.3"; src = ./.; # This hash is automatically re-calculated with `just rehash-package-nix`. This is automatically called as well by `just update`. - vendorHash = "sha256-byCVbElMdYTQIbuKVFLTcl98rOGSjvxSbrv1m5CyN5k="; + vendorHash = "sha256-MFlNUKqKSQCSJk3WJyzzL6F2PpxWWDQIcNe/AI4551I="; subPackages = [ "cmd/server"